Machine learning and optical imaging for pharmaceutical forensic toxicology: A comprehensive review Pérez Beltrán, Christian H. Jiménez Carvelo, Ana María Sandoval Sicairos, Eslim S. Osuna Martínez, Lorenzo U. Santos Ballardo, Cress L. Carrazco Ávila, Pablo Y. Cuevas Rodríguez, Edith O. Cuadros Rodríguez, Luis Optical imaging analysis Artificial intelligence chemometrics Pharmaceutical forensic toxicology is undergoing a profound transformation driven by the convergence of optical imaging technologies and machine learning methodologies. Traditionally focused on post hoc legal investigations, the field is increasingly expanding toward proactive roles in pharmaceutical quality control, counterfeit drug detection, and public health protection. This review provides a comprehensive and critical overview of the integration of machine learning–based chemometrics with optical imaging techniques in pharmaceutical forensic toxicology. Imaging modalities ranging from grayscale and red, green, blue (RGB) imaging to infrared, Raman, multispectral, and hyperspectral imaging (MSI & HSI) are discussed, with emphasis on their physical principles, data structures, and analytical capabilities. The role of supervised and unsupervised chemometric multivariate models is examined in the context of classification, authentication, and quantitative assessment of pharmaceutical products. Current applications are reviewed across key forensic scenarios, including optical identification of counterfeit and illicit drugs, non-destructive evaluation of confiscated products, retrospective toxicological investigations, and emerging portable artificial intelligence-enabled platforms. Beyond technical performance, this review critically addresses regulatory, ethical, and legal challenges associated with artificial intelligence in forensic environments, highlighting the importance of explainability, traceability, and data governance. Finally, future perspectives are discussed, emphasizing the transition toward integrated forensic ecosystems that combine optical imaging, spectral databases, and interpretable machine learning to support robust, transparent, and legally defensible toxicological decision-making. 2026-02-02T09:24:27Z 2026-02-02T09:24:27Z 2026-01-30 journal article Pérez-Beltrán, C. H., Jiménez-Carvelo, A. M., Sandoval-Sicairos, E. S., Osuna-Martínez, L. U., Santos-Ballardo, C. L., Carrazco-Ávila, P. Y., Cuevas-Rodríguez, E. O., & Cuadros-Rodríguez, L. (2026). Machine learning and optical imaging for pharmaceutical forensic toxicology: A comprehensive review. Journal of Pharmaceutical and Biomedical Analysis Open, 100104, 100104. https://doi.org/10.1016/j.jpbao.2026.100104 https://hdl.handle.net/10481/110575 10.1016/j.jpbao.2026.100104 eng http://creativecommons.org/licenses/by-nc/4.0/ open access Atribución-NoComercial 4.0 Internacional Elsevier