Method, system and computer program product for validating pharmaceutical package content based on pharmaceutical packaging system characteristics
An AI-assisted system addresses the challenge of verifying pharmaceutical package contents by adapting to the unique characteristics of different packaging systems, enhancing the accuracy of medication identification within diverse packaging environments.
Patent Information
- Application Number
- JP2023549020
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-02-18
- Filing Date
- 2022-02-16
- Publication Date
- 2026-02-26
- Estimated Expiration
- 2042-02-16
AI Technical Summary
Existing pharmaceutical packaging systems with varying characteristics complicate the verification of pharmaceutical package contents due to differences in packaging materials and image capture systems, making it difficult to accurately verify the contents through imaging.
An AI-assisted system that accounts for the unique characteristics of different pharmaceutical packaging systems, including image capture light sources, packaging materials, and camera features, to generate modified images with label content removed, enabling accurate identification of individual pharmaceuticals within the packages.
The system improves the accuracy of pharmaceutical package verification by adapting to the specific characteristics of various packaging systems, allowing for reliable identification and differentiation of medications despite variations in packaging and imaging systems.
Smart Images

Figure 0007821189000001 
Figure 0007821189000002 
Figure 0007821189000003
Abstract
Description
[Technical Field]
[0001] Related Applications This application claims priority to and the benefit of U.S. Provisional Application No. 63 / 150,820, filed February 18, 2021, the disclosure of which is incorporated herein by reference in its entirety. [Background technology]
[0002] The present disclosure relates generally to pharmaceutical packaging, and more particularly to methods, systems and computer program products for validating pharmaceutical package contents based on characteristics of the pharmaceutical packaging system.
[0003] Pharmaceutical packaging systems may be used in facilities, such as pharmacies, hospitals, long-term care facilities, etc., to dispense pharmaceuticals to fill prescriptions. These pharmaceutical packaging systems may include systems designed to package pharmaceuticals in a variety of container types, including, but not limited to, pouches, vials, bottles, blister cards, and strip packaging. Strip packaging is a type of packaging in which medications are packaged in individual pouches for administration on a specific date and, in some cases, at a specific time. Typically, the individual pouches are removably attached and are often provided in a roll. The pouches can be separated from the roll as needed.
[0004] Some types of pharmaceutical packages, e.g., pouches and blister cards, may have printed thereon, for example, personal health information (PHI), manufacturer information, such as logos, names, contact information, etc., and / or other details regarding the contents of the pharmaceutical package, such as the number of medications, the names of medications, the administration time, the dosing strength, bar codes, etc. Such content on the surface of the pharmaceutical package may make it more difficult to verify the contents of the pharmaceutical package through imaging of the pharmaceutical package.
[0005] Additionally, different pharmaceutical packaging systems may have different characteristics with respect to the types of materials used in packaging the pharmaceutical products and / or the verification systems used in verifying the contents of the pharmaceutical packages. These differences between different pharmaceutical packaging systems can further complicate the evaluation of images captured to verify the contents of the packaged pharmaceutical products. Summary of the Invention Means to solve the problem
[0006] In some embodiments of the present inventive concept, a method includes receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a pharmaceutical packaging system using an artificial intelligence engine; and generating a modified image of the pharmaceutical package based on the features of the pharmaceutical packaging system.
[0007] In other embodiments, the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features.
[0008] In yet other embodiments, the one or more light source characteristics include the strength of an image capture light source, the intensity of the image capture light source, and / or the position of the image capture light source.
[0009] In yet other embodiments, the one or more image capture surface features include a background position and / or a background color.
[0010] In yet other embodiments, the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots.
[0011] In yet another embodiment, the one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type.
[0012] In yet another embodiment, the image is a first image, the pharmaceutical package is a first pharmaceutical package, and the modified image is a first modified image. Detecting the feature of the first image using the artificial intelligence engine includes detecting a feature of the first image associated with a first of a plurality of pharmaceutical packaging systems using the artificial intelligence engine. Generating the first modified image includes generating the first modified image of the first pharmaceutical package based on the feature of the first of the plurality of pharmaceutical packaging systems.
[0013] In yet another embodiment, the method further includes receiving a second image of a second pharmaceutical package containing one or more pharmaceutical products; detecting features of the second image associated with a second of the plurality of pharmaceutical packaging systems using the artificial intelligence engine; and generating a second modified image of the second pharmaceutical package based on the features of the second of the plurality of pharmaceutical packaging systems.
[0014] In yet another embodiment, the method further comprises detecting label content on a surface of the pharmaceutical package using an artificial intelligence engine, and generating the modified image of the pharmaceutical package comprises generating the modified image of the pharmaceutical package with the label content removed from the surface.
[0015] In yet another embodiment, the artificial intelligence engine is a first artificial intelligence engine and the modified image is a first modified image, the method further including receiving order information for the one or more pharmaceuticals and an identifier for the pharmaceutical package; detecting individual pharmaceuticals of the one or more pharmaceuticals in the first modified image using a second artificial intelligence engine; and generating a second modified image of the pharmaceutical package including indicia that distinguish the individual pharmaceuticals of the one or more pharmaceuticals and associate the one or more pharmaceuticals with the order information and the identifier for the pharmaceutical package.
[0016] In yet another embodiment, the order information includes names for the one or more pharmaceuticals in the pharmaceutical package, and the method further includes identifying at least a portion of the one or more pharmaceuticals in the second modified image based on the names for the one or more pharmaceuticals using a third artificial intelligence engine. The names are associated with drug attributes in a reference database.
[0017] In yet another embodiment, the method further includes, in response to receiving the image of the pharmaceutical package, performing gamma correction on the image of the pharmaceutical package to generate a gamma corrected image of the pharmaceutical package; performing Gaussian blur denoising on the gamma corrected image of the pharmaceutical package to generate a noise reduced image of the pharmaceutical package; and performing automatic image thresholding on the noise reduced image of the pharmaceutical package to generate a foreground / background separated image of the pharmaceutical package. Detecting the label content using the artificial intelligence engine includes detecting the label content on the surface of the foreground / background separated image of the pharmaceutical package using the artificial intelligence engine.
[0018] In some embodiments of the inventive concept, a system includes a processor; and a memory coupled to the processor, wherein the memory includes computer-readable program code embodied therein that is executable by the processor to execute instructions, the instructions including receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting, using an artificial intelligence engine, features of the image associated with a pharmaceutical packaging system; and generating a modified image of the pharmaceutical package based on the features of the pharmaceutical packaging system.
[0019] In further embodiments, the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features.
[0020] In still further embodiments, the one or more light source characteristics include a strength of an image capture light source, an intensity of the image capture light source, and / or a position of the image capture light source.
[0021] In still further embodiments, the one or more image capture surface features include a background position and / or a background color.
[0022] In still further embodiments, the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots.
[0023] In still further embodiments, the one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type.
[0024] In still further embodiments, the image is a first image, the pharmaceutical package is a first pharmaceutical package, and the modified image is a first modified image. Detecting the feature of the first image using the artificial intelligence engine includes detecting a feature of the first image associated with a first of a plurality of pharmaceutical packaging systems using the artificial intelligence engine. Generating the first modified image includes generating the first modified image of the first pharmaceutical package based on the feature of the first of the plurality of pharmaceutical packaging systems.
[0025] In still further embodiments, the method further includes receiving a second image of a second pharmaceutical package containing one or more pharmaceuticals; detecting features of the second image associated with a second of the plurality of pharmaceutical packaging systems using the artificial intelligence engine; and generating a second modified image of the second pharmaceutical package based on the features of the second of the plurality of pharmaceutical packaging systems.
[0026] In some embodiments of the inventive concept, a computer program product comprises a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium includes computer-readable program code embodied therein that is executable by the processor to execute instructions, the instructions including receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting, using an artificial intelligence engine, characteristics of the image associated with a pharmaceutical packaging system; and generating a modified image of the pharmaceutical package based on the characteristics of the pharmaceutical packaging system.
[0027] Other methods, systems, articles of manufacture, and / or computer program products according to embodiments of the inventive concepts will be or become apparent to one with skill in the art upon examination of the accompanying drawings and the following detailed description. All such additional systems, methods, articles of manufacture, and / or computer program products are intended to be included within this specification, be within the scope of the inventive subject matter, and be protected by the accompanying claims.
[0028] Other features of the embodiments will be more readily understood from the following detailed description of specific embodiments thereof when read in conjunction with the accompanying drawings. [Brief explanation of the drawings]
[0029] [Figure 1] FIG. 1 is a block diagram illustrating a communication network including an artificial intelligence (AI)-assisted pharmaceutical package analysis system capable of accounting for differences between different pharmaceutical packaging systems, in accordance with some embodiments of the inventive concepts. [Figure 2] FIG. 2 is a block diagram of the AI-assisted drug package analysis system of FIG. 1, in accordance with some embodiments of the inventive concepts. [Figure 3]FIG. 3 is a block diagram of a convolutional neural network for detecting label content on the surface of a pharmaceutical package, in accordance with some embodiments of the inventive concepts, which can account for differences between different pharmaceutical packaging systems. [Figure 4] FIG. 4 is a block diagram illustrating pre-processing of pharmaceutical package images in accordance with some embodiments of the inventive concepts. [Figure 5] FIG. 5 is a block diagram of a skip connection arrangement between multiple convolutional layers of the convolutional neural network of FIG. 3 in accordance with some embodiments of the inventive concepts. [Figure 6] FIG. 6 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 7] FIG. 7 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 8] FIG. 8 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 9] FIG. 9 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 10] FIG. 10 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 11] FIG. 11 is a flow chart diagram illustrating operations for performing pharmaceutical package analysis while accounting for differences between different pharmaceutical packaging systems in accordance with some embodiments of the inventive concepts. [Figure 12]FIG. 12 is a data processing system that may be used to implement one or more servers in the AI-assisted drug package analysis system of FIG. 1, according to some embodiments of the inventive concepts. [Figure 13] FIG. 13 is a block diagram illustrating a software / hardware architecture for use in the AI-assisted drug package analysis system of FIG. 1, in accordance with some embodiments of the inventive concepts. Mode for carrying out the invention
[0030] In the following detailed description of the invention, numerous specific details are set forth in order to provide a thorough understanding of embodiments of the inventive concepts. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In some instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to obscure the inventive concepts. All embodiments disclosed herein are intended to be practiced separately or combined in any manner and / or combination. Aspects described with respect to one embodiment may be incorporated in a different embodiment, even if not specifically described therein. That is, all embodiments and / or features of any embodiment may be combined in any manner and / or combination.
[0031] As used herein, the term "data processing facility" encompasses, but is not limited to, hardware elements, firmware components, and / or software components. A data processing system may be configured with one or more data processing facilities.
[0032] As used herein, the term "pharmaceutical packaging system" refers to any type of pharmaceutical formulation dispensing system, including, but not limited to, automated systems that fill pharmaceuticals into vials, bottles, containers, pouches, blister cards, etc.; semi-automated systems that fill pharmaceuticals into vials, bottles, containers, pouches, blister cards, etc.; and any combination of automated and semi-automated systems that fill pharmaceutical packages. Pharmaceutical packaging systems also include packaging systems for pharmaceutical formulation substitutes, such as dietary supplements and / or biopharmaceuticals.
[0033] As used herein, the terms "pharmaceutical" and "medication" are used interchangeably and refer to a medicament prescribed for a patient, either human or animal. A pharmaceutical or medicament may be embodied in various ways, including but not limited to, a pill, a capsule, a tablet, etc.
[0034] The term "drug product" refers to any type of pharmaceutical product that can be packaged in vials, bottles, containers, pouches, blister cards, etc. by automated and semi-automated pharmaceutical packaging systems, including, but not limited to, pills, capsules, tablets, caplets, gelcaps, lozenges, etc. Drug products also refer to pharmaceutical formulation substitutes, such as dietary supplements and / or biological products. Examples of pharmaceutical packaging systems, such as those described above, including management techniques for filling packaging orders, are described in U.S. Pat. No. 10,492,987, the disclosure of which is incorporated herein by reference.
[0035] The term "pharmaceutical package" refers to any type of object capable of holding a pharmaceutical product, such as a pharmaceutical product as described above, including vials, bottles, containers, pouches, blister cards, and the like.
[0036] The term "National Drug Code (NDC)" may be used to refer to both NDC information and "Drug Identification Number (DIN)" information.
[0037] Embodiments of the inventive concepts are described herein in the context of a pharmaceutical packaging analysis engine comprising one or more machine learning engines and artificial intelligence (AI) engines. It will be understood that embodiments of the inventive concepts are not limited to a particular implementation of the pharmaceutical packaging analysis engine, and that various types of AI systems may be used, including, but not limited to, multilayer neural networks, deep learning systems, natural language processing systems, and / or computer vision systems. Furthermore, it will be understood that the multilayer neural networks are multilayer artificial neural networks comprising artificial neurons or nodes, and do not encompass biological neural networks comprising actual biological neurons. Embodiments of the inventive concepts may be implemented using multiple AI systems, or by combining various functions into fewer or a single AI system.
[0038] Some embodiments of the inventive concept stem from the recognition that, for example, when verifying the contents of a pharmaceutical package, such as a pouch or blister card, different pharmaceutical packaging systems may have different characteristics that can affect the verification process due to, for example, differences in the physical packaging used and differences in the image capture systems used by different pharmaceutical packaging systems to capture images of the pharmaceutical package. For example, the pharmaceutical packaging system characteristics may include one or more image capture light source characteristics, one or more image capture surface characteristics, one or more packaging material characteristics, and / or one or more camera characteristics. The one or more light source characteristics may include, for example, the strength of an image capture light source, the intensity of the image capture light source, and / or the position of the image capture light source. Ambient light may also affect the light source characteristics based on the configuration of the image capture system associated with the pharmaceutical packaging system. The one or more image capture surface characteristics may include background position and / or background color. The one or more packaging material characteristics may include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots. Colors may be used on pharmaceutical packaging to distinguish medications, with each color representing a different medication class. For example, blue labels may be used to identify opioids, fluorescent red may be used to identify neuromuscular blockers, yellow may be used to identify inducers, orange may be used to identify tranquilizers, purple may be used to identify antihypertensives, and green may be used to identify anticholinergics. Blue vials may be used to identify medications that must be kept out of the reach of children. Blue pill bottles may generally be made of durable polyethylene material. The pill bottles may secure different amounts and sizes of medication for safe transportation and storage. Pill bottles may be translucent orange to mimic the historically used amber bottles. The orange coloring may reduce damage to the medication contained therein by ultraviolet light.The one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type. Profile information including the above-described characteristics can be stored for each pharmaceutical packaging system to support system-specific image recognition. The profile information for each pharmaceutical packaging system may not be static but may change over time due to changes in the external environment, component changes / wear, etc. Thus, as the characteristics of the pharmaceutical packaging system evolve, the AI system can be similarly trained to recognize the evolving characteristics over time. Conventional pharmaceutical package content verification systems are typically tailored to a specific pharmaceutical packaging system. When verifying pharmaceutical package content through the use of an AI system, the accuracy of the pharmaceutical package verification can be improved by taking into account differences in the packaging and / or image capture systems used in different pharmaceutical packaging systems. Moreover, the pharmaceutical package content verification can be transferred in whole or in part to a network location, such as the cloud, allowing pharmacies or other pharmaceutical packaging facilities to access AI-based pharmaceutical package verification systems trained on multiple types of pharmaceutical packaging systems. As new pharmaceutical packaging systems are developed, the AI system can be trained to recognize the specific characteristics of the new pharmaceutical packaging system. In other embodiments, a facility may desire to perform validation of pharmaceutical package contents locally rather than over a network, e.g., in the cloud. In other embodiments, the AI system may be modified to run locally at a particular pharmacy or pharmaceutical packaging facility and scaled down to support the particular pharmaceutical packaging system used at that pharmacy or facility without supporting other pharmaceutical packaging systems.
[0039] Referring to FIG. 1, a communication network 100 including an AI-assisted pharmaceutical package analysis system capable of accounting for differences between different pharmaceutical package systems in accordance with some embodiments of the inventive concepts is shown to include a pharmacy management system (PMS) or host system 110, a packaging system server 120, one or more package analysis engine servers 155, and one or more pharmaceutical package systems 130a and 130b connected via a network 140.
[0040] The PMS system 110 may be configured to manage and fill prescriptions for customers. As used herein, a PMS system may be used in a pharmacy or generally as a batch production system for other applications, such as dispensing nutritional supplements or biologics. The PMS system 110 may be associated with various types of facilities, such as pharmacies, hospitals, long-term care facilities, etc. The PMS system, or host system 110, may be any system capable of transmitting valid prescriptions to one or more product packaging systems 130a and 130b. The packaging system server 120 may include a packaging system interface module 135 and may be configured to manage the operation of the pharmaceutical packaging systems 130a and 130b. For example, the packaging system server 120 may be configured to receive packaging orders from the PMS system 110 and to identify which of the pharmaceutical packaging systems 130a and 130b should be used to package a particular individual order or batch of orders. In some embodiments, an AI system may be used to facilitate intelligent routing of pharmaceutical packaging orders to specific pharmaceutical packaging systems, as described, for example, in U.S. patent application Ser. No. 17 / 510,635, filed October 26, 2021, entitled "ORGANIZATION OF SCRIPT PAGAGING SEQUENCE AND PAGAGING SYSTEM SELECTION FOR DRUG PRODUCTS USING AN ARTIFICIAL INTELLIGENCE ENGINE," the contents of which are incorporated herein by reference.
[0041] Additionally, packaging system server 120 may be configured to manage the operation of pharmaceutical packaging systems 130a and 130b. For example, packaging system server 120 may be configured to manage the inventory of pharmaceuticals available through each of pharmaceutical packaging systems 130a and 130b, manage pharmaceutical dispensing canisters allocated or registered to one or more of pharmaceutical packaging systems 130a and 130b, generally manage the operational status of pharmaceutical packaging systems 130a and 130b, and / or manage reports regarding the status (e.g., allocated, completed, etc.) of packaging orders, pharmaceutical inventory, order requisitions, etc. A user 150, such as a pharmacist or pharmacy technician, may communicate with packaging system server 120 using any suitable computing device via wired and / or wireless connections. While FIG. 1 shows user 150 communicating with packaging system server 120 via a direct connection, it will be understood that user 150 may communicate with packaging system server 120 via one or more network connections. User 150 may interact with packaging system server 120 to approve or override various recommendations made by packaging system server 120 when operating pharmaceutical packaging systems 130a and 130b. User 150 may also initiate the running of various reports, such as those described above for pharmaceutical packaging systems 130a and 130b. While only two pharmaceutical packaging systems 130a and 130b are shown in FIG. 1 , it will be understood that three or more pharmaceutical packaging systems may be managed by packaging system server 120. Pharmaceutical packaging systems 130a and 130b may be the same type of pharmaceutical packaging system or may be different types of pharmaceutical packaging systems. Moreover, pharmaceutical packaging systems 130a and 130b may be located within the same facility or in different facilities.As a result, pharmaceutical packaging systems 130a and 130b may have different characteristics that can affect the verification process of the contents of the pharmaceutical package due to, for example, differences in the physical packaging used and differences in the image capture systems used by different pharmaceutical packaging systems to capture images of the pharmaceutical package.
[0042] The AI-assisted pharmaceutical package analysis system may include one or more package analysis engine servers 155A and / or 155B, which include one or more package analysis engine modules 160A and 160B for facilitating validation of pharmaceutical package contents while accounting for differences between the characteristics of different pharmaceutical packaging systems 130a and 130b. In accordance with various embodiments of the inventive concept, the pharmaceutical package analysis service may be provided by package analysis engine server 155B via a network connection, e.g., a cloud service, or package analysis engine server 155B may be provided locally, e.g., at a pharmacy or pharmaceutical packaging facility, by package analysis engine server 155A and package analysis engine module 160A. As described herein, the AI-assisted pharmaceutical package analysis service may be provided as a hybrid service, in which an AI system is trained to account for multiple types of pharmaceutical packaging systems, or as a targeted service to account for a single type of pharmaceutical packaging system. A pharmacy or other pharmaceutical packaging facility may wish to run the AI-assisted pharmaceutical package analysis service locally, targeting the particular pharmaceutical packaging system used at the pharmacy or facility. In other embodiments, a pharmacy or pharmaceutical packaging facility may wish to access the pharmaceutical package analysis service as a cloud service. In that case, the AI system is trained to take into account the various characteristics of multiple types of pharmaceutical packaging systems, because the pharmacy or pharmaceutical packaging facility may use multiple types of pharmaceutical packaging systems or may not want to set up resources locally to run the pharmaceutical package analysis service.The package engine analysis engine server 155B and the package analysis engine module 160B, together with the package engine analysis engine server 155A and the package analysis engine module 160A, are collectively referred to herein as package analysis engine server 155 and package analysis engine module 160. Package analysis engine server 155 and package analysis engine module 160 may facilitate AI-assisted pharmaceutical package analysis to verify the pharmaceutical package contents while accounting for differences in pharmaceutical packaging system characteristics of pharmaceutical packaging systems at the same physical location and across multiple physical locations.
[0043] The one or more package analysis engine servers 155 and the one or more package analysis engine modules 160 may represent one or more AI systems that may be configured to generate a modified image of a pharmaceutical package based on the features of the pharmaceutical packaging system, generate the modified image of the pharmaceutical package with label content removed from one or more surfaces, detect within the pharmaceutical package image one or more individual pharmaceuticals contained in the pharmaceutical package, and / or identify those pharmaceuticals detected within the pharmaceutical package image. In accordance with some embodiments of the inventive concepts, the features of the pharmaceutical packaging system may include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features. In accordance with various embodiments of the inventive concepts, the label content can be removed from any surface on the pharmaceutical package, including multiple surfaces of the pharmaceutical package, such as the top, bottom, and sides of a vial, the front and back surfaces of a pouch and blister pack, etc.
[0044] It will be understood that the division of functionality described herein between packaging system server 120 / packaging system interface module 135 and one or more package analysis engine servers 155 / one or more package analysis engine modules 160 is by way of example. In accordance with different embodiments of the inventive concept, various functionality and capabilities can be transferred between packaging system server 120 / packaging system interface module 135 and one or more package analysis engine servers 155 / one or more package analysis engine modules 160. Moreover, in some embodiments, packaging system server 120 / packaging system interface module 135 and one or more package analysis engine servers 155 / one or more package analysis engine modules 160 may be integrated as a single logical and / or physical entity.
[0045] Network 140 connects pharmaceutical packaging systems 130a and 130b, PMS system 110, package analysis engine server 155B, and packaging system server 120 to one another. Network 140 may be a global network, such as the Internet or other publicly accessible network. The various elements of network 140 may be interconnected by wide area networks, local area networks, intranets, and / or other private networks, which may not be accessible to the general public. Thus, communication network 140 may represent a combination of public and private networks or a virtual private network (VPN). Network 140 may be a wireless network, a wired network, or a combination of both wireless and wired networks. In some embodiments, one or more package analysis engine servers 155 may also be connected to network 140.
[0046] In some embodiments, the AI-assisted drug package analysis service provided through one or more package analysis engine servers 155 and one or more package analysis engine modules 160 may be implemented as a cloud service, such as through package analysis engine servers 155B and package analysis engine modules 160B. In some embodiments, the AI-assisted drug package analysis service may be implemented as a Representational State Transfer Web Service (RESTful Web Service).
[0047] While FIG. 1 illustrates an exemplary communications network including an AI-assisted pharmaceutical package analysis system capable of accounting for differences between different pharmaceutical packaging systems, it will be understood that embodiments of the present subject matter are not limited to such configurations and are intended to encompass any configuration capable of performing the operations described herein.
[0048] As described above, the one or more package analysis engine servers 155 and the one or more package analysis engine modules 160 may represent one or more AI systems that may be configured to account for differences between different pharmaceutical packaging systems, generate modified images of pharmaceutical packages with label content removed from the surface, detect within the pharmaceutical package images one or more individual pharmaceuticals contained in the pharmaceutical package, and / or identify those pharmaceuticals detected within the pharmaceutical package images. Figure 2 is a block diagram of one or more package analysis engine modules 160 for implementing an AI system, e.g., a machine learning system, that can be used to detect within the pharmaceutical package images one or more individual pharmaceuticals contained in the pharmaceutical package and / or identify those pharmaceuticals detected within the pharmaceutical package images while accounting for differences in the characteristics of the pharmaceutical packaging systems used to package the pharmaceuticals. The AI system of Figure 2 may be implemented as a single AI system to detect within the pharmaceutical package image one or more individual pharmaceuticals contained in the pharmaceutical package and identify those detected within the pharmaceutical package image while taking into account differences in the characteristics of the pharmaceutical packaging system used to package the pharmaceuticals. In other embodiments, the architecture of the AI system of Figure 2 may be replicated to form separate AI systems to detect within the pharmaceutical package image one or more individual pharmaceuticals contained in the pharmaceutical package and identify each of those detected within the pharmaceutical package image while taking into account differences in the characteristics of the pharmaceutical packaging system used to package the pharmaceuticals. As shown in Figure 2, one or more package analysis engine modules 160 may include both a training module and a module used to process new data to detect and / or identify pharmaceuticals within the pharmaceutical package image while taking into account differences in the characteristics of the pharmaceutical packaging system used to package the pharmaceuticals.The modules used in the training portion of the one or more package analysis engine modules 160 include a training data module 205 , a characterization module 225 , a labeling module 230 , and a machine learning engine 240 .
[0049] The training data 205 includes one or more images of a pharmaceutical package, each containing one or more pharmaceuticals therein. The one or more pharmaceutical packages may include label content on their surface, which may include, but is not limited to, commercial marketing information, patient identifying information, and / or personal healthcare information (PHI). The commercial marketing information may include, for example, a logo and / or a business name. The patient identifying information may include, for example, a patient name, a patient telephone number, a patient address, and / or a patient identification number. The personal healthcare information may include, for example, the names of one or more pharmaceuticals contained in the pharmaceutical package, the administration time of each of the one or more pharmaceuticals, one or more barcodes associated with the one or more pharmaceuticals, a prescription order, a patient account, an identification number, and / or other information. In some embodiments, the pharmaceutical package image may be modified to remove at least a portion of the label content contained on its surface through the use of an AI system, e.g., a neural network, as described below with reference to FIG. 3. In some embodiments, training data 205 may further include ordering information for one or more pharmaceuticals contained in the pharmaceutical package and / or an identifier for the pharmaceutical package, in order to detect individual pharmaceuticals of one or more pharmaceuticals contained in the pharmaceutical package in a modified pharmaceutical package image from which at least a portion of the label content on the surface of the pharmaceutical package has been removed. In further embodiments, the ordering information included in training data 205 may include the names of the one or more pharmaceuticals in the pharmaceutical package in order to identify the pharmaceuticals detected in the pharmaceutical package image. Different pharmaceutical packaging systems may differ from one another with respect to features that may affect the detection / identification of one or more pharmaceuticals in a pharmaceutical package and / or the removal of label content from a pharmaceutical package. Accordingly, training data 205 may include information related to the one or more image features associated with the pharmaceutical packaging system used to package the pharmaceutical.These features may include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features. The one or more light source features may include, for example, image capture light source strength, image capture light source intensity, and / or image capture light source position. The one or more image capture surface features may include background position and / or background color. The one or more packaging material features may include packaging material transparency, packaging material shadow, label color, packaging material color, and / or packaging material hot spots. The one or more camera features may include camera number, camera position, camera resolution, and / or camera image type. The training data 205 may further include pharmaceutical reference package images, such as those described above that include information identifying pharmaceutical package features and / or content contained therein. These known reference packages may serve as baselines for the machine learning engine 240 to learn from and for the AI engine 245 to recognize deviations in the features of different pharmaceutical packaging systems relative to known reference images.
[0050] The characterization module 225 is configured to identify individual independent variables, which may be considered as one or more dependent variables, used by the one or more package analysis engine modules 160 to detect and / or identify one or more pharmaceuticals, e.g., to detect and / or identify one or more pharmaceuticals in pharmaceutical package images from which label content has been removed, while taking into account characteristics of the pharmaceutical packaging system used to package the one or more pharmaceuticals. For example, the training data 205 may generally be raw or formatted and may include extra information in addition to pharmaceutical information and / or pharmaceutical packaging information. For example, the training data 205 may include account codes, business address information, etc., which may be filtered by the characterization module 225. Features extracted from the training data 205 may be referred to as attributes, and the number of features may be referred to as dimensions. The labeling module 230 may be configured to assign defined labels to the training data and the detected and / or identified pharmaceuticals to ensure consistent naming conventions for both the input features and the generated output. The machine learning engine 240 may process both characterized training data 205, e.g., the training data 205 described above that includes labels provided by the labeling module 230, and may be configured to test multiple functions to establish quantitative relationships between the characterized and labeled input data and the generated output. The machine learning engine 240 may use modeling techniques to evaluate the impact of various input data features on the generated output. These effects may then be used to adjust and refine the quantitative relationships between the characterized and labeled input data and the generated output. The adjusted and refined quantitative relationships between the characterized and labeled input data generated by the machine learning engine 240 are output for use in the AI engine 245. The machine learning engine 240 may be referred to as a machine learning algorithm.2, machine learning engine 240 may be trained to support multiple individual packaging systems, as represented by module 242A for packaging system A and module 242B for packaging system B. In further embodiments, machine learning engine 240 may be trained to support analysis of pharmaceutical packaging images from one or more of multiple packaging systems, as represented by module 242C for hybrid packaging systems.
[0051] The modules used to detect individual pharmaceuticals of one or more pharmaceuticals contained in a pharmaceutical package within a pharmaceutical package image and / or identify those pharmaceuticals detected within the pharmaceutical package image based on characteristics of the pharmaceutical packaging system used to generate the pharmaceutical package include a new data module 255, a characterization module 265, an AI engine module 245, and a pharmaceutical package processing and analysis module 275. The new data 255 may be the same data / information in content and format as the training data 205, except that the new data 255 is used for analysis of new pharmaceutical packages rather than for training purposes. Similarly, the characterization module 265 performs the same functions on the new data 255 as the characterization module 225 performs on the training data 205. The AI engine 245 may be generated by the machine learning engine 240 substantially in the form of determined quantitative relationships between characterized and labeled input data and output pharmaceutical package content analysis. In some embodiments, the AI engine 245 may be referred to as an AI model. Similar to machine learning engine 240, AI engine 245 supports multiple individual packaging systems, as represented by packaging system A module 247A and packaging system B module 247B. Machine learning engine 240 may further support analysis of pharmaceutical package images from one or more of the multiple packaging systems, as represented by hybrid packaging system module 247C. AI engine 245 may be configured to generate modified images of the pharmaceutical package that include indicia distinguishing individual pharmaceuticals of the one or more pharmaceuticals contained therein, while associating the one or more pharmaceuticals with order information and / or an identifier for the pharmaceutical packaging, based on characteristics of the pharmaceutical packaging system used to package the one or more pharmaceuticals.The indicator may be embodied in a variety of ways, including but not limited to, boundary boxes, i.e., polygons; circles; enclosed shapes, e.g., enclosed shapes that include straight lines and curved surfaces; enclosed shapes that include only curved surfaces; and / or lines or symbols that define boundaries between one or more medications. In some embodiments, the indicator may be shaped to approximate the shape of the medication. The AI engine 245 may also be configured to identify one or more medications based on the name of the medication. The AI engine 245 may use various modeling techniques, including, but not limited to, regression techniques, neural network techniques, autoregressive integrated moving average (ARIMA) techniques, deep learning techniques, linear discriminant analysis techniques, decision tree techniques, naive Bayes techniques, K-nearest neighbor techniques, learning vector quantization techniques, support vector machine techniques, and / or bagging / random forest techniques, to detect individual medications of one or more medications contained in the medication package within the medication package image and to identify those medications detected within the medication package image according to different embodiments of the inventive concepts.
[0052] The medication package processing and analysis module 275 may be configured to output a modified medication package image having one or more medications identified by display of an indicia, e.g., a bounding box, along with the name of the one or more medications, to the medication package verification system.
[0053] As described above, the one or more package analysis engine servers 155 and the one or more package analysis engine modules 160 may represent one or more AI systems that may be configured to generate modified images of pharmaceutical packages with label content removed from their surfaces based on characteristics of the pharmaceutical packaging system used in the packaging. FIG. 3 is a block diagram of the one or more package analysis engine modules 160 for implementing a neural network-based AI system that may be used to generate the modified images of pharmaceutical packages with label content removed from their surfaces while accounting for differences between different pharmaceutical packaging systems. In the exemplary embodiment of FIG. 3, the neural network is a convolutional neural network. However, it will be understood that an AI system for removing label content from pharmaceutical packaging images based on characteristics of the pharmaceutical packaging system used for the package may be embodied as a fully connected neural network in accordance with other embodiments of the inventive concept. However, convolutional neural networks may be useful when processing or classifying images due to the large number of pixels and, consequently, the large number of weights to manage in the neural network layers. A convolutional neural network may reduce the main image matrix through convolution to a matrix with lower dimensions in the first layer, thereby reducing the number of weights used and the impact on training time.
[0054] Referring now to FIG. 3, an image preprocessor 305 may receive one or more images of a pharmaceutical package including label content displayed thereon. As shown in FIG. 4, the image preprocessor may include a gamma correction module 405, a Gaussian blur denoising module 410, and an automatic image thresholding module 415, which may perform various corrections on the image data, such as those described above, including, for example, gamma correction, denoising, and / or image segmentation or image thresholding, respectively. Image preprocessing operations according to some embodiments of the inventive concepts are described below. The preprocessed pharmaceutical package image may be an image represented by a matrix of dimensions AxBx3 (where the number 3 represents red, green, and blue colors), which may then be provided to a multi-packaging system convolutional neural network 310. According to embodiments described herein, the multi-packaging system may be a convolutional neural network trained to consider multiple features of one or more individual pharmaceutical packaging systems when processing pharmaceutical package images. The multi-packaging system convolutional neural network 310 may be trained to consider a composite of multiple pharmaceutical packaging systems when processing pharmaceutical package images, where each packaging system includes its own multiple features.As shown in FIG. 3 , the multi-packaging system convolutional neural network 310 includes a first convolutional layer 320 and a second convolutional layer 330, along with a first pooling layer 325 and a second pooling layer 335. Each of the first convolutional layer 320 and the second convolutional layer 330 may be a matrix of smaller dimensions than the input matrix and configured to perform a convolution operation with a portion of the input matrix having the same dimensions. The output of the convolutional layer is the sum of the products of corresponding elements. The output of each of the convolutional layers may also be processed through a rectified linear unit operation, in which any numbers less than 0 are converted to 0 and any positive numbers are left unchanged. The multi-packaging system convolutional neural network 310 further includes a first pooling layer 325 and a second pooling layer 335. The pooling layers 325 and 335 may be configured to filter the outputs of the first convolutional layer 320 and the second convolutional layer 330, respectively, by performing a downsampling operation. The size of the pooling operation or filter is smaller than the size of the input feature map, and in some embodiments, is 2x2 pixels applied with a stride of 2 pixels. This means that the pooling layer always reduces the size of each feature map by a factor of 2, e.g., reduces each dimension by half and reduces the number of pixels or values in each feature map by a factor of 4. For example, a pooling layer applied to a 6x6 (36 pixel) feature map would result in a pooled output of a 3x3 (9 pixel) feature map. The final output layer is a conventional fully connected neural network layer 340, which provides the output as a modified pharmaceutical package image 345 with at least a portion of the label content on its surface removed.
[0055] In some implementations of the inventive concept, the multi-packaging system convolutional neural network 310 may be a residual neural network in which a skip connection is used between the first convolutional layer 320 and the second convolutional layer 330. An example of such a skip connection is shown in Figure 5. Specifically, in a skip connection, the convolutional neural network includes a convolutional layer that receives as input both the output of the previous convolutional layer and the input to the previous convolutional layer.
[0056] Although two convolutional layers 320 and 330 are shown in the exemplary multi-packaging system convolutional neural network 310 of FIG. 3 for purposes of illustration, it will be understood that convolutional neural networks according to various embodiments of the inventive concepts may comprise many convolutional layers, and in some embodiments may exceed 100 layers.
[0057] 6-11 are flow chart diagrams illustrating operations for performing pharmaceutical package analysis, including removing label content therefrom, to facilitate verification of the contents therein while accounting for differences between different pharmaceutical packaging systems, in accordance with some embodiments of the inventive concepts. Referring now to FIG. 6, operations begin at block 600, where the AI engine 245 and / or the multi-packaging system convolutional neural network 310 receives an image of a pharmaceutical package containing one or more pharmaceuticals therein. In some embodiments, the pharmaceutical package may be an outer package with one or more pharmaceutical packages therein. For example, a large pouch or bag may contain blister packs, pouches, and / or strips with multiple barcodes. In block 605, image features associated with the pharmaceutical packaging system may be detected using the AI engine 245 and / or the multi-packaging system convolutional neural network 310. As described above, the training data 205 used to train the machine learning engine 240 may include pharmaceutical reference package images containing information identifying pharmaceutical package features and / or the content contained therein. These known pharmaceutical reference package images can serve as a baseline, allowing deviations from the baseline characteristics for pharmaceutical package images associated with various pharmaceutical packaging system images to be recognized by comparison with the baseline image. In accordance with various embodiments of the inventive concepts, the characteristics can include one or more image capture light source characteristics, one or more image capture surface characteristics, one or more packaging material characteristics, and / or one or more camera characteristics. The one or more light source characteristics can include, for example, the strength of an image capture light source, the intensity of the image capture light source, and / or the position of the image capture light source. The one or more image capture surface characteristics can include a background position and / or a background color. The one or more packaging material characteristics can include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots.The one or more camera characteristics may include a camera number, a camera position, a camera resolution, and / or a camera image type. Next, in block 610, the AI engine 245 and / or the multi-packaging system convolutional neural network 310 may generate a modified image of the pharmaceutical packaging based on the characteristics of the pharmaceutical packaging system.
[0058] As described above, embodiments of the inventive concept, through the hybrid packaging system module 242C, the hybrid packaging system module 247C, and the multi-packaging system convolutional neural network 310, may provide an AI-assisted pharmaceutical package analysis system that can be used to account for differences between different pharmaceutical packaging systems. Accordingly, embodiments of the inventive concept may be used to process images of pharmaceutical packaging from different pharmaceutical packaging systems and generate respective modified images based on characteristics of the different pharmaceutical packaging systems. Referring now to FIG. 7, operations begin at block 700, where the AI engine 245 and / or the multi-packaging system convolutional neural network 310 receives a first image of a pharmaceutical package. At block 705, features of the first image associated with a first of the plurality of pharmaceutical packaging systems may be detected using the AI engine 245 and / or the multi-packaging system convolutional neural network 310. Next, in block 710, the AI engine 245 and / or the multi-packaging system convolutional neural network 310 may generate a first modified image of the pharmaceutical package based on the features of a first of the plurality of pharmaceutical packaging systems. In block 715, the AI engine 245 and / or the multi-packaging system convolutional neural network 310 may further receive a second image of the pharmaceutical package. In block 720, features of the second image associated with a second of the plurality of pharmaceutical packaging systems may be detected using the AI engine 245 and / or the multi-packaging system convolutional neural network 310. Next, in block 725, the AI engine 245 and / or the multi-packaging system convolutional neural network 310 may generate a second modified image of the pharmaceutical package based on the features of the second of the plurality of pharmaceutical packaging systems.Similar to the embodiment of FIG. 6, the characteristics of various ones of the plurality of pharmaceutical packaging systems may include one or more image capture light source characteristics, one or more image capture surface characteristics, one or more packaging material characteristics, and / or one or more camera characteristics. The one or more light source characteristics may include, for example, image capture light source strength, image capture light source intensity, and / or image capture light source position. The one or more image capture surface characteristics may include background position and / or background color. The one or more packaging material characteristics may include packaging material transparency, packaging material shadow, label color, packaging material color, and / or packaging material hot spots. The one or more camera characteristics may include camera number, camera position, camera resolution, and / or camera image type.
[0059] Embodiments of the inventive concepts may provide one or more AI systems that may facilitate verification of the contents of a pharmaceutical package by generating the modified image of the pharmaceutical packaging based on characteristics of the pharmaceutical packaging system, generating a modified image of the pharmaceutical package with label content removed from one or more surfaces thereof, detecting in the pharmaceutical packaging image individual pharmaceuticals of one or more pharmaceuticals contained in the pharmaceutical package, and / or identifying those pharmaceuticals detected in the pharmaceutical package image. The accuracy of embodiments for verifying the contents of a pharmaceutical package with label content at least partially removed, including detecting individual pharmaceuticals of one or more pharmaceuticals in a pharmaceutical package and identifying those identified pharmaceuticals by name, may be further improved through considering particular characteristics of the pharmaceutical packaging system used to package the pharmaceuticals when analyzing the pharmaceutical package image. Embodiments for generating a modified image of a pharmaceutical package having label content removed from one or more surfaces thereof, detecting within the pharmaceutical package image one or more individual pharmaceuticals contained within the pharmaceutical package, and / or identifying those pharmaceuticals detected within the pharmaceutical package image are described below and in U.S. patent application Ser. No. 17 / 649,208, filed Jan. 28, 2022, entitled "METHODS, SYSTEMS, AND COMPUTER PROGRAM PRODUCT FOR REMOVING EXTRANEOUS CONTENT FROM DRUG PRODUCT PACKAGING TO FACILITATE VALIDATION OF THE CONTENTS THEREIN," the contents of which are incorporated herein by reference.
[0060] Referring now to FIG. 8 , a multi-packaging system convolutional neural network 310 may receive an image of a pharmaceutical package having label content displayed on its surface. The label content may include, but is not limited to, commercial marketing information, patient identification information, and / or personal healthcare information (PHI). The commercial marketing information may include, for example, a logo and / or a business name. The patient identification information may include, for example, a patient name, a patient telephone number, a patient address, and / or a patient identification number. The personal healthcare information may include, for example, the names of one or more medications contained in the pharmaceutical package, the administration time of each of the one or more medications, one or more barcodes associated with the one or more medications, a prescription order, a patient account, an identification number, and / or other information. In block 800, the label content on the surface of the pharmaceutical package may be detected using the multi-packaging system convolutional neural network 310. The multi-packaging system convolutional neural network 310 may then generate, in block 805, the modified image of the pharmaceutical package with the label content removed from its surface.
[0061] As described above, the pharmaceutical package image may undergo pre-processing to perform various corrections on the image data. Referring now to FIGS. 4 and 9, the operations begin at block 900, where the gamma correction module 405 performs gamma correction on the pharmaceutical package image to generate a gamma-corrected image. While one or more cameras may darken the image, the gamma correction may brighten the image, allowing the multi-packaging system convolutional neural network 310 to better recognize the edges of various elements displayed in the image. Gamma correction may be implemented as a power law transform, except for low luminance, which may be linear to avoid infinite derivatives at zero luminance. This is the classic nonlinearity applied to encode SDR images. The exponent, or "gamma," may have a value of 0.45, but due to the linear portion of the curve below, the final gamma correction function may be closer to a power-low exponent of 0.5, i.e., a square root transformation; therefore, the gamma correction may conform to the DeVries-Rose law of brightness perception. In block 905, a Gaussian blur denoising module 410 is used to perform Gaussian blur denoising on the gamma-corrected image to produce a noise-reduced image. The Gaussian blur denoising module or filter 410 may be a linear filter. It may be used to blur the image and / or reduce noise. Two Gaussian blur denoising filters 410 may be used so that their outputs are subtracted for "unsharp masking" (edge detection). The Gaussian blur denoising module or filter 410 may blur edges and reduce contrast. A median filter is a non-linear filter that can be used as a method to reduce noise in an image. In block 910, the automatic image thresholding module 415 can perform automatic image thresholding on the noise-reduced image to generate an image with separated foreground and background. Thresholding is a technique used in image segmentation applications.The thresholding involves selecting a desired gray-level threshold to separate an object of interest in an image from the background based on the gray-level distribution. Otsu's method is a type of global thresholding that relies only on the gray values of the image. Otsu's method is a global threshold selection method that involves calculating a gray-level histogram. When applied in only one dimension, the image may not be adequately segmented. A two-dimensional Otsu method can be used that is based on both the gray-level threshold of each pixel and spatial correlation information with the surrounding neighborhood. As a result, when applied to noisy images, Otsu's method can provide satisfactory segmentation. The output image from the preprocessing module of FIG. 4 can be applied to a pharmaceutical package correction engine, such as the multi-packaging system convolutional neural network 310 of FIG. 3.
[0062] 10 , at block 1000, the pharmaceutical package image may be further processed to facilitate verification of the contents therein by detecting individual pharmaceuticals of one or more pharmaceuticals in the modified image with label content removed from its surface. The detection may be performed using an AI engine, such as AI engine 245 described above with respect to FIG. 2 , based on the modified pharmaceutical package image with labeling content removed from its surface, along with order information for one or more pharmaceuticals contained in the pharmaceutical package and / or an identifier for the pharmaceutical package. At block 1005, the AI engine may generate a second modified image of the pharmaceutical package, the second modified image including indicia that distinguish the individual pharmaceuticals of the pharmaceuticals and associate the pharmaceuticals with the order information and the identifier for the pharmaceutical package. In some embodiments, bounding boxes may be used as indicia that distinguish the individual pharmaceuticals of the pharmaceuticals.
[0063] Referring now to FIG. 11 , at block 1100, the pharmaceutical package image may be further processed to facilitate verification of its contents by identifying at least a portion of one or more pharmaceuticals in the second modified image having the detected pharmaceuticals based on the names of the one or more pharmaceuticals. The identification may be performed using an AI engine, such as AI engine 245 described above with respect to FIG. 2, based on the modified pharmaceutical package image including the detected pharmaceuticals and order information (including the names of the one or more pharmaceuticals in the pharmaceutical package). In accordance with some embodiments of the inventive concepts, the names may be associated with pharmaceutical attributes in a reference database. These attributes include, but are not limited to, the pharmaceutical's shape, color, one or more etchings, one or more imprints, weight, and / or one or more labels. The identified one or more pharmaceuticals may further include identification of debris resulting from damage to the pharmaceutical, such as, for example, powdering all or part of the pharmaceutical. Identification of the one or more medications by name in the medication package image, along with identification of parts of the medication and packaging debris, may facilitate generating a count of the medications in the medication package for use in verifying the contents of the medication package. While the medication package image may be annotated with the determined names of the one or more medications, there may be situations in which the AI engine is unable to determine the names of one or more medications in the medication package image. In cases where the names of only one or a few medications could not be determined, these medications may be annotated with new or previously unseen temporary names or National Drug Codes (NDCs).
[0064] According to some embodiments of the inventive concepts, the operations described above with respect to Figures 8-11 may be supplemented by basing the modified image generated by AI system 245 and / or multi-packaging system convolutional neural network on characteristics of the pharmaceutical packaging system used to package the pharmaceutical for use in distinguishing between verifying the contents of the pharmaceutical package.
[0065] Referring now to Figure 12, a data processing system 1200 that may be used to implement one or more pharmaceutical package image analysis engine servers 155 of Figure 1 according to some embodiments of the inventive concepts includes one or more input devices 1202, such as a keyboard or keypad, a barcode scanner or RFID reader, a display 1204, and memory 1206 in communication with a processor 1208. The data processing system 1200 may further include a storage system 1210, a speaker 1212, and one or more input / output (I / O) data ports 1214 that also communicate with the processor 1208. The processor 1208 may be, for example, a commercially available or custom microprocessor. The storage system 1210 may include removable and / or fixed media, such as a floppy disk, ZIP drive, or hard disk, as well as virtual storage, such as a RAMDISK. One or more I / O data ports 1214 may be used to transfer information between data processing system 1200 and other computer systems or networks (e.g., the Internet). These components may be conventional components, e.g., components used in many conventional computing devices, and their functions for conventional operation are generally known to those skilled in the art. Memory 1206 may be configured with computer-readable program code 1216 for facilitating AI-assisted pharmaceutical package analysis to verify the contents of pharmaceutical packages while taking into account variations in the characteristics of pharmaceutical packaging systems, in accordance with some embodiments of the inventive concepts.
[0066] FIG. 13 illustrates memory 1305 that may be used in embodiments of a data processing system, such as one or more pharmaceutical package analysis engine servers 155 of FIG. 1 and data processing system 1200 of FIG. 12, respectively, to facilitate AI-assisted pharmaceutical package analysis to verify the contents of pharmaceutical packages while accounting for differences in pharmaceutical packaging system features, in accordance with some embodiments of the inventive concepts. Memory 1305 is representative of one or more memory devices containing software and data used to facilitate the operation of one or more pharmaceutical package analysis engine servers 155 and one or more pharmaceutical package analysis engine modules 160, as described herein. Memory 1305 may include, but is not limited to, the following types of devices: cache, ROM, PROM, EPROM, EEPROM, flash, SRAM, and DRAM. As shown in FIG. 13, memory 1305 may include five or more categories of software and / or data: operating system 1310, pharmaceutical package processing and one or more analysis engine modules 1325, and communications module 1340. In particular, the operating system 1310 may manage software and / or hardware resources of the data processing system and coordinate the execution of programs by the processor. The one or more pharmaceutical package processing and analysis engine modules 1325 may include a machine learning engine module 1330 and an AI engine module 1335. The machine learning engine module 1330 may be configured to perform one or more of the operations described above with respect to the machine learning engine 240, the convolutional neural network 310, and the flowchart diagrams of Figures 6-11. The AI engine module 1325 may be configured to perform one or more of the operations described above with respect to the AI engine 245, the multi-packaging system convolutional neural network 310, and the flowchart diagrams of Figures 6-11. The communications module 1340 may be configured to support communications between, for example, the one or more pharmaceutical package analysis engine servers 155 and, for example, a pharmaceutical package verification system.
[0067] While Figures 12-13 illustrate hardware / software architectures that may be used in data processing systems, such as one or more pharmaceutical package analysis engine servers 155 of Figure 1 and data processing system 1200 of Figure 12, respectively, in accordance with some embodiments of the inventive concepts, it will be understood that embodiments of the present invention are not limited to such configurations and are intended to encompass any configuration capable of performing the operations described herein.
[0068] Computer program code for carrying out operations of the data processing systems described above with respect to Figures 1-13 may, for development convenience, be written in a high-level programming language, such as Python, Java, C, and / or C++. In addition, computer program code for carrying out operations of the present invention may also be written in other programming languages, such as, but not limited to, interpreted languages. Some modules or routines may also be written in assembly language or microcode to enhance performance and / or memory usage. It will be further understood that the functionality of any or all of the program modules may also be implemented using discrete hardware components, one or more application-specific integrated circuits (ASICs), or programmed digital signal processors or microcontrollers.
[0069] Moreover, the functionality of one or more medication package analysis engine servers 155 of Figure 1 and data processing system 1200 of Figure 12 may each be implemented as a single processor system, a multi-processor system, a multi-core processor system, or a network of standalone computer systems in accordance with various embodiments of the inventive concepts. Each of these processors / computer systems may be referred to as a "processor" or a "data processing system."
[0070] The data processing devices described herein with respect to Figures 1-13 may be used to facilitate AI-assisted pharmaceutical package analysis to verify the contents of pharmaceutical packages while taking into account differentiating characteristics of pharmaceutical packaging systems, in accordance with some embodiments of the inventive concepts described herein. These devices are operable to receive, transmit, process, and store data using any suitable combination of software, firmware, and / or hardware, and may be standalone or embodied as one or more enterprise, application, personal, broadband, and / or embedded computer systems and / or devices that may be interconnected by public and / or private, real and / or virtual, wired and / or wireless networks, including all or part of the global communications network known as the Internet, and may include various types of tangible, non-transitory computer-readable media. In particular, memory 1305, when coupled to a processor, includes computer-readable program code that, when executed by the processor, causes the processor to perform operations, including one or more of the operations described herein with respect to Figures 1-13.
[0071] As described above, embodiments of the inventive concepts may provide an AI-assisted pharmaceutical package analysis system that may use AI techniques, such as convolutional neural networks, to verify the contents of pharmaceutical packaging, such as pouches or blister cards, while accounting for differences in the characteristics of different pharmaceutical packaging systems that may affect the verification process, for example, due to differences in the physical packaging used and differences in the image capture systems used by different pharmaceutical packaging systems to capture images of the pharmaceutical packaging. According to some embodiments of the inventive concepts, the AI system may be trained to account for differences in the characteristics of pharmaceutical packaging systems while modifying images of the pharmaceutical package to facilitate verification of the content contained therein. For example, an AI system according to some embodiments of the inventive concepts may use a convolutional neural network to detect label content on the surface of the pharmaceutical package and generate a modified image of the pharmaceutical package with the label content removed, and one or more machine learning engines to detect and identify the pharmaceutical product contained in the pharmaceutical package. This may improve the accuracy of the package verification process, for example, before a pharmacy or medical center releases the packaged pharmaceutical product to a customer or patient.
[0072] Further definitions and embodiments:
[0073] In the foregoing description of various embodiments of the present disclosure, aspects of the present disclosure may be illustrated and described herein in any of numerous patentable classes or contexts, encompassing any new and useful process, machine, manufacture, or composition of matter, or any new and useful improvement thereof. Accordingly, aspects of the present disclosure may be implemented entirely in hardware, entirely in software (including firmware, resident software, microcode, etc.), or a combination of software and hardware implementations, all of which may be generally referred to herein as "circuits," "modules," "components," or "systems." Moreover, aspects of the present disclosure may take the form of a computer program product including one or more computer-readable media having computer-readable program code embodied thereon.
[0074] Any combination of one or more computer-readable media may be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, i.e., flash memory), a suitable optical fiber with repeaters, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this specification, a computer-readable storage medium may be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0075] A computer-readable signal medium may include a propagated data signal having computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium is not a computer-readable storage medium, but may be any computer-readable medium capable of communicating, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable signal medium may be transmitted using any suitable medium, for example, wireless, wired, fiber optic cable, RF, etc., or any suitable combination of those described above.
[0076] Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc.; conventional procedural programming languages such as the "C" programming language, Visual Basic, Fortran 2003, Perl, COBOL 2002, PHP, ABAP; dynamic programming languages such as Python, Ruby, Groovy; or other programming languages. The computer program code may execute entirely on a user's computer as a standalone software package, partially on a user's computer as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including, for example, a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider) or in a cloud computing environment, or may be provided as a service, for example, Software as a Service (SaaS).
[0077] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, and the instructions, executed by the processor of the computer or other programmable instruction execution device, can create a machine such that it generates mechanisms for implementing the functions / acts specified in one or more blocks of the flowchart illustrations and / or block diagrams.
[0078] These computer program instructions may also be stored in a computer-readable medium and, when executed, direct a computer, other programmable data processing device, or other device to function in a particular manner to create an article of manufacture comprising instructions that cause the computer to perform one or more specified functions / acts in the flowchart illustrations and / or block diagrams. The computer program instructions may also be loaded into a computer, other programmable instruction execution device, or other device to cause a series of operational steps to be executed on the computer, other programmable device, or other device to produce a computer-implemented process, thus providing a process for implementing the function(s) / act(s) specified in one or more blocks of the flowchart illustrations and / or block diagrams.
[0079] The flowchart diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products or computer programs according to various embodiments of the present invention. In this regard, each block in the flowchart diagrams or block diagrams may represent a module, segment, or portion of instructions, which includes one or more executable instructions for implementing one or more specified logical functions. It should also be noted that in some alternative implementations, the functions depicted in the block diagrams may occur out of the order depicted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially simultaneously, or the blocks may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, can be implemented by a special-purpose hardware-based system that performs the specified functions or acts, or a combination of special-purpose hardware and computer instructions.
[0080] The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the disclosure. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. As used herein, the words "comprises," "comprising," "include," "including," "includes," "have," "has," "having," or variations thereof, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. As used herein, the word "and / or" includes any and all combinations of one or more of the associated listed items. Like reference numbers refer to like elements throughout the description of the figures.
[0081] It will also be understood that although terms such as first, second, etc. may be used herein to describe various elements, these elements are not intended to be limited by these terms; these terms are merely used to distinguish one element from another.
[0082] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, e.g., those defined in commonly used dictionaries, should be interpreted to have a meaning consistent with their meaning in the context of this application and the related art, and should not be interpreted in an idealized or overly formal sense unless expressly defined as such herein. Well-known functions or structures may not be described in detail for the sake of brevity and / or clarity.
[0083] The description of the present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or to limit the disclosure in the form disclosed. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the present disclosure. The aspects of the present disclosure herein have been chosen and described to best explain the principles and practical applications of the present disclosure and to enable others skilled in the art to understand the disclosure with various modifications suited to the particular uses contemplated. The present disclosure may be configured as follows. [Section 1] receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a pharmaceutical packaging system using an artificial intelligence engine; and generating a modified image of the pharmaceutical package based on characteristics of the pharmaceutical packaging system; A method comprising: [Section 2] Item 10. The method of claim 1, wherein the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features. [Section 3] Item 3. The method of item 2, wherein the one or more light source characteristics include a strength of an image capture light source, an intensity of the image capture light source, and / or a position of the image capture light source. [Section 4] Item 3. The method of item 2, wherein the one or more image capture surface features include background position and / or background color. [Section 5] Item 3. The method of item 2, wherein the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots. [Section 6] Item 3. The method of item 2, wherein the one or more camera characteristics include a camera number, a camera position, a camera resolution, and / or a camera image type. [Section 7] the image is a first image, the pharmaceutical package is a first pharmaceutical package, and the modified image is a first modified image; wherein detecting the feature of the first image using the artificial intelligence engine includes detecting the feature of the first image associated with a first of a plurality of pharmaceutical packaging systems using the artificial intelligence engine; and wherein generating the first modified image includes generating the first modified image of the first pharmaceutical package based on characteristics of the first of the plurality of pharmaceutical packaging systems. The method described in item 1. [Section 8] receiving a second image of a second pharmaceutical package containing one or more pharmaceutical products; detecting, using the artificial intelligence engine, features of the second image associated with a second one of the plurality of pharmaceutical packaging systems; and generating a second modified image of the second pharmaceutical package based on characteristics of the second one of the plurality of pharmaceutical packaging systems; Item 8. The method according to Item 7, further comprising: [Section 9] detecting label content on the surface of said pharmaceutical package using an artificial intelligence engine; Further comprising: wherein generating the modified image of the pharmaceutical package includes generating the modified image of the pharmaceutical package with the label content removed from the surface. The method described in item 1. [Section 10] the artificial intelligence engine is a first artificial intelligence engine, and the modified image is a first modified image; The method comprises: receiving order information for the one or more pharmaceutical products and an identifier for the pharmaceutical product package; detecting individual pharmaceuticals of the one or more pharmaceuticals in the first modified image using a second artificial intelligence engine; and generating a second modified image of the pharmaceutical package including indicia that distinguish the individual pharmaceuticals of the one or more pharmaceuticals and associate the one or more pharmaceuticals with the order information and the identifier for the pharmaceutical package; Item 10. The method of item 9, further comprising: [Section 11] the order information includes a name for the one or more medications in the medication package; The method comprises: identifying at least a portion of the one or more pharmaceutical products in the second modified image based on the names of the one or more pharmaceutical products using a third artificial intelligence engine; Further comprising: wherein the name is associated with drug attributes in a reference database. The method according to item 10. [Section 12] responsive to receiving the image of the pharmaceutical package, performing gamma correction on the image of the pharmaceutical package to generate a gamma corrected image of the pharmaceutical package; performing Gaussian blur denoising on the gamma corrected image of the pharmaceutical package to generate a noise-reduced image of the pharmaceutical package; and performing automatic image thresholding on the noise-reduced image of the pharmaceutical package to generate a foreground and background separated image of the pharmaceutical package; Further comprising: wherein detecting the label content using the artificial intelligence engine comprises: Detecting the label content on the surface of the foreground and background separated image of the pharmaceutical package using the artificial intelligence engine. Including, The method described in item 1. [Section 13] 1. A system comprising: a processor; and a memory coupled to the processor wherein the memory includes computer readable program code embodied in the memory executable by the processor to execute instructions; The instruction: receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a pharmaceutical packaging system using an artificial intelligence engine; and generating a modified image of the pharmaceutical package based on characteristics of the pharmaceutical packaging system; Including, The system. [Section 14] Item 14. The system of item 13, wherein the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features. [Section 15] Item 15. The system of item 14, wherein the one or more light source characteristics include a strength of an image capture light source, an intensity of the image capture light source, and / or a position of the image capture light source. [Section 16] Item 15. The system of item 14, wherein the one or more image capture surface features include background position and / or background color. [Section 17] Item 15. The system of item 14, wherein the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots. [Section 18] Item 15. The system of item 14, wherein the one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type. [Section 19] the image is a first image, the pharmaceutical package is a first pharmaceutical package, and the modified image is a first modified image; wherein detecting the feature of the first image using the artificial intelligence engine includes detecting the feature of the first image associated with a first of a plurality of pharmaceutical packaging systems using the artificial intelligence engine; and wherein generating the first modified image includes generating the first modified image of the first pharmaceutical package based on characteristics of the first of the plurality of pharmaceutical packaging systems. Item 14. The system according to item 13. [Section 20] The instruction: receiving a second image of a second pharmaceutical package containing one or more pharmaceutical products; detecting, using the artificial intelligence engine, features of the second image associated with a second one of the plurality of pharmaceutical packaging systems; and generating a second modified image of the second pharmaceutical package based on characteristics of the second one of the plurality of pharmaceutical packaging systems; 20. The system of claim 19, further comprising: [Section 21] 1. A computer program product, comprising: Non-transitory computer-readable storage medium wherein the non-transitory computer-readable storage medium includes computer-readable program code embodied therein that is executable by the processor to execute instructions; The instruction: receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a pharmaceutical packaging system using an artificial intelligence engine; and generating a modified image of the pharmaceutical package based on characteristics of the pharmaceutical packaging system; Including, The computer program product.
Claims
1. receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a first pharmaceutical packaging system of a plurality of pharmaceutical packaging systems and distinguishing the first pharmaceutical packaging system from a plurality of other pharmaceutical packaging systems using an artificial intelligence engine trained with a plurality of pharmaceutical packaging system-specific feature sets associated with each of the plurality of pharmaceutical packaging systems; and generating a modified image of the pharmaceutical package based on the characteristics of the image associated with the first pharmaceutical packaging system; A method comprising:
2. 10. The method of claim 1, wherein the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features.
3. The method of claim 2 , wherein the one or more light source characteristics include a strength of an image capture light source, an intensity of the image capture light source, and / or a position of the image capture light source.
4. The method of claim 2 , wherein the one or more image capture surface features include a background position and / or a background color.
5. The method of claim 2 , wherein the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots.
6. The method of claim 2 , wherein the one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type.
7. the image is a first image, and the modified image is a first modified image; The method comprises: receiving a second image of a second pharmaceutical package containing one or more pharmaceutical products; detecting, using the artificial intelligence engine, features of the second image that are associated with a second pharmaceutical packaging system of the plurality of pharmaceutical packaging systems and that distinguish the second pharmaceutical packaging system from the other pharmaceutical packaging systems of the plurality of pharmaceutical packaging systems; and generating a second modified image of the second pharmaceutical package based on characteristics of the second image associated with the second pharmaceutical packaging system; The method of claim 1 further comprising:
8. detecting label content on the surface of the pharmaceutical package using the artificial intelligence engine; Further comprising: wherein generating the modified image of the pharmaceutical package includes generating the modified image of the pharmaceutical package with the label content removed from the surface. The method of claim 1.
9. the artificial intelligence engine is a first artificial intelligence engine, and the modified image is a first modified image; The method comprises: receiving order information for the one or more pharmaceutical products and an identifier for the pharmaceutical product package; Detecting individual pharmaceuticals of the one or more pharmaceuticals in the first modified image using a second artificial intelligence engine; and generating a second modified image of the pharmaceutical package including indicia that distinguish the individual pharmaceuticals of the one or more pharmaceuticals and associate the one or more pharmaceuticals with the order information and the identifier for the pharmaceutical package; The method of claim 8 further comprising:
10. the order information includes a name for the one or more medications in the medication package; The method comprises: and identifying at least a portion of the one or more pharmaceutical products in the second modified image based on the names of the one or more pharmaceutical products using a third artificial intelligence engine. Further comprising: wherein the name is associated with drug attributes in a reference database.
10. The method of claim 9.
11. responsive to receiving the image of the pharmaceutical package, performing gamma correction on the image of the pharmaceutical package to generate a gamma corrected image of the pharmaceutical package; performing Gaussian blur denoising on the gamma corrected image of the pharmaceutical package to generate a noise-reduced image of the pharmaceutical package; and performing automatic image thresholding on the noise-reduced image of the pharmaceutical package to generate a foreground and background separated image of the pharmaceutical package; Further comprising: wherein detecting the label content comprises: detecting the label content on the surface of the foreground and background separated image of the pharmaceutical package; Including, The method of claim 8.
12. 1. A system comprising: a processor; and a memory coupled to the processor wherein the memory includes computer readable program code embodied in the memory executable by the processor to execute instructions; The instruction: receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a first pharmaceutical packaging system of a plurality of pharmaceutical packaging systems and distinguishing the first pharmaceutical packaging system from a plurality of other pharmaceutical packaging systems using an artificial intelligence engine trained with a plurality of pharmaceutical packaging system-specific feature sets associated with each of the plurality of pharmaceutical packaging systems; and generating a modified image of the pharmaceutical package based on the characteristics of the image associated with the first pharmaceutical packaging system; Including, The system.
13. 13. The system of claim 12, wherein the features of the pharmaceutical packaging system include one or more image capture light source features, one or more image capture surface features, one or more packaging material features, and / or one or more camera features.
14. The system of claim 13 , wherein the one or more light source characteristics include a strength of an image capture light source, an intensity of the image capture light source, and / or a position of the image capture light source.
15. The system of claim 13 , wherein the one or more image capture surface features include a background position and / or a background color.
16. The system of claim 13 , wherein the one or more packaging material characteristics include packaging material transparency, packaging material shading, label color, packaging material color, and / or packaging material hot spots.
17. The system of claim 13 , wherein the one or more camera characteristics include a camera number, a camera location, a camera resolution, and / or a camera image type.
18. the image is a first image, and the modified image is a first modified image; The instruction: receiving a second image of a second pharmaceutical package containing one or more pharmaceutical products; detecting, using the artificial intelligence engine, features of the second image that are associated with a second pharmaceutical packaging system of the plurality of pharmaceutical packaging systems and that distinguish the second pharmaceutical packaging system from the other pharmaceutical packaging systems of the plurality of pharmaceutical packaging systems; and generating a second modified image of the second pharmaceutical package based on characteristics of the second image associated with the second pharmaceutical packaging system; The system of claim 12 further comprising:
19. 1. A computer-readable storage medium, comprising: receiving an image of a pharmaceutical package containing one or more pharmaceutical products; detecting features of the image associated with a first pharmaceutical packaging system of a plurality of pharmaceutical packaging systems and distinguishing the first pharmaceutical packaging system from a plurality of other pharmaceutical packaging systems using an artificial intelligence engine trained with a plurality of pharmaceutical packaging system-specific feature sets associated with each of the plurality of pharmaceutical packaging systems; and generating a modified image of the pharmaceutical package based on the characteristics of the image associated with the first pharmaceutical packaging system; a program for causing a processor to execute the The computer-readable storage medium.
20. A computer program causing a processor to carry out the steps of the method according to any one of claims 1 to 11.
21. A computer program readable medium having recorded thereon the computer program of claim 20.
Citation Information
Patent Citations
Medicine inspection device
JP2020121057A