Wearable-Inspired Panic Episode Forecasting with Synthetic Physiological Time Series: A Feature Engineered Gradient Boosting Baseline with Clinically Motivated Thresholding
Background: Panic attacks can present rapidly and unpredictably, yet wearable sensors (heart rate, electrodermal activity, respiration, movement) offer a path to continuous monitoring and potentially actionable early warnings. However, developing and validating forecasting pipelines is difficult due to limited labelled datasets, heterogeneous symptom profiles, and ethical constraints in real-world collection. Objective: We propose a fully reproducible synthetic-data framework that simulates circadian physiology and panic-episode dynamics, then evaluates classical machine-learning baselines for multi-class warning prediction (Normal, Early Warning, Urgent Warning) and for binary panic detection (any warning vs Normal). Methods: We generated 60,000 minute-level samples with circadian rhythms and injected panic episodes with either sudden or gradual onset, generating severity trajectories and phase-specific physiological shifts. We engineered 125 features (rolling statistics, slopes, rate-of-change, circadian z-scores, interaction terms, and composite arousal/propensity indices) and trained models on 30 selected features. Class imbalance was addressed with SMOTE Tomek on the training split. We compared Random Forest, Gradient Boosting, and Logistic Regression; the best model was selected by panic-detection F1. We further optimized decision thresholds for clinical deployment trade-offs (alarm burden vs detection). Results: The dataset exhibited extreme class imbalance (Normal ≈ 99.2%, Early ≈ 0.4%, Urgent ≈ 0.4%). Gradient Boosting achieved overall accuracy 0.993 and weighted F1 0.994, but more realistically, binary panic detection reached F1 0.641 with recall 0.787. Discrimination remained strong for the Normal class (AP ≈ 1.00; AUC ≈ 0.995) while minority-class precision-recall degraded, consistent with rare-event fore-casting. Threshold optimization showed an operational “clinical” threshold near 0.50 yielding ≈ 16.6 alarms/day with recall ≈ 0.809. Temporal analysis indicated stable accuracy across hours with variable de-tection rates. Conclusions: A feature-engineered Gradient Boosting baseline can produce operational early-warning signals from wearable-like streams under controlled synthetic assumptions, and thresholding meaningfully tunes clinical burden. The study is a proof-of-concept: results are constrained by synthetic label rules, possible episode-generation accounting inconsistencies, and lack of subject-level personalization. Real-world validation with calibrated probabilities and prospective evaluation is necessary before clinical claims.
Cite this paper
Filippis, R. D. and Foysal, A. A. (2026). Wearable-Inspired Panic Episode Forecasting with Synthetic Physiological Time Series: A Feature Engineered Gradient Boosting Baseline with Clinically Motivated Thresholding. Open Access Library Journal, 13, e14923. doi: http://dx.doi.org/10.4236/oalib.1114923.
Kessler, R.C., Chiu, W.T., Jin, R., Ruscio, A.M., Shear, K. and Walters, E.E. (2006) The Epidemiology of Panic Attacks, Panic Disorder, and Agoraphobia in the Na-tional Comorbidity Survey Replication. Archives of General Psychiatry, 63, 415-424. https://doi.org/10.1001/archpsyc.63.4.415
Margraf, J., Taylor, C.B., Ehlers, A., Roth, W.T. and Agras, W.S. (1987) Panic Attacks in the Natural Environment. The Journal of Nervous and Mental Disease, 175, 558-565. https://doi.org/10.1097/00005053-198709000-00008
Craske, M.G. (1991) Phobic Fear and Panic Attacks: The Same Emotional States Triggered by Different Cues? Clinical Psychology Review, 11, 599-620. https://doi.org/10.1016/0272-7358(91)90006-g
Prasko, J., Latalova, K., Diveky, T., Grambal, A., Kamaradova, D., Velartova, H., Salinger, J., Opavsky, J. and Silhan, P. (2011) Panic Disorder, Auto-Nomic Nervous System and Dissoci-ation-Changes during Therapy. Neuroendocrinology Letters, 32, 101-111.
Frommeyer, G., Eckardt, L. and Breithardt, G. (2012) Panic At-tacks and Supraventricular Tachycardias: The Chicken or the Egg? Netherlands Heart Journal, 21, 74-77. https://doi.org/10.1007/s12471-012-0350-2
Laederach-Hofmann, K. and Glauser, R. (1998) Paroxysmal Tachycardia in a Patient without Panic Dis-order. Archives of Internal Medicine, 158, 929. https://doi.org/10.1001/archinte.158.8.929
Smoller, J.W. and Otto, M.W. (1998) Panic, Dyspnea, and Asthma. Current Opinion in Pulmonary Medi-cine, 4, 40-45. https://doi.org/10.1097/00063198-199801000-00008
Janszky, I., Szedmák, S., Istók, R. and Kopp, M. (1997) Possible Role of Sweating in the Pathophysiology of Panic Attacks. International Journal of Psychophysiology, 27, 249-252. https://doi.org/10.1016/s0167-8760(97)00056-1
Verhoeven, A. and de Wit, S. (2018) The Role of Habits in Maladaptive Behaviour and Therapeutic Interventions. In: Verplanken, B., Ed., The Psychology of Habit, Springer, 285-303. https://doi.org/10.1007/978-3-319-97529-0_16
Kim, H., Kim, J.E. and Lee, S. (2021) Functional Impairment in Patients with Panic Disorder. Psychiatry Investigation, 18, 434-442. https://doi.org/10.30773/pi.2020.0425
Markowitz, J.S., Weissman, M.M., Ouellette, R., Lish, J.D. and Klerman, G.L. (1989) Quality of Life in Panic Disorder. Archives of General Psychiatry, 46, 984-992. https://doi.org/10.1001/archpsyc.1989.01810110026004
Caruelle, D., Gustafsson, A., Shams, P. and Lervik-Olsen, L. (2019) The Use of Electrodermal Activity (EDA) Measurement to Understand Consumer Emotions—A Literature Review and a Call for Action. Journal of Business Research, 104, 146-160. https://doi.org/10.1016/j.jbusres.2019.06.041
Braithwaite, J.J., Watson, D.G., Jones, R. and Rowe, M. (2013) A Guide for Analysing Electrodermal Activ-ity (EDA) & Skin Conductance Responses (SCRs) for Psychological Experiments. Psychophysiology, 49, 1017-1034.
Schmidt, S. and Walach, H. (2000) Electrodermal Activity (EDA)—State-Of-The-Art Measurements and Tech-niques for Parapsychological Purposes. Journal of Parapsychology, 64, 139-163.
Minutolo, A., Esposito, M. and De Pietro, G. (2017) A Hypothetical Reasoning System for Mobile Health and Wellness Applications. In: Perego, P., Andreoni, G. and Rizzo, G., Eds., Wireless Mobile Communication and Healthcare, Springer, 278-286. https://doi.org/10.1007/978-3-319-58877-3_36
Gao, W., Brooks, G.A. and Klonoff, D.C. (2018) Wearable Physiological Systems and Technologies for Metabolic Monitoring. Journal of Applied Physiology, 124, 548-556. https://doi.org/10.1152/japplphysiol.00407.2017
Pantelopoulos, A. and Bourbakis, N.G. (2010) Prognosis—A Wearable Health-Monitoring System for People at Risk: Methodology and Modeling. IEEE Transactions on Information Technology in Biomedicine, 14, 613-621. https://doi.org/10.1109/titb.2010.2040085
Atkinson, G. and Batterham, A.M. (2015) True and False Interindividual Differences in the Physiological Response to an Intervention. Experimental Physiology, 100, 577-588. https://doi.org/10.1113/ep085070
Bailey, S.M., Udoh, U.S. and Young, M.E. (2014) Circadian Regulation of Metabolism. Journal of Endocrinology, 222, R75-R96. https://doi.org/10.1530/joe-14-0200
Rajendra Acharya, U., Paul Joseph, K., Kannathal, N., Lim, C.M. and Suri, J.S. (2006) Heart Rate Variability: A Review. Medical & Biological Engineering & Computing, 44, 1031-1051. https://doi.org/10.1007/s11517-006-0119-0
Xhyheri, B., Manfrini, O., Mazzolini, M., Pizzi, C. and Bugiardini, R. (2012) Heart Rate Variability Today. Progress in Cardiovascular Diseases, 55, 321-331. https://doi.org/10.1016/j.pcad.2012.09.001
Tiwari, R., Ku-mar, R., Malik, S., Raj, T. and Kumar, P. (2021) Analysis of Heart Rate Variabil-ity and Implication of Different Factors on Heart Rate Variability. Current Cardi-ology Reviews, 17, 74-83. https://doi.org/10.2174/1573403x16999201231203854
Goodman, A.H. and Rose, J.C. (1990) Assessment of Systemic Physiological Perturbations from Dental Enamel Hypoplasias and Associated Histological Structures. American Journal of Physical Anthropology, 33, 59-110. https://doi.org/10.1002/ajpa.1330330506
Krite Svanberg, E., Wollmer, P., Andersson-Engels, S. and Åkeson, J. (2011) Physiological Influence of Basic Perturbations Assessed by Non-Invasive Optical Techniques in Humans. Applied Physiology, Nutrition, and Metabolism, 36, 946-957. https://doi.org/10.1139/h11-119
Zhang, Y., Bai, Y., Jia, J., Gao, N., Li, Y., Zhang, R., et al. (2014) Perturbation of Physiological Systems by Nanoparticles. Chemical Society Reviews, 43, 3762-3809. https://doi.org/10.1039/c3cs60338e
Sebastião, R. (2021) Classification of Anxiety Based on EDA and Hr. In: Goleva, R., Garcia, N.R.D.C. and Pires, I.M., Eds., IoT Technologies for HealthCare, Springer, 112-123. https://doi.org/10.1007/978-3-030-69963-5_8
DeGiorgio, C.M., Mil-ler, P., Meymandi, S., Chin, A., Epps, J., Gordon, S., et al. (2010) RMSSD, a Measure of Vagus-Mediated Heart Rate Variability, Is Associated with Risk Fac-tors for SUDEP: The SUDEP-7 Inventory. Epilepsy & Behavior, 19, 78-81. https://doi.org/10.1016/j.yebeh.2010.06.011
Bourdillon, N., Yazdani, S., Vesin, J., Schmitt, L. and Millet, G.P. (2022) RMSSD Is More Sensitive to Artifacts than Frequency-Domain Parameters: Implication in Athletes’ Monitoring. Jour-nal of Sports Science and Medicine, 21, 260-266. https://doi.org/10.52082/jssm.2022.260
Saito, I., Maruyama, K., Eguchi, E., Kato, T., Kawamura, R., Takata, Y., et al. (2017) Low Heart Rate Variability and Sympathetic Dominance Modifies the Association between Insulin Re-sistance and Metabolic Syndrome—The Toon Health Study. Circulation Journal, 81, 1447-1453. https://doi.org/10.1253/circj.cj-17-0192
D’Agostino, A., Co-vanti, S., Rossi Monti, M. and Starcevic, V. (2017) Reconsidering Emotion Dysregulation. Psychiatric Quarterly, 88, 807-825. https://doi.org/10.1007/s11126-017-9499-6
Thompson, R.A. (2019) Emotion Dysregulation: A Theme in Search of Definition. Development and Psy-chopathology, 31, 805-815. https://doi.org/10.1017/s0954579419000282
Paulus, F.W., Ohmann, S., Möhler, E., Plener, P. and Popow, C. (2021) Emotional Dysregulation in Children and Adolescents with Psychiatric Disorders. A Narrative Review. Fron-tiers in Psychiatry, 12, Article 628252. https://doi.org/10.3389/fpsyt.2021.628252
Shabrina Assyifa, D. and Luthfiarta, A. (2024) Smote-TOMEK Re-Sampling Based on Random Forest Method to Overcome Unbalanced Data for Multi-Class Classification. Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi, 9, 151-160. https://doi.org/10.25139/inform.v9i2.8410
Pereira, R.M., Costa, Y.M.G. and Silla Jr., C.N. (2020) MLTL: A Multi-Label Approach for the Tomek Link Undersampling Algorithm. Neurocomputing, 383, 95-105. https://doi.org/10.1016/j.neucom.2019.11.076
Kamaladevi, M., Venka-taraman, V. and Sekar, K.R. (2021) Tomek Link Undersampling with Stacked Ensemble Classifier for Imbalanced Data Classification. Annals of the Romanian Society for Cell Biology, 25, 2182-2190.
Duan, Y., Liu, X., Jatowt, A., Yu, H., Lynden, S., Kim, K., et al. (2023) Anonymity Can Help Minority: A Novel Synthetic Data Over-Sampling Strategy on Multi-Label Graphs. In: Amini, MR., Canu, S., Fischer, A., Guns, T., Kralj Novak, P. and Tsoumakas, G., Eds., Machine Learning and Knowledge Discovery in Databases, Springer, 20-36. https://doi.org/10.1007/978-3-031-26390-3_2
Davis, J. and Goadrich, M. (2006) The Relationship between Precision-Recall and ROC Curves. Pro-ceedings of the 23rd International Conference on Machine Learning—ICML’06, Pittsburgh, 25-29 June 2006, 233-240. https://doi.org/10.1145/1143844.1143874
Flach, P. and Kull, M. (2015) Precision-Recall-Gain Curves: PR Analysis Done Right. Advances in Neu-ral Information Processing Systems 28 (NIPS 2015), Montreal, 7-12 December 2015, 1-9.
Pinckney, J. and RezaeeDaryakenari, B. (2022) When the Lev-ee Breaks: A Forecasting Model of Violent and Nonviolent Dissent. International Interactions, 48, 997-1026. https://doi.org/10.1080/03050629.2022.2090933
Pancholi, S. and Joshi, A.M. (2022) Advanced Energy Kernel-Based Feature Extraction Scheme for Improved EMG-PR-Based Prosthesis Control against Force Variation. IEEE Transactions on Cybernetics, 52, 3819-3828. https://doi.org/10.1109/tcyb.2020.3016595
Khan, S.A. and Ali Rana, Z. (2019) Evaluating Performance of Software Defect Prediction Models Using Area under Precision-Recall Curve (AUC-PR). 2019 2nd International Confer-ence on Advancements in Computational Sciences (ICACS), Lahore, 18-20 Febru-ary 2019, 1-6. https://doi.org/10.23919/icacs.2019.8689135
Goodwin, P. and Wright, G. (2010) The Limits of Forecasting Methods in Anticipating Rare Events. Tech-nological Forecasting and Social Change, 77, 355-368. https://doi.org/10.1016/j.techfore.2009.10.008
Herr, N.R., Williams, J.W., Benjamin, S. and McDuffie, J. (2014) Does This Patient Have Generalized Anxiety or Panic Disorder? The Rational Clinical Examination Systematic Review. JAMA, 312, 78-84. https://doi.org/10.1001/jama.2014.5950
Timiliotis, J., Blümke, B., Serfözö, P.D., Gilbert, S., Ondrésik, M., Türk, E., et al. (2022) A Novel Diagnostic Decision Support System for Medical Professionals: Prospective Feasibility Study. JMIR Formative Research, 6, e29943. https://doi.org/10.2196/29943
Brown, S., Chung, B.Y., Doshi, K., Ha-mid, A., Pederson, E., Maddula, R., et al. (2023) Patient Similarity and Other Artificial Intelligence Machine Learning Algorithms in Clinical Decision Aid for Shared Decision-Making in the Prevention of Cardiovascular Toxicity (PACT): A Feasibility Trial Design. Cardio-Oncology, 9, Article No. 7. https://doi.org/10.1186/s40959-022-00151-0
Popescu, C., Golden, G., Benrimoh, D., Tanguay-Sela, M., Slowey, D., Lundrigan, E., et al. (2021) Evalu-ating the Clinical Feasibility of an Artificial Intelligence-Powered, Web-Based Clinical Decision Support System for the Treatment of Depression in Adults: Longitudinal Feasibility Study. JMIR Formative Research, 5, e31862. https://doi.org/10.2196/31862