Evaluating drug safety during pregnancy remains an ongoing clinical and pharmacological challenge due to ethical, practical, and regulatory barriers, resulting in scarce human clinical trial data. Consequently, healthcare providers must frequently rely on limited observational data and incomplete safety profiles when prescribing medications, especially psychiatric and neurological drugs, whose discontinuation could lead to significant maternal health risks. This research addresses these critical gaps by developing an advanced, machine learning (ML)-based predictive model specifically aimed at assessing and classifying the safety of psychiatric and neurological medications during pregnancy. Leveraging extensive, synthesized, and publicly available datasets including the FDA Adverse Event Reporting System (FAERS) and various pregnancy registries, the study utilized a robust methodological pipeline encompassing data preprocessing, exploratory analysis, feature engineering, model training (Random Forest), rigorous model evaluation (including confusion matrices), and visualization-driven insights. The resulting predictive model categorizes medications into three distinct classes: Safe, Potentially Harmful, or Contraindicated. The performance evaluation demonstrated high predictive accuracy across these classifications, with critical influencing features identified as trimester of medication use, drug class (particularly antidepressants), maternal age, and molecular weight. The model’s high interpretability facilitates informed clinical decision-making, significantly enhancing maternal-fetal safety outcomes. This ML-driven predictive tool represents an important advancement in personalized medicine and clinical pharmacology, offering healthcare professionals and regulatory bodies an evidence-based framework for better risk assessment and drug prescribing practices in pregnancy. Future developments include incorporating deep learning techniques for analysing unstructured clinical data, broadening the drug categories studied, and integrating the model into clinical decision-support systems.
References
[1]
Peng, J., Fu, L., Yang, G. and Cao, D. (2024) Advanced AI-Driven Prediction of Pregnancy-Related Adverse Drug Reactions. Journal of Chemical Information and Modeling, 64, 9286-9298. https://doi.org/10.1021/acs.jcim.4c01657
[2]
Ali, U. and Aoun, M. (2023) Machine Learning and FAERS Data: Revolutionizing Health Care Analytics for Adverse Drug Reaction Prediction. International Journal of Applied Health Care Analytics, 8, 1-18.
[3]
Creeley, C.E. and Denton, L.K. (2019) Use of Prescribed Psychotropics during Pregnancy: A Systematic Review of Pregnancy, Neonatal, and Childhood Outcomes. Brain Sciences, 9, Article 235. https://doi.org/10.3390/brainsci9090235
[4]
Escher, J. and Robotti, S. (2019) Pregnancy Drugs, Fetal Germline Epigenome, and Risks for Next‐Generation Pathology: A Call to Action. Environmental and Molecular Mutagenesis, 60, 445-454. https://doi.org/10.1002/em.22288
[5]
Edinoff, A.N., Sathivadivel, N., McNeil, S.E., Ly, A.I., Kweon, J., Kelkar, N., et al. (2022) Antipsychotic Use in Pregnancy: Patient Mental Health Challenges, Teratogenicity, Preg-nancy Complications, and Postnatal Risks. Neurology International, 14, 62-74. https://doi.org/10.3390/neurolint14010005
[6]
Kochhar, S., Bonhoeffer, J., Jones, C.E., Muñoz, F.M., Honrado, A., Bau-wens, J., et al. (2017) Immunization in Pregnancy Clinical Research in Low- and Middle-Income Countries—Study Design, Regulatory and Safety Considerations. Vaccine, 35, 6575-6581. https://doi.org/10.1016/j.vaccine.2017.03.103
[7]
McKiever, M., Frey, H. and Costantine, M.M. (2020) Challenges in Conducting Clinical Research Studies in Pregnant Women. Journal of Pharmacokinetics and Pharmacodynamics, 47, 287-293. https://doi.org/10.1007/s10928-020-09687-z
[8]
Singh, S., Kumar, R., Payra, S. and Singh, S.K. (2023) Arti-ficial Intelligence and Machine Learning in Pharmacological Research: Bridging the Gap between Data and Drug Discovery. Cureus, 15, e44359. https://doi.org/10.7759/cureus.44359
[9]
Kumar, M., Nguyen, T.P.N., Kaur, J., Singh, T.G., Soni, D., Singh, R., et al. (2023) Opportunities and Challenges in Application of Artificial Intelligence in Pharmacology. Pharma-cological Reports, 75, 3-18. https://doi.org/10.1007/s43440-022-00445-1
[10]
Rahman, Arifur, Karmakar, M. and Debnath, P. (2023) Predictive Analytics for Healthcare: Improving Patient Outcomes in the US through Machine Learning. Revista de Inteligencia Artificial en Medicina, 14, 595-624.
[11]
Vickers, A.J. and Cronin, A.M. (2010) Traditional Statisti-cal Methods for Evaluating Prediction Models Are Uninformative as to Clinical Value: Towards a Decision Analytic Frame-work. Seminars in Oncology, 37, 31-38. https://doi.org/10.1053/j.seminoncol.2009.12.004
[12]
Polley, M.-Y.C., Freidlin, B., Korn, E.L., Conley, B.A., Abrams, J.S. and McShane, L.M. (2013) Statistical and Practical Considerations for Clinical Eval-uation of Predictive Biomarkers. JNCI Journal of the National Cancer Institute, 105, 1677-1683. https://doi.org/10.1093/jnci/djt282
[13]
Khalifa, M., Albadawy, M. and Iqbal, U. (2024) Advancing Clinical Decision Support: The Role of Artificial Intelligence across Six Domains. Computer Methods and Programs in Biomedicine Update, 5, Article 100142. https://doi.org/10.1016/j.cmpbup.2024.100142
[14]
Castaneda, C., Nalley, K., Mannion, C., Bhattacharyya, P., Blake, P., Pecora, A., et al. (2015) Clinical Decision Support Systems for Improving Diagnostic Accuracy and Achieving Precision Medicine. Journal of Clinical Bioinformatics, 5, 1-16. https://doi.org/10.1186/s13336-015-0019-3
[15]
Donley, G. (2014) Encouraging Maternal Sacrifice: How Regulations Governing the Consumption of Pharmaceuticals during Pregnancy Prioritize Fetal Safety over Maternal Health and Autono-my. Review of Law & Social Change, 39, 45-88.
[16]
Charlton, R.A. and McGrogan, A. (2023) Drug Safety in Pregnancy: Data, Methods, and Challenges. In: Babar, Z., Ed., Encyclopedia of Evidence in Pharmaceutical Public Health and Health Services Research in Pharmacy, Springer International Publishing, 215-226. https://doi.org/10.1007/978-3-030-64477-2_27
[17]
Blehar, M.C., Spong, C., Grady, C., Goldkind, S.F., Sahin, L. and Clayton, J.A. (2013) Enrolling Pregnant Women: Issues in Clinical Research. Women’s Health Issues, 23, e39-e45. https://doi.org/10.1016/j.whi.2012.10.003
[18]
Wu, T., Shi, Y., Zhu, B., Li, D., Li, Z., Zhao, Z., et al. (2023) Pregnan-cy-Related Adverse Events Associated with Statins: A Real-World Pharmacovigilance Study of the FDA Adverse Event Re-porting System (FAERS). Expert Opinion on Drug Safety, 23, 313-321. https://doi.org/10.1080/14740338.2023.2251888
[19]
Perrotta, C., Giordano, F., Colombo, A., Carnovale, C., Castiglioni, M., Di Bernardo, I., et al. (2019) Postpartum Bleeding in Pregnant Women Receiving SSRIS/SNRIS: New Insights from a Descriptive Observational Study and an Analysis of Data from the FAERS Database. Clinical Therapeutics, 41, 1755-1766. https://doi.org/10.1016/j.clinthera.2019.06.008
[20]
Li, Y., Wu, Y., Jiang, T., Xing, H., Xu, J., Li, C., et al. (2023) Opportu-nities and Challenges of Pharmacovigilance in Special Populations: A Narrative Review of the Literature. Therapeutic Ad-vances in Drug Safety, 14, 1-21. https://doi.org/10.1177/20420986231200746
[21]
McAllister-Williams, R.H., Baldwin, D.S., Cantwell, R., Easter, A., Gilvarry, E., Glover, V., et al. (2017) British Association for Psychopharmacology Consensus Guidance on the Use of Psychotropic Medication Preconception, in Pregnancy and Postpartum 2017. Journal of Psycho-pharmacology, 31, 519-552. https://doi.org/10.1177/0269881117699361
[22]
Taylor, D. (2005) Perimenstrual Symp-toms and Syndromes: Guidelines for Symptom Management and Self-Care. Advanced Studies in Medicine, 5, 228-241.
[23]
Lambermon, F., Vandenbussche, F., Dedding, C. and van Duijnhoven, N. (2020) Maternal Self-Care in the Early Postpartum Period: An Integrative Review. Midwifery, 90, Article 102799. https://doi.org/10.1016/j.midw.2020.102799
[24]
Gentile, S. (2010) Neurodevelopmental Effects of Prenatal Exposure to Psychotropic Medications. Depression and Anxiety, 27, 675-686. https://doi.org/10.1002/da.20706
[25]
Schreiber, K., Graversgaard, C., Hunt, B.J., Wason, J.M.S., Costedoat-Chalumeau, N., Aguilera, S., et al. (2024) Challenges of Designing and Conducting Cohort Studies and Clinical Trials in Populations of Pregnant People. The Lancet Rheumatology, 6, e560-e572. https://doi.org/10.1016/s2665-9913(24)00118-8
[26]
Clark, D.W.J., Coulter, D.M. and Besag, F.M.C. (2008) Random-ized Controlled Trials and Assessment of Drug Safety. Drug Safety, 31, 1057-1061. https://doi.org/10.2165/0002018-200831120-00002
[27]
Hammad, T.A., Pinheiro, S.P. and Neyarapally, G.A. (2011) Secondary Use of Randomized Controlled Trials to Evaluate Drug Safety: A Review of Methodological Considerations. Clinical Trials, 8, 559-570. https://doi.org/10.1177/1740774511419165
[28]
Lesko, C.R., Buchanan, A.L., Westreich, D., Ed-wards, J.K., Hudgens, M.G. and Cole, S.R. (2017) Generalizing Study Results. A Potential Outcomes Perspective. Epidemiol-ogy, 28, 553-561. https://doi.org/10.1097/ede.0000000000000664
[29]
Chaudhary, P.S., Khurana, M.R. and Ayalaso-mayajula, M. (2024) Real-World Applications of Data Analytics, Big Data, and Machine Learning. In: Singh, P., Mishra, A.R. and Garg, P., Eds., Studies in Big Data, Springer, 237-263. https://doi.org/10.1007/978-981-97-0448-4_12
[30]
Rane, N., Paramesha, M., Choudhary, S. and Rane, J. (2024) Machine Learning and Deep Learning for Big Data Analytics: A Review of Methods and Applications. SSRN Electronic Journal, 2, 172-197.
[31]
Arunkumar, M., Rajkumar, K., Jeyaseelan, W.R. and Natraj, N.A. (2025) Data Mining, Machine Learning, and Statistical Modeling for Predictive Analytics with Behavioral Big Data. Tehnički vjesnik, 32, 72-77. https://doi.org/10.17559/TV-20231102001073
[32]
Bala, B. and Behal, S. (2024) A Brief Survey of Data Preprocessing in Machine Learning and Deep Learning Techniques. 2024 8th International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Kirtipur, 3-5 October 2024, 1755-1762. https://doi.org/10.1109/i-smac61858.2024.10714767
[33]
Al-Shehari, T. and Alsowail, R.A. (2021) An Insider Data Leakage Detection Using One-Hot Encoding, Synthetic Minority Oversampling and Machine Learning Techniques. Entropy, 23, Article 1258. https://doi.org/10.3390/e23101258
[34]
Pamulaparthyvenkata, S. and Avacharmal, R. (2021) Lever-aging Machine Learning for Proactive Financial Risk Mitigation and Revenue Stream Optimization in the Transition Towards Value-Based Care Delivery Models. African Journal of Artificial Intelligence and Sustainable Development, 1, 86-126.
[35]
Borges do Nascimento, I.J., Marcolino, M.S., Abdulazeem, H.M., Weerasekara, I., Azzopardi-Muscat, N., Gonçalves, M.A., et al. (2021) Impact of Big Data Analytics on People’s Health: Overview of Systematic Reviews and Recom-mendations for Future Studies. Journal of Medical Internet Research, 23, e27275. https://doi.org/10.2196/27275
[36]
Jurek, A., Bi, Y., Wu, S. and Nugent, C. (2013) A Survey of Commonly Used Ensem-ble-Based Classification Techniques. The Knowledge Engineering Review, 29, 551-581. https://doi.org/10.1017/s0269888913000155
[37]
Vittoria Togo, M., Mastrolorito, F., Orfino, A., Graps, E.A., Tondo, A.R., Altomare, C.D., et al. (2023) Where Developmental Toxicity Meets Explainable Artificial Intelligence: State-of-the-Art and Perspectives. Expert Opinion on Drug Metabolism & Toxicology, 20, 561-577. https://doi.org/10.1080/17425255.2023.2298827
[38]
Apoorva, S., Nguyen, N. and Sreejith, K.R. (2024) Recent Devel-opments and Future Perspectives of Microfluidics and Smart Technologies in Wearable Devices. Lab on a Chip, 24, 1833-1866. https://doi.org/10.1039/d4lc00089g
[39]
Gillioz, A., Casas, J., Mugellini, E. and Khaled, O.A. (2020) Over-view of the Transformer-Based Models for NLP Tasks. 2020 15th Conference on Computer Science and Information Sys-tems, 21, 179-183. https://doi.org/10.15439/2020f20
[40]
Kalyan, K.S., Rajasekharan, A. and Sangeetha, S. (2022) AMMU: A Survey of Transformer-Based Biomedical Pretrained Language Models. Journal of Biomedical Informatics, 126, Article 103982. https://doi.org/10.1016/j.jbi.2021.103982
[41]
Chen, T., Chen, C., Zhou, H. and Zhang, J. (2024) Signal Mining of Adverse Reactions in the Antiemetic Drug Ondansetron during Pregnancy: A Real-World Analysis of the FDA Ad-verse Event Reporting System (FAERS). Expert Opinion on Drug Safety, 1-9. https://doi.org/10.1080/14740338.2024.2386684
[42]
Challa, A.P., Niu, X., Garrison, E.A., Van Driest, S.L., Bastar-Ache, L.M., Lippmann, E.S., Lavieri, R.R., Goldstein, J.A. and Aronoff, D.M. (2021) Clinical Trial Emulation can Identify New Op-portunities to Enhance the Regulation of Drug Safety in Pregnancy. medRxiv Preprint. https://doi.org/10.1101/2021.11.12.21266269
[43]
Mukhiya, S.K. and Ahmed, U. (2020) Hands-on Exploratory Data Analysis with Python: Perform EDA techniques to Understand, Summarize, and Investigate Your Data. Packt Publishing Ltd.
[44]
Costa, B., Gouveia, M.J. and Vale, N. (2024) Safety and Efficacy of Antiviral Drugs and Vaccines in Pregnant Women: Insights from Physiologically Based Pharmacokinetic Modeling and Integration of Viral Infection Dynamics. Vac-cines, 12, Article 782. https://doi.org/10.3390/vaccines12070782
[45]
Grosset, K.A. (2004) Prescribed Drugs and Neu-rological Complications. Journal of Neurology, Neurosurgery & Psychiatry, 75, III2-III8. https://doi.org/10.1136/jnnp.2004.045757
[46]
Schiff, D., Wen, P.Y. and van den Bent, M.J. (2009) Neurological Ad-verse Effects Caused by Cytotoxic and Targeted Therapies. Nature Reviews Clinical Oncology, 6, 596-603. https://doi.org/10.1038/nrclinonc.2009.128
[47]
Mostaghim, S.R., Gagne, J.J. and Kesselheim, A.S. (2017) Safety Related Label Changes for New Drugs after Approval in the US through Expedited Regulatory Pathways: Retrospective Cohort Study. BMJ, 358, j3837. https://doi.org/10.1136/bmj.j3837
[48]
Crowe, B., Brueckner, A., Beasley, C. and Kulkarni, P. (2013) Current Practices, Challenges, and Statistical Issues with Product Safety Labeling. Statistics in Biopharmaceutical Research, 5, 180-193. https://doi.org/10.1080/19466315.2013.791640
[49]
Hellier, E., Edworthy, J., Derbyshire, N. and Costello, A. (2006) Considering the Impact of Medicine Label Design Characteristics on Patient Safety. Ergonomics, 49, 617-630. https://doi.org/10.1080/00140130600568980
[50]
Solmi, M., Murru, A., Pacchiarotti, I., Undurraga, J., Vero-nese, N., Fornaro, M., et al. (2017) Safety, Tolerability, and Risks Associated with First- and Second-Generation Antipsy-chotics: A State-of-the-Art Clinical Review. Therapeutics and Clinical Risk Management, 13, 757-777. https://doi.org/10.2147/tcrm.s117321
[51]
Cepaityte, D., Siafis, S. and Papazisis, G. (2021) Safety of Antipsychotic Drugs: A Systematic Review of Disproportionality Analysis Studies. Behavioural Brain Research, 404, Article 113168. https://doi.org/10.1016/j.bbr.2021.113168
[52]
Briggs, G.G., Freeman, R.K. and Yaffe, S.J. (2011) Drugs in Pregnancy and Lactation: A Reference Guide to Fetal and Neonatal Risk. Lippincott Williams & Wil-kins.
[53]
Winnenburg, R., Sorbello, A. and Bodenreider, O. (2015) Exploring Adverse Drug Events at the Class Level. Journal of Biomedical Semantics, 6, Article No. 18. https://doi.org/10.1186/s13326-015-0017-1
[54]
LePendu, P., Liu, Y., Iyer, S., Udell, M.R. and Shah, N.H. (2012) Analyzing Patterns of Drug Use in Clinical Notes for Patient Safety. AMIA Summits on Translational Science Proceedings, 19, 63-70.
[55]
Chaphekar, N., Dodeja, P., Shaik, I.H., Caritis, S. and Venkataramanan, R. (2021) Maternal-Fetal Pharmacology of Drugs: A Review of Current Status of the Application of Physiologically Based Pharmacokinetic Models. Frontiers in Pedi-atrics, 9, Article 733823. https://doi.org/10.3389/fped.2021.733823
[56]
Davidson, L. and Boland, M.R. (2020) Ena-bling Pregnant Women and Their Physicians to Make Informed Medication Decisions Using Artificial Intelligence. Journal of Pharmacokinetics and Pharmacodynamics, 47, 305-318. https://doi.org/10.1007/s10928-020-09685-1
[57]
Estrela, D., Santos, R.F., Masserdotti, A., Silini, A., Parolini, O., Pinto, I.M., et al. (2025) Molecular Biomarkers for Timely and Personal-ized Prediction of Maternal-Fetal Health Risk. Biomolecules, 15, Article 312. https://doi.org/10.3390/biom15030312
[58]
Halpern, D.G., Weinberg, C.R., Pinnelas, R., Mehta-Lee, S., Economy, K.E. and Valente, A.M. (2019) Use of Medication for Cardiovascular Disease during Pregnancy: JACC State-of-the-Art Review. Journal of the American College of Cardiology, 73, 457-476. https://doi.org/10.1016/j.jacc.2018.10.075
[59]
Costa, B. and Vale, N. (2024) Advances in Psychotropic Treatment for Pregnant Women: Efficacy, Adverse Outcomes, and Therapeu-tic Monitoring. Journal of Clinical Medicine, 13, Article 4398. https://doi.org/10.3390/jcm13154398