Machine Learning Techniques for Diagnosis of Panic Disorder in Patients with a Psychiatric History of Anxiety

Authors

  • Jordan Uriel Laqui Pacaya
  • Jair Lenin Lucas Benavides
  • Yasiel Pérez Vera

DOI:

https://doi.org/10.47839/ijc.25.3.4840

Keywords:

Machine Learning, Panic Disorder Diagnosis, Anxiety Disorder, Advanced Ensemble Models

Abstract

Panic disorder is a significant anxiety-related condition that can severely impact patients’ quality of life, especially among individuals with a prior psychiatric history of anxiety. Early and accurate detection is essential for timely intervention but remains challenging due to the multifactorial nature of the disorder. This study aimed to analyze different supervised machine learning approaches to identify the most effective way for diagnosing panic disorder in patients with a history of anxiety. A dataset containing clinical, psychological, and lifestyle variables was analyzed using PyCaret’s automated machine learning workflow. Several classification algorithms, including logistic regression, decision trees, random forests, and advanced ensemble models, were trained and evaluated. The results demonstrated that boosting-based models, specifically LightGBM, XGBoost, and Gradient Boosting, achieved the highest performance, with accuracy exceeding 99% and AUC values close to 100%. Interpretability analysis identified key predictive factors such as moderate symptom severity, current stressors, regular exercise, and fear of losing control. These insights provide valuable information for clinical practice and future research, highlighting the potential of interpretable machine learning models as decision-support tools for early detection and personalized intervention. Further validation on extended and demographically varied cohorts is recommended to ensure the models’ generalizability and ethical deployment in real-world settings.

References

R. J. McNally, “Anxiety sensitivity and panic disorder,” Biological Psychiatry, vol. 52, no. 10, pp. 938–946, 2002. https://doi.org/10.1016/S0006-3223(02)01475-0.

İ. Özdemir and E. Kuru, “Investigation of cognitive distortions in panic disorder, generalized anxiety disorder and social anxiety disorder,” Journal of Clinical Medicine, vol. 12, no. 19, Art. no. 19, 2023. https://doi.org/10.3390/jcm12196351.

P. P. Roy-Byrne, M. G. Craske, and M. B. Stein, “Panic disorder,” The Lancet, vol. 368, no. 9540, pp. 1023–1032, 2006. https://doi.org/10.1016/S0140-6736(06)69418-X.

W. J. Katon, “Clinical practice. Panic disorder,” The New England Journal of Medicine., vol. 354, no. 22, pp. 2360–2367, 2006. https://doi.org/10.1056/NEJMcp052466.

A. Caldiroli et al., “Clinical markers of panic and generalized anxiety disorder: Overlapping symptoms, different course and outcome,” Journal of Personalized Medicine, vol. 13, no. 3, Art. no. 3, 2023. https://doi.org/10.3390/jpm13030491.

T. Richter et al., “Machine learning meta-analysis identifies individual characteristics moderating cognitive intervention efficacy for anxiety and depression symptoms,” NPJ Digital Medicine, vol. 8, no. 1, pp. 1–15, 2025. https://doi.org/10.1038/s41746-025-01449-w.

M. Dorraki et al., “Improving cardiovascular disease prediction with machine learning using mental health data: A prospective UK biobank study,” JACC Advances, vol. 3, no. 9, Part 2, p. 101180, 2024. https://doi.org/10.1016/j.jacadv.2024.101180.

K. Ports et al., “Machine learning to predict dementia for American Indian and Alaska native peoples: a retrospective cohort study,” The Lancet Regional Health – Americas, vol. 43, 2025. https://doi.org/10.1016/j.lana.2025.101013.

M. Marey, D. Salem, N. E. Rashidy, and H. ELBakry, “Enhancing the diagnosis of depression and anxiety through explainable machine learning methods,” Internal Journal of Advanced Computer Science and Applications (IJACSA), vol. 15, no. 4, Art. no. 4, 33/30 2024. https://doi.org/10.14569/IJACSA.2024.0150481.

K.-S. Na, S.-E. Cho, and S.-J. Cho, “Machine learning-based discrimination of panic disorder from other anxiety disorders,” Journal of Affective Disorders, vol. 278, pp. 1–4, 2021. https://doi.org/10.1016/j.jad.2020.09.027.

P. Azaglo, P. van de Ven, and J. Nelson, “Machine learning models for anxiety detection and prediction using perceived control data,” Procedia Computer Science, vol. 248, pp. 78–88, 2024. Elsevier. https://doi.org/10.1016/j.procs.2024.10.366.

T. Kotsilieris, E. Pintelas, I. E. Livieris, and P. Pintelas, “Predicting anxiety disorders and suicide tendency using machine learning: A review,” Internal Journal of Medical Engineering and Informatics, vol. 12, no. 6, p. 599, 2020. https://doi.org/10.1504/IJMEI.2020.111040.

J. Chung and J. Teo, “Mental health prediction using machine learning: Taxonomy, applications, and challenges,” Applied Computational Intelligence and Soft Computing., vol. 2022, no. 1, p. 9970363, 2022. https://doi.org/10.1155/2022/9970363.

K. Ohi et al., “Discrimination between healthy participants and people with panic disorder based on polygenic scores for psychiatric disorders and for intermediate phenotypes using machine learning,” The Australian and New Zealand Journal of Psychiatry, vol. 58, no. 7, pp. 603–614, 2024. https://doi.org/10.1177/00048674241242936.

N. Manjunatha and D. Ram, “Panic disorder in general medical practice- A narrative review,” Journal of Family Medicine and Primary Care, vol. 11, no. 3, p. 861, 2022. https://doi.org/10.4103/jfmpc.jfmpc_888_21.

K. K. Park, M. Saleem, M. A. Al-Garadi, and A. Ahmed, “Machine learning applications in studying mental health among immigrants and racial and ethnic minorities: an exploratory scoping review,” BMC Medical Informatics and Decision Making, vol. 24, no. 1, p. 298, 2024. https://doi.org/10.1186/s12911-024-02663-4.

E. Fountzilas, T. Pearce, M. A. Baysal, A. Chakraborty, and A. M. Tsimberidou, “Convergence of evolving artificial intelligence and machine learning techniques in precision oncology,” NPJ Digital Medicine, vol. 8, no. 1, pp. 1–19, 2025. https://doi.org/10.1038/s41746-025-01471-y.

L. A. Shoaib, S. H. Safii, N. Idris, R. Hussin, and M. A. H. Sazali, “Utilizing decision tree machine learning model to map dental students’ preferred learning styles with suitable instructional strategies,” BMC Medical Education, vol. 24, no. 1, p. 58, 2024. https://doi.org/10.1186/s12909-023-05022-5.

E. S. Mohamed, T. A. Naqishbandi, S. A. C. Bukhari, I. Rauf, V. Sawrikar, and A. Hussain, “A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms,” Healthcare Analytics, vol. 3, p. 100185, 2023. https://doi.org/10.1016/j.health.2023.100185.

K. Taha, “Machine learning in biomedical and health big data: a comprehensive survey with empirical and experimental insights,” Journal of Big Data, vol. 12, no. 1, p. 61, 2025. https://doi.org/10.1186/s40537-025-01108-7.

K. Yoneda, T. Seki, Y. Kawazoe, K. Ohe, N. Takahashi, and on behalf of the N. R. N. of Japan, “Immediate postnatal prediction of death or bronchopulmonary dysplasia among very preterm and very low birth weight infants based on gradient boosting decision trees algorithm: A nationwide database study in Japan,” PLOS ONE, vol. 19, no. 3, p. e0300817, 2024. https://doi.org/10.1371/journal.pone.0300817.

T. O. Omotehinwa, D. O. Oyewola, and E. G. Dada, “A Light Gradient-Boosting Machine algorithm with Tree-Structured Parzen Estimator for breast cancer diagnosis,” Healthcare Analytics, vol. 4, 2023. https://doi.org/10.1016/j.health.2023.100247.

S. Ogawa, “Predicting dropout from cognitive behavioral therapy for panic disorder using machine learning algorithms,” Journal of Clinical Medicine Research, vol. 16, no. 5, pp. 251–255, 2024. https://doi.org/10.14740/jocmr5167.

H. Yuan, K. Zhao, Y. Yan, L. Wan, Z. Tian, and X. Chen, “Long tunnel group driving fatigue detection model based on XGBoost algorithm,” Journal of Traffic Transportation Engineering English Edition, vol. 12, no. 1, pp. 167–179, 2025. https://doi.org/10.1016/j.jtte.2023.02.008.

J. Llerena-Izquierdo, J. Mendez-Reyes, R. Ayala-Carabajo, and C. Andrade-Martinez, “Innovations in introductory programming education: The role of AI with Google Colab and Gemini,” Education Sciences, vol. 14, no. 12, Art. no. 12, 2024. https://doi.org/10.3390/educsci14121330.

S. Raschka, J. Patterson, and C. Nolet, “Machine learning in Python: Main developments and technology trends in data science, machine learning, and artificial intelligence,” Information, vol. 11, no. 4, Art. no. 193, 2020. https://doi.org/10.3390/info11040193.

A. T. Olanipekun and D. Mashao, “An improved prediction of transparent conductor formation energy using PyCaret: An open-source machine learning library,” Journal of Applied Data Science, vol. 5, no. 4, pp. 1914–1924, 2024. https://doi.org/10.47738/jads.v5i4.202.

“Panic Disorder Detection Dataset,” 2025. [Online]. Available at: https://www.kaggle.com/datasets/muhammadshahidazeem/panic-disorder-detection-dataset.

P. Cruz-Gonzalez et al., “Artificial intelligence in mental health care: A systematic review of diagnosis, monitoring, and intervention applications,” Psychological Medicine, vol. 55, p. e18, 2025. https://doi.org/10.1017/S0033291724003295.

Downloads

Published

2026-09-30

How to Cite

Pacaya, J. U. L., Benavides, J. L. L., & Vera, Y. P. (2026). Machine Learning Techniques for Diagnosis of Panic Disorder in Patients with a Psychiatric History of Anxiety. International Journal of Computing, 25(3), 446-456. https://doi.org/10.47839/ijc.25.3.4840

Issue

Section

Articles