A research-based overview of digital tools, automation and AI in pharmaceutical QC and GMP, covering practical use cases, potential benefits and cost savings, model limitations, implementation challenges, and practical steps for getting started.

This article is explaining how applying Artificial intelligence (AI) can help improve Pharmaceutical quality control (QC), where some laboratories still rely on paper-based processes, manual data entry and disconnected systems. AI, alongside digital tools and automation, can help make these processes faster and improve the use of laboratory resources (Han et al., 2019; Lavimodiere, 2025).
In addition, artificial intelligence (AI) can predict product quality, detecting visual defects, and supporting investigations into manufacturing problems (Fitzgerald et al., 2026). This role is different from the role of conventional IT systems and automation; it doesn’t mean they don’t work together. If QC professionals understand these differences, they can help connecting the technologies to practical needs in their daily work.
This article introduces digital tools, automation, and AI applications relevant to pharmaceutical QC and Good Manufacturing Practice (GMP). It examines potential benefits and cost savings, practical use cases, model limitations, and common implementation challenges. It also outlines steps that QC teams can take to identify suitable applications and introduce them into existing workflows.
According to McKinsey’s estimates, the following potential savings relate to a combination of digital measures, rather than AI alone (Han et al., 2019).
A chemical QC laboratory can decrease costs by 25% to 45% if it adopts digital measures. Potential savings for a microbiology lab could be around 15% to 35%. This increase in productivity can happen for the following reasons:
Elimination of up to 80% of manual documentation work.
Automation, and especially optimization, of planning and scheduling to make better use of human resources, equipment, and materials.
With fewer manual errors and data-driven root cause analysis, labs can reduce investigation workloads by up to 90% (Han et al., 2019).
Digital labs can also benefit from improved compliance through reduced errors and variability, as well as seamless data retrieval and analysis.
One large global pharmaceutical company turned its lab into a digitally enabled lab. By using a digital twin platform, it implemented advanced schedule optimization and improved lab productivity by more than 30%.
The site also used advanced analytics to reduce deviations by 80% and eliminate recurring deviations altogether (Han et al., 2019).
AI has potential applications across pharmaceutical quality control, from predicting product quality to supporting document review and deviation management. The following use cases illustrate how different AI technologies can help detect problems earlier, reduce manual work, and support process improvements. Their implementation requires appropriate validation, integration with existing systems, and human oversight:
a) Predicting Quality, Identifying Sources of Batch Variability, and Adjusting the Process
Artificial neural networks (ANNs) have been used for predicting tablet dissolution and hardness based on manufacturing process parameters and starting material attributes. these predictions can help detecting sources of variability between batches and can support process adjustments to maintain consistent product quality (Fitzgerald et al., 2026).
b) Predicting and Preventing Out-of-Specification Products
In the traditional method, tablets are produced and then tested by QC to determine whether specifications, such as acceptable hardness or dissolution performance, are met. However, ANNs can help identify the risk of producing out-of-specification tablets earlier and support adjustments to manufacturing parameters to reduce that risk (Fitzgerald et al., 2026).
c) Combining AI and PAT for Real-Time Release Testing
PAT stands for Process Analytical Technology, and RTRT stands for Real-Time Release Testing. PAT can also be used in conjunction with other technologies such as AI tools and process modelling to enable RTRT which can achieve reduced rates of batch failure (Fitzgerald et al., 2026).
a) Particle Characterization and Support for Root Cause Investigation Using Deep Learning
The studies discussed below are reported in the review by Fitzgerald et al. (2026). CNN stands for convolutional neural network. Performance descriptions refer to the specific tasks and experimental conditions reported in those studies, rather than general superiority over human inspection.
Calderon et al. (2018) illustrated another use case of deep CNNs: analyzing flow-imaging microscopy (FIM) images to characterize subvisible protein particles. This technology could predict the stress conditions during processing that led to particle formation. Its performance was reported as almost perfect, and it could interpret images more effectively than a human.
This has high potential for use as a real-time process monitoring technique. The method can help improve product quality and support root cause analysis of manufacturing deviations (Calderon et al., 2018, as cited in Fitzgerald et al., 2026).
Predicting stress conditions can support an investigation, but does not by itself establish the root cause of a manufacturing deviation.
b) Detection of Tablet Coating Defects Using Deep Learning
In addition, Ficzere et al. (2022) used a CNN to detect tablet coating defects from camera images. This method has potential for in-line analysis and improved quality control. The system showed high accuracy and a greater ability to detect defects, including those that would be difficult or impossible for a human to detect during manual inspection of samples (Ficzere et al., 2022, as cited in Fitzgerald et al., 2026).
c) Detection of Foreign Particles in Liquid and Injectable Pharmaceuticals
Another example is the use of AI to detect foreign particles in pharmaceutical liquids. Zhang et al. described how fuzzy cellular neural networks (FCNNs) could be incorporated into a camera-based automated machine vision system to overcome some of the challenges associated with manual inspection and existing in-line inspection methods. The system detected tiny particles in injectable formulations with high accuracy and demonstrated potential for real-time monitoring (Zhang et al., 2018, as cited in Fitzgerald et al., 2026). Similarly, Yi et al. demonstrated the use of a convolutional neural network (CNN) to detect particles in liquid pharmaceuticals, offering an improvement over traditional approaches such as less efficient and less precise manual inspection (Yi et al., 2022, as cited in Fitzgerald et al., 2026).
a) AI Support for Change Detection and Generation of Validation Tests
In the traditional method, a change such as adding a temperature alarm to a bioreactor requires document revisions and testing. This is a static, time-consuming process involving extensive preparation, review, approval, and execution. Using a Digital Validation Tool (DVT) with AI, changes could be detected and the required tests generated, particularly with the help of large language models (LLMs). Connecting the DVT to the equipment control system could also enable test execution and automatic recording of results. This approach could enable near-real-time verification of changes, while maintaining human review and approval before and after execution (International Society for Pharmaceutical Engineering [ISPE], 2025).
b) Information Extraction, Document Review, and Detection of Missing or Inconsistent Data
One important application of AI (Artificial Intelligence) in the pharmaceutical industry is extracting and analysing data related to material certifications. First of all, OCR (Optical Character Recognition) turns scanned documents into processable text. Then, NER (Named Entity Recognition) extracts important information such as material type, batch number, specifications, and test results. Anomaly detection algorithms can detect missing data and discrepancies. Extracted data are transferred to a database or MRP (Material Requirements Planning) systems to reduce manual data entry and duplicate data recording. This process can make document analysis faster, but final approval and verification of compliance with regulations remain the responsibility of human professionals (ISPE, 2025).
Another use case is WinAI, an AI-enabled platform designed to support GMP audits in pharmaceutical manufacturing. To analyse audit findings, classify their severity as critical, major, or minor, and identify recurring non-conformances, WinAI combines natural language processing (NLP), a rule-based severity scoring engine, and a historical database.
WinAI achieved a classification accuracy of 95.3% in preliminary pilot testing using 254 simulated and 12 live audit observations. In addition, it identified repeated non-conformances and automatically escalated their severity, supporting CAPA prioritization and management (J. et al., 2026).
Drug discovery is a practical use case for artificial intelligence, particularly in screening large chemical libraries for promising compounds. Stokes et al. (2020) showed this by training a deep learning model to predict antibacterial activity from molecular structures. Their approach identified halicin, a compound structurally different from conventional antibiotics, which subsequently demonstrated antibacterial activity in laboratory experiments and efficacy against selected infections in mice. The researchers also screened more than 107 million molecules computationally and identified eight additional antibacterial compounds among 23 experimentally tested predictions. This study illustrates how AI can help prioritize candidates for experimental testing and uncover promising molecules during early-stage drug discovery.
AI is still at an early stage of adoption in the pharmaceutical industry, and its use has several limitations. AI model performance can be limited and predictions can be uncertain because models depend heavily on the size and representativeness of training datasets (Fitzgerald et al., 2026). However, adequate CNN performance has been demonstrated even without a representative training set (Fitzgerald et al., 2026). ANNs have a “black box” nature, which limits explainability and process understanding, but sensitivity analysis can help interpret their predictions (Fitzgerald et al., 2026). Another limitation is prediction errors, such as overestimating active pharmaceutical ingredient (API) content. These errors can lead to inappropriate product acceptance or rejection, highlighting the importance of suitable validation samples and a balance between model accuracy and experimental cost (Fitzgerald et al., 2026).
LLMs can generate inaccurate or incomplete content, so generated documents and validation tests require human review. AI agent workflows also need defined access controls and verification of their outputs and actions. Data privacy, model performance, and human oversight remain important when using these tools in quality-related work (ISPE, 2025).
Introducing digital tools and AI into pharmaceutical QC requires more than selecting new technologies. Clear goals, connected systems, and careful implementation are essential to achieving practical benefits. The following section outlines common challenges and solutions that can help laboratories address them.
A rush to implement AI solutions or IT systems can lead companies to adopt expensive systems without clearly understanding their full benefits. As a result, they may roll out partial solutions that fail to deliver the expected improvements. For example, labs might use an IT system for a single module while still requiring significant manual work to transfer data to another system. Analysts may therefore continue to record data on paper before entering them into a laboratory information management system (LIMS). This additional manual work can limit the time and cost savings from automating documentation (Han et al., 2019).
Solution: Establish a clear business case before investing
Define a clear target state and business case for each laboratory before selecting new systems. Assess chemical and microbiology laboratories separately because their baseline costs and improvement opportunities differ. Track the benefits achieved during implementation and use the savings to support further improvements (Han et al., 2019).
Integration should also be considered when selecting systems to reduce manual transcription and improve information flow. One option is a consolidated cloud LIMS that captures numerical results, text entries, instrument data, and validated calculations, supporting the review process and data integrity (Lavimodiere, 2025).
For example, schedule automation and optimization can be implemented in a short time, generating significant value even if a lab is not yet mostly paperless and fully digitized (Han et al., 2019).
Solution: Design focused pilots with a clear path to scale
QC staff can start by identifying a repetitive task or recurring problem and discussing it with their quality and IT teams. For a small pilot, agree on a measurable goal, such as less manual data entry or shorter review time.
Design the pilot for reuse and integration across the organization, assess its impact before expanding implementation, and address regulatory requirements during pilot design (Ameen & Reddi, 2026). A successful pilot site can also serve as a lighthouse QC lab to demonstrate the benefits to other sites (Han et al., 2019).
According to McKinsey’s estimates, scheduling automation can save QC costs by 2 to 3 percent, but automation plus dynamic scheduling optimization can deliver three to four times more value (Han et al., 2019).
Solution: Optimize the allocation of analysts and equipment
Use scheduling tools that consider both analyst and equipment constraints and optimize a defined objective, such as total completion time. Martins et al. (2023) developed and evaluated a scheduling algorithm specifically for pharmaceutical QC laboratories, supporting the coordinated allocation of these resources (Martins et al., 2023).
Many paper-based pharma labs lack the advanced analytical capabilities required to extract maximum value from their data. As a result, the labs collect data without fully using it to generate insights that could help prevent problems, improve test methods, or optimize testing volumes (Han et al., 2019).
Identify the analytical capabilities the laboratory will need and begin developing them early. Train existing employees and recruit specialists where necessary, particularly in advanced data analytics, to build the skills required for digital transformation (Han et al., 2019).
Solution: Build analytical skills early
Identify the analytical capabilities the laboratory will need and begin developing them early. Train existing employees and recruit specialists where necessary, particularly in advanced data analytics, to build the skills required for digital transformation (Han et al., 2019).
Digital tools, automation, and AI offer practical opportunities to improve pharmaceutical QC, from reducing manual documentation to supporting quality prediction and document review. Their value depends on choosing applications that address real laboratory needs, connecting them with existing workflows, and maintaining appropriate human oversight. Starting with a focused use case and measuring its results can help QC teams build experience and decide where further investment is worthwhile.
Abbreviation | Full term | Brief explanation |
AI | Artificial Intelligence | Computational methods used to perform tasks such as prediction, pattern recognition, and language processing. |
ANN | Artificial Neural Network | A machine learning model that learns relationships between inputs and outputs through connected computational units. |
API | Active Pharmaceutical Ingredient | The ingredient responsible for a medicine’s intended pharmacological activity. This is the meaning used in this article; in IT, API can also mean Application Programming Interface. |
CAPA | Corrective and Preventive Action | Actions taken to address the causes of identified problems and prevent their recurrence or occurrence. |
CNN | Convolutional Neural Network | A neural network architecture commonly used to recognize patterns in images. |
DVT | Digital Validation Tool | Software used to manage validation documents, data, execution, and review. |
FCNN | Fuzzy Cellular Neural Network | The model type discussed in the foreign-particle inspection example. Here, FCNN does not mean Fully Connected Neural Network. |
FIM | Flow-Imaging Microscopy | A technique that captures images of particles suspended in a flowing liquid for characterization. |
GMP | Good Manufacturing Practice | Quality requirements and practices intended to ensure that medicines are consistently produced and controlled to appropriate quality standards. |
ISPE | International Society for Pharmaceutical Engineering | The professional organization that published the digital validation white paper cited in this article. |
IT | Information Technology | Computing systems and software used to manage information and support operations. |
LIMS | Laboratory Information Management System | Software used to manage laboratory samples, results, and associated workflows. |
LLM | Large Language Model | An AI model trained on large amounts of text to process and generate language. |
MRP | Material Requirements Planning | A system or planning approach used to determine material needs and support production planning. |
NER | Named Entity Recognition | A text-processing method used to identify information such as material names, batch numbers, and other defined entities. |
NLP | Natural Language Processing | AI methods used to process and analyse human language, including text in audit findings and deviation reports. |
OCR | Optical Character Recognition | Technology that converts text in scanned documents or images into machine-readable text. |
PAT | Process Analytical Technology | An approach using timely measurements of material and process attributes to understand and control manufacturing. |
QC | Quality Control | Activities involving sampling, specifications, testing, and related assessment of product or material quality. |
RTRT | Real-Time Release Testing | An approach to evaluating and assuring product quality using process data and a defined control strategy, rather than relying solely on end-product testing. |
Ameen, N., & Reddi, V. (2026). Scalability of digital transformation in a highly regulated environment: Lessons from Roche’s global operations. Information Systems Journal. Advance online publication. https://doi.org/10.1111/isj.70054
Fitzgerald, L., Niarchou, E., Jones, I., & Naughton, B. (2026). Emerging digital innovations in pharmaceutical manufacturing quality: A systematised review. Journal of Pharmaceutical Innovation, 21, Article 46. https://doi.org/10.1007/s12247-025-10272-5
Han, Y., Makarova, E., Ringel, M., & Telpis, V. (2019, January 4). Digitization, automation, and online testing: The future of pharma quality control. McKinsey & Company. https://www.mckinsey.com/industries/life-sciences/our-insights/digitization-automation-and-online-testing-the-future-of-pharma-quality-control
International Society for Pharmaceutical Engineering (ISPE), Commissioning & Qualification Community of Practice. (2025, May 6). Digital validation – Future advances [White paper]. https://ispe.org/pharmaceutical-engineering/white-papers/digital-validation-future-advances
J., J. N., Dhanabal, S. P., D., N., & Reddy Karri, V. V. S. (2026). Integrating artificial intelligence in quality audits of oral solid dosage manufacturing facilities. International Journal of Applied Pharmaceutics, 18(2), 245–252. https://doi.org/10.22159/ijap.2026v18i2.57414
Lavimodiere, J. (2025, August 8). Driving better outcomes for quality control labs. iSpeak Blog, ISPE. https://ispe.org/pharmaceutical-engineering/ispeak/driving-better-outcomes-quality-control-labs
Martins, M. S. E., Viegas, J. L., Coito, T., Firme, B., Costigliola, A., Figueiredo, J., Vieira, S. M., & Sousa, J. M. C. (2023). Minimizing total completion time in large-sized pharmaceutical quality control scheduling. Journal of Heuristics, 29, 177–206. https://doi.org/10.1007/s10732-023-09509-8
Stokes, J. M., et al. (2020). A deep learning approach to antibiotic discovery. Cell, 180(4), 688–702.e13. https://doi.org/10.1016/j.cell.2020.01.021