<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Cardio</journal-id><journal-id journal-id-type="publisher-id">cardio</journal-id><journal-id journal-id-type="index">26</journal-id><journal-title>JMIR Cardio</journal-title><abbrev-journal-title>JMIR Cardio</abbrev-journal-title><issn pub-type="epub">2561-1011</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v10i1e85841</article-id><article-id pub-id-type="doi">10.2196/85841</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Short-Term Arrhythmia Prediction Using AI Based on Daily Data From Implantable Devices: Multicenter Prospective Observational Study</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Fern&#x00E1;ndez Lozano</surname><given-names>Ignacio</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Fern&#x00E1;ndez de la Concha</surname><given-names>Joaqu&#x00ED;n</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ramos Maqueda</surname><given-names>Javier</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>P&#x00E9;rez Castellano</surname><given-names>Nicasio</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Salguero Bodes</surname><given-names>Rafael</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Garc&#x00ED;a-Fern&#x00E1;ndez</surname><given-names>F Javier</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff7">7</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Benezet Mazuecos</surname><given-names>Juan</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff8">8</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Jim&#x00E9;nez Candil</surname><given-names>Javier</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff9">9</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Datino</surname><given-names>Tom&#x00E1;s</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff10">10</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Briongos Figuero</surname><given-names>Sem</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff11">11</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Paniagua Olmedillas</surname><given-names>Javier</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff12">12</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Font de la Fuente</surname><given-names>Miguel Nicol&#x00E1;s</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff13">13</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>L&#x00F3;pez-D&#x00F3;riga Costales</surname><given-names>Juan</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff13">13</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Paz Fern&#x00E1;ndez</surname><given-names>Sarai</given-names></name><degrees>MBA</degrees><xref ref-type="aff" rid="aff13">13</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Copov&#x00ED; Lucas</surname><given-names>Vicente</given-names></name><degrees>MPH</degrees><xref ref-type="aff" rid="aff14">14</xref></contrib></contrib-group><aff id="aff1"><institution>Heart Disease Institute, Hospital Universitario Puerta de Hierro Majadahonda</institution><addr-line>C. Joaqu&#x00ED;n Rodrigo, 1</addr-line><addr-line>Majadahonda, Madrid</addr-line><country>Spain</country></aff><aff id="aff2"><institution>Heart Disease Institute, Hospital Universitario de Badajoz</institution><addr-line>Badajoz</addr-line><country>Spain</country></aff><aff id="aff3"><institution>Heart Disease Institute, Hospital Cl&#x00ED;nico Universitario Lozano Blesa</institution><addr-line>Zaragoza</addr-line><country>Spain</country></aff><aff id="aff4"><institution>Heart Disease Institute, Cl&#x00ED;nica HLA Montpellier</institution><addr-line>Zaragoza</addr-line><country>Spain</country></aff><aff id="aff5"><institution>Heart Disease Institute, Hospital Cl&#x00ED;nico San Carlos</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><aff id="aff6"><institution>Heart Disease Institute, Hospital Universitario 12 de Octubre</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><aff id="aff7"><institution>Heart Disease Institute, Hospital Universitario de Burgos</institution><addr-line>Burgos</addr-line><country>Spain</country></aff><aff id="aff8"><institution>Heart Disease Institute, Hospital La Luz</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><aff id="aff9"><institution>Heart Disease Institute, Complejo Hospitalario de Salamanca</institution><addr-line>Salamanca</addr-line><country>Spain</country></aff><aff id="aff10"><institution>Heart Disease Institute, Hospital Universitario Quir&#x00F3;nsalud Madrid</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><aff id="aff11"><institution>Heart Disease Institute, Hospital Universitario Infanta Leonor</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><aff id="aff12"><institution>Heart Disease Institute, Hospital Virgen de la Concha</institution><addr-line>Zamora</addr-line><country>Spain</country></aff><aff id="aff13"><institution>Monitoring Life S.A</institution><addr-line>Santa Cruz de Tenerife</addr-line><country>Spain</country></aff><aff id="aff14"><institution>Arrhythmia Network Technology SL</institution><addr-line>Madrid</addr-line><country>Spain</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Krsta&#x010D;i&#x0107;</surname><given-names>Goran</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Mautong</surname><given-names>Hans</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Santos-Gago</surname><given-names>Juan M</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Ignacio Fern&#x00E1;ndez Lozano, MD, Heart Disease Institute, Hospital Universitario Puerta de Hierro Majadahonda, C. Joaqu&#x00ED;n Rodrigo, 1, Majadahonda, Madrid, 28222, Spain, 34 911 91 60 00; <email>iflozano@secardiologia.es</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>18</day><month>3</month><year>2026</year></pub-date><volume>10</volume><elocation-id>e85841</elocation-id><history><date date-type="received"><day>14</day><month>10</month><year>2025</year></date><date date-type="rev-recd"><day>30</day><month>01</month><year>2026</year></date><date date-type="accepted"><day>16</day><month>02</month><year>2026</year></date></history><copyright-statement>&#x00A9; Ignacio Fern&#x00E1;ndez Lozano, Joaqu&#x00ED;n Fern&#x00E1;ndez de la Concha, Javier Ramos Maqueda, Nicasio P&#x00E9;rez Castellano, Rafael Salguero Bodes, F Javier Garc&#x00ED;a-Fern&#x00E1;ndez, Juan Benezet Mazuecos, Javier Jim&#x00E9;nez Candil, Tom&#x00E1;s Datino, Sem Briongos Figuero, Javier Paniagua Olmedillas, Miguel Nicol&#x00E1;s Font de la Fuente, Juan L&#x00F3;pez-D&#x00F3;riga Costales, Sarai Paz Fern&#x00E1;ndez, Vicente Copov&#x00ED; Lucas. Originally published in JMIR Cardio (<ext-link ext-link-type="uri" xlink:href="https://cardio.jmir.org">https://cardio.jmir.org</ext-link>), 18.3.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Cardio, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://cardio.jmir.org">https://cardio.jmir.org</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://cardio.jmir.org/2026/1/e85841"/><abstract><sec><title>Background</title><p>Predictive medicine relies on algorithms to determine clinical treatments tailored to each patient&#x2019;s individual characteristics. Predictive models based on artificial intelligence have shown promise in identifying atrial fibrillation episodes; however, they rarely focus on short-term dynamic prediction.</p></sec><sec><title>Objective</title><p>This study aimed to evaluate the use of an artificial intelligence model and remote monitoring data extracted from pacemaker devices to predict the onset or worsening of arrhythmias in the short term.</p></sec><sec sec-type="methods"><title>Methods</title><p>This was a multicenter prospective observational study in which data from 314 patients were analyzed. A total of 65,243 data sequences were collected, of which 55,532 (85.1%) were used to train the algorithm. This model used 31-day records to predict whether the number of arrhythmic episodes would increase, decrease, or remain the same in the following 14 days.</p></sec><sec sec-type="results"><title>Results</title><p>The sensitivity and specificity of the generated predictions were calculated from 9711 prediction-observation pairs. The global sensitivity was 66.4% (95% CI 64.3%-68.3%), and specificity was 77.4% (95% CI 76.4%-78.4%). For patients with baseline arrhythmia, sensitivity was 76.8% (95% CI 74.6%-78.8%), and specificity was 39.6% (95% CI 35.8%-43.5%). The prediction for patients with no baseline arrhythmia showed a sensitivity of 39% (95% CI 35.1%-43%) and a specificity of 81% (95% CI 80.0%-81.9%). The analysis for the patient subgroup without history of atrial fibrillation (232/314, 73.9%) yielded a 69% sensitivity (95% CI 66.5%-71.5%) and an 80% specificity (95% CI 79.3%-81.3%).</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>This model was capable of predicting short-term increases or decreases in arrhythmic episodes with reasonable sensitivity and specificity using data collected through remote monitoring of implantable devices. The model&#x2019;s performance is expected to improve progressively as more data samples become available, including demographic data and clinical records.</p></sec></abstract><kwd-group><kwd>artificial intelligence</kwd><kwd>AI</kwd><kwd>atrial fibrillation</kwd><kwd>AF</kwd><kwd>machine learning</kwd><kwd>telemedicine</kwd><kwd>pacemaker</kwd><kwd>arrhythmia prediction</kwd><kwd>predictive medicine</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>In recent years, the use of artificial intelligence (AI) for the diagnosis, prognosis, and evaluation of risk factors and the response to treatment of different pathologies has shown significant advancements. This has had a positive impact on health care systems, improving the efficiency of medical handling and reducing the number of adverse events [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref2">2</xref>].</p><p>Cardiac electrophysiology has emerged as one of the fastest-growing subspecialties within cardiology over the last few decades [<xref ref-type="bibr" rid="ref3">3</xref>,<xref ref-type="bibr" rid="ref4">4</xref>], which is evidenced by numerous technological advancements aimed at detecting, predicting, and managing cardiac arrhythmias [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref6">6</xref>]. Among those, the prediction of cardiac arrhythmias is especially relevant for patients with atrial fibrillation (AF), who are 5 times more likely to experience thromboembolic events than patients without AF [<xref ref-type="bibr" rid="ref7">7</xref>].</p><p>AI training of information systems based on enormous data quantities from clinical reports and complementary tests from millions of patients not only enables episode prediction in patients diagnosed with AF but also allows for the diagnosis of asymptomatic patients, allowing for early intervention and reducing the number of clinical events [<xref ref-type="bibr" rid="ref8">8</xref>]. However, cardiac implantable devices can also be leveraged to train AI models for the detection of cardiac arrhythmias. They are particularly well suited for machine learning (ML)&#x2013;based arrhythmia prediction because they provide continuous, high-fidelity rhythm monitoring over long periods, enabling precise quantification of atrial arrhythmia burden and enhancing diagnostic remote monitoring workflow and device-based therapies [<xref ref-type="bibr" rid="ref9">9</xref>], with the additional advantage of being already implanted on the patient.</p><p>Although several authors have published many AI- and ML-based models for AF prediction in different contexts with good results [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref12">12</xref>], these models were primarily trained and evaluated for predictions over extended periods (often up to 1 year), which provided them with a great amount of input data. However, algorithms supporting short-term, dynamic AF prediction in patients with implantable cardiac devices are scarce. Short-term arrhythmia prediction is uniquely challenging because it requires anticipating nonlinear state transitions driven by heterogeneous and rapidly evolving physiological signals. While long-term prediction is valuable for estimating the risk of AF development in the general population&#x2014;supporting primary prevention and population-level care planning&#x2014;dynamic short-term prediction may be particularly impactful in patients who have already been diagnosed with AF. In this context, continuously collected data from implantable cardiac devices enable high-resolution, longitudinal assessment of cardiac rhythm, creating an opportunity for near-term forecasting of AF burden progression. Such device-based prediction could support timely optimization of medical therapy, generation of real-time alerts, and prevention of downstream adverse outcomes. Moreover, in patients with newly diagnosed AF, device-derived dynamic prediction may facilitate closer disease monitoring, guide medication escalation, and enable proactive risk factor modification [<xref ref-type="bibr" rid="ref10">10</xref>,<xref ref-type="bibr" rid="ref13">13</xref>].</p><p>For that reason, this study aimed to evaluate the use of AI on data extracted from remote pacemaker monitoring for short-term prediction of the onset or increase of AF episodes. Our hypothesis was that data obtained from remote pacemakers could be used to train AI models to predict the onset of atrial arrhythmias with a relatively high sensitivity and specificity without the need for additional datasets.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Study Design</title><p>IA Pacing is a multicenter prospective observational study that started in May 2022 and is ongoing as of January 2026 across 12 centers in Spain. All participating centers used implantable cardiac pacing devices from the same manufacturer (Boston Scientific) with no variation in the telemetry or remote monitoring platform, which was uniformly provided by the vendor. Remote monitoring procedures consisted of daily monitoring.</p></sec><sec id="s2-2"><title>Ethical Considerations</title><p>All procedures performed in this study were conducted in compliance with relevant laws and institutional guidelines and were approved by the ethics committees of the participating centers, including the Comit&#x00E9; &#x00C9;tico de Investigaci&#x00F3;n Cl&#x00ED;nica del &#x00C1;rea de Zamora (approved May 25, 2023), Comit&#x00E9; &#x00C9;tico de la Investigaci&#x00F3;n M&#x00E9;dica of Hospital Universitario 12 de Octubre, Comit&#x00E9; &#x00C9;tico de Investigaci&#x00F3;n Cl&#x00ED;nica de Badajoz (updated November 30, 2021; protocol code: IA-Pacing), Comit&#x00E9; &#x00C9;tico de la Investigaci&#x00F3;n Cl&#x00ED;nica of Hospital Universitario Cl&#x00ED;nico San Carlos, Comit&#x00E9; &#x00C9;tico de la Investigaci&#x00F3;n con Medicamentos of Hospital Universitario Infanta Leonor, Hospital Lozano Blesa (under the protocol approved by the Comit&#x00E9; &#x00C9;tico de la Investigaci&#x00F3;n con Medicamentos of Hospital Universitario Puerta de Hierro), Cl&#x00ED;nica Quir&#x00F3;n La Luz and Quir&#x00F3;n Pozuelo (both contingent upon favorable review by the Comit&#x00E9; &#x00C9;tico de la Investigaci&#x00F3;n con Medicamentos of Hospital Universitario Puerta de Hierro), and Comit&#x00E9; &#x00C9;tico de Investigaci&#x00F3;n M&#x00E9;dica del &#x00C1;rea de Salud de Salamanca (approved March 30, 2022).</p><p>Written informed consent was obtained from all participants before enrollment in the study. Participants were informed about the objectives and procedures of the study and their right to withdraw at any time without consequences for their medical care. All procedures performed in this study were conducted in accordance with the ethical principles of the Declaration of Helsinki and complied with applicable European and Spanish regulations governing biomedical research and personal data protection, including the General Data Protection Regulation (Regulation [EU] 2016/679), Ley 14/2007 de Investigaci&#x00F3;n Biom&#x00E9;dica, and Ley Org&#x00E1;nica 3/2018 de Protecci&#x00F3;n de Datos Personales y garant&#x00ED;a de los derechos digitales.</p><p>To protect participant privacy and confidentiality, all data were pseudonymized before analysis. Identifiable information was stored separately from the research dataset in secure institutional systems with restricted access, and only authorized members of the research team were allowed to access the data. Data handling and storage complied with institutional data protection policies and applicable European and Spanish data protection regulations.</p><p>Participants did not receive financial compensation for their participation in the study. Inclusion criteria for the study and complete patient recruitment by hospital can be found in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p></sec><sec id="s2-3"><title>Baseline Characteristics of the Population</title><p>Medical records were used to assess patients&#x2019; baseline characteristics, including demographic data, cardiovascular risk factors, history of arrhythmias, details of the implanted device, procedural data, and pharmacological treatment.</p></sec><sec id="s2-4"><title>Prediction of Arrhythmia Onset Using AI</title><p>To calculate arrhythmia predictions, we used data generated through remote monitoring of patients&#x2019; pacemakers, which included the following variables:</p><list list-type="bullet"><list-item><p>General variables&#x2014;activity level, respiratory rate, and maximum and mean heart rate</p></list-item><list-item><p>AF-related variables&#x2014;total number of arrhythmia episodes per day, total duration of those arrhythmias, atrial tachycardia response (mean and maximum ventricular rate during rapid ventricular response events), and apnea-hypopnea index</p></list-item><list-item><p>Heart failure&#x2013;related variables&#x2014;percentage of left ventricular pacing and SD of the average NN intervals every 5 minutes</p></list-item></list><p>When considering arrhythmia episodes per day, we took into account only those arrhythmias that were of the &#x201C;supraventricular tachycardia&#x201D; or &#x201C;atrial fibrillation&#x201D; type as categorized by the device, with no time limit restrictions.</p><p>The algorithm divided the data into sequences of 45 days. The first 31 days were used for the algorithm to analyze and predict what would happen in the following 14 days. This time was selected after various tests with different times of training and prediction, with no major changes among them. Furthermore, based on medical criteria, a 14-day predictive time window was considered sufficient to allow for patient scheduling and timely intervention if required. Therefore, after observing the telemetry data for 31 days, a prediction was generated for the following 14 days. The appearance or absence of arrhythmias was divided into 4 categories as follows:</p><list list-type="bullet"><list-item><p>Increase&#x2014;the patient already had arrhythmias during the 31 days of observation, and the average number of arrhythmias during the 14 days of prediction increased.</p></list-item><list-item><p>Decrease&#x2014;the patient already had arrhythmias during the 31 days of observation, but the average number of arrhythmias during the 14 days of prediction decreased.</p></list-item><list-item><p>Remains at 0&#x2014;the patient did not have arrhythmias during the 31 days of observation, and the average number of arrhythmias during the 14 days of prediction remained at 0.</p></list-item><list-item><p>Goes from 0 to something&#x2014;the patient did not have arrhythmias during the 31 days of observation, but some arrhythmias occurred during the 14 days of prediction.</p></list-item></list><p>Subsequently, to simplify the analysis, the previous 4 categories were regrouped into 2:</p><list list-type="bullet"><list-item><p>Increased&#x2014;the average number of arrhythmias during the day increased (categories 1 and 4).</p></list-item><list-item><p>Maintained or decreased&#x2014;the average number of arrhythmias during the day was maintained or decreased (categories 2 and 3).</p></list-item></list><p>Detailed information about these categories is provided in <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>. Similarly, information about data preprocessing and final data volume is provided in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>. Finally, the creation of the predictive model using AI, along with its parameters, its training, and its final results over the <italic>test</italic> data, is detailed in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p><p>Furthermore, to generate explanations in the model, a specialized tool called Shapley additive explanations (SHAP) was used, which leverages game theory&#x2013;based results to identify the variables that had the greatest importance in making each prediction. In <xref ref-type="supplementary-material" rid="app5">Multimedia Appendix 5</xref>, the average results for the predictions of each class can be observed, where some clinically relevant variables stand out, such as the presence of apneas or the SD of the average NN intervals. Alongside SHAP, the entropy of the classification was used as a measure of uncertainty to obtain confidence estimations for each prediction, as explained in <xref ref-type="supplementary-material" rid="app6">Multimedia Appendix 6</xref>. These tools combined reduce the opacity of AI models, increasing trust in them as a tool for clinical decision-making.</p></sec><sec id="s2-5"><title>Web Application Development</title><p>On the basis of the AI-generated predictions of arrhythmias for the following 14 days and the explanations based on SHAP and confidence estimation, a web application was developed to allow medical personnel to monitor each patient.</p></sec><sec id="s2-6"><title>Statistical Analysis</title><p>Categorical variables are presented as frequencies and percentages, whereas quantitative variables are expressed as means and SDs. The sensitivity and specificity of the arrhythmia prediction were calculated from a 2 &#x00D7; 2 contingency table considering prediction and reality during the follow-up period. Sensitivity and specificity were calculated from 9711 prediction-observation pairs. Statistical analyses were performed using SPSS (version 17.0; IBM Corp).</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>Data from 314 patients enrolled in the IA Pacing study between May 2022 and May 2024 were analyzed. A total of 65,243 data sequences from implantable devices were collected, of which 55,532 (85.1%) were used to train the algorithm, and the remaining 9711 (14.9%) were used to analyze the sensitivity and specificity of the generated predictions.</p><sec id="s3-1"><title>Baseline Characteristics of the Population</title><p><xref ref-type="table" rid="table1">Table 1</xref> shows the clinical characteristics of the participating patients. A total of 61.3% (192/313) of the patients were male, and the mean age was 77 (SD 9.2) years. The most common indication for pacemaker implantation was atrioventricular block, whereas the predominant pacing site was the right ventricular apex. In total, 81.9% (158/193) of the patients had at least one cardiovascular hospitalization in the year before enrollment.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Baseline characteristics of the patients (N=314). Variables are reported as n/N to account for missing data.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Baseline characteristics</td><td align="left" valign="bottom">Values</td></tr></thead><tbody><tr><td align="left" valign="top">Sex (male), n/N (%)</td><td align="left" valign="top">192/313 (61.3)</td></tr><tr><td align="left" valign="top">Age (y), mean (SD)</td><td align="left" valign="top">77 (9.2)</td></tr><tr><td align="left" valign="top" colspan="2">Pacemaker indication among patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>AV<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> block</td><td align="left" valign="top">240/313 (76.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Sinus bradycardia</td><td align="left" valign="top">24/313 (7.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Other indications</td><td align="left" valign="top">49/313 (15.7)</td></tr><tr><td align="left" valign="top" colspan="2">Pacing type among patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Right ventricular apex</td><td align="left" valign="top">259/310 (83.5)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Left branch</td><td align="left" valign="top">51/310 (16.5)</td></tr><tr><td align="left" valign="top" colspan="2">Type of device used by patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dual-chamber pacemaker</td><td align="left" valign="top">302/314 (96.2)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Tricameral pacemaker with resynchronizer</td><td align="left" valign="top">12/314 (3.8)</td></tr><tr><td align="left" valign="top" colspan="2">Pacemaker models used by patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific PROPONENT MRI L211</td><td align="left" valign="top">101/314 (32.2)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific ACCOLADE MRI L311</td><td align="left" valign="top">67/314 (21.3)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific PROPONENT EL MRI L231</td><td align="left" valign="top">15/314 (4.8)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific ACCOLADE EL MRI L331</td><td align="left" valign="top">119/314 (37.9)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific VISIONIST X4 CRT-P U225</td><td align="left" valign="top">3/314 (1)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Boston Scientific VISIONIST X4 CRT-P U228</td><td align="left" valign="top">9/314 (2.9)</td></tr><tr><td align="left" valign="top" colspan="2">Patients with CV<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup> hospitalizations in the last y, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>0</td><td align="left" valign="top">35/193 (18.1)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1</td><td align="left" valign="top">132/193 (68.4)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><italic>&#x003E;</italic>2</td><td align="left" valign="top">26/193 (13.5)</td></tr><tr><td align="left" valign="top" colspan="2">CV risk factors among patients, n (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Arterial hypertension</td><td align="left" valign="top">236/308 (76.6)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Diabetes mellitus</td><td align="left" valign="top">118/296 (39.9)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dyslipidemia</td><td align="left" valign="top">202/302 (66.9)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Obesity</td><td align="left" valign="top">54/273 (19.8)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Current smoking</td><td align="left" valign="top">22/286 (7.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Current alcoholism</td><td align="left" valign="top">14/275 (5.1)</td></tr><tr><td align="left" valign="top" colspan="2">CV history among patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>NYHA<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup> I</td><td align="left" valign="top">101/187 (54)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Ischemic cardiopathies</td><td align="left" valign="top">52/277 (18.8)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Valvulopathies</td><td align="left" valign="top">77/284 (27.1)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Myocardiopathies</td><td align="left" valign="top">34/279 (12.2)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>TIA<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup> or stroke</td><td align="left" valign="top">36/277 (13)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Peripheral vascular disease</td><td align="left" valign="top">21/269 (7.8)</td></tr><tr><td align="left" valign="top">AF<sup><xref ref-type="table-fn" rid="table1fn5">e</xref></sup> stroke risk score (CHA<sub>2</sub>DS<sub>2</sub>-VASc), mean (SD)</td><td align="left" valign="top">3.5 (1.5)</td></tr><tr><td align="left" valign="top" colspan="2">Arrhythmia history among patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>AF</td><td align="left" valign="top">42/275 (15.3)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Ventricular arrhythmia</td><td align="left" valign="top">5/313 (1.6)</td></tr><tr><td align="left" valign="top" colspan="2">Other comorbidities among patients, n/N (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>COPD<sup><xref ref-type="table-fn" rid="table1fn6">f</xref></sup></td><td align="left" valign="top">24/273 (8.8)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Asthma</td><td align="left" valign="top">17/270 (6.3)</td></tr><tr><td align="left" valign="top" colspan="2">Pharmacological treatment among patients, n (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Antiaggregants</td><td align="left" valign="top">124/314 (39.5)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Anticoagulants</td><td align="left" valign="top">57/314 (18.2)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>ACE<sup><xref ref-type="table-fn" rid="table1fn7">g</xref></sup> inhibitors, ARBs<sup><xref ref-type="table-fn" rid="table1fn8">h</xref></sup>, or ARNIs<sup><xref ref-type="table-fn" rid="table1fn9">i</xref></sup></td><td align="left" valign="top">178/314 (56.7)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x03B2;-blockers</td><td align="left" valign="top">79/314 (25.2)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Loop diuretics</td><td align="left" valign="top">66/314 (21.1)</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>AV: atrioventricular.</p></fn><fn id="table1fn2"><p><sup>b</sup>CV: cardiovascular.</p></fn><fn id="table1fn3"><p><sup>c</sup>NYHA: New York Heart Association.</p></fn><fn id="table1fn4"><p><sup>d</sup>TIA: transient ischemic attack.</p></fn><fn id="table1fn5"><p><sup>e</sup>AF: atrial fibrillation.</p></fn><fn id="table1fn6"><p><sup>f</sup>COPD: chronic obstructive pulmonary disease.</p></fn><fn id="table1fn7"><p><sup>g</sup>ACE: angiotensin-converting enzyme.</p></fn><fn id="table1fn8"><p><sup>h</sup>ARB: angiotensin II receptor blockers.</p></fn><fn id="table1fn9"><p><sup>i</sup>ARNI: angiotensin receptor-neprilysin inhibitor.</p></fn></table-wrap-foot></table-wrap><p>Regarding cardiovascular risk factors, most patients had hypertension (236/308, 76.6%) and dyslipidemia (202/302, 66.9%), whereas the prevalence of diabetes mellitus was 39.9% (118/296). The mean CHA<sub>2</sub>DS<sub>2</sub>-VASc score was 3.5 (SD 1.5). A history of AF was present in 15.3% (42/274) of the patients.</p></sec><sec id="s3-2"><title>Prediction of Arrhythmia Onset Using AI</title><p>The sensitivity of the AI-based predictive model was 66.4% for the full sample (1456 true positive cases; 1696 false positive cases; 95% CI 64.3%&#x2010;68.3%), whereas specificity was 77.4% (95% CI 76.4%&#x2010;78.4%), corresponding to 738 false negative cases and 5821 true negative cases.</p><p>Next, we grouped the patients based on whether they had presented arrhythmias during the initial 31-day period used by the algorithm to generate predictions. Two groups were defined: patients with arrhythmias during the baseline period (those classified in the &#x201C;increase&#x201D; or &#x201C;decrease&#x201D; categories) and patients without arrhythmias during the baseline period (those in the &#x201C;remains at 0&#x201D; or &#x201C;goes from 0 to something&#x201D; categories).</p><p>On the basis of the contingency tables generated, we obtained a sensitivity of 76.8% (95% CI 74.6%&#x2010;78.8%) and specificity of 39.6% (95% CI 35.8%&#x2010;43.5%) in patients with arrhythmias during the baseline period (1219 true positive cases, 393 false positive cases, 258 true negative cases, and 368 false negative cases) and a sensitivity of 39% (95% CI 35.1%&#x2010;43%) and specificity of 81% (95% CI 80%&#x2010;81.9%) in patients without arrhythmias during that period (237 true positive cases, 1303 false positive cases, 370 false negative cases, and 5563 true negative cases).</p><p>In addition, using data sequences from patients with no history of AF (232/314, 73.9%; 7259 data points), we calculated the model&#x2019;s sensitivity and specificity for arrhythmia prediction considering both supraventricular tachycardia and AF as the presence of arrhythmia. These were 69% (95% CI 66.5%&#x2010;71.5%) and 80% (95% CI 79.3%&#x2010;81.3%), respectively.</p><p>The raw values from the contingency table for each group can be found in <xref ref-type="table" rid="table2">Table 2</xref>.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Arrhythmic episode prediction and ground truth for both patient groups.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">AI<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> arrhythmia prediction</td><td align="left" valign="bottom" colspan="2">Follow-up ground truth</td><td align="left" valign="bottom">Sensitivity (%)</td><td align="left" valign="bottom">Specificity (%)</td></tr></thead><tbody><tr><td align="left" valign="top"/><td align="left" valign="top">Increased</td><td align="left" valign="top">Maintained or decreased</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="3">Total patients, n</td><td align="left" valign="top">66.4</td><td align="left" valign="top">77.4</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Increased</td><td align="left" valign="top">1456</td><td align="left" valign="top">1696</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maintained or decreased</td><td align="left" valign="top">738</td><td align="left" valign="top">5821</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="3">Patients with arrhythmia in the last 31 days, n</td><td align="left" valign="top">76.8</td><td align="left" valign="top">39.6</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Increased</td><td align="left" valign="top">1219</td><td align="left" valign="top">393</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maintained or decreased</td><td align="left" valign="top">368</td><td align="left" valign="top">258</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="3">Patients without arrhythmia in the last 31 days, n</td><td align="left" valign="top">39.0</td><td align="left" valign="top">81.2</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Increased</td><td align="left" valign="top">237</td><td align="left" valign="top">1303</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maintained or decreased</td><td align="left" valign="top">370</td><td align="left" valign="top">5563</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="3">Patients with no AF<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup> history (n=232), n</td><td align="left" valign="top">69.1</td><td align="left" valign="top">80.3</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Increased</td><td align="left" valign="top">951</td><td align="left" valign="top">1157</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maintained or decreased</td><td align="left" valign="top">426</td><td align="left" valign="top">4725</td><td align="left" valign="top"/><td align="left" valign="top"/></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>AI: artificial intelligence.</p></fn><fn id="table2fn2"><p><sup>b</sup>AF: atrial fibrillation.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-3"><title>Web Application Development</title><p>The web application interface can be observed in <xref ref-type="fig" rid="figure1">Figure 1</xref> and <xref ref-type="fig" rid="figure2">Figure 2</xref> and presents the prediction along with its confidence score (expressed as a percentage), aiding clinical decision-making. The main view of the web platform shows the list of patients with their predictions and estimated confidence along with a summary of the patients&#x2019; results and search filters to aid physicians (the number of patients is higher as predictions can be made on patients with 31-45 days of measurement instead of just the &#x003E;45 days used to validate the AI model). Details of a patient with their prediction, estimated confidence, most important variables for decision-making based on SHAP (pie chart), and variable evolution can also be observed on the web platform.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Main view of the web platform showing the list of patients with their predictions and estimated confidence along with a summary of the patients&#x2019; results and search filters to aid physicians (the number of patients is higher as predictions can be made on patients with 31-45 days of measurement instead of just the &#x003E;45 days used to validate the artificial intelligence model).</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="cardio_v10i1e85841_fig01.png"/></fig><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Details of a patient with their prediction, estimated confidence, most important variables for decision-making based on Shapley additive explanations (pie chart), and variable evolution.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="cardio_v10i1e85841_fig02.png"/></fig></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><p>AI implementation is transforming health care in cardiology, especially in the context of heart rhythm&#x2013;related disorders. We developed an initial algorithm with information obtained from the remote monitoring of pacemakers that predicted atrial arrhythmia onset within the 14 days following the 31-day monitoring period with a 66.4% sensitivity and 77.4% specificity. This study is, to the best of our knowledge, the first to use data exclusively from remote pacemaker monitoring to dynamically predict arrhythmia onset in patients with atrial arrhythmia in the short term.</p><p>Given how important arrhythmia detection is for the identification of patients at risk of having a stroke or systemic embolism, AI algorithms have lately been used for detection, prediction, and treatment tailoring of patients with AF [<xref ref-type="bibr" rid="ref8">8</xref>]. Focusing on AF episode prediction, several authors have achieved significant advancements in developing AF-predicting algorithms in varying periods from initial measured data. Kao et al [<xref ref-type="bibr" rid="ref14">14</xref>] developed a model able to predict new arrhythmic episodes in the span of a year with a 98.7% specificity using a database of clinical data gathered for 3 years from older patients with no electrocardiographic data. Similarly, Tiwari et al [<xref ref-type="bibr" rid="ref15">15</xref>] predicted 6-month AF onset with 75% sensitivity and 85% specificity by developing a model using 200 clinical features from more than 2 million clinical records. Another algorithm worth mentioning developed from clinical records is the one from the Future Innovations in Novel Detection of Atrial Fibrillation study by Nadarajah et al [<xref ref-type="bibr" rid="ref16">16</xref>] that predicted AF onset within 6 months with a sensitivity and specificity of 78.1% and 73.1%, respectively. Clinical data have also been used to train ML models to detect risk factors for developing AF in asymptomatic patients, as described by Hill et al [<xref ref-type="bibr" rid="ref10">10</xref>]. Another author used data from 100,000 electrocardiograms (ECGs) taken from 40,000 patients in a mean of 2 years of follow-up to predict the time before a new arrhythmic episode, obtaining similar results to medical record&#x2013;based predictions [<xref ref-type="bibr" rid="ref11">11</xref>]. In our study, unlike the studies cited before, no medical record was used to train the system. The algorithm compared daily data from the remote monitoring of an implantable device, similarly to the recently published study by Gregoire et al [<xref ref-type="bibr" rid="ref13">13</xref>] that trained an ML model using Holter recordings to predict short-term AF episodes. We consider this a strength of our study as only data obtained from the remote monitoring of the implantable device were needed to estimate the risk of experiencing an arrhythmic episode, thus eliminating the need for additional information from medical records.</p><p>Although our algorithm does not compute the time before a new arrhythmic episode, it does enable the identification of patients at risk of experiencing episodes of supraventricular arrhythmias in the short term (14 days following the measurement), which would improve their medical care. Our model correctly predicted whether arrhythmias would increase in almost 75% of the cases, with 66.4% global sensitivity and 77.4% specificity. The previously mentioned study from Gregoire et al [<xref ref-type="bibr" rid="ref13">13</xref>] predicted short-term paroxysmal AF episode onset with higher sensitivity and specificity than ours (86.6% vs 83.0%, respectively). However, it is worth mentioning that, while their approach relies on comprehensive ECG recordings from a Holter monitor, our analysis is based solely on limited, secondary data derived from pacemaker use (eg, daytime heart rate, respiratory rate, or apnea counts). Although these variables provide less information, they may still be highly informative as they are known to be correlated with arrhythmic episodes [<xref ref-type="bibr" rid="ref17">17</xref>]. Additionally, it is noteworthy that our algorithm was trained using data obtained from a device already implanted in the patient, thereby eliminating the need for additional medical visits. A table comparing the main features of our study to those of the ones mentioned previously can be found in <xref ref-type="supplementary-material" rid="app7">Multimedia Appendix 7</xref>.</p><p>In patients with no registered history of arrhythmia (232/314, 73.9%), who constitute the group most likely to benefit from early therapeutic interventions, the analysis showed higher values of sensitivity and specificity (69% and 80%, respectively). Algorithm performance was different according to baseline arrhythmia status (higher sensitivity in patients with arrhythmia in the last 31 days and higher specificity in patients with no episodes in the same period). We think this is due to the different data distribution among these 2 groups as sensitivity and specificity heavily depend on the prevalence of the episode of interest (in this case, arrhythmia).</p><p>The fact that our algorithm predicted the occurrence of arrhythmias with a similar performance to that of the model by Tiwari et al [<xref ref-type="bibr" rid="ref15">15</xref>] (which predicted arrhythmias in a 6-month time window based on clinical records from 2 million younger patients) with relatively few data is a promising starting point to continue enhancing AI training and, therefore, the obtained results. Similarly to Tiwari et al [<xref ref-type="bibr" rid="ref15">15</xref>], we deem it necessary to optimize AI models to increase their sensitivity and reduce false positives. One strength of our approach is that it requires only a small amount of data for training because the implantable devices continuously monitor cardiac activity. We also used a tool to standardize variable names across devices, which allowed us to combine datasets and increase the amount of data for training, which is another strong point of this study.</p><p>It is worth mentioning some limitations of the proposed model. First, the training did not consider demographic variables. Including these factors could increase the predictive capabilities and justify the use of AI over classic risk factor predictors [<xref ref-type="bibr" rid="ref18">18</xref>]. Moreover, it has been observed that models encompassing more than one type of variable&#x2014;such as clinical data and ECGs, echocardiograms, or magnetic resonance imaging, for instance&#x2014;increase prediction sensitivity [<xref ref-type="bibr" rid="ref19">19</xref>]; this should be taken into account when designing and training future AI algorithms. Second, although the number of prediction and reality sequences was high (more than 9000), data pairs were taken from a cohort of 314 patients, which could be considered low. The size of the cohort could then be increased to augment the training database and refine the output of the model, optimizing AI training and reducing the chance of overfitting the model [<xref ref-type="bibr" rid="ref20">20</xref>]. It is also worth mentioning that our algorithm did not have external validation as it is a first-phase development, and testing the finalized model on independent data is necessary to draw more specific conclusions on its clinical impact. Additionally, the ability of cardiac devices to differentiate arrhythmia types should be considered when using the extracted data to train the model [<xref ref-type="bibr" rid="ref21">21</xref>,<xref ref-type="bibr" rid="ref22">22</xref>]. On this matter, our model did not distinguish among AF, atrial tachycardia, and atrial high-rate episodes, making it hard to fully characterize the clinical relevance of the algorithm. Further research is being conducted considering minimal times, ECG information, and heart rate to fully characterize arrhythmia type. Finally, we extracted the data from devices from the same vendor, and we cannot affirm that this model can be reproducible with other commercial brands. However, fine-tuning methods can be used to train the algorithm using information from other devices. Taking all the aforementioned factors into consideration, further research could focus on increasing the prediction period and on differentiating types of arrhythmias given the clinical implications of de novo episodes of AF and the need for anticoagulation therapy.</p><p>Finally, we would like to mention the importance of an intuitive web design to present the obtained data. It has been proven that the use of mobile apps in health care is determined by how user-friendly and intuitive they are and the amount of data that must be input by users (eg, health care professionals) for the apps to function (eg, patient demographics, clinical variables, or diagnostic data) as a higher data entry burden may negatively affect usability and adoption [<xref ref-type="bibr" rid="ref23">23</xref>]. If an application quickly displays the prediction along with the patient&#x2019;s arrhythmia risk percentage, it is more likely that health care professionals will use it.</p><p>In conclusion, this study provides preliminary evidence that changes in arrhythmic burden may be estimated with limited but measurable sensitivity and specificity using data derived from implantable cardiac devices. A graphical overview of the study and its main findings is provided in <xref ref-type="supplementary-material" rid="app8">Multimedia Appendix 8</xref> (Visual Abstract). The predictive performance of the model may improve with further development and validation in larger cohorts that include additional demographic and clinical variables. These elements, together with the user-friendly visualization of predictions in a simple application, suggest that this initial phase of the study may serve as a basis for future research. Further studies are warranted to determine the clinical utility of this approach for the monitoring and management of patients with implantable cardiac pacing devices.</p></sec></body><back><notes><sec><title>Funding</title><p>The authors declare that no financial support was received for this work.</p></sec></notes><fn-group><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AF</term><def><p>atrial fibrillation</p></def></def-item><def-item><term id="abb2">AI </term><def><p>artificial intelligence</p></def></def-item><def-item><term id="abb3">ECG </term><def><p>electrocardiogram</p></def></def-item><def-item><term id="abb4">ML </term><def><p>machine learning</p></def></def-item><def-item><term id="abb5">SHAP</term><def><p>Shapley additive explanations</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Khalifa</surname><given-names>M</given-names> </name><name name-style="western"><surname>Albadawy</surname><given-names>M</given-names> </name></person-group><article-title>Artificial intelligence for clinical prediction: exploring key domains and essential functions</article-title><source>Comput Methods Programs Biomed Update</source><year>2024</year><volume>5</volume><fpage>100148</fpage><pub-id pub-id-type="doi">10.1016/j.cmpbup.2024.100148</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rizwanullah</surname></name><name name-style="western"><surname>Hyderi</surname><given-names>FA</given-names> </name><name name-style="western"><surname>Obadan</surname><given-names>GE</given-names> </name><name name-style="western"><surname>Hamad</surname><given-names>SB</given-names> </name><name name-style="western"><surname>Elessawy</surname><given-names>H</given-names> </name><name name-style="western"><surname>Ahmadi</surname><given-names>T</given-names> </name></person-group><article-title>The role of artificial intelligence in predictive medicine: review</article-title><source>J Popul Ther Clin Pharmacol</source><year>2024</year><access-date>2026-03-12</access-date><volume>31</volume><issue>8</issue><fpage>1074</fpage><lpage>1080</lpage><comment><ext-link ext-link-type="uri" xlink:href="https://digitalcommons.pcom.edu/transitional_year_residents/7/">https://digitalcommons.pcom.edu/transitional_year_residents/7/</ext-link></comment><pub-id pub-id-type="doi">10.53555/jptcp.v31i8.7460</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Brugada</surname><given-names>J</given-names> </name></person-group><article-title>The future of electrophysiology</article-title><source>E-J Cardiol Pract</source><year>2022</year><access-date>2026-03-03</access-date><volume>21</volume><comment><ext-link ext-link-type="uri" xlink:href="https://www.escardio.org/communities/councils/cardiology-practice/scientific-documents-and-publications/ejournal/volume-21/the-future-of-electrophysiology/">https://www.escardio.org/communities/councils/cardiology-practice/scientific-documents-and-publications/ejournal/volume-21/the-future-of-electrophysiology/</ext-link></comment></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Trines</surname><given-names>SA</given-names> </name><name name-style="western"><surname>Moore</surname><given-names>P</given-names> </name><name name-style="western"><surname>Burri</surname><given-names>H</given-names> </name><etal/></person-group><article-title>2024 updated European Heart Rhythm Association core curriculum for physicians and allied professionals: a statement of the European Heart Rhythm Association of the European Society of Cardiology</article-title><source>Europace</source><year>2024</year><month>11</month><day>1</day><volume>26</volume><issue>11</issue><fpage>euae243</fpage><pub-id pub-id-type="doi">10.1093/europace/euae243</pub-id><pub-id pub-id-type="medline">39298665</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Isaksen</surname><given-names>JL</given-names> </name><name name-style="western"><surname>Baumert</surname><given-names>M</given-names> </name><name name-style="western"><surname>Hermans</surname><given-names>ANL</given-names> </name><name name-style="western"><surname>Maleckar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Linz</surname><given-names>D</given-names> </name></person-group><article-title>Artificial intelligence for the detection, prediction, and management of atrial fibrillation</article-title><source>Herzschrittmacherther Elektrophysiol</source><year>2022</year><month>03</month><volume>33</volume><issue>1</issue><fpage>34</fpage><lpage>41</lpage><pub-id pub-id-type="doi">10.1007/s00399-022-00839-x</pub-id><pub-id pub-id-type="medline">35147766</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rahul</surname><given-names>J</given-names> </name><name name-style="western"><surname>Sharma</surname><given-names>LD</given-names> </name></person-group><article-title>Advancements in AI for cardiac arrhythmia detection: a comprehensive overview</article-title><source>Comput Sci Rev</source><year>2025</year><month>05</month><volume>56</volume><fpage>100719</fpage><pub-id pub-id-type="doi">10.1016/j.cosrev.2024.100719</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Marini</surname><given-names>C</given-names> </name><name name-style="western"><surname>De Santis</surname><given-names>F</given-names> </name><name name-style="western"><surname>Sacco</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Contribution of atrial fibrillation to incidence and outcome of ischemic stroke: results from a population-based study</article-title><source>Stroke</source><year>2005</year><month>06</month><volume>36</volume><issue>6</issue><fpage>1115</fpage><lpage>1119</lpage><pub-id pub-id-type="doi">10.1161/01.STR.0000166053.83476.4a</pub-id><pub-id pub-id-type="medline">15879330</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Karakasis</surname><given-names>P</given-names> </name><name name-style="western"><surname>Theofilis</surname><given-names>P</given-names> </name><name name-style="western"><surname>Sagris</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Artificial intelligence in atrial fibrillation: from early detection to precision therapy</article-title><source>J Clin Med</source><year>2025</year><month>04</month><day>11</day><volume>14</volume><issue>8</issue><fpage>2627</fpage><pub-id pub-id-type="doi">10.3390/jcm14082627</pub-id><pub-id pub-id-type="medline">40283456</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Antoun</surname><given-names>I</given-names> </name><name name-style="western"><surname>Alkhayer</surname><given-names>A</given-names> </name><name name-style="western"><surname>Abdelrazik</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Artificial intelligence and the future of cardiac implantable electronic devices: diagnostics, monitoring, and therapy</article-title><source>J Clin Med</source><year>2025</year><month>12</month><day>13</day><volume>14</volume><issue>24</issue><fpage>8824</fpage><pub-id pub-id-type="doi">10.3390/jcm14248824</pub-id><pub-id pub-id-type="medline">41464726</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hill</surname><given-names>NR</given-names> </name><name name-style="western"><surname>Ayoubkhani</surname><given-names>D</given-names> </name><name name-style="western"><surname>McEwan</surname><given-names>P</given-names> </name><etal/></person-group><article-title>Predicting atrial fibrillation in primary care using machine learning</article-title><source>PLoS One</source><year>2019</year><month>11</month><day>1</day><volume>14</volume><issue>11</issue><fpage>e0224582</fpage><pub-id pub-id-type="doi">10.1371/journal.pone.0224582</pub-id><pub-id pub-id-type="medline">31675367</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Khurshid</surname><given-names>S</given-names> </name><name name-style="western"><surname>Friedman</surname><given-names>S</given-names> </name><name name-style="western"><surname>Reeder</surname><given-names>C</given-names> </name><etal/></person-group><article-title>ECG-based deep learning and clinical risk factors to predict atrial fibrillation</article-title><source>Circulation</source><year>2022</year><month>01</month><day>11</day><volume>145</volume><issue>2</issue><fpage>122</fpage><lpage>133</lpage><pub-id pub-id-type="doi">10.1161/CIRCULATIONAHA.121.057480</pub-id><pub-id pub-id-type="medline">34743566</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kim</surname><given-names>IS</given-names> </name><name name-style="western"><surname>Yang</surname><given-names>PS</given-names> </name><name name-style="western"><surname>Jang</surname><given-names>E</given-names> </name><etal/></person-group><article-title>Long-term PM<sub>2.5</sub> exposure and the clinical application of machine learning for predicting incident atrial fibrillation</article-title><source>Sci Rep</source><year>2020</year><month>10</month><day>1</day><volume>10</volume><issue>1</issue><fpage>16324</fpage><pub-id pub-id-type="doi">10.1038/s41598-020-73537-8</pub-id><pub-id pub-id-type="medline">33004983</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gr&#x00E9;goire</surname><given-names>JM</given-names> </name><name name-style="western"><surname>Gilon</surname><given-names>C</given-names> </name><name name-style="western"><surname>Marelli</surname><given-names>F</given-names> </name><etal/></person-group><article-title>Short-term atrial fibrillation onset prediction using machine learning</article-title><source>Eur Heart J Digit Health</source><year>2025</year><month>09</month><day>11</day><volume>6</volume><issue>6</issue><fpage>1159</fpage><lpage>1168</lpage><pub-id pub-id-type="doi">10.1093/ehjdh/ztaf104</pub-id><pub-id pub-id-type="medline">41267849</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kao</surname><given-names>YT</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>CY</given-names> </name><name name-style="western"><surname>Fang</surname><given-names>YA</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>JC</given-names> </name><name name-style="western"><surname>Chang</surname><given-names>TH</given-names> </name></person-group><article-title>Machine learning-based prediction of atrial fibrillation risk using electronic medical records in older aged patients</article-title><source>Am J Cardiol</source><year>2023</year><month>07</month><day>1</day><volume>198</volume><fpage>56</fpage><lpage>63</lpage><pub-id pub-id-type="doi">10.1016/j.amjcard.2023.03.035</pub-id><pub-id pub-id-type="medline">37209529</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Tiwari</surname><given-names>P</given-names> </name><name name-style="western"><surname>Colborn</surname><given-names>KL</given-names> </name><name name-style="western"><surname>Smith</surname><given-names>DE</given-names> </name><name name-style="western"><surname>Xing</surname><given-names>F</given-names> </name><name name-style="western"><surname>Ghosh</surname><given-names>D</given-names> </name><name name-style="western"><surname>Rosenberg</surname><given-names>MA</given-names> </name></person-group><article-title>Assessment of a machine learning model applied to harmonized electronic health record data for the prediction of incident atrial fibrillation</article-title><source>JAMA Netw Open</source><year>2020</year><month>01</month><day>3</day><volume>3</volume><issue>1</issue><fpage>e1919396</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2019.19396</pub-id><pub-id pub-id-type="medline">31951272</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nadarajah</surname><given-names>R</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>J</given-names> </name><name name-style="western"><surname>Hogg</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Prediction of short-term atrial fibrillation risk using primary care electronic health records</article-title><source>Heart</source><year>2023</year><month>06</month><day>26</day><volume>109</volume><issue>14</issue><fpage>1072</fpage><lpage>1079</lpage><pub-id pub-id-type="doi">10.1136/heartjnl-2022-322076</pub-id><pub-id pub-id-type="medline">36759177</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Birz&#x0103;</surname><given-names>MR</given-names> </name><name name-style="western"><surname>Negru</surname><given-names>AG</given-names> </name><name name-style="western"><surname>Frent</surname><given-names>&#x0218;tefan M</given-names> </name><etal/></person-group><article-title>New insights of cardiac arrhythmias associated with sleep-disordered breathing: from mechanisms to clinical implications-a narrative review</article-title><source>J Clin Med</source><year>2025</year><month>03</month><day>12</day><volume>14</volume><issue>6</issue><fpage>1922</fpage><pub-id pub-id-type="doi">10.3390/jcm14061922</pub-id><pub-id pub-id-type="medline">40142730</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Alonso</surname><given-names>A</given-names> </name><name name-style="western"><surname>Krijthe</surname><given-names>BP</given-names> </name><name name-style="western"><surname>Aspelund</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Simple risk model predicts incidence of atrial fibrillation in a racially and geographically diverse population: the CHARGE-AF consortium</article-title><source>J Am Heart Assoc</source><year>2013</year><month>03</month><day>18</day><volume>2</volume><issue>2</issue><fpage>e000102</fpage><pub-id pub-id-type="doi">10.1161/JAHA.112.000102</pub-id><pub-id pub-id-type="medline">23537808</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pipilas</surname><given-names>D</given-names> </name><name name-style="western"><surname>Friedman</surname><given-names>SF</given-names> </name><name name-style="western"><surname>Khurshid</surname><given-names>S</given-names> </name></person-group><article-title>The use of artificial intelligence to predict the development of atrial fibrillation</article-title><source>Curr Cardiol Rep</source><year>2023</year><month>05</month><volume>25</volume><issue>5</issue><fpage>381</fpage><lpage>389</lpage><pub-id pub-id-type="doi">10.1007/s11886-023-01859-w</pub-id><pub-id pub-id-type="medline">37000332</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Charilaou</surname><given-names>P</given-names> </name><name name-style="western"><surname>Battat</surname><given-names>R</given-names> </name></person-group><article-title>Machine learning models and over-fitting considerations</article-title><source>World J Gastroenterol</source><year>2022</year><month>02</month><day>7</day><volume>28</volume><issue>5</issue><fpage>605</fpage><lpage>607</lpage><pub-id pub-id-type="doi">10.3748/wjg.v28.i5.605</pub-id><pub-id pub-id-type="medline">35316964</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>J</given-names> </name><name name-style="western"><surname>Ramsey</surname><given-names>E</given-names> </name><name name-style="western"><surname>Leavey</surname><given-names>G</given-names> </name><name name-style="western"><surname>Chico</surname><given-names>TJA</given-names> </name><name name-style="western"><surname>Condell</surname><given-names>J</given-names> </name></person-group><article-title>Applying artificial intelligence to wearable sensor data to diagnose and predict cardiovascular disease: a review</article-title><source>Sensors (Basel)</source><year>2022</year><month>10</month><day>20</day><volume>22</volume><issue>20</issue><fpage>8002</fpage><pub-id pub-id-type="doi">10.3390/s22208002</pub-id><pub-id pub-id-type="medline">36298352</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Sperzel</surname><given-names>J</given-names> </name><name name-style="western"><surname>Hamm</surname><given-names>CW</given-names> </name><name name-style="western"><surname>Hain</surname><given-names>A</given-names> </name></person-group><article-title>Over- and undersensing&#x2014;pitfalls of arrhythmia detection with implantable devices and wearables</article-title><source>Herzschrittmacherther Elektrophysiol</source><year>2020</year><month>09</month><volume>31</volume><issue>3</issue><fpage>273</fpage><lpage>287</lpage><pub-id pub-id-type="doi">10.1007/s00399-020-00710-x</pub-id><pub-id pub-id-type="medline">32767089</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Deniz-Garcia</surname><given-names>A</given-names> </name><name name-style="western"><surname>Fabelo</surname><given-names>H</given-names> </name><name name-style="western"><surname>Rodriguez-Almeida</surname><given-names>AJ</given-names> </name><etal/></person-group><article-title>Quality, usability, and effectiveness of mHealth apps and the role of artificial intelligence: current scenario and challenges</article-title><source>J Med Internet Res</source><year>2023</year><month>05</month><day>4</day><volume>25</volume><fpage>e44030</fpage><pub-id pub-id-type="doi">10.2196/44030</pub-id><pub-id pub-id-type="medline">37140973</pub-id></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1 </label><p>Inclusion criteria and patient recruitment.</p><media xlink:href="cardio_v10i1e85841_app1.docx" xlink:title="DOCX File, 23 KB"/></supplementary-material><supplementary-material id="app2"><label>Multimedia Appendix 2</label><p>Selection of input and output data.</p><media xlink:href="cardio_v10i1e85841_app2.docx" xlink:title="DOCX File, 76 KB"/></supplementary-material><supplementary-material id="app3"><label>Multimedia Appendix 3 </label><p>Data volume and preprocessing.</p><media xlink:href="cardio_v10i1e85841_app3.docx" xlink:title="DOCX File, 21 KB"/></supplementary-material><supplementary-material id="app4"><label>Multimedia Appendix 4</label><p>Artificial intelligence&#x2013;based prediction model.</p><media xlink:href="cardio_v10i1e85841_app4.docx" xlink:title="DOCX File, 80 KB"/></supplementary-material><supplementary-material id="app5"><label>Multimedia Appendix 5</label><p>Shapley Additive Explanations feature importance.</p><media xlink:href="cardio_v10i1e85841_app5.docx" xlink:title="DOCX File, 68 KB"/></supplementary-material><supplementary-material id="app6"><label>Multimedia Appendix 6</label><p>Confidence estimation.</p><media xlink:href="cardio_v10i1e85841_app6.docx" xlink:title="DOCX File, 97 KB"/></supplementary-material><supplementary-material id="app7"><label>Multimedia Appendix 7</label><p>Comparison of our model to other predictive models.</p><media xlink:href="cardio_v10i1e85841_app7.docx" xlink:title="DOCX File, 25 KB"/></supplementary-material><supplementary-material id="app8"><label>Multimedia Appendix 8</label><p>AI for the Prediction of Atrial Fibrillation or Atrial Tachycardia Episodes in Patients With Pacemakers.</p><media xlink:href="cardio_v10i1e85841_app8.png" xlink:title="PNG File, 51 KB"/></supplementary-material></app-group></back></article>