Methods, systems, and computer program product for removing extraneous content from drug product packaging to facilitate validation of the contents therein
A method includes receiving an image of a drug product package that contains one or more drug products therein, the image including labeling content displayed on a surface thereof; detecting, using an artificial intelligence engine, the labeling content on the surface of the drug product package; and generating a modified image of the drug product package that has the labeling content removed from surface thereof.
1 . A method comprising:
receiving an image of a drug product package that contains one or more drug products therein, the image including labeling content displayed on a surface thereof;
detecting, using an artificial intelligence engine, the labeling content on the surface of the drug product package; and
generating a modified image of the drug product package that has the labeling content removed from the surface thereof.
2 . The method of claim 1 , wherein the labeling content comprises commercial marketing information, patient identification information, or personal healthcare information.
3 . The method of claim 2 , wherein the commercial marketing information comprises a logo or a business name;
wherein the patient identification information comprises a patient name, a patient phone number, a patient address, or a patient identification number; and
wherein the personal healthcare information comprises names of the one or more drug products, a number of each of the one or more drug products, a prescribed time of administration for each of the one or more drug products, one or more barcodes associated with the one or more drug products, a prescription order, a patient account, or an identification number.
4 . The method of claim 1 , further comprising:
performing gamma correction on the image of the drug product package responsive to receiving the image of the drug product package to generate a gamma corrected image of the drug product package;
performing gaussian blur denoising on the gamma corrected image of the drug product package to generate a reduced noise image of the drug product package; and
performing automatic image thresholding on the reduced noise image of the drug product package to generate a foreground-background separated image of the drug product package;
wherein detecting, using the artificial intelligence engine, the labeling content comprises:
detecting, using the artificial intelligence engine, the labeling content on the surface of the foreground-background separated image of the drug product package.
5 . The method of claim 4 , wherein the artificial intelligence engine is a convolutional neural network.
6 . The method of claim 5 , wherein the convolutional neural network comprises a plurality of convolutional layers with at least some of the plurality of convolutional layers being connected to one another via a skip connection.
7 . The method of claim 1 , wherein the artificial intelligence engine is a first artificial intelligence engine and the modified image is a first modified image, the method further comprising:
receiving order information for the one or more drug products and an identifier for the drug product package;
detecting, using a second artificial intelligence engine, individual ones of the one or more drug products in the first modified image; and
generating a second modified image of the drug product package that includes indicia that distinguish between the individual ones of the one or more drug products and associate the one or more drug products with the order information and the identifier for the drug product package.
8 . The method of claim 7 , wherein the indicia that distinguish between the individual ones of the one or more drug products comprise one or more bounding boxes.
9 . The method of claim 7 , wherein the order information comprises names for the one or more drug products in the drug product package, the method further comprising:
identifying, using a third artificial intelligence engine, at least some of the one or more drug products in the second modified image based on the names for the one or more drug products;
wherein the names are associated with drug product attributes in a reference database.
10 . The method of claim 9 , wherein the at least some of the one or more drug products includes a fragmented one of the one or more drug products.
11 . The method of claim 9 , wherein the method further comprises:
identifying, using the third artificial intelligence engine, a portion of the one or more drug products as debris resulting from damage to the one or more drug products.
12 . The method of claim 9 , further comprising:
annotating the at least some of the one or more drug products in the second modified image with the names for the one or more drug products.
13 . The method of claim 12 , further comprising:
annotating any of the one or more drug products that have not been annotated with the names with a temporary name.
14 . The method of claim 12 , wherein the names are first names and the order information comprises National Drug Codes (NDCs) for the one or more drug products in the drug product package, the method further comprising:
matching NDCs that are not associated with the at least some of the one or more drug products that have been annotated with the first names with drug product reference data; and
annotating any of the one or more drug products that have not been annotated with the names that have associated NDCs that match with the drug product reference data with second names based on drug product reference data.
15 . The method of claim 14 , wherein the drug product reference data comprise a drug product shape, a drug product color, a drug product etching, drug product imprint, a drug product weight, and/or a drug product label.
16 . A system, comprising:
a processor; and
a non-transitory memory coupled to the processor and comprising computer readable program code embodied in the non-transitory memory that is executable by the processor to perform operations comprising:
receiving an image of a drug product package that contains one or more drug products therein, the image including labeling content displayed on a surface thereof;
detecting, using an artificial intelligence engine, the labeling content on the surface of the drug product package; and
generating a modified image of the drug product package that has the labeling content removed from surface thereof.
17 . The system of claim 16 , wherein the operations further comprise:
performing gamma correction on the image of the drug product package responsive to receiving the image of the drug product package to generate a gamma corrected image of the drug product package;
performing gaussian blur denoising on the gamma corrected image of the drug product package to generate a reduced noise image of the drug product package; and
performing automatic image thresholding on the reduced noise image of the drug product package to generate a foreground-background separated image of the drug product package;
wherein detecting, using the artificial intelligence engine, the labeling content comprises:
detecting, using the artificial intelligence engine, the labeling content on the surface of the foreground-background separated image of the drug product package.
18 . The system of claim 17 , wherein the artificial intelligence engine is a convolutional neural network.
19 . A non-transitory computer program product, comprising:
a non-transitory computer readable storage medium comprising computer readable program code embodied in the medium that is executable by a processor to perform operations comprising:
receiving an image of a drug product package that contains one or more drug products therein, the image including labeling content displayed on a surface thereof;
detecting, using an artificial intelligence engine, the labeling content on the surface of the drug product package; and
generating a modified image of the drug product package that has the labeling content removed from surface thereof.
20 . The non-transitory computer program product of claim 19 , wherein the operations further comprise:
performing gamma correction on the image of the drug product package responsive to receiving the image of the drug product package to generate a gamma corrected image of the drug product package;
performing gaussian blur denoising on the gamma corrected image of the drug product package to generate a reduced noise image of the drug product package; and
performing automatic image thresholding on the reduced noise image of the drug product package to generate a foreground-background separated image of the drug product package;
wherein detecting, using the artificial intelligence engine, the labeling content comprises:
detecting, using the artificial intelligence engine, the labeling content on the surface of the foreground-background separated image of the drug product package.