<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3.dtd">
<article article-type="research-article" dtd-version="1.3" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en"><front><journal-meta><journal-id journal-id-type="publisher-id">donstu</journal-id><journal-title-group><journal-title xml:lang="en">Advanced Engineering Research (Rostov-on-Don)</journal-title><trans-title-group xml:lang="ru"><trans-title>Advanced Engineering Research (Rostov-on-Don)</trans-title></trans-title-group></journal-title-group><issn pub-type="epub">2687-1653</issn><publisher><publisher-name>Don State Technical University</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.23947/2687-1653-2023-23-1-66-75</article-id><article-id custom-type="elpub" pub-id-type="custom">donstu-1998</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="en"><subject>INFORMATION TECHNOLOGY, COMPUTER SCIENCE AND MANAGEMENT</subject></subj-group><subj-group subj-group-type="section-heading" xml:lang="ru"><subject>ИНФОРМАТИКА, ВЫЧИСЛИТЕЛЬНАЯ ТЕХНИКА И УПРАВЛЕНИЕ</subject></subj-group></article-categories><title-group><article-title>Machine Learning Model for Early Detection of COVID-19 by Heart Rhythm Abnormalities</article-title><trans-title-group xml:lang="ru"><trans-title>Модель машинного обучения для обнаружения COVID-19 на ранней стадии по аномалиям в ритме сердца</trans-title></trans-title-group></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0001-8190-8472</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Межов</surname><given-names>М. С.</given-names></name><name name-style="western" xml:lang="en"><surname>Mezhov</surname><given-names>M. S.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Межов Максим Сергеевич, ведущий эксперт</p><p>115054, Москва, ул. Дубининская, 53, стр. 6</p></bio><bio xml:lang="en"><p>Maksim S Mezhov, leading expert</p><p>53, Dubininskaya St., Moscow, 115054</p></bio><email xlink:type="simple">msmezhov@ya.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-0770-9798</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Козицин</surname><given-names>В. О.</given-names></name><name name-style="western" xml:lang="en"><surname>Kozitsin</surname><given-names>V. O.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Козицин Вячеслав Олегович, ведущий эксперт</p><p>115054, Москва, ул. Дубининская, 53, стр. 6</p></bio><bio xml:lang="en"><p>Vyacheslav O Kozitsin, leading expert</p><p>53, Dubininskaya St., Moscow, 115054</p></bio><email xlink:type="simple">Vyacheslav.Kozitsin@skoltech.ru</email><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author" corresp="yes"><contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-5468-4079</contrib-id><name-alternatives><name name-style="eastern" xml:lang="ru"><surname>Кацер</surname><given-names>Ю. Д.</given-names></name><name name-style="western" xml:lang="en"><surname>Katser</surname><given-names>Iu. D.</given-names></name></name-alternatives><bio xml:lang="ru"><p>Кацер Юрий Дмитриевич, аспирант сколковского института науки и технологии</p><p>121205, Москва, территория инновационного центра «Сколково», Большой бульвар, 30, стр. 1</p></bio><bio xml:lang="en"><p>Iurii D Katser, postgraduate</p><p>30, Bolshoy Boulevard, Moscow, 121205</p></bio><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff-alternatives id="aff-1"><aff xml:lang="ru"><institution>ООО «Цифровые технологии и платформы»</institution><country>Россия</country></aff><aff xml:lang="en"><institution>“Digital Technologies and Platforms” LLC</institution><country>Russian Federation</country></aff></aff-alternatives><aff-alternatives id="aff-2"><aff xml:lang="ru"><institution>Сколковский институт науки и технологии</institution><country>Россия</country></aff><aff xml:lang="en"><institution>Skolkovo Institute of Science and Technology</institution><country>Russian Federation</country></aff></aff-alternatives><pub-date pub-type="collection"><year>2023</year></pub-date><pub-date pub-type="epub"><day>17</day><month>04</month><year>2023</year></pub-date><volume>23</volume><issue>1</issue><fpage>66</fpage><lpage>75</lpage><permissions><copyright-statement>Copyright &amp;#x00A9; Mezhov M.S., Kozitsin V.O., Katser I.D., 2023</copyright-statement><copyright-year>2023</copyright-year><copyright-holder xml:lang="ru">Межов М.С., Козицин В.О., Кацер Ю.Д.</copyright-holder><copyright-holder xml:lang="en">Mezhov M.S., Kozitsin V.O., Katser I.D.</copyright-holder><license license-type="creative-commons-attribution" xlink:href="https://creativecommons.org/licenses/by/4.0/" xlink:type="simple"><license-p>This work is licensed under a Creative Commons Attribution 4.0 License.</license-p></license></permissions><self-uri xlink:href="https://www.vestnik-donstu.ru/jour/article/view/1998">https://www.vestnik-donstu.ru/jour/article/view/1998</self-uri><abstract><p>Introduction. Electronic devices capable of collecting individual telemetry data have opened up prospects for preclinical detection of COVID-19 signs. Known solutions involve the analysis of information that is difficult to obtain at the moment. We are talking, specifically, about the blood condition or a PCR test. This significantly limits the possibility of integrating algorithms with wrist gadgets. At the same time, the cardiovascular system as an object of observation is quite informative, the data collection is well developed. The article describes the problem of detecting covid anomalies in rhythm strips. The work aims at creating a mathematical model based on machine learning algorithms to automate the process of detecting covid abnormalities in the heart rhythm. The possibility of integrating the results obtained with fitness bracelets and smart watches is shown.Materials and Methods. The work involved an open technology stack: Python, Scikit-learn, Lightgbm. When assessing the quality of models for binary classification, metric F1 was used. 229 cardiac rhythm strips (сardiointervalographies) of patients with COVID-19 were studied. The presence or absence of signs of an anomaly was determined taking into account the time of the rhythm strip and the intervals between heartbeats. Deviations that could indicate infection were shown graphically. Based on the exploratory analysis results, a list of signs indicating an anomaly was made.Results. As a result of the work done, a mathematical model was obtained that detected heart rate abnormalities specific to COVID-19 with an accuracy of 83 %. The basic features determining the predictive ability of the model were identified and ranked. They included the current value of the interval between heartbeats, the derivatives at the subsequent and previous points of measuring the duration of the heartbeat, the first derivative at the current point, and the deviation of the current value of the duration of the RR-interval from the median. The first indicator in this list was recognized as the most significant, the last — the least. For machine learning purposes, the potential of five algorithms was evaluated: IsolationForest, LGBMClassifier, RandomForestClassifier, ExtraTreesClassifier, SGDOneClassSVM. The normal and abnormal results of observations in isolation trees were visualized. A parameter was set that corresponded to the probability of regular observation outside the norm, and its value was selected — 0.11. Taking into account this indicator, a graph was constructed for the SGDOneClassSVM model. Based on the data set, using the cross-validation technique, the quality metric was calculated. The case in hand was a rhythm strip with a time series of observations taken in one continuous time interval from one person. A step-by-step process of obtaining averaged metric values for each model was described. In comparison, the highest indicator was recorded for the LGBMClassifier model, the lowest — for SGDOneClassSVM and IsolationForest.Discussion and Conclusions. The resulting mathematical model takes up little space in the memory of a mobile device, i.e., it does not impose significant requirements on computing resources. The solution has an acceptable detection quality for preclinical screening of COVID-19-related cardiovascular disorders. The algorithm detects anomalies in 83 % of cases. Four minutes is enough to record a rhythm strip. The proposed scenario for using an integrated solution is concise and easy to implement. Widespread use of the development can contribute to the detection of COVID-19 at an early stage.</p></abstract><trans-abstract xml:lang="ru"><p>Введение. Электронные устройства, способные собирать данные по телеметрии индивидуума, открыли перспективы доклинического выявления признаков COVID-19. Известные решения предполагают анализ информации, которую сложно получить в моменте. Речь идет, например, о состоянии крови или ПЦР-тесте. Это существенно ограничивает возможности интеграции алгоритмов с наручными гаджетами. При этом сердечно-сосудистая система как объект наблюдения достаточно информативна, съем данных хорошо проработан. В статье описана задача детекции ковидных аномалий в ритмограммах. Цель работы — создание математической модели на базе алгоритмов машинного обучения для автоматизации процесса выявления ковидных аномалий в ритме сердца. Показана возможность интеграции полученных результатов с фитнесс-браслетами и умными часами.Материалы и методы. В работе задействовали открытый стек технологий: Python, Scikit-learn, Lightgbm. При оценке качества моделей для бинарной классификации использовалась метрика F1. Изучены 229 ритмограмм сердца (кардиоинтервалографий) пациентов с COVID-19. Наличие или отсутствие признаков аномалии определялось с учетом времени ритмограммы и интервалов между сердцебиениями. Графически показаны отклонения, которые могут свидетельствовать о заражении. По итогам разведочного анализа собран перечень признаков, указывающих на аномалию.Результаты исследования. В результате проделанной работы получена математическая модель, которая детектирует специфичные для COVID-19 аномалии сердечного ритма с точностью 83 %. Выявлены и ранжированы основные признаки, определяющие прогностическую способность модели. Это текущее значение интервала между ударами сердца, производные в последующей и предыдущей точках измерения продолжительности сердцебиения, первая производная в текущей точке и отклонение от медианы текущего значения длительности RR-интервала. Первый показатель в этом перечне признан наиболее значимым, последний — наименее. Для целей машинного обучения оценивался потенциал пяти алгоритмов: IsolationForest, LGBMClassifier, RandomForestClassifier, ExtraTreesClassifier, SGDOneClassSVM. Визуализированы нормальные и аномальные результаты наблюдений в изолирующих деревьях. Установлен параметр, который соответствует вероятности регулярного наблюдения за пределами нормы, и выбрано его значение — 0,11. С учетом данного показателя построен график для модели SGDOneClassSVM. По набору данных с применением техники перекрестной проверки рассчитана метрика качества. Речь идет о ритмограмме с временны́м рядом наблюдений, снятых за один непрерывный интервал времени у одного человека. Описан пошаговый процесс получения усредненных значений метрики для каждой модели. При сравнении самый высокий показатель зафиксирован у модели LGBMClassifier, наименьшие — у SGDOneClassSVM и IsolationForest.Обсуждение и заключения. Полученная математическая модель занимает мало места в памяти мобильного устройства, то есть не предъявляет значимых требований к вычислительным ресурсам. Решение обладает приемлемым качеством детекции для доклинического скрининга связанных с COVID-19 сердечно-сосудистых нарушений. Алгоритм обнаруживает аномалии в 83 % случаев. Для записи ритмограммы достаточно 4 минут. Предлагаемый сценарий использования интегрированного решения лаконичен и легко реализуем. Широкое использование разработки может способствовать выявлению COVID-19 на ранней стадии.</p></trans-abstract><kwd-group xml:lang="ru"><kwd>COVID-19</kwd><kwd>причины смерти ковид-положительных пациентов</kwd><kwd>осложнения в работе сердечно-сосудистой системы</kwd><kwd>ПЦР-тест</kwd><kwd>доклинический контроль сердечно-сосудистой системы</kwd><kwd>встроенные датчики частоты пульса</kwd><kwd>ритмограмма</kwd><kwd>RR-интервал</kwd><kwd>электрокардиограмма сердца</kwd><kwd>аномальное по продолжительности сердцебиение</kwd><kwd>сердцебиение с аномальным ритмом</kwd><kwd>машинное обучение</kwd><kwd>алгоритм LGBMClassifier</kwd></kwd-group><kwd-group xml:lang="en"><kwd>COVID-19</kwd><kwd>causes of death in covid-positive patients</kwd><kwd>complications in the work of cardiovascular system</kwd><kwd>PCR test</kwd><kwd>preclinical monitoring of the cardiovascular system</kwd><kwd>built-in pulse rate sensors</kwd><kwd>rhythm strip</kwd><kwd>RR-interval</kwd><kwd>cardiac electrocardiogram</kwd><kwd>abnormal heartbeat</kwd><kwd>heartbeat with abnormal rhythm</kwd><kwd>machine learning</kwd><kwd>LGBMClassifier algorithm</kwd></kwd-group><funding-group><funding-statement xml:lang="ru">Авторы выражают благодарность руководству и модераторам открытого всероссийского соревнования профессионалов в сфере цифровой экономики «Цифровой прорыв» за предоставленные данные для исследования.</funding-statement><funding-statement xml:lang="en">The authors would like to thank the management and moderators of the open All-Russian competition of professionals in the digital economy “Digital Breakthrough” for the data provided for the study.The authors would like to thank the management and moderators of the open All-Russian competition of professionals in the digital economy “Digital Breakthrough” for the data provided for the study.</funding-statement></funding-group></article-meta></front><body><p>Introduction. Investigation of the impact of COVID-19 on humans remains a challenge. Thus, in 2021-2022, more than 16,000 scientific papers were published on this topic. One of the main causes of death of covid-positive patients was complications in the cardiovascular system (hereinafter referred to as CVS) caused by exposure to coronavirus [<xref ref-type="bibr" rid="cit1">1</xref>]. Two methods are mainly used for preclinical diagnosis of COVID-19: biochemical method based on polymerase chain reaction (PCR test) and blood analysis. Contacts with medical staff needed in this case (including visits to medical institutions) complicate regular operational control and increase the burden on the healthcare system. Thus, it seems relevant to use modern technologies of preclinical control of CVS for early detection of COVID-19 signs.</p><p>Wearable electronic devices can provide regular monitoring. The most common of them are fitness bracelets and smart watches with built-in heart rate sensors and the ability to perform measurements with high discreteness [<xref ref-type="bibr" rid="cit2">2</xref>]. This approach opens up opportunities for analyzing data flows based on machine learning1 [<xref ref-type="bibr" rid="cit3">3</xref>].</p><p>The presented study aims at creating a trainable model capable of detecting covid anomalies based only on data on heart rhythm. A number of papers [4–6] consider similar problems, but the solutions are based on additional information about the state of the blood and other characteristics2. This significantly limits the possibilities of their integration with wearable devices, because at the moment, it is impossible to enter the results of a blood test or a smear for a PCR test into the model. The novelty of the proposed solution is in the fact that only heart rate data is used, which can be taken with a high frequency in a way convenient for a person and interpret the indicators in real time.</p><sec><title>Materials and Methods</title><p>Data characteristics. 229 impersonal rhythm strips (сardiointervalographies) of patients with COVID-19 were used in the research. The information was obtained in 2021 as part of the open All-Russian competition “Digital Breakthrough” for professionals in the digital economy. A data fragment is presented in Table 1.</p><fig id="fig-1"><graphic xlink:href="donstu-23-1-g001.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/6QxRzccAwg8GHcysfg0omr7OgLBWiIaiRvQT87Ey.png</uri></graphic></fig><p>Figure 1 shows the relationship of the rhythm strip (RR interval) and the electrocardiogram of the heart (ECG).</p><fig id="fig-2"><caption><p>Fig. 1. Comparison of electrocardiogram and heart rhythm strip: horizontal axis shows the time in seconds, vertical axis for the ECG — microvolts</p></caption><graphic xlink:href="donstu-23-1-g002.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/vNX9L9Rm2cdt2BCvQdKbrioVtG1SaMhfSG4F3GvN.png</uri></graphic></fig><p>In all rhythm strips from this set, there are marked abnormal areas. In Figure 2, abnormal areas are highlighted with a red dotted line. The 𝑥-axis shows the duration of one measurement of the rhythm strip in milliseconds, the 𝑦-axis — the interval between adjacent heartbeats in milliseconds.</p><fig id="fig-3"><caption><p>Fig. 2. Chart of rhythm strip No. 69: abnormal areas are highlighted with red dotted lines, abnormal points — with black bullet points</p></caption><graphic xlink:href="donstu-23-1-g003.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/lukkuOTWJD2yIxQEXKaFyvxqohky0Z7ht9SFnzhn.png</uri></graphic></fig><p>Each rhythm strip is presented by its own identifier. The duration of rhythm strips in the studied data set is different: 4 minutes on average, 31 minutes maximum. Each measurement inside one rhythm strip has a timestamp in milliseconds from the start of recording. The duration of the RR interval is also presented in milliseconds. Each specific value in the rhythm strip allows us to talk about the signs of an anomaly (0 — no, 1 — there is). 2.53 % of observations are marked with number 1. Thus, the data set has a strong class imbalance, which is typical for anomaly detection tasks.</p><p>In the data markup, there are various approaches to the allocation of abnormal areas. Groups of points in the vicinity of a characteristic peak and fall in the duration of the heart rhythm were distinguished as abnormal: 3rd, 4th, 6th measurements (Fig. 2). Not always the number of points in the neighborhood is marked the same — there may be a different number of abnormal points to the left and right of the peak. Moreover, rhythm strips with noisy indications were detected. This was the case when the connection with the gadget was lost, and measurements were taken when installing or removing the device. Sixteen rhythm strips with incorrect data had to be excluded from consideration, and the markup was redone:</p><p>Feature extraction. In its pure form, only one signal was presented — the value of intervals between heartbeats. Therefore, to refine the model, additional features were prepared based on the available signal: deviation from the median value and derivatives in neighboring rhythm measurements. This list of features was selected after an exploratory data analysis and visual identification of the pattern in places corresponding to abnormal areas. In Figure 2, they were marked with a red dotted line.</p></sec><sec><title>Research Results</title><p>Metric for evaluating the quality of anomaly detection. To assess the quality of the model in the binary classification problem, due to the imbalance of classes, metric 𝐹1 [<xref ref-type="bibr" rid="cit7">7</xref>] (1) was used. It provided evaluating how well a constructed model detected a rare class. In that context, a rare class referred to abnormal heartbeats in duration — heartbeats with an abnormal rhythm:</p><p>(1)</p><p>Here:</p><p>Machine learning algorithms. As part of the study, five machine learning algorithms described below were applied.</p><p>1. IsolationForest — an algorithm with uncontrolled self-learning based on extremely randomized decision trees [<xref ref-type="bibr" rid="cit8">8</xref>].</p><p>2. Light Gradient Boosting Machine Classifier (LGBMClassifier) — an algorithm for gradient boosting over decision trees [<xref ref-type="bibr" rid="cit9">9</xref>]. To increase the operation speed, two techniques were used: Gradient-based One-Side Sampling and Exclusive Feature Bundling3.</p><p>3. RandomForestClassifier is based on decision trees and implements multiple selection of a random subset of features. They are used to build simpler estimators — decision trees. The results are aggregated to obtain a final prediction [<xref ref-type="bibr" rid="cit10">10</xref>].</p><p>4. ExtraTreesClassifier is similar to RandomForestClassifier, however, it additionally implements a random selection of the boundary along which nodes branch in decision trees [<xref ref-type="bibr" rid="cit11">11</xref>].</p><p>5. SGDOneClassSVM4 — a linear version of One-Class Support Vector Machine using Stochastic Gradient Descent.</p><p>IsolationForest and SGDOneClassSVM were chosen due to their wide use in anomaly detection tasks [12, 13]. LGBMClassifier, RandomForestClassifier and ExtraTreesClassifier perform well enough in different tasks, therefore, they were also used to compare the results [12, 13].</p><p>The specific feature of the IsolationForest and SGDOneClassSVM algorithms is that they do not require a clear marking of anomalous observations at the input, while it is mandatory for the rest of the algorithms used in the study.</p><p>IsolationForest is based on the assumption that when constructing isolating trees, abnormal observations can be isolated (separated) in fewer operations than normal observation instances. For each observation, the algorithm calculates the anomaly score by the formula:</p><p>(2)</p><p>where ℎ(𝑥) — number of edges up to instance 𝑥 in each isolating decision tree; 𝐸(ℎ(𝑥)) — average value ℎ(𝑥) on the entire set of isolating trees; с(𝑛) — normalizing constant for a data set of size 𝑛 (3).</p><p>In equation (4) y — Euler’s constant equal to 0.57721…</p><p>If observation 𝑥 has an anomaly estimation value 𝑠, close to 1, then it is considered anomalous. If 𝑠 is close to 0.5, then the observation has no obvious signs of an anomaly. If 𝑠 is close to 0, then the observation can be considered normal (Fig. 3).</p><fig id="fig-4"><caption><p>Fig. 3. Normal and anomalous observations in isolating trees (the authors’ figure)</p></caption><graphic xlink:href="donstu-23-1-g004.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/7aTsCBl25WxIXzjh7AmyYp2KWoFtdPrrHHrDO8gw.png</uri></graphic></fig><p>SGDOneClassSVM is based on the opposite approach to IsolationForest. The algorithm determines the boundaries of normal observations and compares all new observations to the boundaries of this norm to identify an anomaly.</p><p>Feature Significance. An assessment of the degree of impact of features on the predictive ability of the model is shown in Figure 4.</p><fig id="fig-5"><caption><p>Fig. 4. Feature significance diagram: х — current value of the interval; next_diff — derivative at the next point of measuring the heartbeat duration; prev_diff — derivative at the previous point of measuring the heartbeat duration; diff — the first derivative at the current point; median_deviation — deviation of the current value of the RR interval duration from the median</p></caption><graphic xlink:href="donstu-23-1-g005.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/ZokIr7p8sf9OoaS3twgd81xQqY3Q3X7p6yCIYhNM.png</uri></graphic></fig><p>To calculate the numerical significance estimate, a mechanism built into LGBMClassifier was used, which returns an array of numerical estimates for each feature via the feature_importances_ property of the trained model. Significance in models based on gradient boosting over decision trees is usually calculated on the Gini-impurity Index5 [<xref ref-type="bibr" rid="cit14">14</xref>], used in the process of determining the branching points when training the model:</p><p>(5)</p><p>Here, 𝑑 — a set of observations that match the conditions at the considered branching point, 𝑑 ∈ 𝐷; k — number of classes presented in the entire training dataset D; 𝑝𝑖 — probability of observations belonging to class i at the considered branching point of the decision tree.</p><p>The following features were the most significant: the current value of interval (х), the derivative at the next (next_diff) and previous (prev_diff) points of measuring the heartbeat duration (Fig. 4). A complete list of the features used is given in Table 2.</p><fig id="fig-6"><graphic xlink:href="donstu-23-1-g006.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/8dL07ncbnuwHtjRtP02IWrU1iQ8bSvsO4kd3k0BU.png</uri></graphic></fig><p>Comparison of models. For effectiveness of SGDOneClassSVMmodel, it is important to select parameter nu, which corresponds to the probability of detecting regular observation outside the norm. In other words, nu determines the upper bound of the error rate when training the model, and the lower bound of the support vector fraction6. To select nu taking into account the available data nature, the quality metric was additionally assessed at different values of the specified parameter (Fig. 5). As a result, nu equal to 0.11 was selected.</p><fig id="fig-7"><caption><p>Fig. 5. Estimate of parameter nu (on the horizontal axis) for SGDOneClassSVM model. On the vertical axis — values of metric F1</p></caption><graphic xlink:href="donstu-23-1-g007.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/iWU1PHefXYhmq0SxhVvRLDuf0KMPop1WCuZu3XYd.png</uri></graphic></fig><p>To calculate the quality metric on various models, the entire data set was used through the cross-validation technique. Within one rhythm strip, we had a time series of observations taken in one continuous period of time from one person, therefore, they should be considered as dependent [<xref ref-type="bibr" rid="cit15">15</xref>]. The following strategy was used to divide the data into training and test sets. The selected data set consisted of 213 rhythm strips marked with a unique identifier (id). This made it possible to allocate rhythm strips for training and testing models. A set of rhythm strips for the test could be randomly selected by identifiers. The approach used in the presented work is described below.</p><p>I. Five actions were performed in the data partitioning cycle.</p><p>1. The initial number for generating pseudo-random numbers was fixed (seed) —np.random.seed(fold), where fold — number of the current data partition.</p><p>2. 42 random integer values were generated in the range from 1 to 213. This was how we got random numbers of rhythm strip identifiers for the test data set.</p><p>3. The numbers of rhythm strip identifiers that remained after the selection of identifiers for the test were entered in a separate list. They were used for a training set.</p><p>4. Models were trained on rhythm strips from the training set, and prediction quality metrics were evaluated on rhythm strips from the test set.</p><p>5. The quality metric value was recorded for each model calculated on the test set of rhythm strips at the current data split.</p><p>II. Steps 1–5 were repeated for each data split number.</p><p>III. The obtained values of the quality metric were averaged for each of the models.</p><p>A comparative assessment of the average prediction quality metric for each model is given in Table 3.</p><fig id="fig-8"><graphic xlink:href="donstu-23-1-g008.png"><uri content-type="original_file">https://cdn.elpub.ru/assets/journals/donstu/2023/1/Y3VVOPKtzGnobaoCWImA5ajZyX4DruSb93yos9ey.png</uri></graphic></fig><p>Discussion and Conclusions. A mathematical model for detecting anomalies in the heart rhythm with an accuracy of 83 % has been developed. According to quality metric F1, the model based on LGBMClassifier algorithm turned out to be the best. IsolationForest and SGDOneClassSVM showed weak results on current data.</p><p>The proposed model can be implemented as a component of the software part of wearable personal smart devices.</p><p>The proposed scenario for using the solution is as follows:</p><p>the recording of the rhythm strip is activated on a personal wearable device through the user interface;</p><p>upon completion, the record is submitted to the developed model for analysis;</p><p>based on the results of data analysis, the mathematical model issues a notification about the presence or absence of anomalies on the screen of the wearable device.</p><p>Note that an average of 4 minutes is probably enough to record one rhythm strip. During this time, it is possible to detect covid anomalies in the heart rhythm.</p><p>The model occupies 493 kilobytes in the memory of the wearable device, which is quite suitable for practical use.</p><p>The solution relies only on information about the heart rate and does not involve factors inaccessible to mobile personal gadgets.</p><p>Improving the accuracy of anomaly detection involves additional research. They should focus on the development of unique features that are detected by the initial heart rate signal. However, the current solution already makes it possible to quickly and easily assess the probability of COVID-19 at an early stage. This, along with the implementation of medical recommendations, can further contribute to reducing the risk of mortality from the negative impact of coronavirus infection on the cardiovascular system.</p><p>1. Permyakov SA, et al. Ehndogennye anomalii kardioritma u patsientov s COVID-19. In: Proc. VII All-Russian Conf. “Nelineinaya dinamika v kognitivnykh issledovaniyakh – 2021”. Nizhny Novgorod: Institute of Applied Physics of RAS; 2021. P. 109–110. (In Russ.)2. Diagnosis of COVID-19 and Its Clinical Spectrum. Kaggle Inc. URL: https://www.kaggle.com/datasets/einsteindata4u/covid19 (accessed: 10.09.2022).3. LightGBM: A Highly Efficient Gradient Boosting Decision Tree. www.microsoft.com URL: https://www.microsoft.com/en-us/research/wpcontent/uploads/2017/11/lightgbm.pdf (accessed: 10.09.2022).4. Online One-Class SVM. Scikit-learn developers (BSD License). scikit-learn.org URL: https://scikit-learn.org/stable/modules/sgd.html#online-oneclass-svm (accessed: 10.09.2022).5. Karabiber F. Gini Impurity. learndatasci.com URL: https://www.learndatasci.com/glossary/gini-impurity/ (accessed: 10.09.2022).6. SGDOneClassSVM documentation. Scikit-learn developers (BSD License). scikit-learn.org URL: https://scikitlearn.org/stable/modules/generated/sklearn.linear_model.SGDOneClassSVM.html#sklearn.linear_model.SGDOneClassSVM (accessed: 10.09.2022).</p></sec></body><back><ref-list><title>References</title><ref id="cit1"><label>1</label><citation-alternatives><mixed-citation xml:lang="ru">Турсунова Н.Д., Шафигулина И.С., Гребенникова И.В. и др. Патогенетические аспекты влияния COVID-19 на сердечно-сосудистую систему человека. European Journal of Natural History. 2022;1:73–77.</mixed-citation><mixed-citation xml:lang="en">Tursunova ND, Shafigulina IS, Grebennikova IV, et al. Patogeneticheskie aspekty vliyaniya COVID-19 na serdechno-sosudistuyu sistemu cheloveka. European Journal of Natural History. 2022;1:73–77. (In Russ.)</mixed-citation></citation-alternatives></ref><ref id="cit2"><label>2</label><citation-alternatives><mixed-citation xml:lang="ru">Молодченков А.И., Григорьев О.Г., Шарафутдинов Я.Н. Автоматическое выявление значений факторов риска заболеваний с помощью методов искусственного интеллекта и технологии интернета вещей. Информационные технологии и вычислительные системы. 2021;1:83–96. https://doi.org/10.14357/20718632210109</mixed-citation><mixed-citation xml:lang="en">Molodchenkov AI, Grigoriev OG, Sharafutdinov YaN. Automatic Calculation of Disease Risk Factors Values Using Artificial Intelligence Methods and Internet of Things Technology. Journal of Information Technologies and Computing Systems. 2021;1:83–96. https://doi.org/10.14357/20718632210109</mixed-citation></citation-alternatives></ref><ref id="cit3"><label>3</label><citation-alternatives><mixed-citation xml:lang="ru">Polevaya S.A., Eremin E.V., Bulanov N.A., et al. Event-Related Telemetry of Heart Rhythm for Personalized Remote Monitoring of Cognitive Functions and Stress under Conditions of Everyday Activity. Modern Technologies in Medicine. 2019;11(1):109–115. http://dx.doi.org/10.17691/stm2019.11.1.13</mixed-citation><mixed-citation xml:lang="en">Polevaya SA, Eremin EV, Bulanov NA, et al. Event-Related Telemetry of Heart Rhythm for Personalized Remote Monitoring of Cognitive Functions and Stress under Conditions of Everyday Activity. Modern Technologies in Medicine. 2019;11:109–115. http://dx.doi.org/10.17691/stm2019.11.1.13</mixed-citation></citation-alternatives></ref><ref id="cit4"><label>4</label><citation-alternatives><mixed-citation xml:lang="ru">Kouame Amos Brou, Ivan Smirnov, Mabouh Moise Hermann. Comparison of Machine Learning Models for Coronavirus Prediction. Advanced Engineering Research (Russia). 2022;22(1):67–75. https://doi.org/10.23947/2687-1653-2022-22-1-67-75</mixed-citation><mixed-citation xml:lang="en">Kouame Amos Brou, Ivan Smirnov, Mabouh Moise Hermann. Comparison of Machine Learning Models for Coronavirus Prediction. Advanced Engineering Research (Russia). 2022;22:67–75. https://doi.org/10.23947/2687-1653-2022-22-1-67-75</mixed-citation></citation-alternatives></ref><ref id="cit5"><label>5</label><citation-alternatives><mixed-citation xml:lang="ru">Ashish Bhargava, Elisa Akagi Fukushima, Miriam Levine, et al. Predictors for Severe COVID-19 Infection. Clinical Infectious Diseases. 2020;71:1962–1968. https://doi.org/10.1093/cid/ciaa674</mixed-citation><mixed-citation xml:lang="en">Ashish Bhargava, Elisa Akagi Fukushima, Miriam Levine, et al. Predictors for Severe COVID-19 Infection. Clinical Infectious Diseases. 2020;71:1962–1968. https://doi.org/10.1093/cid/ciaa674</mixed-citation></citation-alternatives></ref><ref id="cit6"><label>6</label><citation-alternatives><mixed-citation xml:lang="ru">Красюкова Ю.И., Вахрушева Т.А. Модель машинного обучения для определения вероятности заболевания COVID-19 по первичным признакам. Интеллектуальные ресурсы — региональному развитию. 2021;2:67–71.</mixed-citation><mixed-citation xml:lang="en">Krasyukova YuI, Vakhrusheva TA, Pei He Su. Machine Learning Model for Determining the Probability of Covid-19 Disease by Primary Signs. Intellektual'nye resursy — regional'nomu razvitiyu. 2021;2:67–71.</mixed-citation></citation-alternatives></ref><ref id="cit7"><label>7</label><citation-alternatives><mixed-citation xml:lang="ru">Alaa Tharwat. Classification Assessment Methods. Applied Computing and Informatics. 2021;17(1):174.https://doi.org/10.1016/j.aci.2018.08.003</mixed-citation><mixed-citation xml:lang="en">Alaa Tharwat. Classification Assessment Methods. Applied Computing and Informatics. 2021;17:174. https://doi.org/10.1016/j.aci.2018.08.003</mixed-citation></citation-alternatives></ref><ref id="cit8"><label>8</label><citation-alternatives><mixed-citation xml:lang="ru">Yupeng Xu, Hao Dong, Mingzhu Zhou, et al. Improved Isolation Forest Algorithm for Anomaly Test Data Detection. Journal of Computer and Communications. 2021;9(8):49–51. https://doi.org/10.4236/jcc.2021.98004</mixed-citation><mixed-citation xml:lang="en">Yupeng Xu, Hao Dong, Mingzhu Zhou, et al. Improved Isolation Forest Algorithm for Anomaly Test Data Detection. Journal of Computer and Communications. 2021;9:49–51. https://doi.org/10.4236/jcc.2021.98004</mixed-citation></citation-alternatives></ref><ref id="cit9"><label>9</label><citation-alternatives><mixed-citation xml:lang="ru">Bruce P., Bruce A., Gedeck P. Practical Statistics for Data Scientists, 2nd ed. Boston: OʼReilly Мedia; 2020. 342 p.</mixed-citation><mixed-citation xml:lang="en">Bruce P, Bruce A, Gedeck P. Practical Statistics for Data Scientists, 2nd ed. Boston: OʼReilly Мedia; 2020. 342 p.</mixed-citation></citation-alternatives></ref><ref id="cit10"><label>10</label><citation-alternatives><mixed-citation xml:lang="ru">Breiman L. Random Forests. Machine Learning. 2001;45:5–32. https://doi.org/10.1023/A:1010933404324</mixed-citation><mixed-citation xml:lang="en">Breiman L. Random Forests. Machine Learning. 2001;45:5–32. https://doi.org/10.1023/A:1010933404324</mixed-citation></citation-alternatives></ref><ref id="cit11"><label>11</label><citation-alternatives><mixed-citation xml:lang="ru">Geurts P., Ernst D., Wehenkel L. Extremely Randomized Trees. Machine Learning. 2006;63:3–42. https://doi.org/10.1007/s10994-006-6226-1</mixed-citation><mixed-citation xml:lang="en">Geurts P, Ernst D, Wehenkel L Extremely Randomized Trees. Machine Learning. 2006;63:3–42. https://doi.org/10.1007/s10994-006-6226-1</mixed-citation></citation-alternatives></ref><ref id="cit12"><label>12</label><citation-alternatives><mixed-citation xml:lang="ru">Kaur H., Singh G., Minhas J. A Review of Machine Learning Based Anomaly Detection Techniques. International Journal of Computer Applications Technology and Research. 2013;2(2):185–187. http://dx.doi.org/10.7753/IJCATR0202.1020</mixed-citation><mixed-citation xml:lang="en">Kaur H, Singh G, Minhas J. A Review of Machine Learning Based Anomaly Detection Techniques. International Journal of Computer Applications Technology and Research. 2013;2:185–187. http://dx.doi.org/10.7753/IJCATR0202.1020</mixed-citation></citation-alternatives></ref><ref id="cit13"><label>13</label><citation-alternatives><mixed-citation xml:lang="ru">Кацер Ю.Д., Козицин В.О., Максимов И.В. Методы обнаружения неисправностей оборудования АЭС. Известия высших учебных заведений. Ядерная энергетика. 2019;4:5–27. https://doi.org/10.26583/npe.2019.4.01</mixed-citation><mixed-citation xml:lang="en">Katser ID, Kozitsin VO, Maksimov IV. NPP Equipment Fault Detection Methods. Proc. of Universities. Nuclear Power Engineering. 2019;4:5–27. https://doi.org/10.26583/npe.2019.4.01</mixed-citation></citation-alternatives></ref><ref id="cit14"><label>14</label><citation-alternatives><mixed-citation xml:lang="ru">Daniya T., Geetha M., Suresh Kumar K. Dr. Classification and Regression Trees with Gini Index. Advances in Mathematics Scientific Journal. 2020;9(10):8237–8247. http://dx.doi.org/10.37418/amsj.9.10.53</mixed-citation><mixed-citation xml:lang="en">Daniya T, Geetha M, Suresh Kumar K Dr. Classification and Regression Trees with Gini Index. Advances in Mathematics Scientific Journal. 2020;9:8237–8247. http://dx.doi.org/10.37418/amsj.9.10.53</mixed-citation></citation-alternatives></ref><ref id="cit15"><label>15</label><citation-alternatives><mixed-citation xml:lang="ru">Valliappa Lakshmanan, Sara Robinson, Michael Munn. Machine Learning Design Patterns: Solutions to Common Challenges in Data Preparation, Model Building, and MLOps, 1st ed. Boston: OʼReilly Мedia; 2020. 408 p.</mixed-citation><mixed-citation xml:lang="en">Valliappa Lakshmanan, Sara Robinson, Michael Munn. Machine Learning Design Patterns: Solutions to Common Challenges in Data Preparation, Model Building, and MLOps, 1st ed. Boston: OʼReilly Мedia; 2020. 408 p.</mixed-citation></citation-alternatives></ref></ref-list><fn-group><fn fn-type="conflict"><p>The authors declare that there are no conflicts of interest present.</p></fn></fn-group></back></article>
