AI Technologies in Pharma: How Machine Learning, Generative AI, LLMs and Other AI Types Differ

Direct answer

The main AI technologies in pharma are machine learning, deep learning, predictive analytics, generative AI, large language models, natural language processing, computer vision and AI agents, supported by architectures such as retrieval-augmented generation and knowledge graphs. They differ in how they work, what data they need and how they fail, so each suits different pharmaceutical problems.

Executive summary

AI is a family of technologies, not a single capability. Each technology has a different way of working, different data needs and different failure modes. Choosing the wrong one, or assuming they are interchangeable, is a common source of unrealistic expectations.

This page compares the main AI technologies discussed across the AI in Pharma section and shows where each may be relevant for drug manufacturers, for the equipment and engineering ecosystem, and for commercial teams. Each technology links to its detailed page. For the difference between AI and rule-based automation, see AI vs automation in Pharma.

How the technologies relate to each other

Several of these terms are nested or overlapping rather than parallel. Stating the relationships explicitly avoids confusion:

  • Machine learning is a subset of AI. Deep learning is a subset of machine learning.
  • Generative AI is usually built with deep learning. Large language models are one type of generative AI, focused on language.
  • Natural language processing is a field of tasks. LLMs are one method for NLP tasks; other NLP methods do not generate text.
  • Computer vision is a field of tasks for images and video, today often solved with deep learning.
  • Predictive analytics is an application framing. It can use classical statistics or machine learning.
  • AI agents are systems built around a model, usually an LLM, that can plan and use tools.
  • Retrieval-augmented generation and knowledge graphs are architectures that give models access to organised information.
  • Digital twins and robotic process automation are not AI by definition, but can be combined with AI components.
AI technology landscapeNested view of AI, machine learning, deep learning, generative AI and large language models, with NLP and computer vision as task fields and related architectures alongside.Artificial intelligenceMachine learningDeep learningGenerative AILLMsNLPComputer visionBuilt with or around these modelsPredictive analyticsAI agentsKnowledge graphsRAGDigital twinsRPA with AI
Illustration. All information shown is also available as text on this page.

AI technologies compared

Main AI technologies: definition, mechanism, inputs, outputs and main limitation
TechnologyDefinitionHow it works at a high levelTypical inputsTypical outputsMain limitationDetailed page
Machine learningModels that learn patterns from data to classify or predictAn algorithm is fitted to labelled or unlabelled historical dataStructured dataClasses, scores, predictionsNeeds representative data; can learn spurious patternsMachine Learning in Pharma
Deep learningMachine learning using multi-layer neural networksLayers of parameters learn representations from large datasetsImages, sequences, text, molecular structuresClassifications, embeddings, predictionsData hungry; harder to explainDeep Learning in Pharma
Predictive analyticsUsing historical data to estimate future outcomes for decisionsStatistical or ML models applied to business questionsTransactional, operational dataForecasts, risk estimatesPredictions carry uncertainty that must be communicatedPredictive Analytics in Pharma
Generative AIModels that produce new contentTrained models sample new outputs resembling their training dataText, images, molecular dataDrafts, images, candidate structures, synthetic dataOutputs can be plausible but wrongGenerative AI in Pharma
Large language modelsGenerative models trained on large text corporaPredict likely sequences of words given a prompt and contextText, documentsAnswers, summaries, drafts, extractionsCan generate incorrect statements confidentlyLarge Language Models in Pharma
Natural language processingThe field of computational processing of human languageRule-based, statistical or neural methods, including LLMsTextEntities, categories, sentiment, structured fieldsAccuracy depends on domain language and document qualityNatural Language Processing in Pharma
Computer visionAI that interprets images and videoUsually deep learning models trained on labelled imagesImages, videoDetections, classifications, measurementsSensitive to lighting, camera and product changesComputer Vision in Pharma
AI agentsSystems in which a model plans and carries out multi-step tasks with toolsA model decides which tools to call, observes results and continuesMixedCompleted task steps, reportsErrors can compound across steps; requires action limitsAI Agents in Pharma
Knowledge graphsStructured networks of entities and relationshipsEntities and links are modelled, often populated with NLPStructured and extracted dataConnected facts, queries, inferred relationshipsQuality depends on curationKnowledge Graphs in Pharma
Retrieval-augmented generationLLM answers grounded in documents retrieved at query timeA search step retrieves passages that the model uses to answerDocument collectionsAnswers with source referencesRetrieval can miss relevant content; answers still need checkingRetrieval-Augmented Generation in Pharma
Digital twins with AIVirtual representations of assets or processes, sometimes with AI models insidePhysics-based, data-driven or hybrid models linked to operating dataSensor, process, design dataSimulations, what-if scenariosA twin is not AI by definition; fidelity must be establishedDigital Twins and AI in Pharma
AI with RPARule-based software bots combined with AI stepsBots execute defined UI steps; AI handles unstructured inputsSystem screens, documentsCompleted transactionsThe RPA part does not learn; the AI part can errAI and Robotic Process Automation in Pharma

Where each technology may apply across the three audiences

The same technology can serve very different purposes depending on who uses it. The examples below are potential applications (claim level 1).

Potential applications by technology and audience track
TechnologyPharmaceutical drug manufacturersEquipment, engineering and allied companiesCommercial and GTM teams
Machine learningProcess and quality data analysisEquipment performance analysisOpportunity prioritisation support
Deep learningMolecular property prediction, image analysisImage-based condition monitoringLimited direct use
Predictive analyticsDemand forecasting, failure riskSpare parts demandPipeline analysis
Generative AI and LLMsDrafting for expert review, document question answeringProposal and documentation draftingAccount research briefs, outreach drafts
NLPSafety reports, deviation text, regulatory documentsSpecification and tender analysisProject signal extraction from news and filings
Computer visionInspection support, laboratory imagingDrawing interpretation, installation inspectionRarely relevant
AI agentsResearch and monitoring workflows under controlsTender monitoring workflowsMulti-source market monitoring
Knowledge graphs and RAGSOP and knowledge retrieval, repurposing hypothesesEngineering knowledge retrievalAccount and project relationship mapping

The full list is maintained in the AI use cases in Pharma directory. Audience detail is on AI for pharmaceutical manufacturers, AI for pharmaceutical equipment and engineering companies and AI for pharma GTM.

Matching the technology to the problem

Starting points for technology selection
If the problem is toTechnologies usually consideredQuestion to ask first
Predict a number or risk from structured historyMachine learning, predictive analyticsIs there enough consistent historical data?
Extract information from free textNLP, LLMsHow varied is the language, and how will errors be caught?
Answer questions from approved documentsRAG with an LLMAre the documents current, controlled and access-restricted?
Find defects or features in imagesComputer vision, deep learningAre labelled images available for all relevant conditions?
Draft content for people to reviewGenerative AI, LLMsWho reviews, and what are the consequences of an error?
Carry out a multi-step research taskAI agentsWhich actions is the agent allowed to take?
Execute a fixed rule-based taskConventional automation or RPA, not AICan the rules be written down fully?

Data requirements by technology

Data needs differ widely. Supervised machine learning and computer vision typically need labelled examples that represent the conditions the system will meet. LLMs are usually pre-trained by their developers, so the organisation's main data task is supplying the right documents and context, and controlling what information is shared with the model. Predictive analytics needs consistent history over a meaningful period. Agents need well-defined tools and permissions more than training data.

Data sources, quality and governance are covered in pharmaceutical data for AI.

Limitations and governance considerations

Characteristic limitations and governance considerations
TechnologyCharacteristic limitationGovernance consideration
Machine and deep learningPerformance can drift when data changesPerformance testing, monitoring, retraining under change control
Generative AI and LLMsPlausible but incorrect outputs; sensitivity to promptsGrounding in approved sources, output review, data confidentiality
NLPDomain terminology and abbreviations reduce accuracyTesting on representative documents
Computer visionSensitive to changes in lighting, equipment or productDefined operating conditions, requalification after change
AI agentsErrors can compound across stepsAction limits, logging, human approval points
Knowledge graphs and RAGOnly as good as the curated or retrieved contentContent ownership, version control, access control

Governance concepts are explained in AI governance in Pharma.

Applicable regulatory guidance differs by product, market and use; consult current guidance from the relevant authorities and standards bodies.

Frequently asked questions

What is the difference between generative AI and large language models?

Generative AI is the broad category of models that create new content, including text, images and molecular structures. Large language models are one type of generative AI that works with language. All LLMs are generative AI, but not all generative AI is an LLM.

What is the difference between machine learning and deep learning?

Machine learning covers methods that learn patterns from data. Deep learning is a subset of machine learning that uses multi-layer neural networks and is typically applied to complex data such as images, sequences and text. Deep learning usually needs more data and is often harder to explain.

Is robotic process automation a type of AI?

No. Robotic process automation uses software bots to repeat rule-based steps and does not learn from data. It can be combined with AI components, for example to read unstructured documents, but RPA on its own is conventional automation.

Are AI agents autonomous?

AI agents can plan and carry out multi-step tasks using tools, but the degree of autonomy is a design choice. In pharmaceutical and commercial settings, agents would typically operate within defined permissions, with logging and human approval points for consequential actions.

Which AI technology is best for pharma?

No single technology is best. The right choice depends on the problem, the data available and the consequence of errors. Structured prediction problems often suit machine learning, text-heavy work often suits NLP or LLMs, and image-based tasks often suit computer vision.