IP Library › Granted Patent US 12,536,773
Granted Patent B2
US 12,536,773 · App. 18/343,825 · Granted Jan 27, 2026

Systems and methods for pill identification based on image and user claims data

Inventors: Laura D. Hamilton (Chicago, IL); Vinit Garg (Fremont, CA); Ayush Tomar (Morgan Hill, CA); Fazle Shahnawaz Muhibul Karim (Chicago, IL); Chenwei Liu (Rockville, MD)
Assignee: Optum, Inc.
G06V10/764G06V10/774G16H10/60G16H70/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,536,773
App. No.
18/343,825
Granted
Jan 27, 2026
Kind
B2
Abstract

Systems and methods for pill identification based on image and user claims data are provided. A pill identification request, including one or more images of a pill and a user identifier of a user associated with the pill, is received. A first machine learning system is used to generate one or more image embeddings based on the one or more images. The user identifier is used to retrieve claims data of the user, and the claims data are encoded to generate a claims embedding. A second machine learning system is used to identify the pill based on the one or more image embeddings and the claims embedding. A response to the pill identification request is generated based on the identifying.

Claims (69)

1 . A method for identifying pills performed by one or more processors, the method comprising:

receiving a pill identification request including one or more images of a pill and an identifier of a user associated with the pill;

generating one or more image embeddings based on the one or more images;

retrieving, using the identifier of the user, claims data for the user;

encoding the claims data to generate a claims embedding;

identifying the pill based on the one or more image embeddings and the claims embedding; and

generating and transmitting a response to the pill identification request based on the identifying.

2 . The method of claim 1 , wherein the one or more image embeddings are generated using a first machine learning system including a plurality of fine-tuned models, and generating the one or more image embeddings comprises:

augmenting the one or more images to generate one or more augmented images;

generating, using the plurality of fine-tuned models, one or more sets of a plurality of image embeddings for the one or more augmented images; and

averaging the plurality of image embeddings within each of the one or more sets to generate the one or more image embeddings.

3 . The method of claim 2 , wherein augmenting each of the one or more images comprises:

sequentially augmenting each of the one or more images a predefined number of times based on a predefined sequence of augmentation types.

4 . The method of claim 1 , wherein the pill is identified using a second machine learning system including a trained model, and identifying the pill comprises:

concatenating the one or more image embeddings and the claims embedding to generate a concatenated embedding;

generating, using the trained model, a probability distribution over a plurality of pill identifiers indicating a likelihood the pill corresponds to each of the plurality of pill identifiers based on the concatenated embedding; and

identifying the pill based on a pill identifier from the plurality of pill identifiers that the pill has a highest likelihood of corresponding to based on the probability distribution.

5 . The method of claim 4 , further comprising:

determining the likelihood of the pill corresponding to the pill identifier is above a predefined threshold.

6 . The method of claim 4 , wherein the pill identifier is a code that indicates a formula, a dosage, and a form of the pill.

7 . The method of claim 6 , generating the response comprises:

including one or more of the formula, the dosage, or the form of the pill in the response.

8 . The method of claim 1 , wherein the claims data includes one or more diagnoses, one or more procedures, or one or more pharmaceutical claims associated with the user.

9 . The method of claim 1 , wherein encoding the claims data comprises:

using at least one of multi-hot encoding, a latent dimension of an autoencoder, or a dimension reduction technique to encode the claims data.

10 . The method of claim 1 , wherein the one or more image embeddings are generated using a first machine learning system including a plurality of fine-tuned models, and the plurality of fine-tuned models are generated by:

receiving a pre-trained source model;

generating a target model based on the pre-trained source model;

receiving, as first training data, a plurality of samples and corresponding labels, wherein each sample of the plurality of samples includes one or more training images of a pill and a respective corresponding label includes a pill identifier for the pill;

dividing the first training data into a plurality of folds to generate a plurality of first training data subsets; and

generating, from the target model, each of the plurality of fine-tuned models using one of the plurality of first training data subsets.

11 . The method of claim 1 , wherein the pill is identified using a second machine learning system including a trained model, and the trained model is generated by:

receiving, as second training data, a plurality of samples and corresponding labels, wherein each sample of the plurality of samples includes one or more training images of a pill and training claims data for a user having a pill identifier corresponding to the pill, and a respective corresponding label includes the pill identifier for the pill; and

training a model based on at least a portion of the plurality of samples and corresponding labels to output a probability distribution over a plurality of pill identifiers indicating a likelihood a pill included in an image corresponds to each of the plurality of pill identifiers.

12 . The method of claim 1 , wherein:

the one or more images of the pill include a first image of a front side of the pill and a second image of a back side of the pill, and

the one or more image embeddings include a first image embedding generated based on the first image and a second image embedding generated based on the second image.

13 . A system for pill identification, the system comprising:

one or more processors; and

at least one memory storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations including:

receiving a pill identification request including one or more images of a pill and an identifier of a user associated with the pill;

generating one or more image embeddings based on the one or more images;

retrieving, using the identifier of the user, claims data for the user;

encoding the claims data to generate a claims embedding;

identifying the pill based on the one or more image embeddings and the claims embedding; and

generating and transmitting a response to the pill identification request based on the identifying.

14 . The system of claim 13 , wherein the one or more image embeddings are generated using a first machine learning system including a plurality of fine-tuned models, and generating the one or more image embeddings includes:

augmenting the one or more images to generate one or more augmented images;

generating, using the plurality of fine-tuned models, one or more sets of a plurality of image embeddings for the one or more augmented images; and

averaging the plurality of image embeddings within each of the one or more sets to generate the one or more image embeddings.

15 . The system of claim 13 , wherein the pill is identified using a second machine learning system including a trained model, and identifying the pill comprises:

concatenating the one or more image embeddings and the claims embedding to generate a concatenated embedding;

generating, using the trained model, a probability distribution over a plurality of pill identifiers indicating a likelihood the pill corresponds to each of the plurality of pill identifiers based on the concatenated embedding; and

identifying the pill based on a pill identifier from the plurality of pill identifiers that the pill has a highest likelihood of corresponding to based on the probability distribution.

16 . The system of claim 15 , wherein the pill identifier is a code that indicates a formula, a dosage, and a form of the pill, and generating the response includes:

including one or more of the formula, the dosage, or the form of the pill in the response.

17 . The system of claim 13 , wherein the claims data includes one or more diagnoses, one or more procedures, or one or more pharmaceutical claims associated with the user.

18 . The system of claim 13 , wherein encoding the claims data includes:

using at least one of multi-hot encoding, a latent dimension of an autoencoder, or a dimension reduction technique to encode the claims data.

19 . The system of claim 13 , wherein:

the one or more images of the pill include a first image of a front side of the pill and a second image of a back side of the pill, and

the one or more image embeddings include a first image embedding generated based on the first image and a second image embedding generated based on the second image.

20 . A non-transitory computer readable medium for identifying pills, the non-transitory computer readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:

receiving a pill identification request including one or more images of a pill and an identifier of a user associated with the pill;

generating one or more image embeddings based on the one or more images;

retrieving, using the identifier of the user, claims data for the user;

encoding the claims data to generate a claims embedding;

identifying the pill based on the one or more image embeddings and the claims embedding; and

generating and transmitting a response to the pill identification request based on the identifying.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 29, 2023
From: HAMILTON, LAURA D.; GARG, VINIT; TOMAR, AYUSH; KARIM, FAZLE SHAHNAWAZ MUHIBUL; LIU, CHENWEI
To: OPTUM, INC.
Reel/Frame 064109/0551 →
Continuity (1)
Related Publication 20250005899A1 · Jan 2, 2025
References Cited (9)
US 9842257B2 · Gershtein · 2017 [cited by examiner]
US 10297019B2 · Jacobs · 2019 [cited by examiner]
US 20180260665A1 · Zhang · 2018 [cited by examiner]
US 20220358755A1 · Gala · 2022 [cited by examiner]
Lester et al., “Performance evaluation of a prescription medication image classification model: an observational cohort,” npj Digit. Med. 4, 118 (2021), https://www.nature.com/articles/s41746-021-00483-8. [cited by applicant]
Oxmermer et al., “VeriMedi: Pill Identification using Proxy-based Deep Metric Learning and Exact Solution,” 2021, https://arxiv.org/pdf/2104.11231.pdf. [cited by applicant]
Prabu S. et al., “Real-Time Pill Detection and Recognition Framework Based on a Deep Learning Algorithm,” Advancement, Opportunities, and Practices in Telehealth Technology, 2022, Chapter 7, pp. 117-137, https://www.igi… [cited by applicant]
Tan et al., “Comparison of RetinaNet, SSD, and YOLO v3 for real-time pill identification,” BMC Med Inform Decis Mak 21, 324 (2021), https://link.springer.com/article/10.1186/s12911-021-01691-8. [cited by applicant]
Usuyama et al., “ePillID Dataset: A Low-Shot Fine-Grained Benchmark for Pill Identification,” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, 2020, pp. 910-911, https:… [cited by applicant]