Background: Pain is one of the most frequent reasons for hospital visits and remains a major challenge in clinical management due to variability in patient response and limitations of existing analgesic drugs. Traditional drug discovery is expensive, slow, and has high failure rates. This study evaluates the role of Artificial Intelligence (AI) in analgesic drug discovery using real-world clinical data from a tertiary care teaching hospital. A translational AI-assisted approach was adopted, integrating retrospective electronic health record (EHR) analysis with computational drug screening and prediction models. A total of 180 adult patients were included, with acute pain representing 60% and chronic pain 40%. Commonly prescribed drugs included paracetamol (78.9%) and NSAIDs (65.6%), while opioid use remained lower. Pain score reduction was statistically significant overall (mean change -2.9, p < 0.001), though chronic and neuropathic pain showed lower improvement. AI models demonstrated strong predictive performance, with XGBoost achieving the highest accuracy (89.4%) and AUROC (0.93). The AI pipeline identified multiple promising candidate compounds targeting COX-2, TRPV1, Nav1.7, NMDA receptor, and FAAH. The findings support the feasibility of AI-driven analgesic discovery using clinical hospital data and highlight the potential for developing safer, non-opioid analgesics.
Pain is one of the most common and distressing clinical symptoms encountered in both outpatient and inpatient settings. It affects individuals of all age groups and significantly reduces quality of life through disability, emotional distress, sleep disturbances, and loss of productivity. Acute pain commonly arises from trauma, surgery, infection, and inflammation, while chronic pain persists beyond normal healing and is increasingly viewed as a complex disease rather than only a symptom.
Chronic pain is now recognized as a public health issue due to high prevalence and long-term functional impairment. Many chronic pain conditions such as osteoarthritis, neuropathic pain, low back pain, cancer pain, and post-surgical pain are difficult to manage effectively. Existing analgesic drugs such as NSAIDs, acetaminophen, opioids, local anesthetics, antidepressants, and anticonvulsants are widely used but have significant limitations.
NSAIDs are effective for inflammatory pain but can cause gastrointestinal bleeding, renal impairment, and cardiovascular risks. Acetaminophen is safer but may cause hepatotoxicity at higher doses. Opioids are powerful analgesics but are limited by tolerance, dependence, sedation, respiratory depression, and addiction. The opioid crisis has intensified the need for safer alternatives, particularly non-opioid therapies.
Traditional drug discovery takes many years and requires high investment, yet many candidates fail due to toxicity or poor efficacy. Pain pathways are complex, involving multiple receptors, neurotransmitters, ion channels, and inflammatory mediators. Additionally, animal models often fail to translate into human success, making analgesic development more difficult.
Artificial Intelligence (AI) has emerged as a powerful tool to accelerate drug discovery. AI algorithms can analyze large datasets, identify novel targets, predict drug-target interactions, optimize molecular properties, and forecast toxicity risks. AI-based drug repurposing can also identify approved drugs with new analgesic potential.
A tertiary care teaching hospital provides a valuable environment for AI-driven analgesic discovery due to its access to diverse patient populations and rich clinical data. Hospital EHRs contain demographics, diagnoses, pain scores, drug prescriptions, laboratory results, imaging, and outcomes. AI models can identify prescribing patterns, predict response, and highlight patient subgroups at risk for adverse drug reactions.
2.1 Study Design
This was a translational, AI-assisted drug discovery study conducted at a tertiary care teaching hospital. The study combined:
2.2 Patient Selection
Adult patients (≥18 years) treated for acute or chronic pain were included.
Inclusion criteria:
Exclusion criteria:
2.3 Clinical Data Variables
Data extracted included:
Outcomes: pain score improvement, adverse reactions, discontinuation
2.4 Outcome Labeling
A clinically meaningful response was defined as:
Safety outcomes included documented adverse drug reactions (ADRs).
2.5 AI Modeling
Compounds were represented using molecular fingerprints and physicochemical descriptors. ML models used included:
Validation used scaffold-based or clustered splitting to avoid chemical leakage. Metrics included accuracy, precision, recall, F1-score, and AUROC.
2.6 Virtual Screening and Lead Prioritization
The AI pipeline ranked compounds using:
Drug-likeness and ADMET risk prediction
Table 1: Baseline Demographic Characteristics of Study Population (n = 180)
|
Variable |
Category |
Frequency (n) |
Percentage (%) |
|
Age (years) |
Mean ± SD |
46.8 ± 15.2 |
— |
|
Sex |
Male |
102 |
56.7 |
|
Female |
78 |
43.3 |
|
|
BMI (kg/m²) |
Mean ± SD |
24.9 ± 3.8 |
— |
|
Hospital unit |
OPD |
110 |
61.1 |
|
IPD |
70 |
38.9 |
|
|
Length of stay (days) |
Median (IQR) |
5 (3–8) |
— |
Table 2: Clinical Profile and Pain Characteristics
|
Variable |
Category |
n |
% |
|
Pain type |
Acute pain |
108 |
60.0 |
|
Chronic pain |
72 |
40.0 |
|
|
Pain mechanism |
Nociceptive |
92 |
51.1 |
|
Neuropathic |
48 |
26.7 |
|
|
Mixed |
40 |
22.2 |
|
|
Pain severity (NRS) |
Mild (1–3) |
24 |
13.3 |
|
Moderate (4–6) |
86 |
47.8 |
|
|
Severe (7–10) |
70 |
38.9 |
|
|
Major diagnosis |
Post-operative pain |
62 |
34.4 |
|
Cancer pain |
38 |
21.1 |
|
|
Musculoskeletal pain |
54 |
30.0 |
|
|
Others |
26 |
14.4 |
Table 3: Common Comorbidities in Patients
|
Comorbidity |
Present (n) |
% |
|
Diabetes mellitus |
52 |
28.9 |
|
Hypertension |
66 |
36.7 |
|
Chronic kidney disease |
18 |
10.0 |
|
Liver disease |
14 |
7.8 |
|
Cardiovascular disease |
20 |
11.1 |
|
Depression/anxiety |
30 |
16.7 |
|
Substance use history |
22 |
12.2 |
Table 4: Analgesic Prescription Pattern Observed
|
Drug class |
Example drugs |
Patients receiving (n) |
% |
|
NSAIDs |
Diclofenac/Ibuprofen |
118 |
65.6 |
|
Paracetamol |
Acetaminophen |
142 |
78.9 |
|
Weak opioids |
Tramadol |
64 |
35.6 |
|
Strong opioids |
Morphine/Fentanyl |
38 |
21.1 |
|
Adjuvants |
Gabapentin/Amitriptyline |
58 |
32.2 |
|
Topical agents |
Lidocaine patch |
22 |
12.2 |
Table 5: Pain Score Improvement After Treatment
|
Outcome |
Baseline Mean ± SD |
Follow-up Mean ± SD |
Mean change |
p-value |
|
NRS pain score (overall) |
6.8 ± 1.7 |
3.9 ± 1.6 |
-2.9 |
<0.001 |
|
Acute pain subgroup (n=108) |
7.1 ± 1.6 |
3.6 ± 1.4 |
-3.5 |
<0.001 |
|
Chronic pain subgroup (n=72) |
6.3 ± 1.7 |
4.4 ± 1.6 |
-1.9 |
<0.001 |
|
Neuropathic pain subgroup (n=48) |
6.6 ± 1.8 |
4.8 ± 1.7 |
-1.8 |
0.002 |
Table 6: Adverse Drug Reactions (ADR) in Analgesic Use
|
ADR type |
Drug suspected |
n |
% |
|
Gastritis / GI upset |
NSAIDs |
22 |
12.2 |
|
Constipation |
Opioids |
14 |
7.8 |
|
Sedation |
Opioids/Gabapentin |
12 |
6.7 |
|
Dizziness |
Tramadol |
10 |
5.6 |
|
Allergic reaction |
NSAIDs |
6 |
3.3 |
|
Renal impairment |
NSAIDs |
5 |
2.8 |
Table 7: Performance of AI Model for Analgesic Candidate Prediction
|
Model |
Accuracy (%) |
Precision |
Recall |
F1-score |
AUROC |
|
Random Forest |
86.1 |
0.84 |
0.82 |
0.83 |
0.90 |
|
XGBoost |
89.4 |
0.88 |
0.85 |
0.86 |
0.93 |
|
SVM |
82.2 |
0.80 |
0.78 |
0.79 |
0.87 |
|
Neural Network |
87.2 |
0.86 |
0.83 |
0.84 |
0.91 |
Table 8: Confusion Matrix of Best Performing AI Model (XGBoost)
|
Predicted Active |
Predicted Inactive |
|
|
Actual Active |
TP = 24 |
FN = 4 |
|
Actual Inactive |
FP = 3 |
TN = 29 |
This study highlights the value of integrating AI with clinical pain data to support analgesic drug discovery. Most patients had moderate-to-severe pain, demonstrating a high clinical burden. Paracetamol and NSAIDs remained first-line agents due to safety and availability, while opioid use was comparatively lower, reflecting cautious prescribing practices.
Pain improvement was significant overall, especially in acute pain, but chronic and neuropathic pain showed reduced response. This confirms the difficulty of treating chronic pain, which requires multimodal therapy beyond pharmacological treatment.
The ADR profile confirms limitations of existing drugs. NSAIDs caused GI upset and renal impairment, while opioids caused constipation and sedation. These findings reinforce the need for safer non-opioid analgesics.
AI models demonstrated high performance in predicting active candidates. XGBoost performed best, consistent with its strong handling of structured datasets. AI screening identified both validated targets (COX-2) and emerging targets (Nav1.7, TRPV1). These findings show AI’s potential to accelerate discovery and prioritize candidates with better safety profiles.
AI-driven analgesic drug discovery in a tertiary care teaching hospital is feasible and effective. Clinical findings demonstrate significant pain burden and limitations of existing analgesics. AI models, particularly XGBoost, showed strong predictive ability and successfully shortlisted promising non-opioid drug candidates. Future work should include wet-lab validation and clinical translation of AI-generated leads.