Healthcare · Computer Vision · Deep Learning · Object Detection

AI-Powered Pill Detection and Counting System Achieves 99.9% Accuracy for a Healthcare Technology Provider

A computer vision system that identifies, classifies and counts pharmaceutical pills by National Drug Code (NDC) from photos, replacing error-prone manual counting.

99.9% precision, recall and F1 across all predictions
Pills detected and classified with bounding boxes by the AI system
Client
Pharma healthcare technology and analytics provider
Industry
Healthcare
Technology
Computer Vision, Deep Learning, Object Detection
Also applicable in
Hospitality
01

The challenge

A major healthcare technology and services provider, specialising in pharmaceutical solutions and healthcare data analytics, relied on manual pill counting.

Manual counting is slow and error-prone, and it creates bottlenecks that affect inventory management, patient safety and regulatory compliance. The client needed a proof of concept that could recognise and count specific pharmaceutical products by NDC code from photographs, including images with several pill types at once, at pharmaceutical-grade accuracy.

02

Our solution

We developed a computer vision system based on a deep neural network, fine-tuned for pharmaceutical pill detection and counting and trained on high-resolution images across multiple categories.

The inference pipeline produces prediction boxes with confidence scores, evaluated against ground truth with precision, recall and F1 metrics.

  • Small and large model variants to balance accuracy and computing requirements
  • User interface for image upload, confidence threshold adjustment and real-time result visualisation
  • Full technical documentation and source code handed over to the client
03

The outcome

99.9% precision, recall and F1 across all predictions

The system achieved over 99.9% precision, recall and F1 score across all predictions, a major improvement over manual methods. Healthcare organisations can automate pharmaceutical inventory processes, redirect staff to higher-value patient care and keep compliance consistent and auditable.

The same approach applies to wider quality control in healthcare, such as medical device inspection, drug manufacturing validation and clinical trial automation, and can scale along the pharmaceutical supply chain from manufacturing to retail pharmacy.

Start your project

Let's discuss a project like this for your company

Share a few details and our AI team will take it from there. Here is what happens next:

  1. We review your request and reply by email.
  2. A call with an AI expert to understand your problem, data and goals.
  3. A clear recommendation: the approach we suggest and a high-level estimate.

By submitting, you agree to our privacy policy. We use your details only to reply to your request.

Discuss your project