Last updated: 2022-07-19

Checks: 7 0

Knit directory: false.alarm/docs/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20201020) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version f86f334. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Renviron
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    .devcontainer/exts/
    Ignored:    .docker/
    Ignored:    .github/ISSUE_TEMPLATE/
    Ignored:    .httr-oauth
    Ignored:    R/RcppExports.R
    Ignored:    _regime_change/meta/process
    Ignored:    _regime_change/meta/progress
    Ignored:    _regime_change/objects/
    Ignored:    _regime_change/scratch/
    Ignored:    _regime_change/user/
    Ignored:    _regime_optimize/meta/meta2
    Ignored:    _regime_optimize/meta/process
    Ignored:    _regime_optimize/meta/progress
    Ignored:    _regime_optimize/objects/
    Ignored:    _regime_optimize/user/
    Ignored:    _targets/meta/process
    Ignored:    _targets/meta/progress
    Ignored:    _targets/objects/
    Ignored:    _targets/user/
    Ignored:    analysis/shiny/rsconnect/
    Ignored:    analysis/shiny_land/rsconnect/
    Ignored:    dev/
    Ignored:    inst/extdata/
    Ignored:    papers/aime2021/aime2021.md
    Ignored:    papers/epia2022/epia2022.md
    Ignored:    presentations/MEDCIDS21/MEDCIDS21-10min_files/
    Ignored:    presentations/MEDCIDS21/MEDCIDS21_files/
    Ignored:    presentations/Report/Midterm-Report_cache/
    Ignored:    presentations/Report/Midterm-Report_files/
    Ignored:    protocol/SecondReport_cache/
    Ignored:    protocol/SecondReport_files/
    Ignored:    protocol/_files/
    Ignored:    renv/python/
    Ignored:    renv/staging/
    Ignored:    src/RcppExports.cpp
    Ignored:    src/RcppExports.o
    Ignored:    src/contrast.o
    Ignored:    src/false.alarm.so
    Ignored:    src/fft.o
    Ignored:    src/mass.o
    Ignored:    src/math.o
    Ignored:    src/mpx.o
    Ignored:    src/scrimp.o
    Ignored:    src/stamp.o
    Ignored:    src/stomp.o
    Ignored:    src/windowfunc.o
    Ignored:    thesis/Rplots.pdf
    Ignored:    thesis/_bookdown_files/
    Ignored:    tmp/

Untracked files:
    Untracked:  output/work_output_202110.rds

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/about.Rmd) and HTML (docs/about.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 03d1e68 Francisco Bischoff 2022-07-19 Squashed commit of the following:
html 5927668 Francisco Bischoff 2022-04-17 Build site.
html 96dd528 Francisco Bischoff 2022-03-15 Build site.
Rmd c155156 Francisco Bischoff 2022-03-14 workflowr asd
Rmd 5f35362 Francisco Bischoff 2022-03-14 rekniting
html 0aefdd1 Francisco Bischoff 2022-03-14 workflowr 2
html 5f35362 Francisco Bischoff 2022-03-14 rekniting
html 6004462 Francisco Bischoff 2022-03-11 workflowr
Rmd 0f2f487 Francisco Bischoff 2022-03-03 spellchecking
html 4884ec1 Francisco Bischoff 2022-02-02 work
html c19ec01 Francisco Bischoff 2021-08-17 Build site.
html a5ec160 Francisco Bischoff 2021-08-17 Build site.
html b51dba2 GitHub Actions 2021-08-17 Build site.
Rmd c88cbd5 Francisco Bischoff 2021-08-17 targets workflowr
html c88cbd5 Francisco Bischoff 2021-08-17 targets workflowr
html e7e5d48 GitHub Actions 2021-07-15 Build site.
Rmd ccd704f Francisco Bischoff 2021-07-15 targets
Rmd 1473a05 Francisco Bischoff 2021-07-15 report
html 1473a05 Francisco Bischoff 2021-07-15 report
html 52e7f0b GitHub Actions 2021-03-24 Build site.
Rmd 7c3cc31 Francisco Bischoff 2021-03-23 Targets
html 7c3cc31 Francisco Bischoff 2021-03-23 Targets

Gitpod Ready-to-Code Launch binder Read Thesis

R-CMD-check codecov CodeQL Language grade: C/C++

1 Abstract

Point-of-Care (POC) ECG monitoring works either as plot devices or alarms for abnormal cardiac rhythms using predefined normal trigger ranges. On the other hand, full 12-derivation ECG machines are complex to use as simple monitors. They are used with strict techniques for formal diagnostics of hearth electric conduction pathologies. The automatic diagnostics are derived from a full analysis of the 12-dimension data after it is fully collected. Both systems do not handle disconnected leads and patient’s motions, being strictly necessary to have a good and stable signal to allow proper diagnosis.

This research aims to identify abnormal hearth electric patterns using streaming data, specifically those who are life-threatening, being a reliable signal for Intensive Care Units to respond quickly to those situations.

The study design is comparable to a Diagnostic study, where high accuracy is essential. It will use the Physionet datasets1, and the algorithm will try to minimize the false negatives and false positives.

The expected result is the concretization of a new method that, besides being accurate, accomplishes this task using state-of-the-art technology for time series analysis that allows minimum space and processor power to solve this problem. Also, we expect that fading factors can contribute to this technology’s state of the art.

The research team is well experienced in time-series and has studied the Matrix Profile since its beginning, being founders of the Matrix Profile Foundation whose goal is to have a concise and stable cross-language API for developing with the Matrix Profile technology.2,3

2 About the ongoing project.

The document submitted for approval is here.

To follow the thesis timeline, you can access the full Gantt chart at Zenhub. Click here (you need a Github account, but that’s it).

3 Reproducible Research4

This thesis will follow the compendium principles:

3.1 Following Standards

Aiming to create secure materials that are FAIR findable, accessible, interoperable, reusable

3.1.1 Research Data Management

  • RDM checklist5
  • Anticipate data products as part of your thesis outputs
  • Think about what technologies to use

3.1.2 Missing values are a fact of life

  • Usually, the best solution is to leave blank
  • NA or NULL are also good options
  • NEVER use 0. Avoid numbers like -999
  • Don’t make up your own code for missing values

3.1.3 Raw data are sacrosanct

  • Don’t, not even with a barge pole, not for one second, touch or otherwise edit the raw data files. Do manipulations in script

3.1.4 Three principles for good (file) names

3.1.4.1 Machine readable

  • Regular expression and globbing friendly

    • Avoid spaces, punctuation, accented characters, case sensitivity
  • Easy to compute on

    • Deliberate use of delimiters

    • Deliberate use of "-" and "_" allows recovery of metadata from the filenames:

      • "_" underscore used to delimit units of metadata I want to access later

      • "-" hyphen used to delimit words, so our eyes don’t bleed

3.1.4.2 Human readable

  • Borrowing the concept from slugs from semantic URLs

3.1.4.3 Play well with default ordering

  • Put something numeric first

  • Use the ISO 8601 standard for dates

  • Left pad other numbers with zeros

4 License

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

5 References

1.
Clifford GD, Silva I, Moody B, et al. The PhysioNet/computing in cardiology challenge 2015: Reducing false arrhythmia alarms in the ICU. In: Computing in Cardiology.; 2015. doi:10.1109/cic.2015.7408639
2.
Bischoff F, Rodrigues PP. tsmp: An R Package for Time Series with Matrix Profile. The R Journal. 2020;12(1):76-86. doi:10.32614/RJ-2020-021
3.
Van Benschoten A, Ouyang A, Bischoff F, Marrs T. MPA: A novel cross-language API for time series analysis. Journal of Open Source Software. 2020;5(49):2179. doi:10.21105/joss.02179
4.
Krystalli A. R for Reproducible Research. Published online 2019. https://annakrystalli.me/rrresearch/
5.
Centre EDC. Checklist for a data management plan. v.4.0. Published 2013. Accessed April 8, 2021. http://www.dcc.ac.uk/resources/data-management-plans

devtools::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.2.1 (2022-06-23)
#>  os       Ubuntu 20.04.4 LTS
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       Europe/Lisbon
#>  date     2022-07-19
#>  pandoc   2.17.0.1 @ /usr/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version     date (UTC) lib source
#>  askpass       1.1         2019-01-13 [1] CRAN (R 4.2.0)
#>  assertthat    0.2.1       2019-03-21 [1] CRAN (R 4.2.0)
#>  backports     1.4.1       2021-12-13 [1] CRAN (R 4.2.0)
#>  base64url     1.4         2018-05-14 [1] CRAN (R 4.2.0)
#>  bookdown      0.27.3      2022-07-06 [1] Github (rstudio/bookdown@900f921)
#>  bslib         0.3.1       2021-10-06 [1] CRAN (R 4.2.0)
#>  cachem        1.0.6       2021-08-19 [1] CRAN (R 4.2.0)
#>  callr         3.7.1       2022-07-13 [1] CRAN (R 4.2.1)
#>  cli           3.3.0       2022-04-25 [1] CRAN (R 4.2.0)
#>  codetools     0.2-18      2020-11-04 [2] CRAN (R 4.2.0)
#>  crayon        1.5.1       2022-03-26 [1] CRAN (R 4.2.0)
#>  credentials   1.3.2       2021-11-29 [1] CRAN (R 4.2.0)
#>  data.table    1.14.2      2021-09-27 [1] CRAN (R 4.2.0)
#>  DBI           1.1.3       2022-06-18 [1] CRAN (R 4.2.0)
#>  debugme       1.1.0       2017-10-22 [1] CRAN (R 4.2.0)
#>  devtools      2.4.3       2021-11-30 [1] CRAN (R 4.2.0)
#>  digest        0.6.29      2021-12-01 [1] CRAN (R 4.2.0)
#>  dplyr         1.0.9       2022-04-28 [1] CRAN (R 4.2.0)
#>  ellipsis      0.3.2       2021-04-29 [1] CRAN (R 4.2.0)
#>  evaluate      0.15        2022-02-18 [1] CRAN (R 4.2.0)
#>  fansi         1.0.3       2022-03-24 [1] CRAN (R 4.2.0)
#>  fastmap       1.1.0       2021-01-25 [1] CRAN (R 4.2.0)
#>  fs            1.5.2       2021-12-08 [1] CRAN (R 4.2.0)
#>  generics      0.1.3       2022-07-05 [1] CRAN (R 4.2.0)
#>  gert          1.6.0       2022-03-29 [1] CRAN (R 4.2.0)
#>  getPass       0.2-2       2017-07-21 [1] CRAN (R 4.2.0)
#>  git2r         0.30.1.9000 2022-04-29 [1] Github (ropensci/git2r@80ba185)
#>  gittargets  * 0.0.3.9000  2022-04-29 [1] Github (wlandau/gittargets@13a9cd8)
#>  glue          1.6.2       2022-02-24 [1] CRAN (R 4.2.0)
#>  here        * 1.0.1       2020-12-13 [1] CRAN (R 4.2.0)
#>  htmltools     0.5.2       2021-08-25 [1] CRAN (R 4.2.0)
#>  httpuv        1.6.5       2022-01-05 [1] CRAN (R 4.2.0)
#>  httr          1.4.3       2022-05-04 [1] CRAN (R 4.2.0)
#>  igraph        1.3.3       2022-07-15 [1] CRAN (R 4.2.1)
#>  jquerylib     0.1.4       2021-04-26 [1] CRAN (R 4.2.0)
#>  jsonlite      1.8.0       2022-02-22 [1] CRAN (R 4.2.0)
#>  knitr         1.39        2022-04-26 [1] CRAN (R 4.2.0)
#>  later         1.3.0       2021-08-18 [1] CRAN (R 4.2.0)
#>  lifecycle     1.0.1       2021-09-24 [1] CRAN (R 4.2.0)
#>  magrittr      2.0.3       2022-03-30 [1] CRAN (R 4.2.0)
#>  memoise       2.0.1       2021-11-26 [1] CRAN (R 4.2.0)
#>  openssl       2.0.2       2022-05-24 [1] CRAN (R 4.2.0)
#>  pillar        1.7.0       2022-02-01 [1] CRAN (R 4.2.0)
#>  pkgbuild      1.3.1       2021-12-20 [1] CRAN (R 4.2.0)
#>  pkgconfig     2.0.3       2019-09-22 [1] CRAN (R 4.2.0)
#>  pkgload       1.3.0       2022-06-27 [1] CRAN (R 4.2.0)
#>  prettyunits   1.1.1       2020-01-24 [1] CRAN (R 4.2.0)
#>  processx      3.7.0       2022-07-07 [1] CRAN (R 4.2.1)
#>  promises      1.2.0.1     2021-02-11 [1] CRAN (R 4.2.0)
#>  ps            1.7.1       2022-06-18 [1] CRAN (R 4.2.0)
#>  purrr         0.3.4       2020-04-17 [1] CRAN (R 4.2.0)
#>  R6            2.5.1       2021-08-19 [1] CRAN (R 4.2.0)
#>  Rcpp          1.0.9       2022-07-08 [1] CRAN (R 4.2.1)
#>  remotes       2.4.2       2021-11-30 [1] CRAN (R 4.2.0)
#>  renv          0.15.5      2022-05-26 [1] CRAN (R 4.2.0)
#>  rlang         1.0.4       2022-07-12 [1] CRAN (R 4.2.1)
#>  rmarkdown     2.14.3      2022-06-23 [1] Github (rstudio/rmarkdown@d23e479)
#>  rprojroot     2.0.3       2022-04-02 [1] CRAN (R 4.2.0)
#>  rstudioapi    0.13        2020-11-12 [1] CRAN (R 4.2.0)
#>  sass          0.4.1       2022-03-23 [1] CRAN (R 4.2.0)
#>  sessioninfo   1.2.2       2021-12-06 [1] CRAN (R 4.2.0)
#>  stringi       1.7.8       2022-07-11 [1] CRAN (R 4.2.1)
#>  stringr       1.4.0       2019-02-10 [1] CRAN (R 4.2.0)
#>  sys           3.4         2020-07-23 [1] CRAN (R 4.2.0)
#>  tarchetypes * 0.6.0       2022-04-19 [1] CRAN (R 4.2.0)
#>  targets     * 0.12.1      2022-06-03 [1] CRAN (R 4.2.0)
#>  tibble        3.1.7       2022-05-03 [1] CRAN (R 4.2.0)
#>  tidyselect    1.1.2       2022-02-21 [1] CRAN (R 4.2.0)
#>  usethis       2.1.6       2022-05-25 [1] CRAN (R 4.2.0)
#>  utf8          1.2.2       2021-07-24 [1] CRAN (R 4.2.0)
#>  uuid          1.1-0       2022-04-19 [1] CRAN (R 4.2.0)
#>  vctrs         0.4.1       2022-04-13 [1] CRAN (R 4.2.0)
#>  whisker       0.4         2019-08-28 [1] CRAN (R 4.2.0)
#>  withr         2.5.0       2022-03-03 [1] CRAN (R 4.2.0)
#>  workflowr   * 1.7.0       2021-12-21 [1] CRAN (R 4.2.0)
#>  xfun          0.31        2022-05-10 [1] CRAN (R 4.2.0)
#>  yaml          2.3.5       2022-02-21 [1] CRAN (R 4.2.0)
#> 
#>  [1] /workspace/.cache/R/renv/proj_libs/false.alarm-d6f1a0d1/R-4.2/x86_64-pc-linux-gnu
#>  [2] /usr/lib/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────