Medicine identification system

The drug identification system addresses the issue of partial cuts and attachments in drug images by registering only standard feature amounts, ensuring accurate identification and allowing for updates to the feature list, thus improving drug recognition.

JP2024127141APending Publication Date: 2024-09-20CONTEC CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023036082
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-09
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing drug identification systems struggle to accurately identify drugs when the photographed image is partially cut or has attachments, as the extracted feature values do not match the registered drug feature list, leading to incorrect identification.

Method used

A drug identification system that includes a selection unit to register appropriate feature amounts by ensuring they meet predetermined standard image criteria, such as no chips or attachments, and updates the feature list with new feature amounts for improved identification accuracy.

Benefits of technology

The system ensures accurate drug identification by registering only feature amounts from standard images, enhancing the system's ability to identify drugs with partial cuts or attachments, and allowing for the inclusion of new drugs through user input, thereby improving overall identification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024127141000001
    Figure 2024127141000001
Patent Text Reader

Abstract

To enable appropriate feature amount registration in a feature amount list in a medicine identification system using image recognition.SOLUTION: A photographing unit 12 photographs a photographic image of a medicine 15. A medicine identification unit 30 identifies the medicine 15 shown in the photographic image. The medicine identification unit 30 includes an extraction unit 34 that extracts a feature amount from the photographic image. A feature amount list 22 lists a known feature amount corresponding to a known medicine. A selection unit 24 registers, when the feature amount extracted by the extraction unit 34 is outside an approximate range of the known feature amount, the feature amount in the feature amount list 22 as a new feature amount corresponding to the medicine 15 identified by the medicine identification unit 30.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a medicine identification system that identifies a medicine by performing image recognition on a photographed image of the medicine. [Background technology]

[0002] In facilities that handle medicines, such as pharmacies, mechanical identification of medicines is sometimes required. For example, a device that performs mechanical identification of medicines (medicine inspection device) may be used to determine whether or not the medicines stocked based on a prescription actually match the contents of the prescription by a party other than the operator (such as a pharmacist). Using such a device can prevent operational errors when dispensing medicines to patients.

[0003] Patent Document 1 describes a drug identification system that identifies a drug by performing image recognition on a captured image of the drug. In the drug identification system described in Patent Document 1, a feature value extraction unit extracts feature values ​​from a captured image using an AI model. This AI model has previously learned an algorithm for extracting feature values ​​from a captured image. The drug identification unit then identifies the drug contained in the captured image based on a comparison between a drug feature list in which feature values ​​corresponding to known drugs are listed and the feature values ​​of the captured image extracted by the feature value extraction unit. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2023-005928 A Summary of the Invention [Problem to be solved by the invention]

[0005] The drug identification system described in Patent Document 1 is also capable of registering, in the drug characteristic list, the characteristic values ​​of an unknown drug that cannot be identified by identification based on a comparison between the extracted characteristic values ​​and the drug characteristic list.

[0006] However, depending on the state of the captured image, there are cases where the feature value (feature amount) of an unknown drug should not be registered in the drug feature list. For example, if the drug shown in the captured image is a scrap of drug that has been cut off from a sheet of drug, the feature amount extracted from the captured image should not be registered in the drug feature list. Even if the feature amount of the scrap of drug is registered in the drug feature list, the feature amount will be different from the feature amount extracted from a captured image showing the entire sheet of drug. Therefore, even if the feature amount of the scrap of drug is registered in the drug feature list, the drug identification system cannot use the feature amount to identify the entire sheet of drug.

[0007] In addition, even if a drug has an attachment such as a rubber band attached, the feature amount extracted from the photographed image of the drug with the attachment attached should not be registered in the drug feature list. Even if the feature amount extracted from the photographed image of the drug with the attachment attached is registered in the drug feature list, the drug identification system cannot use the feature amount to identify drugs without the attachment attached.

[0008] In view of the above problems, the present invention has an objective of providing a drug identification system that identifies a drug by performing image recognition on an image of the drug, and that is capable of registering appropriate features in a feature list. [Means for solving the problem]

[0009] In order to solve the above problems, a drug identification system as an example of an embodiment of the present invention is a drug identification system that identifies drugs, and is equipped with an imaging unit that captures an image of the drug, a drug identification unit that identifies the drug appearing in the captured image, a feature list in which known features corresponding to known drugs are registered, and a selection unit that selects data to be registered in the feature list, wherein the drug identification unit has an extraction unit that extracts features from the captured image, and the selection unit is capable of registering the features in the feature list as new features corresponding to the drug identified by the drug identification unit when the features extracted by the extraction unit have been extracted from the captured image that meets predetermined standard image criteria.

[0010] Also preferably, the standard image standard includes at least one of information on a standard shape of the medicine, information on a standard size of the medicine, and information on a standard quantity of the medicine.

[0011] In addition, preferably, when the feature extracted by the extraction unit is outside the approximate range of the known feature and when the feature has been extracted from the captured image that satisfies predetermined standard image criteria, the selection unit registers the feature in the feature list as a new feature corresponding to the drug identified by the drug identification unit.

[0012] In addition, preferably, when the feature extracted by the extraction unit is extracted from the captured image including an identification index indicating the identification information of the drug, and when the feature is extracted from the captured image satisfying predetermined standard image criteria, the selection unit registers the feature in the feature list as a new feature corresponding to the drug identified by the drug identification unit.

[0013] Also preferably, there is provided a drug identification device including the drug identification unit, and a server communicating with a plurality of the drug identification devices and including the feature list, wherein each of the plurality of drug identification devices is capable of transmitting the feature extracted by the extraction unit of the drug identification unit to the server, and the server is capable of transmitting the feature list to the drug identification device, and when a first feature transmitted from a first drug identification device among the drug identification devices to the server is registered in the feature list as a new feature corresponding to a first drug, the drug identification units of the drug identification devices other than the first drug identification device are capable of identifying the first drug corresponding to the first feature by receiving the feature list from the server. Effect of the Invention

[0014] According to the medicine identification system as one example of an embodiment of the present invention, appropriate feature amounts extracted from a captured image that satisfies a standard image criterion are registered in a feature amount list. [Brief description of the drawings]

[0015] [Figure 1] 1 is a block diagram showing a schematic configuration of a medicine identification system as an example of an embodiment according to the present invention. [Diagram 2] 1 is a flowchart showing a flow of identifying medicines. [Diagram 3] FIG. 4 is a diagram showing an example of data transmitted to a sorting unit. [Figure 4] FIG. 4 is a diagram showing an example of a feature amount list. [Diagram 5] 11 is a flowchart showing a flow of feature selection.

[0016] The block diagram of Fig. 1 shows a schematic configuration of a medicine identification system 10 as an example of an embodiment of the present invention. As an example of a medicine to be identified in this medicine identification system 10, Fig. 1 shows a PTP sheet 16 (PTP: Press Through Package) containing a tablet 17.

[0017] In the PTP sheet 16 of Fig. 1, 10 tablets are included in one sheet. The front surface (front side surface) of the PTP sheet 16 is shown in Fig. 1. The front surface is the surface where individual tablets 17 can be seen from the outside through a transparent pocket portion.

[0018] FIG. 1 also shows a PTP sheet 18 including an identification indicator 19. The identification indicator 19 is a kind of mark that indicates the identification information of the tablet (medicine) contained in the PTP sheet 18 by external characteristics such as a character string, a figure, a pattern, or a shape, or a color. The identification information is information that specifies the type of medicine, such as a product name or a product code number. Examples of the identification indicator 19 include a barcode or a two-dimensional code that indicates the identification information of the medicine. Alternatively, a character string indicating the name of the medicine may be used as the identification indicator 19. The back side (rear surface) of the PTP sheet 18 is shown in FIG. 1. The back side is a surface on which individual tablets cannot be seen from the outside. The back side of the PTP sheet 18 is marked with an identification indicator 19, such as a mark such as a barcode or a character string indicating the name of the medicine.

[0019] Hereinafter, an assembly of a plurality of medicines and medicine packaging covering the medicines, such as the PTP sheet 16 and the PTP sheet 18, will be collectively referred to as a medicine. In addition, in this embodiment, the PTP sheet 16 and the PTP sheet 18 to be identified by the medicine identification system 10 will be collectively referred to as a medicine 15.

[0020] The drug identification system 10 shown in Fig. 1 includes a drug identification device 11 and a server 20. The drug identification device 11 is a device disposed in a facility where the drug 15 is identified, for example, a pharmacy. The drug identification device 11 includes an imaging unit 12 that captures an image of the drug 15, and a drug identification unit 30 that identifies the drug 15 shown in the image captured by the imaging unit 12. The drug identification device 11 also includes a communication unit 14 that communicates with the server 20, a storage unit 40 that stores various information, a display unit 51 that displays information to a user, and an input unit 52 that accepts input from the user.

[0021] These components of the drug identification device 11 may be incorporated together in one device, or may be distributed across multiple devices. For example, the drug identification device 11 may be constructed on a single smartphone, with the smartphone screen as the display unit 51, the camera incorporated in the smartphone as the photographing unit 12, and the smartphone's memory and processor as other components. Alternatively, the drug identification device 11 may be constructed on a network (such as the Internet), with multiple devices connected via the network each functioning as one of the components, allowing users to use the drug identification device 11 from devices in various locations.

[0022] The server 20 is a device capable of communicating with the drug identification device 11. The server 20 compiles data transmitted from the drug identification device 11. For example, the server 20 is provided at a base (home base) representing an organization to which a plurality of pharmacies belong. The server 20 includes a feature list 22 in which known features corresponding to known drugs 15 are registered, and a selection unit 24 that selects data to be registered in the feature list 22. The server 20 includes a storage device (e.g., a storage device such as a RAM, a ROM, or a hard disk drive) that stores various information, and a processor such as a CPU. The feature list 22 is stored in the storage device of the server 20. In addition, the processor of the server 20 executes program data stored in the storage device, so that the processor of the server 20 functions as the selection unit 24.

[0023] The server 20 communicates with the drug identification device 11 via a computer network such as the Internet. For simplicity of illustration, only one drug identification device 11 is shown in FIG. 1, but it is preferable that a plurality of drug identification devices 11 are provided for one server 20. For example, one drug identification device 11 may be provided in each of a plurality of pharmacies, and the server 20 may communicate with a plurality of pharmacies. Note that a plurality of drug identification devices 11 may be provided in one pharmacy.

[0024] A description will be given of each component of the drug identification device 11. The photographing section 12 of the drug identification device 11 includes a camera device equipped with an image sensor, such as a CCD camera (CCD: Charge Coupled Device) or a CMOS camera (CMOS: Complementary Metal Oxide Semiconductor).

[0025] The communication unit 14 of the drug identification device 11 includes a communication interface unit for communicating between the drug identification device 11 and a device (such as the server 20) external to the drug identification device 11 in accordance with a communication protocol such as Ethernet. The communication between the communication unit 14 and the server 20 may be performed by wired communication via a communication cable connecting the communication unit 14 and the server 20, or may be performed by wireless communication using electromagnetic waves.

[0026] The drug identification unit 30 of the drug identification device 11 is a unit that performs image processing on the captured image captured by the imaging unit 12 and identifies the drug 15 shown in the captured image. For example, a processor such as a CPU (Central Processing Unit) provided in the drug identification device 11 executes program data stored in the storage unit 40, and the processor functions as the drug identification unit 30. The drug identification unit 30 in FIG. 1 includes an image recognition unit 32, an extraction unit 34, and a collation unit 36. The image recognition unit 32, the extraction unit 34, and the collation unit 36 ​​each realize a part of the function of the drug identification unit 30. For example, the processor of the drug identification unit 30 executes program data corresponding to the image recognition unit 32, the extraction unit 34, and the collation unit 36, and the processor functions as the image recognition unit 32, the extraction unit 34, and the collation unit 36.

[0027] The image recognition unit 32 performs image recognition on the captured image to check the external characteristics of the drug 15 contained in the captured image. The extraction unit 34 extracts feature amounts of the drug 15 from the captured image. The collation unit 36 ​​collates the feature amounts extracted by the extraction unit 34 with a drug feature list 44 stored in the storage unit 40.

[0028] The storage unit 40 of the drug identification device 11 includes a storage device such as a RAM (Random Access Memory) or a ROM (Read Only Memory). The storage unit 40 includes an AI model 42 (AI: Artificial Intelligence) and a drug feature list 44 in addition to program data executed by the processor of the drug identification unit 30.

[0029] The AI ​​model 42 is a model that describes an input / output relationship in which a captured image is used as input data and corresponding feature values ​​are returned as output data. The drug feature list 44 is a list in which feature values ​​that the AI ​​model 42 can output and drug identification information (information that specifies the type of drug, such as the drug product name) corresponding to the feature values ​​are registered.

[0030] The display unit 51 of the drug identification device 11 displays various information to the user. For example, after the drug identification unit 30 identifies the drug 15 shown in the captured image, the identification result is displayed on the display unit 51. The display unit 51 is, for example, a liquid crystal display.

[0031] The input unit 52 of the drug identification device 11 accepts input from a user. For example, when the identification result is displayed on the display unit 51, if the user finds the identification result correct, the user may perform an operation to approve the identification result via the input unit 52, such as pressing a "Confirm" button displayed on the display unit 51. If the identification result is incorrect, the user may input correct information to the drug identification device 11 via the input unit 52. The input unit 52 is, for example, a keyboard and a mouse. The input unit 52 may also be, for example, a touch panel integrated with the display unit 51.

[0032] Next, an outline of the process performed in the medicine identification system 10 will be described with reference to Fig. 2. Fig. 2 shows a flowchart showing the process of identifying the medicine 15. First, in step S10, the photographing unit 12 photographs the medicine 15 to create a photographed image. Then, the photographed image is transmitted to the medicine identification unit 30.

[0033] In step S11, the drug identification unit 30 performs image processing on the captured image to identify the drug 15 appearing in the captured image. The identification result is displayed on the display unit 51. After the user confirms the identification result, in step S12, the drug identification unit 30 transmits data including the captured image and the identification result to the sorting unit 24 of the server 20. Here, data transmission may be performed each time one identification is completed, or when multiple identifications are completed, data for multiple items may be transmitted collectively.

[0034] 3 shows an example of the transmission data 60 transmitted from the drug identifying unit 30 to the sorting unit 24. The transmission data 60 includes image file data of the captured image, feature amounts extracted from the captured image, information on whether the captured image includes an identification index, and drug identification information corresponding to the extracted feature amounts.

[0035] 3 shows an example of transmission data 60 relating to a photographed image having an image file name of "XXX.jpg" and a photographed image having an image file name of "YYY.jpg". In FIG. 3, the feature extracted from the photographed image "XXX.jpg" is "X", the photographed image "XXX.jpg" contains an identification indicator ("present"), and the drug corresponding to the feature "X" (i.e., the drug 15 shown) is "Drug A". Similarly, the feature extracted from the photographed image "YYY.jpg" is "Y", the photographed image "YYY.jpg" does not contain an identification indicator ("absent"), and the drug corresponding to the feature "Y" is "Drug B".

[0036] 2, the transmission data 60 as shown in FIG 3 is transmitted to the selection unit 24. In step S13, the selection unit 24 selects data to be registered in the feature amount list 22 from the transmitted data.

[0037] The selection unit 24 judges whether the feature amount extracted by the extraction unit 34 is extracted from a photographed image that satisfies a predetermined standard image criterion. That is, it is judged whether the image file data of the photographed image included in the transmission data 60 (photographed image "XXX.jpg", "YYY.jpg", etc.) satisfies a specific criterion.

[0038] The predetermined standard image standard is a standard for whether an image captured of the medicine 15 can be considered a standard image. A standard image is an image whose corresponding feature is registered in the feature list 22 and is expected to improve the accuracy of identifying the medicine 15 in the future. As a specific example, a captured image of the medicine 15 with no missing parts in the medicine packaging of the medicine 15 (no part of the sheet is cut out) and with no attachments (such as rubber bands) attached is a standard image.

[0039] If the feature extracted by the extraction unit 34 is extracted from a captured image that satisfies predetermined standard image criteria, the selection unit 24 registers the combination information of the feature and the corresponding drug information (identification information of the drug corresponding to the feature) in the feature list 22 in step S14.

[0040] Fig. 4 shows an example of the feature list 22. "M", "N", etc. are registered as feature amounts corresponding to "drug A", and "P", "Q", etc. are registered as feature amounts corresponding to "drug B". If the captured images "XXX.jpg" and "YYY.jpg" in Fig. 3 satisfy the standard image criteria, the respective feature amounts "X" and "Y" are registered in the feature list 22 as new feature amounts corresponding to "drug A" and "drug B", respectively.

[0041] Next, the details of the process (step S11 in FIG. 2) in which the drug identifying unit 30 identifies the drug 15 in the captured image will be described. The image recognition unit 32 of the drug identifying unit 30 shown in FIG. 1 performs image recognition on the captured image to check the external characteristics of the drug 15 included in the captured image. For example, the image recognition unit 32 checks whether the drug 15 in the captured image includes a part that shows a predetermined external characteristic. Specifically, the image recognition unit 32 checks whether the captured image includes an identification indicator 19 such as a barcode or a character string. For example, the image recognition unit 32 divides the captured image of the drug 15 into a plurality of partial input images, compares each partial input image with a plurality of types of model images prepared in advance, and determines a model image similar to the partial input image. Then, the image recognition unit 32 can acquire information assigned to the model image similar to the partial input image as information on the external characteristics of the drug 15. For example, if a partial input image of the drug 15 resembles a pattern image of a barcode or two-dimensional code, or a model image such as a character string, the image recognition unit 32 can recognize that the captured image contains an identification indicator 19. When the captured image contains an identification indicator 19, it is preferable that the image recognition unit 32 acquires identification information indicated by the identification indicator 19. Furthermore, when checking whether the captured image contains the identification indicator 19, the image recognition unit 32 may use a general API (Application Programming Interface) used in software that reads barcodes, two-dimensional codes, character strings, and the like.

[0042] The image recognition unit 32 may also measure the dimensions of the medicine 15 as an external characteristic of the medicine 15. Specifically, the image recognition unit 32 may calculate the length of the short side and the length of the long side of the medicine packaging (for example, the PTP sheet 16, the PTP sheet 18, etc.) based on the shape of the medicine 15 shown in the captured image. The image recognition unit 32 may also calculate the aspect ratio of the medicine 15 (the ratio of the short side to the long side of the medicine packaging). The image recognition unit 32 may also measure the dimensions of the medicine 15 using AR technology (AR: Augmented Reality). For example, the image recognition unit 32 superimposes a measurement figure (computer graphics) created by calculation processing on the medicine 15 in the captured image, and adjusts the dimensions of the measurement figure until the size of the medicine 15 and the measurement figure match in the captured image. Then, the dimensions of the measurement figure when the measurement figure matches the size of the medicine 15 are calculated as the dimensions of the medicine 15.

[0043] An example of a method in which the image recognition unit 32 calculates the dimensions of the medicine 15 will be described. For example, the image recognition unit 32 identifies the boundary between the medicine 15 (medicinal packaging) and the background, i.e., the outline of the medicine 15, based on the rate of change of color in the captured image. Then, the image recognition unit 32 calculates the actual dimension value of the medicine 15 based on the length of the outline of the medicine 15 in the captured image. For example, if the captured image includes a reference body (such as a scale indicating a unit dimension) indicating a standard of dimensions, the image recognition unit 32 can calculate the actual dimension of the medicine 15 by comparing the size of the index body in the captured image with that of the medicine 15. In addition, if the shooting conditions that affect the shooting magnification (the ratio between the size of the subject in the captured image and the actual size of the subject), such as the distance between the shooting unit 12 and the subject, can be identified due to the shooting unit 12 being fixed, for example, the image recognition unit 32 can calculate the actual dimension of the medicine 15 included in the captured image based on the shooting conditions. Furthermore, even if the imaging magnification is unknown, the image recognition unit 32 can calculate the aspect ratio of the medicine 15 based on the length of the contour of the medicine 15.

[0044] The extraction unit 34 of the medicine identification unit 30 extracts the feature amount of the medicine 15 from the photographed image using the AI ​​model 42 of the storage unit 40. Here, the AI ​​model 42 is a model that describes an input / output relationship in which the photographed image is used as input data and the corresponding feature amount is returned as output data. The feature amount is a numerical representation of visual features such as shape and color that appear in the photographed image. In many cases, the feature amount cannot be understood by human senses, but the numerically represented feature amount data can be recorded as electronic information. The task of extracting the feature amount from the photographed image means that the extraction unit 34 inputs the photographed image into the AI ​​model 42 and obtains the feature amount returned as an output corresponding to the photographed image. In this embodiment, the AI ​​model 42 is one in which an algorithm for extracting the feature amount from the photographed image has been previously learned.

[0045] In the case of the AI ​​model 42 used in the drug identification system 10 of this embodiment, learning is performed in advance so that the drug 15 shown in the captured image can be appropriately identified. For example, the correspondence between various captured images and the identification information (such as product name) of the known drug 15 shown in those captured images is used as learning data. By machine learning, an algorithm for the AI ​​model 42 to extract features from the captured image and a feature list 22 in which feature values ​​corresponding to the known drug 15 are registered are created.

[0046] Data of the AI ​​model 42 equipped with an algorithm created by previously performed learning is stored in the storage unit 40 of the drug identification device 11. When the AI ​​model 42 receives a photographed image as an input, it outputs some feature amount regardless of whether the photographed image contains a known drug 15 or not. Therefore, the extraction unit 34 can extract some feature amount from any photographed image.

[0047] The feature list 22 created by previously performed learning is stored in the server 20. In the feature list 22, feature amounts corresponding to known drugs 15, that is, known feature amounts, are registered.

[0048] The matching unit 36 ​​of the drug identification unit 30 matches the feature extracted by the extraction unit 34 with the drug feature list 44. The drug feature list 44 registers feature amounts that the AI ​​model 42 can output and drug identification information (information that specifies the type of drug, such as the drug product name) that corresponds to the feature amounts.

[0049] For example, the drug identification device 11 communicates with the server 20 to receive data of the feature list 22, and stores the data in the storage unit 40 as an initial state drug feature list 44. Furthermore, the user of the drug identification device 11 registers information of drugs 15 that are not registered in the feature list 22 in the drug feature list 44. For example, if the pharmacy where the drug identification device 11 is installed handles a unique drug 15 that is not handled by other pharmacies, the user may register information of the unique drug 15 in the drug feature list 44. The user's registration of information of the drug 15 in the drug feature list 44 will be described later.

[0050] The feature amount extracted by the extraction unit 34 is transmitted to the collation unit 36. The collation unit 36 ​​identifies the drug included in the captured image based on a comparison between the drug feature list 44 and the feature amount extracted by the extraction unit 34. That is, if a feature amount matching the feature amount transmitted from the extraction unit 34 is registered in the drug feature list 44, the drug 15 corresponding to the feature amount in the drug feature list 44 is identified as the drug 15 included in the captured image. Note that in drug identification based on a comparison between the drug feature list 44 and the feature amount, even if the feature amount extracted from the captured image does not completely match the feature amount registered in the drug feature list 44, the drug 15 showing the feature amount may be identified as the drug 15 in the drug feature list 44 as long as the feature amount is a value close to the feature amount registered in the drug feature list 44 to a certain extent (for example, a value about 0.95 to 1.05 times the list value).

[0051] The drug identification unit 30 transmits the result of the collation by the collation unit 36, i.e., the identification result of the drug 15, to the display unit 51. Furthermore, when the image recognition unit 32 recognizes that the captured image contains an identification indicator 19, the drug identification unit 30 transmits the identification information indicated by the identification indicator 19 to the display unit 51 as the identification result of the drug 15. The display unit 51 displays the identification result transmitted from the drug identification unit 30 to the user. That is, for the drug 15 photographed by the photographing unit 12, information specifying the type of drug 15, such as the product name of the drug 15, is displayed on the display unit 51. This allows the user of the drug identification system 10 to know the identification result regarding what type of drug 15 is the subject of the photograph.

[0052] The extraction unit 34 may extract a feature amount that is not registered in the drug feature list 44 from the captured image. For example, if the drug 15 included in the captured image is not a known drug (unknown drug), the feature amount extracted by the extraction unit 34 is a feature amount different from any of the known drugs, that is, a feature amount that is not registered in the drug feature list 44. In addition, for commercially available drugs, the drug packaging may be changed. Even if the type of drug 15 included in the captured image is known, if the drug packaging has been changed, the feature amount extracted by the extraction unit 34 is a feature amount that is not registered in the drug feature list 44.

[0053] When the comparison unit 36 ​​receives from the extraction unit 34 a feature that is not registered in the drug feature list 44, it causes the display unit 51 to display an identification result indicating that the captured image contains an unknown drug (or a drug with changed drug packaging).

[0054] In addition, in drug identification by image recognition, depending on the shooting conditions such as the brightness of the light and the posture of the drug, the drug may appear in the captured image in a different form from the learning data. In this case, even if the drug is known, a feature amount different from that registered in the drug feature list 44 may be extracted. When a feature amount different from that registered in the drug feature list 44 is extracted, the drug identification unit 30 may erroneously identify the known drug as an unknown drug or as another (known) drug. When such a misidentification occurs, if the user notices the misidentification, it is preferable that the user can point out that the current identification result is incorrect. For example, when the display unit 51 is a touch panel display (for example, the screen of a smartphone or tablet terminal), when the user touches a display showing an incorrect identification result, a dialogue such as "Do you want to report this identification result?" appears to confirm whether or not to point out the misidentification, and if the user responds affirmatively to the dialogue, the identification result is notified to the drug identification unit 30 as an incorrect identification.

[0055] As described above, when an unknown feature is extracted (an unknown drug is included in the captured image) or when an error occurs in the identification result (misidentification is performed), the drug identification unit 30 adds the unknown feature or the feature on which the misidentification is based to the drug feature list 44. At this time, when the user inputs identification information of the unknown drug or correction information regarding the erroneous identification result, the corresponding correct identification information is added to the drug feature list 44 together with the feature. That is, the user registers new drug information or new feature corresponding to a known drug in the drug feature list 44. If the correct identification information has been added to the drug feature list 44, the drug identification unit 30 can return the correct identification information for the added feature in the next and subsequent identifications.

[0056] After completing the identification of the drug 15, the drug identification unit 30 transmits transmission data 60 including the identification result to the selection unit 24. That is, data on the new drug and its corresponding feature amount registered in the drug feature list 44, or data on the new feature amount corresponding to a known drug, is transmitted to the selection unit 24. When the transmission data 60 includes a new feature amount (a feature amount deviating from a feature amount registered in the feature amount list 22), if the feature amount was extracted from a captured image that satisfies the standard image criteria, the selection unit 24 registers the new feature amount in the feature amount list 22 together with the identification information of the drug corresponding to the feature amount.

[0057] Next, the process (step S13 in FIG. 2) in which the selection unit 24 selects data to be registered in the feature list 22 will be described in detail with reference to FIG. 5. FIG. 5 shows a flowchart illustrating the flow of feature selection.

[0058] Roughly speaking, the selection unit 24 registers in the feature list 22 feature amounts extracted from a photographed image of the drug 15 that is free of any defects and has no attached objects, and which are different from those already registered in the feature list 22.

[0059] First, in step S20, sorting is started by transmitting transmission data 60 as shown in Fig. 3 from the medicine identifying unit 30 to the sorting unit 24. In step S21, the sorting unit 24 determines whether or not the feature amount is extracted from a captured image including an identification indicator 19. If the captured image includes the identification indicator 19 (YES in step S21), the sorting unit 24 proceeds to step S23 described below.

[0060] If the captured image does not include the identification indicator 19 (NO in step S21), the selection unit 24 proceeds to step S22 and determines whether or not the feature transmitted from the drug identification unit 30 is outside the approximation range of the known feature registered in the feature list 22. The approximation range of the known feature is the range within which the AI ​​model 42 of the drug identification unit 30 determines that the input feature corresponds to a known drug.

[0061] If the feature amount transmitted from the medicine identifying unit 30 is within the approximate range of the known feature amount (for example, a value about 0.95-1.05 times the known feature amount) (NO in step S22), the selection unit 24 proceeds to step S25 and ends the selection.

[0062] On the other hand, if the feature transmitted from the drug identification unit 30 is outside the approximation range of the known feature (YES in step S22), that is, if it deviates from the known feature, the selection unit 24 proceeds to step S23. Note that the designer of the drug identification system 10 can arbitrarily set the approximation range of the known feature (how far it must be from the known feature to be considered as deviating). In addition, the approximation range may be set individually for each individual feature (and the type of drug corresponding to it).

[0063] In step S23, the selection unit 24 judges whether the feature amount transmitted from the medicine identifying unit 30 is extracted from a standard captured image. In the flowchart of Fig. 5, the captured image to be judged as to whether it satisfies the standard image criteria is a captured image including the identification index 19 or a captured image having a feature amount outside the approximate range of the known feature amount. In this judgment, image processing is performed on the captured image included in the transmission data 60, and it is judged whether the captured image satisfies the predetermined standard image criteria.

[0064] The server 20 stores data of standard image standards in advance, and the selection unit 24 compares the captured image included in the transmission data 60 with the data of the standard image standards to determine whether the captured image satisfies the standard image standards. Specifically, the standard image standards may include at least one of information on the standard shape of the drug 15, information on the standard dimensions of the drug 15, and information on the standard quantity of the drug 15.

[0065] For example, the selection unit 24 judges whether the shape of the medicine 15 shown in the captured image is similar to information (data) of a standard shape. The data of the standard shape of the medicine 15 is stored in advance in the server 20. For example, when the dosage form of the medicine 15 is a PTP sheet (PTP sheet 16, PTP sheet 18) in which 10 tablets are enclosed in one sheet, data of the shape of a PTP sheet without any missing pieces (for 10 tablets) is stored in the server 20 as data of the standard shape of the medicine 15. The selection unit 24 compares the data of the standard shape of the medicine 15 with the data of the captured image included in the transmission data 60 based on the data of the corresponding medicine shown in the transmission data 60 (information specifying the type of the medicine 15, such as the product name).

[0066] (Contour identification) The selection unit 24 can, for example, specify the contour of the medicine 15 in the photographed image when determining whether the photographed image satisfies the photographed image standard. The selection unit 24 can specify the contour of the medicine 15 based on, for example, the rate of change of color in the photographed image. If the specified contour is different from the standard shape of the medicine 15 (for example, a rectangle with rounded corners in the PTP sheet), the photographed image is determined not to satisfy the standard image standard. The contour of the medicine 15 may be specified by the medicine identification unit 30. For example, the storage unit 40 may store data of a contour AI model (not shown) that specifies the contour of the medicine 15, in addition to the AI ​​model 42 that extracts the feature amount. Then, the medicine identification unit 30 may transmit data indicating the contour of the medicine 15 specified using the contour AI model to the server 20 together with the feature amount of the medicine 15. Alternatively, data of the contour AI model may be stored in the storage device of the server 20, and the selection unit 24 may specify the contour of the medicine 15 using the contour AI model. For example, if a rubber band is attached to the medicine 15, the contour of the rubber band is identified as being different from the contour of the medicine 15. Therefore, if a rubber band is attached to the medicine 15, the contour of the medicine 15 will be different from the standard shape, and the captured image will be determined to not satisfy the standard image criteria.

[0067] Also, if the medicine 15 is chipped, the outline of the medicine 15 will be different from the standard shape, and the photographed image will be determined not to meet the standard image criteria. For example, if the dosage form of the medicine 15 is a PTP sheet in which 10 tablets are enclosed in one sheet, a part of the PTP sheet may be cut off depending on the quantity of the medicine 15 provided to the patient. For example, if the medicine 15 provided to the patient is 5 tablets, a cut-off piece of the PTP sheet for 5 tablets is provided to the patient. If such a cut-off sheet is shown in the photographed image, the outline of the medicine 15 will be different from the standard shape, and the photographed image will be determined not to meet the standard image criteria.

[0068] (Dimension determination) The selection unit 24 may also determine whether the dimensions of the medicine 15 shown in the captured image are similar to standard dimension information (data). For example, when the image recognition unit 32 measures the dimensions of the medicine 15, the measured dimensions are included in the transmission data 60. The selection unit 24 determines whether the dimensions of the medicine 15 included in the transmission data 60 are similar to standard dimension information (data). Note that data on the standard shape of the medicine 15 is pre-stored in the server 20. For example, the values ​​of the lengths of the long and short sides of the medicine packaging (such as a PTP sheet) of the medicine 15, or the value of the aspect ratio of the medicine packaging, may be pre-stored in the server 20.

[0069] For example, if the medicine 15 is a scrap of a PTP sheet that has been cut off, the values ​​of the length of its long and short sides, or the value of the aspect ratio, will differ from the standard dimension values ​​for the entire sheet. Therefore, if a scrap of the medicine 15 is captured in a photographed image, the photographed image is determined to not meet the standard image criteria.

[0070] The standard dimension information does not necessarily need to be stored in advance in the server 20, and an actually measured value may be stored in the server 20 in the process of repeatedly identifying various drugs 15. For example, when the transmission data 60 indicates that the identification indicator 19 is included in the captured image and the measurement value of the dimension of the drug 15 is included in the transmission data 60, the server 20 may store the measurement value of the dimension as information on the standard dimension of the drug 15.

[0071] The sorting unit 24 may also determine whether or not the quantity of the medicines 15 shown in the captured image matches a standard quantity of the medicines 15. The sorting unit 24 can count the quantity of the medicines 15 included in the captured image by image processing. For example, the sorting unit 24 can identify the outline of the transparent dome parts included in the PTP sheet based on the rate of color change or the like, and identify the number of the dome parts as the quantity of the medicines 15.

[0072] The server 20 stores in advance a standard quantity value for each type of drug 15. For example, when drug 15 with the product name "Drug A" is sold in a PTP sheet containing 10 tablets, the standard quantity of "Drug A" is stored in the server 20 as 10 tablets. Then, the quantity of drug 15 included in the photographed image is compared with the standard quantity, and if the two do not match, the photographed image is determined to not satisfy the standard image criteria.

[0073] Based on the above various elements, the selection unit 24 judges whether or not the captured image satisfies the standard image criteria. If any element of the captured image does not satisfy the standard image criteria, the captured image is judged to be non-standard (NO in step S23), and the selection unit 24 proceeds to step S25 and ends the selection.

[0074] On the other hand, if all of the various elements of the captured image satisfy the standard image criteria, the captured image is determined to be standard (YES in step S23), and the selection unit 24 proceeds to step S24. In step S24, the selection unit 24 registers the feature transmitted from the drug identification unit 30 in the feature list 22 as a new feature corresponding to the drug 15 identified by the drug identification unit 30. When the registration of the feature in the feature list 22 is completed, the selection unit 24 proceeds to step S25 and ends the selection.

[0075] In this manner, the selection unit 24 selects data to be registered in the feature list 22. According to the above process, the feature to be registered in the feature list 22 is either a feature outside the approximate range of a known feature already registered in the feature list 22, or a feature extracted from a captured image including the identification index 19.

[0076] The feature quantity outside the approximation range of the known feature quantity is, for example, a feature quantity of an unknown type of drug that was not included in the learning data that is the basis of the AI ​​model 42 of the drug identification device 11. In addition, when the drug packaging (package) of the drug 15 is changed, a feature quantity outside the approximation range of the known feature quantity is extracted even if the type of the drug 15 is known. In addition, even if the type and drug packaging of the drug 15 are known, when the drug is photographed under unknown conditions (such as the posture of the drug 15 and lighting conditions), a feature quantity outside the approximation range of the known feature quantity is extracted. By registering such unknown feature quantities in the feature quantity list 22, the drug identification unit 30 can easily identify the drug 15 by referring to the feature quantity list 22 thereafter.

[0077] On the other hand, as shown in FIG. 1, when the identification indicator 19 is written on the back side of the PTP sheet, the captured image including the identification indicator 19 is an image of the back side of the medicine 15. Generally, images captured of the front side of the medicine 15 are often used as learning data for the AI ​​model 42. Therefore, the feature extracted from the captured image of the back side of the medicine 15 is an unknown feature different from the known feature. By registering the feature extracted from the captured image of the back side in the feature list 22, the medicine identification unit 30 can easily identify the medicine 15 even from the captured image of the back side by referring to this feature list 22 thereafter.

[0078] In particular, when a plurality of drug identification devices 11 are provided for one server 20, if an unknown feature is extracted in any of the drug identification devices 11, it is preferable that the unknown feature is registered in the feature list 22 of the server 20. This is because, by registering the unknown feature in the feature list 22 of the server 20 that can communicate with the plurality of drug identification devices 11, the other drug identification devices 11 can also identify the drug corresponding to the unknown feature.

[0079] For example, it is assumed that, among the multiple drug identification devices 11, a first feature corresponding to a specific first drug is extracted as an unknown feature in a specific first drug identification device 11. Then, it is assumed that the first feature transmitted from the first drug identification device 11 to the server 20 is registered in the feature list 22 as a new feature corresponding to the first drug. In this case, drug identification devices other than the first drug identification device 11 cannot identify the first drug corresponding to the first feature as it is, but can identify the first drug by receiving the feature list 22 from the server 20. Specifically, the drug identification devices other than the drug identification device 11 add a new feature to the drug feature list 44 by receiving from the server 20 the feature list 22 in which the new feature is registered. Then, the drug identification unit 30 of the drug identification device can identify that the first drug is included in the captured image when the first feature is extracted from the captured image. For example, if multiple pharmacies are each equipped with a drug identification device 11, once a new drug product is identified at one of the pharmacies and the characteristic values ​​of the drug 15 are registered in the characteristic value list 22 of the server 20, the other pharmacies will also be able to identify the new drug product.

[0080] In the above embodiment, the transmission data 60 from the drug identification device 11 to the server 20 is transmitted by communication via the communication unit 14, but the method of transmitting data from the drug identification device 11 to the server 20 is not limited to this. For example, the transmission data 60 may be recorded in a portable storage device (such as a flash memory device), and the storage device may be transported to the server 20, thereby transmitting the data to the server 20.

[0081] In this embodiment, when an unknown feature is extracted by the drug identification device 11, only the feature and the identification information of the drug 15 corresponding to the feature are registered in the feature list 22 of the server 20, but in addition to these, data of the captured image may also be stored in the server 20. When many combinations of the captured image, the feature, and the identification information of the drug 15 are stored, it is possible to form learning data for creating a new AI model (not shown) based on this data.

[0082] As described above, according to the drug identification system 10 of this embodiment, when a feature extracted from a captured image falls outside the approximation range of a known feature, the feature is registered as a new feature in the feature list 22. Therefore, in subsequent identification in a drug identification device other than the drug identification device 11 that extracted the new feature, the drug identification system 10 can correctly identify a captured image having the same feature (or within the approximation range).

[0083] Furthermore, when a photographed image satisfies a predetermined standard image criterion, the feature amount extracted from the photographed image is registered in the feature amount list 22, so that the accuracy of identifying the drug 15 thereafter is improved. [Explanation of symbols]

[0084] 10 Drug Identification System 11 Drug Identification Device 12. Photography Department 15 Drugs 19 Identification index 20 Servers 22 Feature List 24 Sorting Department 30 Drug Identification Section 32 Image Recognition Unit 34 Extraction part 36 Matching section 42 AI models 44 Drug Characteristics List 51 Display section 52 Input section

Claims

1. In a drug identification system for identifying drugs, An imaging unit that captures an image of the drug; A medicine identification unit for identifying the medicine shown in the captured image; a feature list in which known features corresponding to known drugs are registered; a selection unit that selects data to be registered in the feature amount list; Equipped with The medicine identifying unit has an extracting unit that extracts a feature amount from the captured image, When the feature amount extracted by the extraction unit is extracted from the captured image that satisfies a predetermined standard image criterion, the selection unit is capable of registering the feature amount in the feature amount list as a new feature amount corresponding to the drug identified by the drug identification unit. A drug identification system comprising:

2. The standard image standard includes at least one of information on a standard shape of the medicine, information on a standard size of the medicine, or information on a standard quantity of the medicine. The drug identification system according to claim 1 .

3. The sorting unit includes: When the feature amount extracted by the extraction unit is out of the approximate range of the known feature amount and when the feature amount is extracted from the captured image that satisfies a predetermined standard image criterion, registering the feature amount in the feature amount list as a new feature amount corresponding to the drug identified by the drug identification unit; The drug identification system according to claim 1 .

4. The sorting unit includes: When the feature amount extracted by the extraction unit is extracted from the photographed image including an identification index indicating the identification information of the drug, and when the feature amount is extracted from the photographed image satisfying a predetermined standard image criterion, registering the feature amount in the feature amount list as a new feature amount corresponding to the drug identified by the drug identification unit; The drug identification system according to claim 1 .

5. A medicine identifying device including the medicine identifying unit; a server that communicates with the plurality of drug identification devices and includes the feature list; Each of the plurality of drug identification devices is capable of transmitting the feature amount extracted by the extraction unit of the drug identification unit to the server, The server is capable of transmitting the feature list to the drug identification device, When a first feature amount transmitted to the server from a first drug identification device among the drug identification devices is registered in the feature amount list as a new feature amount corresponding to the first drug, The drug identification unit of the drug identification device other than the first drug identification device is capable of identifying the first drug corresponding to the first feature by receiving the feature list from the server. The drug identification system according to claim 1 .

Citation Information

Patent Citations

  • Incremental Learning for Dynamic Feature Database Management in an Object Recognition System

    JP2017508197A

  • Medicine identification system and method for identifying medicine

    JP2023005928A

  • Read Refresh Operation

    JP2023521712A

  • Object recognition apparatus and control method therefor

    US20170004369A1