[go: up one dir, main page]

JP2021124989A - Medical agent identification system and medical agent identification sensor - Google Patents

Medical agent identification system and medical agent identification sensor Download PDF

Info

Publication number
JP2021124989A
JP2021124989A JP2020018394A JP2020018394A JP2021124989A JP 2021124989 A JP2021124989 A JP 2021124989A JP 2020018394 A JP2020018394 A JP 2020018394A JP 2020018394 A JP2020018394 A JP 2020018394A JP 2021124989 A JP2021124989 A JP 2021124989A
Authority
JP
Japan
Prior art keywords
drug
identification
information
model
learning data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2020018394A
Other languages
Japanese (ja)
Other versions
JP7329463B2 (en
Inventor
央 谷口
Hiroshi Taniguchi
央 谷口
賢治 高平
Kenji Takahira
賢治 高平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Contec Co Ltd
Original Assignee
Contec Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Contec Co Ltd filed Critical Contec Co Ltd
Priority to JP2020018394A priority Critical patent/JP7329463B2/en
Publication of JP2021124989A publication Critical patent/JP2021124989A/en
Application granted granted Critical
Publication of JP7329463B2 publication Critical patent/JP7329463B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Medical Preparation Storing Or Oral Administration Devices (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

To allow a medical agent identification system to identify medical agents from images taken under various different conditions.SOLUTION: A medical agent identification system 10 includes: a learning data storage unit 60 for storing, as learning data 62, how various types of medical agents 12 look in taken images 22; and a medical agent identification unit 30 for identifying the medical agents 12 in the taken images 22. The medical agent identification unit 30 identifies medical agents 12 in the images 22 by using an AI model 50. The AI model 50 is created on the basis of learning data 62 stored in the learning data storage unit 60 and returns the taken images 22 as input data and returns information of the medical agents 12 corresponding to the taken images as output data.SELECTED DRAWING: Figure 1

Description

本発明は、薬剤を撮影した撮影画像の画像認識を行うことにより撮影された薬剤の識別を行う薬剤識別システムに関するものである。また本発明は、撮影画像について画像認識処理を行うことで撮影画像に含まれる薬剤の識別を行う薬剤識別センサにも関する。 The present invention relates to a drug identification system that identifies a photographed drug by performing image recognition of a photographed image of the drug. The present invention also relates to a drug identification sensor that identifies a drug contained in a photographed image by performing image recognition processing on the photographed image.

薬局などの、薬剤を取り扱う施設において、薬剤の機械的な識別が求められることがある。例えば、処方箋に基づいて取り揃えられた薬剤が実際に処方箋の処方内容と合致しているか否かを、作業者(薬剤師など)とは別の主体によって判定するために、薬剤の機械的な識別を行う装置(薬剤鑑査装置)が用いられることがある。こうした装置を用いることにより、患者に対する薬剤の交付における作業ミスを防止することができる。 In facilities that handle drugs, such as pharmacies, mechanical identification of drugs may be required. For example, mechanical identification of a drug is performed in order to determine whether or not the drug prepared based on the prescription actually matches the prescription content of the prescription by a subject other than the worker (pharmacist, etc.). A device to perform (pharmaceutical inspection device) may be used. By using such a device, it is possible to prevent work mistakes in delivering the drug to the patient.

特許文献1には、薬剤鑑査装置に適用される秤量装置が開示されている。この秤量装置においては、計測対象となる薬剤の重量を計測する秤量部のほか、計測対象の画像を撮像するための撮像手段(カメラ)が設けられており、撮像された画像データを基に、計測対象の薬剤が処方箋にて指定された薬剤の種別と合致しているか否かが判定されるようになっている。 Patent Document 1 discloses a weighing device applied to a drug inspection device. In this weighing device, in addition to a weighing unit that measures the weight of the drug to be measured, an imaging means (camera) for capturing an image of the measurement target is provided, and based on the captured image data, the weighing device is provided. Whether or not the drug to be measured matches the type of drug specified in the prescription is determined.

特許第5744776号公報Japanese Patent No. 5744776

しかしながら、特許文献1に開示されている秤量装置においては、計測対象となる薬剤を適正な撮像条件下で撮像しなければ適正な判定を行うことができない。具体的には計測対象を、撮像手段が計測対象を上方から適正に撮像可能な撮像対象領域に位置させる必要がある。そのために、計測対象を保持する容器を計測用の適正位置に位置決めする位置決め手段が設けられている。また、外乱光により計測対象に陰影が生じるのを防ぐために、計測対象を保持する容器や撮像手段をまとめて筐体に収容することで外乱光から遮蔽する必要もある。 However, in the weighing device disclosed in Patent Document 1, an appropriate determination cannot be made unless the drug to be measured is imaged under appropriate imaging conditions. Specifically, it is necessary for the imaging means to position the measurement target in an imaging target region where the measurement target can be appropriately imaged from above. Therefore, a positioning means for positioning the container holding the measurement target at an appropriate position for measurement is provided. Further, in order to prevent the measurement target from being shaded by the disturbance light, it is also necessary to shield the measurement target from the disturbance light by housing the container for holding the measurement target and the imaging means together in the housing.

このように、特許文献1に開示されている秤量装置には、計測対象の薬剤を適正な撮像条件下(位置、照明条件など)に置くための機構が設けられており、これらを用いなければ適正な判定を行うことができない。これは、特許文献1の秤量装置では撮像した薬剤の画像データと、マスタデータとしての薬剤の画像データとに基づいて薬剤種別の判別が行われるようになっており、マスタデータと撮像条件の異なる撮像により得られた画像データでは適正な判別が行なえないからである。 As described above, the weighing device disclosed in Patent Document 1 is provided with a mechanism for placing the drug to be measured under appropriate imaging conditions (position, lighting conditions, etc.), and these must be used. It is not possible to make a proper judgment. This is because the weighing device of Patent Document 1 discriminates the drug type based on the image data of the imaged drug and the image data of the drug as the master data, and the master data and the imaging conditions are different. This is because the image data obtained by imaging cannot be properly discriminated.

したがって、特許文献1に開示されている秤量装置は、薬剤の画像を撮像する際に、薬剤を適正な撮像条件下に置くための作業(位置決め、筐体への収納など)が必要である。この秤量装置を利用するためには専用の操作方法を覚える必要があり、その操作自体も大きく手間のかかるものとなっていた。このため、薬剤の機械的な識別を気軽に行うことはできなかった。また、この秤量装置は薬剤を適正な撮像条件下に置くための専用の機構を備えた大掛かりな装置となってしまい、持ち運び可能な機器とすることはできなかった。 Therefore, the weighing device disclosed in Patent Document 1 requires work (positioning, storage in a housing, etc.) for placing the drug under appropriate imaging conditions when capturing an image of the drug. In order to use this weighing device, it is necessary to learn a dedicated operation method, and the operation itself is very time-consuming. Therefore, it was not possible to easily identify the drug mechanically. In addition, this weighing device has become a large-scale device equipped with a dedicated mechanism for placing the drug under appropriate imaging conditions, and cannot be a portable device.

そこで本発明は、薬剤を特定の適正な撮影条件下に置かなくとも、様々な条件下での撮影による撮影画像から薬剤の識別を行えるようにすることを目的とする。 Therefore, an object of the present invention is to make it possible to identify a drug from images taken by photographing under various conditions without placing the drug under specific appropriate imaging conditions.

上記課題を解決するため、本発明に係る実施形態の一例としての薬剤識別システムは、薬剤を撮影した撮影画像の画像認識を行うことにより撮影された薬剤の識別を行う薬剤識別システムにおいて、各種薬剤がそれぞれ撮影画像においてどのような姿で現れるのかを学習データとして記憶する学習データ記憶部と、撮影画像に含まれる薬剤を識別する薬剤識別部と、を備え、前記薬剤識別部は、前記学習データ記憶部に記憶された前記学習データに基づいて作成されたAIモデルであって、撮影画像を入力データとして、それに対応する薬剤の情報を出力データとして返すAIモデルを用いて、入力された撮影画像に含まれる薬剤を識別することを特徴とする。 In order to solve the above problems, a drug identification system as an example of an embodiment according to the present invention is used in a drug identification system that identifies a photographed drug by performing image recognition of a photographed image of the drug. The drug identification unit includes a learning data storage unit that stores as learning data how each of the images appears in the captured image, and a drug identification unit that identifies the drug contained in the photographed image. The drug identification unit is the learning data. An AI model created based on the learning data stored in the storage unit, and the captured image input using the AI model that returns the captured image as input data and the information of the corresponding drug as output data. It is characterized by identifying the drug contained in.

また好ましくは、薬剤または薬剤を包装する薬剤包装に、薬剤の識別情報を示す識別指標が記されている場合、前記薬剤識別部は、前記識別指標が示す薬剤の識別情報に基づいて薬剤の識別を行い、識別した薬剤の情報とそのときの撮影画像の情報とを組み合わせた薬剤撮影例データを作成して、前記薬剤撮影例データを前記学習データ記憶部に送信し、前記学習データ記憶部は、前記薬剤識別部から前記薬剤撮影例データを受信すると、その薬剤撮影例データに含まれる薬剤の情報と撮影画像の情報を、当該薬剤が撮影画像において現れる姿の一例として記憶して前記学習データを更新するとよい。 Further, preferably, when the drug or the drug package for packaging the drug contains an identification index indicating the drug identification information, the drug identification unit identifies the drug based on the drug identification information indicated by the identification index. To create drug imaging example data in which the identified drug information and the captured image information at that time are combined, and transmit the drug imaging example data to the learning data storage unit, the learning data storage unit When the drug imaging example data is received from the drug identification unit, the drug information and the captured image information included in the drug imaging example data are stored as an example of the appearance of the drug in the captured image, and the learning data is stored. Should be updated.

また好ましくは、前記撮影画像に前記識別指標が含まれていると前記AIモデルにより判定された場合、前記薬剤識別部は、AIモデルが判定した前記識別指標に対応する薬剤の識別情報に基づいて薬剤の識別を行い、識別した薬剤の情報とそのときの撮影画像の情報とを組み合わせた薬剤撮影例データを作成するとよい。 Further, preferably, when it is determined by the AI model that the captured image contains the identification index, the drug identification unit is based on the identification information of the drug corresponding to the identification index determined by the AI model. It is advisable to identify the drug and create drug imaging example data by combining the information of the identified drug and the information of the photographed image at that time.

また好ましくは、それぞれが前記薬剤識別部を備えており、ネットワークを介してメイン機器へとアクセス可能な複数のローカル機器を有し、前記ローカル機器によって行われた薬剤の識別において前記薬剤撮影例データが作成された場合には、その薬剤撮影例データを前記メイン機器へ送信し、前記メイン機器は、前記ローカル機器から送信された薬剤撮影例データに基づいて自身の記憶している学習データを更新するとよい。 It is also preferable that each of the drug identification units has a plurality of local devices that can access the main device via the network, and the drug imaging example data in the drug identification performed by the local device. Is created, the drug imaging example data is transmitted to the main device, and the main device updates the learning data stored by itself based on the drug imaging example data transmitted from the local device. It is good to do it.

また好ましくは、前記ローカル機器の薬剤識別部は、前記ローカル機器に組み込まれたローカルAIモデルを用いて撮影画像に含まれる薬剤を識別し、前記ローカルAIモデルを用いても撮影画像に含まれる薬剤を識別不能な場合には、ネットワークを介して前記メイン機器にアクセスして、前記メイン機器に記憶されている学習データを基に作成されたメインAIモデルを用いて薬剤の識別を行うとよい。 Further, preferably, the drug identification unit of the local device identifies the drug contained in the captured image by using the local AI model incorporated in the local device, and the drug contained in the captured image even by using the local AI model. If it is not possible to identify the drug, it is preferable to access the main device via the network and identify the drug using the main AI model created based on the learning data stored in the main device.

また好ましくは、撮影された薬剤が医療用医薬品である場合、医療用医薬品の薬剤包装に記されておりその医療用医薬品に関する情報を示す光学マークを、前記識別指標とするとよい。 Further, preferably, when the photographed drug is a ethical drug, the optical mark marked on the drug packaging of the ethical drug and indicating information on the ethical drug may be used as the identification index.

また好ましくは、撮影された薬剤が、医師の判断により入力された処方箋情報に基づいて調剤された薬剤である場合、前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記処方箋情報と合致するか否かを判定するとよい。 Further, preferably, when the photographed drug is a drug dispensed based on the prescription information input at the discretion of the doctor, the information of one or more drugs identified by the drug identification unit is the prescription information. It is advisable to determine whether or not they match.

また好ましくは、撮影された薬剤が、薬局において入庫した薬剤および出庫した薬剤の情報に応じて変動する在庫情報に基づいて管理される薬剤である場合、前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記在庫情報と合致するか否かを判定するとよい。 Further, preferably, when the photographed drug is a drug managed based on inventory information that fluctuates according to information on the drug received and discharged at the pharmacy, one or more drugs identified by the drug identification unit. It is advisable to determine whether or not the drug information matches the inventory information.

また好ましくは、撮影された薬剤が、患者に対して調剤された薬剤であって、医療機関の指示する服薬スケジュールに基づいて服薬されるべき薬剤である場合、前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記服薬スケジュールと合致するか否かを判定するとよい。 Further, preferably, when the photographed drug is a drug dispensed to the patient and should be taken based on the medication schedule instructed by the medical institution, one identified by the drug identification unit. It is advisable to determine whether or not the above drug information matches the medication schedule.

また好ましくは、前記学習データ記憶部と前記薬剤識別部とが、それぞれ別体の機器によって構成されており、前記薬剤識別部はネットワークを介して前記学習データ記憶部にアクセス可能であるとよい。 Further, it is preferable that the learning data storage unit and the drug identification unit are configured by separate devices, and the drug identification unit can access the learning data storage unit via a network.

また、本発明に係る実施形態の別例としての薬剤識別センサは、上述の薬剤識別システムによって得られた学習データに基づいて作成されたAIモデルが組み込まれた記憶素子および演算素子を含む処理部と、画像を撮影することが可能な画像撮影素子とを有し、前記画像撮影素子によって撮影された撮影画像について、前記処理部にて画像認識処理を行うことで、前記撮影画像に含まれる薬剤の識別を行うことを特徴とする。 Further, the drug identification sensor as another example of the embodiment according to the present invention is a processing unit including a storage element and an arithmetic element incorporating an AI model created based on the learning data obtained by the above-mentioned drug identification system. And an image capturing element capable of capturing an image, and by performing image recognition processing on the captured image captured by the image capturing element in the processing unit, a drug contained in the captured image. It is characterized in that the identification is performed.

本発明に係る実施形態の一例としての薬剤識別システムによれば、各種薬剤がそれぞれ撮影画像においてどのような姿で現れるのかの情報、すなわち、様々な撮影画像と、それらの撮影画像に映っている薬剤の情報(種別や数量)と、の対応関係が学習データとして学習データ記憶部に記憶(蓄積)される。そして、その学習データに基づいて作成されたAIモデルを用いて、入力された撮影画像に含まれる薬剤の識別が行われる。ここで、十分に蓄積された(大量の撮影画像を取り込んだ)学習データから作成されたAIモデルであれば、様々な撮影条件(照明条件、位置、距離、角度など)で撮影された画像から、その画像に映っている薬剤の情報(種別や数量)を適正に識別することができる。したがって、薬剤を特定の適正な撮影条件下に置かなくともよい。このため、薬剤の識別を行おうとする作業者は、薬剤を適正な撮影条件下に置くための作業を行う必要がなく、薬剤の識別を手軽に行うことができる。 According to the drug identification system as an example of the embodiment according to the present invention, information on how various drugs appear in the photographed images, that is, various photographed images and those photographed images are reflected. The correspondence between the drug information (type and quantity) and the correspondence is stored (stored) in the learning data storage unit as learning data. Then, using the AI model created based on the learning data, the drug contained in the input captured image is identified. Here, if the AI model is created from sufficiently accumulated training data (captured a large amount of captured images), the images captured under various shooting conditions (lighting conditions, position, distance, angle, etc.) can be used. , The drug information (type and quantity) shown in the image can be properly identified. Therefore, the drug does not have to be placed under certain proper imaging conditions. Therefore, the operator who intends to identify the drug does not need to perform the work for placing the drug under appropriate imaging conditions, and can easily identify the drug.

また薬剤または薬剤包装に識別指標が記されている場合、その識別指標の示す識別情報に基づいて薬剤識別部が薬剤の識別を行って、さらに識別した薬剤の情報とそのときの撮影画像の情報とを組み合わせた薬剤撮影例データを基に学習データを更新するようにすれば、薬剤について専門知識を持たない人物が撮影した撮影画像であっても、撮影画像と、その撮影画像にどのような薬剤が含まれているかについての正しい情報とが紐付いた、学習データを適正に更新(蓄積)できる情報となる。このため、専門知識を持たない人物(例えば薬局において調剤された薬剤の交付を受けた患者であって、AI技術者でも医療関係者でもない人物)であっても、何が正解かについての情報を含む学習データ、いわゆる教師データの蓄積に寄与することができる。したがって、この薬剤識別システムにおいては、AIおよび薬剤に関する専門知識を持たない人物によって撮影された撮影画像をも取り込んで薬剤に関する学習データの蓄積を進めることができるので、システムの利用者(薬剤の撮影を行う人物)が増加するに従って、学習データの蓄積速度が向上していく。また、その学習データに基づいて作成されるAIモデルの精度も、システム利用者の増加に従って向上していく。 When an identification index is written on the drug or drug package, the drug identification unit identifies the drug based on the identification information indicated by the identification index, and the information on the identified drug and the information of the photographed image at that time are obtained. If the learning data is updated based on the drug shooting example data in combination with, even if the shot image is taken by a person who does not have specialized knowledge about the drug, what kind of shot image and the shot image will be It is information that can properly update (accumulate) the learning data, which is linked with the correct information about whether or not the drug is contained. For this reason, information about what is the correct answer, even for those who do not have specialized knowledge (for example, a patient who has received a drug dispensed at a pharmacy and is neither an AI engineer nor a medical personnel). It can contribute to the accumulation of learning data including, so-called teacher data. Therefore, in this drug identification system, it is possible to capture images taken by a person who does not have expertise in AI and drugs to promote the accumulation of learning data on drugs, so that the user of the system (shooting of drugs) can proceed. As the number of people who perform the training increases, the speed of accumulating learning data increases. In addition, the accuracy of the AI model created based on the learning data will improve as the number of system users increases.

また、撮影画像に識別指標が含まれているとAIモデルによって判定された場合には、そのAIモデルが判定した識別指標に対応する薬剤の識別情報に基づいて薬剤の識別と薬剤撮影例データの作成を行うようにすれば、薬剤を撮影するだけで薬剤撮影例データが得られることになり、学習データがさらに効率よく更新されるようになる。 In addition, when it is determined by the AI model that the captured image contains the identification index, the drug identification and the drug imaging example data are obtained based on the identification information of the drug corresponding to the identification index determined by the AI model. If the data is created, the drug imaging example data can be obtained only by photographing the drug, and the learning data can be updated more efficiently.

また、薬剤識別システムが、ネットワークを介してメイン機器へとアクセス可能な複数のローカル機器を有するシステムである場合には、ローカル機器を個人が持ち運び可能な機器、例えば薬剤識別部としての機能を果たす所定のアプリケーションがインストールされたスマートフォンとすることで、多数のローカル機器から薬剤撮影例データを収集することが可能となり、学習データの蓄積速度がさらに向上する。 Further, when the drug identification system is a system having a plurality of local devices that can access the main device via a network, the local device functions as a device that can be carried by an individual, for example, a drug identification unit. By using a smartphone on which a predetermined application is installed, it becomes possible to collect drug imaging example data from a large number of local devices, and the storage speed of learning data is further improved.

また、ローカル機器に組み込まれたローカルAIモデルを用いて撮影画像に含まれる薬剤を識別する場合には、ローカルAIモデルによって薬剤の識別が可能であればローカル機器はメイン機器へアクセスする必要がないため、ネットワークを介した通信の頻度を最小限に抑えることができ、薬剤識別の平均速度が向上し、またシステム全体の通信量を抑えることができる。 In addition, when identifying the drug contained in the captured image using the local AI model incorporated in the local device, the local device does not need to access the main device if the drug can be identified by the local AI model. Therefore, the frequency of communication via the network can be minimized, the average speed of drug identification can be improved, and the amount of communication in the entire system can be suppressed.

また、撮影された薬剤が医療用医薬品である場合に、医療用医薬品の薬剤包装に記されておりその医療用医薬品に関する情報を示す光学マークを識別指標とすることで、医療用医薬品の包装に表示することが求められているバーコードなどの、薬剤情報の符号化方式が予め規定されている識別指標を利用して薬剤の識別を行うことが可能になり、識別指標に基づく薬剤識別の確度が向上する。 In addition, when the photographed drug is a ethical drug, the optical mark on the ethical drug packaging, which indicates information about the ethical drug, is used as an identification index to form the ethical drug packaging. It is possible to identify drugs using an identification index that has a predetermined coding method for drug information, such as barcodes that are required to be displayed, and the accuracy of drug identification based on the identification index. Is improved.

また、撮影された薬剤が、医師の判断により入力された処方箋情報に基づいて調剤された薬剤である場合に、薬剤識別部が識別した1つ以上の薬剤の情報が処方箋情報と合致するか否かを判定することで、調剤薬局などにおける患者への薬剤交付の際に、処方箋の内容と異なる薬剤を交付することを防ぐことができる。 In addition, when the photographed drug is a drug dispensed based on the prescription information input by the judgment of the doctor, whether or not the information of one or more drugs identified by the drug identification unit matches the prescription information. By determining whether or not, it is possible to prevent the delivery of a drug different from the contents of the prescription when the drug is delivered to the patient at a dispensing pharmacy or the like.

また、撮影された薬剤が、薬局において入庫した薬剤および出庫した薬剤の情報に応じて変動する在庫情報に基づいて管理される薬剤である場合に、薬剤識別部が識別した1つ以上の薬剤の情報が在庫情報と合致するか否かを判定することで、薬局の棚卸しなどの際に、在庫情報と、実際に薬局内に存在する薬剤の情報とを照合することができる。 In addition, when the photographed drug is a drug managed based on inventory information that fluctuates according to information on the drug received and discharged at the pharmacy, the drug identification unit identifies one or more drugs. By determining whether or not the information matches the inventory information, it is possible to collate the inventory information with the information of the drug actually existing in the pharmacy at the time of inventory of the pharmacy.

また、撮影された薬剤が、患者に対して調剤された薬剤であって、医療機関の指示する服薬スケジュールに基づいて服薬されるべき薬剤である場合に、薬剤識別部が識別した1つ以上の薬剤の情報が服薬スケジュールと合致するか否かを判定することで、患者が正しく服薬スケジュールに従って薬剤を服薬しているかどうかを確認することができる。 In addition, when the photographed drug is a drug dispensed to the patient and should be taken based on the medication schedule instructed by the medical institution, one or more drugs identified by the drug identification unit. By determining whether the drug information matches the medication schedule, it is possible to confirm whether the patient is taking the drug correctly according to the medication schedule.

また、学習データ記憶部と薬剤識別部とが、それぞれ別体の機器によって構成されており、薬剤識別部はネットワークを介して学習データ記憶部にアクセス可能である場合には、システムの構成の自由度が増す。例えば、学習データ記憶部と薬剤識別部とを距離的に離れた場所に設けることが可能となったり、それぞれの機器を小型化することができたりする。 Further, if the learning data storage unit and the drug identification unit are configured by separate devices, and the drug identification unit can access the learning data storage unit via the network, the system configuration is free. The degree increases. For example, the learning data storage unit and the drug identification unit can be provided at a distance apart from each other, or the respective devices can be miniaturized.

また、本発明に係る実施形態の別例としての薬剤識別センサは、薬剤を特定の撮影条件下に置かなくとも薬剤の識別を行うことが可能であり、処理部と画像撮影素子の他に大掛かりな機構を必要としないので、持ち運び可能な小型の機器とすることができる。また、この薬剤識別センサは、上述の薬剤識別システムによって効率よく蓄積された学習データに基づいて作成されたAIモデルを用いて薬剤の識別を行うので、精度の高い薬剤識別が可能となる。 Further, the drug identification sensor as another example of the embodiment according to the present invention can identify the drug without placing the drug under specific imaging conditions, and is large-scale in addition to the processing unit and the imaging element. Since it does not require a complicated mechanism, it can be a small portable device. Further, since this drug identification sensor discriminates a drug by using an AI model created based on learning data efficiently accumulated by the above-mentioned drug identification system, highly accurate drug identification becomes possible.

本発明に係る実施形態の一例としての薬剤識別システムの構成を概略的に示すブロック図。The block diagram which shows schematic structure of the drug identification system as an example of the Embodiment which concerns on this invention. 識別指標が記された錠剤単体を示す図。The figure which shows the tablet alone which the identification index was described. 図2Aの錠剤を包装する、識別指標が記されたPTPシートを示す図。FIG. 2 shows a PTP sheet on which an identification index is written, which wraps the tablet of FIG. 2A. 図2BのPTPシートの全体を示す図。The figure which shows the whole PTP sheet of FIG. 2B. 図2CのPTPシートの裏側を示す図。The figure which shows the back side of the PTP sheet of FIG. 2C. 識別指標が記された、散剤の個別包装を示す図。The figure which shows the individual packaging of the powder which marked the identification index. カプセル剤を包装する、識別指標が記されたPTPシートを示す図。The figure which shows the PTP sheet which described the identification index which wraps a capsule. 識別指標テーブルの一例を示す図。The figure which shows an example of the identification index table. 薬剤撮影例データの一例を示す図。The figure which shows an example of the drug imaging example data. 図1の薬剤識別システムにおける薬剤の識別および学習データ更新の手順を示すフローチャート。The flowchart which shows the procedure of drug identification and learning data update in the drug identification system of FIG. 複数のローカル機器がネットワークを介してメイン機器へとアクセスする形態の薬剤識別システムの構成を概略的に示すブロック図。A block diagram schematically showing the configuration of a drug identification system in which a plurality of local devices access the main device via a network. 本発明に係る実施形態の別例としての薬剤識別センサの構成を概略的に示す図。The figure which shows typically the structure of the drug identification sensor as another example of the Embodiment which concerns on this invention.

図1のブロック図に、本発明に係る実施形態の一例としての薬剤識別システム10の構成を概略的に示す。この薬剤識別システム10において識別対象となる薬剤12の例として、図1には錠剤12a単体と、錠剤PTPシート12b(1枚10錠入り)が示されている。 The block diagram of FIG. 1 schematically shows the configuration of the drug identification system 10 as an example of the embodiment according to the present invention. As an example of the drug 12 to be identified in the drug identification system 10, FIG. 1 shows a tablet 12a alone and a tablet PTP sheet 12b (10 tablets per tablet).

図1に示す薬剤識別システム10は、識別結果を表示するためのモニタ14と、薬剤12の画像を撮影する撮影器20と、撮影器20が撮影した撮影画像22に含まれる薬剤12を識別する薬剤識別部30と、後述の識別指標テーブル42(図3)を記憶する識別指標テーブル記憶部40と、撮影画像22を入力データとしてそれに対応する薬剤12の情報を出力データとして返すAIモデル50(実体としては、AIモデル50のデータを記憶する記憶部)と、このAIモデル50を作成する基となる学習データ62を記憶する学習データ記憶部60と、を備えている。これらの構成要素は1つの機器にまとめて組み込まれていてもよいし、複数の機器に分かれて配置されていてもよい。例えばスマートフォンの画面をモニタ14、そのスマートフォンに組み込まれたカメラを撮影器20、メモリやプロセッサを他の構成要素として、薬剤識別システム10が1つのスマートフォンで構築されるようになっていてもよい。あるいは、薬剤識別システム10がネットワーク(インターネットなど)上に構築されたものであり、ネットワークを介して接続された複数の機器のそれぞれが構成要素の一つ一つとして機能するようになっており、様々な場所の機器から薬剤識別システム10を利用可能な構成であってもよい。 The drug identification system 10 shown in FIG. 1 identifies a monitor 14 for displaying the identification result, a camera 20 for capturing an image of the drug 12, and a drug 12 contained in the captured image 22 captured by the camera 20. The drug identification unit 30, the identification index table storage unit 40 that stores the identification index table 42 (FIG. 3) described later, and the AI model 50 that returns the information of the drug 12 corresponding to the captured image 22 as input data (AI model 50). As an entity, it includes a storage unit that stores the data of the AI model 50) and a learning data storage unit 60 that stores the learning data 62 that is the basis for creating the AI model 50. These components may be integrated into one device, or may be divided into a plurality of devices and arranged. For example, the drug identification system 10 may be constructed by one smartphone, with the screen of the smartphone as the monitor 14, the camera incorporated in the smartphone as the imager 20, and the memory and the processor as other components. Alternatively, the drug identification system 10 is constructed on a network (such as the Internet), and each of a plurality of devices connected via the network functions as each component. The drug identification system 10 may be available from devices at various locations.

(基本的動作)
この薬剤識別システム10を用いて識別作業を行おうとするユーザ(作業者)はまず、撮影器20によって薬剤12(薬剤12を含む領域)を撮影して、撮影画像22を取得する。そして、この撮影画像22が薬剤識別部30へ入力される。薬剤識別部30は、撮影画像22をAIモデル50へ入力するための所定の処理(AIモデル50が受け付けるデータ形式に変換するなど)を行った上で、AIモデル50へ撮影画像22を入力データとして引き渡す。
(Basic operation)
A user (worker) who intends to perform an identification operation using the drug identification system 10 first photographs a drug 12 (a region containing the drug 12) with a camera 20 and acquires a photographed image 22. Then, the captured image 22 is input to the drug identification unit 30. The drug identification unit 30 performs a predetermined process for inputting the captured image 22 into the AI model 50 (such as converting it into a data format accepted by the AI model 50), and then inputs the captured image 22 into the AI model 50. Hand over as.

この薬剤識別システム10において用いられるAIモデル50とは、何らかの入力データを受け取ると、その入力データに対応した出力データを返すという、入出力関係を記述したモデルであり、いわば一種の関数のような働きを持つ。具体的には、AIモデル50は、撮影画像22を入力データとして受け取ると、その撮影画像22に写っている(含まれている)薬剤12の情報を出力データとして返す。このAIモデル50は、製品名、剤形、有効成分、効能など、薬剤12に係る様々な情報を出力データとして出力することが可能である。ここでは説明のため、薬剤12の製品名と、撮影画像22内に写っている数量が出力データとして出力されるものとする。 The AI model 50 used in the drug identification system 10 is a model that describes an input / output relationship in which when some input data is received, output data corresponding to the input data is returned, and is like a kind of function. Have a job. Specifically, when the AI model 50 receives the captured image 22 as input data, the AI model 50 returns the information of the drug 12 (included) in the captured image 22 as output data. The AI model 50 can output various information related to the drug 12, such as a product name, a dosage form, an active ingredient, and an efficacy, as output data. Here, for the sake of explanation, it is assumed that the product name of the drug 12 and the quantity shown in the captured image 22 are output as output data.

このAIモデル50は学習データ記憶部60に記憶された学習データ62に基づいて作成されたものである。この学習データ62は、過去に撮影された撮影画像22と、その撮影画像22に写っていた薬剤12が何であったか、の情報とを一組の例示データとして、複数の例示データが蓄積されたものである。ここで、過去に撮影された撮影画像22においては薬剤12が様々な状態で(薬剤12の位置、距離、角度、包装状態、撮影時の照明条件、解像度、などが撮影画像22ごとに異なる状態で)写っている。言い換えると、学習データ記憶部60には、各種薬剤12がそれぞれ撮影画像22においてどのような姿で現れるのか、が学習データ62として記憶されている。 The AI model 50 is created based on the learning data 62 stored in the learning data storage unit 60. The learning data 62 is a collection of a plurality of exemplary data, with the captured image 22 captured in the past and information on what the drug 12 captured in the captured image 22 was as a set of exemplary data. Is. Here, in the photographed image 22 taken in the past, the drug 12 is in various states (the position, distance, angle, packaging state, lighting condition at the time of shooting, resolution, etc. of the drug 12 are different for each photographed image 22). It is reflected. In other words, the learning data storage unit 60 stores as learning data 62 how the various agents 12 appear in the captured image 22.

このような学習データ62を基として作成されたAIモデル50は、様々な撮影条件で撮影された撮影画像22を入力データとして、その撮影画像22の中に含まれる薬剤12の情報を的確に出力することが可能である。 The AI model 50 created based on such learning data 62 takes the photographed image 22 photographed under various imaging conditions as input data, and accurately outputs the information of the drug 12 contained in the photographed image 22. It is possible to do.

そして、AIモデル50からの出力データを薬剤識別部30が受け取り、AIモデル50によって識別された、撮影画像22に写っている薬剤12の情報(ここでは製品名と数量)を識別結果としてモニタ14に表示する。このとき、撮影画像22に複数種類の薬剤12が写っているならば、薬剤識別部30はそれら複数種類の薬剤12の全てについて識別を行うことが可能である。また同一種類の薬剤12については、撮影画像22に写っているその薬剤12がどれだけの数量であるかについて識別することも可能である。そしてモニタ14は、撮影画像22に写っている複数種類の薬剤12それぞれについて、種類(例えば製品名)や数量の情報を表示することが可能である。例えば識別対象の薬剤12が図1に示されている錠剤12a単体および錠剤PTPシート12bの場合、錠剤12aの製品名が「ExampleX 5mg」、錠剤PTPシート12bの製品名が「ExampleA 1mg」であるとすると、モニタ14には「<薬剤1:製品名/ExampleX 5mg、数量/1錠>−<薬剤2:製品名/ExampleA 1mg、数量/1シート>」といった情報が表示される。なおこうした識別結果の表示は、撮影画像22と共に表示されてもよい。特に、撮影画像22内の薬剤と、その薬剤の識別結果表示とが重ね合わされて、一種のAR画像として表示されてもよい。 Then, the drug identification unit 30 receives the output data from the AI model 50, and the information (here, the product name and quantity) of the drug 12 shown in the photographed image 22 identified by the AI model 50 is used as the identification result on the monitor 14. Display on. At this time, if a plurality of types of agents 12 are shown in the captured image 22, the agent identification unit 30 can identify all of the plurality of types of agents 12. Further, for the same type of drug 12, it is possible to identify how much the drug 12 shown in the photographed image 22 is. Then, the monitor 14 can display information on the type (for example, product name) and quantity of each of the plurality of types of agents 12 shown in the captured image 22. For example, when the drug 12 to be identified is the tablet 12a alone and the tablet PTP sheet 12b shown in FIG. 1, the product name of the tablet 12a is "Example X 5 mg" and the product name of the tablet PTP sheet 12b is "Example A 1 mg". Then, information such as "<Drug 1: Product name / ExampleX 5 mg, Quantity / 1 tablet>-<Drug 2: Product name / ExampleA 1 mg, Quantity / 1 sheet>" is displayed on the monitor 14. The display of such an identification result may be displayed together with the captured image 22. In particular, the drug in the captured image 22 and the identification result display of the drug may be superimposed and displayed as a kind of AR image.

(識別指標について)
以上が薬剤識別システム10の基本的な動作であるが、本実施形態の薬剤識別システム10においては、AIモデル50による識別以外に、「識別指標」を用いて薬剤12を識別することが可能となっている。識別指標とは、薬剤12または薬剤12を包装する薬剤包装に刻印や印刷などの形で記されたものであり、その薬剤12が何であるか、つまり薬剤12の識別情報を示すものである。なお、識別指標としてはバーコードや二次元コードのような光学マーク(光の屈折率、反射スペクトルなどの光学的性質の異なる複数の部分の組み合わせによって、符号化された情報を表示するもの)のほかに、製品名そのものや識別コード(例えば製薬会社の会社コードとその会社が定める製品コードからなる記号列)が文字列/記号列として記された表示を利用することができる。これらは示すべき情報がそのまま記されている(情報が符号化されていない)が、こうした表示も識別指標として用いることができる。具体的には、薬剤12自体に刻印された識別コードや、薬剤包装にその薬剤12の製品名がそのまま印刷された文字列(例えば「ExampleA 1mg」)や、薬剤包装に印刷されたバーコード(例えば医療用医薬品に表示することが求められている、日本工業規格X0509に規定するGS1データバー)などが識別指標として利用できる。
(About identification index)
The above is the basic operation of the drug identification system 10. In the drug identification system 10 of the present embodiment, it is possible to identify the drug 12 by using an "identification index" in addition to the identification by the AI model 50. It has become. The identification index is written on the drug 12 or the drug package that packages the drug 12 in the form of engraving, printing, or the like, and indicates what the drug 12 is, that is, the identification information of the drug 12. As an identification index, an optical mark such as a bar code or a two-dimensional code (which displays coded information by combining a plurality of parts having different optical properties such as a light refractive index and a reflection spectrum). In addition, a display in which the product name itself or an identification code (for example, a symbol string consisting of a company code of a pharmaceutical company and a product code defined by the company) is written as a character string / symbol string can be used. Although the information to be shown is described as it is (the information is not encoded), such a display can also be used as an identification index. Specifically, an identification code stamped on the drug 12 itself, a character string in which the product name of the drug 12 is printed as it is on the drug package (for example, "Example A 1 mg"), or a barcode printed on the drug package (for example, "Example A 1 mg"). For example, the GS1 data bar specified in Japanese Industrial Standards X0509, which is required to be displayed on medical drugs, can be used as an identification index.

図2A−図2Fは、識別指標の具体例を示している。なお、薬剤および薬剤の包装にはこうした識別指標のほかに、製薬会社の企業ロゴ、包装のリサイクル種別マーク、薬効、用法などが表示されていることがあるが、ここではそれらを省略して識別指標のみを示す。図2Aは1錠の錠剤70a単体を示しており、この錠剤70aには、その表面に「XY123」という識別コード71aが刻印されている。図2Bは図2Aの錠剤70aを包装するPTPシートの一部(2錠分)が切り離されたPTPシート一片73aを示しており、このPTPシート一片73aには、錠剤70aが配置される位置の近くに識別コード71aが印刷されているほか、「ExampleA 1mg」という製品名72aがそのまま文字列として印刷されている。 2A-2F show specific examples of the identification index. In addition to these identification indicators, the company logo of the pharmaceutical company, the recycling type mark of the packaging, the medicinal effect, the usage, etc. may be displayed on the drug and the packaging of the drug, but these are omitted here for identification. Only indicators are shown. FIG. 2A shows one tablet 70a alone, and the tablet 70a is engraved with the identification code 71a of "XY123" on the surface thereof. FIG. 2B shows a PTP sheet piece 73a from which a part (two tablets) of the PTP sheet for packaging the tablet 70a of FIG. 2A is separated, and the PTP sheet piece 73a is at a position where the tablet 70a is arranged. In addition to the identification code 71a printed nearby, the product name 72a "ExampleA 1mg" is printed as it is as a character string.

図2Cは図2BのPTPシート一片73aが切り離される前の、PTPシート75a(10錠分)の全体を示している。図2Bと同じく錠剤70aの近くに識別コード71aおよび製品名72aが印刷されているほか、PTPシート75aの端部(図中の上端部)にも製品名72aが印刷されている。 FIG. 2C shows the entire PTP sheet 75a (for 10 tablets) before the PTP sheet piece 73a of FIG. 2B is separated. Similar to FIG. 2B, the identification code 71a and the product name 72a are printed near the tablet 70a, and the product name 72a is also printed on the end portion (upper end portion in the drawing) of the PTP sheet 75a.

図2Dは図2Cに示されたPTPシート75aの裏側を示している。この裏側には、切り離し線で区切られた2錠分の領域ごとに製品名72aが印刷されているほか、PTPシート75aの端部(図中の下端部)にはバーコード76aが印刷されている。このバーコード76aは、線と空白の組み合わせにより所定桁数の数字を表している。なお、医療用医薬品に記すことが求められているGS1データバーの表す数字は通常10桁以上になるが、ここでは説明のために、バーコード76aは6桁の数字を表しているものとする。 FIG. 2D shows the back side of the PTP sheet 75a shown in FIG. 2C. On the back side, the product name 72a is printed for each area of two tablets separated by a separating line, and the barcode 76a is printed on the end (lower end in the figure) of the PTP sheet 75a. There is. The barcode 76a represents a number having a predetermined number of digits by a combination of a line and a blank. The number represented by the GS1 data bar, which is required to be written on ethical drugs, is usually 10 digits or more, but here, for the sake of explanation, the barcode 76a is assumed to represent a 6-digit number. ..

図2Eは散剤70b(粉薬)がナイロン製のSP包装(Strip Package)によって包装された個別包装73bを示している。この個別包装73bには、散剤70bの識別コード71b(「ZZ789」)と、製品名72b(「ExampleB 10%」)と、バーコード76bが印刷されている。 FIG. 2E shows an individual package 73b in which the powder 70b (powder) is packaged in a nylon SP package (Strip Package). The identification code 71b (“ZZ789”) of the powder 70b, the product name 72b (“ExampleB 10%”), and the barcode 76b are printed on the individual package 73b.

図2Fはカプセル剤70cを包装するPTPシートの一部(3錠分)が切り離されたPTPシート一片73cを示しており、このPTPシート一片73cには、カプセル剤70cの識別コード71c(「VW456」)と、製品名72c(「ExampleC 200」)と、バーコード76cが印刷されている。 FIG. 2F shows a PTP sheet piece 73c from which a part (3 tablets) of the PTP sheet for packaging the capsule 70c is separated, and the PTP sheet piece 73c has an identification code 71c (“VW456”) of the capsule 70c. "), The product name 72c ("Example C 200 "), and the barcode 76c are printed.

図2A−図2Fに示されているような識別指標が示している識別情報はそれぞれ、薬剤情報(薬剤の情報)と対応付けられている。なお、製品名72a,72b,72cは識別指標であるとともに、それ自体が薬剤情報を表しているといえる。識別情報と薬剤情報との対応関係は薬剤識別システム10において管理されており、本実施形態においてはその対応関係が図3に示すような識別指標テーブル42として識別指標テーブル記憶部40に記憶されている。 The identification information indicated by the identification index as shown in FIGS. 2A-2F is associated with the drug information (drug information), respectively. It can be said that the product names 72a, 72b, and 72c are identification indexes and represent drug information by themselves. The correspondence between the identification information and the drug information is managed in the drug identification system 10, and in the present embodiment, the correspondence is stored in the identification index table storage unit 40 as the identification index table 42 as shown in FIG. There is.

図3に識別指標テーブル42の一例を示す。ここでは図2A−図2Dの錠剤70aと、図2Eの散剤70bと、図2Fのカプセル剤70cと、について、識別情報と薬剤情報との対応関係が示されている。例えば錠剤70aについては、薬剤情報である製品名72a「ExampleA 1mg」に対して、識別情報として、バーコード76aの表す数字「123456」および識別コード71a「XY123」が対応付けられて(テーブル内で同じ行、すなわち同じレコードに属するデータとして)記憶されている。同様に、散剤70bについては、その製品名72b「ExampleB 10%」に対して、バーコード76bの表す数字「456789」および識別コード71b「ZZ789」が対応付けられて記憶されている。カプセル剤70cについては、その製品名72c「ExampleC 200」に対して、バーコード76cの表す数字「024680」および識別コード71c「VW456」が対応付けられて記憶されている。なお識別指標テーブル42はこれらの情報以外にも、「剤形」(薬剤の形状)や「包装」(どのように包装されるか)など、薬剤に関する様々な情報を含むことができる。 FIG. 3 shows an example of the identification index table 42. Here, the correspondence between the identification information and the drug information is shown for the tablet 70a of FIGS. 2A-2D, the powder 70b of FIG. 2E, and the capsule 70c of FIG. 2F. For example, for the tablet 70a, the product name 72a "Example A 1 mg", which is the drug information, is associated with the number "123456" represented by the barcode 76a and the identification code 71a "XY123" as the identification information (in the table). It is stored in the same row, that is, as data belonging to the same record. Similarly, with respect to the powder 70b, the product name 72b “Example B 10%” is stored in association with the number “456789” represented by the barcode 76b and the identification code 71b “ZZ789”. Regarding the capsule 70c, the product name 72c "Example C 200" is stored in association with the number "024680" represented by the barcode 76c and the identification code 71c "VW456". In addition to these information, the identification index table 42 can include various information related to the drug, such as "dosage form" (shape of drug) and "packaging" (how to package).

識別指標テーブル42には当然ながら錠剤70a、散剤70b、カプセル剤70c以外にも多数の薬剤に関する情報が含まれる。特に医療用医薬品に関しては、識別対象となり得る製品全てについての情報が含まれていることが望ましい。こうした識別指標テーブル42は図1のAIモデル50とは無関係に用意されるものであり、製薬会社の各社が公的機関に提出した書類や公開しているデータ、あるいは製薬会社から提供されたデータを基に作成される。 The identification index table 42 naturally contains information on a large number of drugs other than the tablets 70a, the powder 70b, and the capsules 70c. Especially for ethical drugs, it is desirable to include information on all products that can be identified. Such an identification index table 42 is prepared independently of the AI model 50 of FIG. 1, and documents submitted by each pharmaceutical company to a public institution, publicly available data, or data provided by the pharmaceutical company. Is created based on.

錠剤70a、散剤70b、カプセル剤70c以外の薬剤の一例として、図3に示されている識別指標テーブル42には、製品名「ExampleX 5mg」の薬剤の情報が含まれている。この薬剤「ExampleX 5mg」は、「包装」が「1瓶 100錠」となっている通り、瓶詰めの錠剤である。薬剤「ExampleX 5mg」の識別指標として、数字「975310」を示すバーコードが瓶に付されているが、1錠単位の薬剤にはバーコードが付されていない。一方、識別コード「NM321」の文字列は各錠剤に刻印されている。識別指標テーブル42はこのほか、チューブ入りの軟膏薬や、アンプル入りの液状薬など、様々な形態の薬剤に関する情報を含むことができる。 As an example of a drug other than the tablet 70a, the powder 70b, and the capsule 70c, the identification index table 42 shown in FIG. 3 contains information on the drug having the product name “ExampleX 5 mg”. This drug "Example X 5mg" is a bottled tablet as the "packaging" is "100 tablets per bottle". A barcode indicating the number "975310" is attached to the bottle as an identification index of the drug "Example X 5 mg", but the barcode is not attached to the drug in units of one tablet. On the other hand, the character string of the identification code "NM321" is engraved on each tablet. The identification index table 42 can also include information about various forms of the drug, such as ointments in tubes and liquids in ampoules.

(識別指標を用いた識別)
本実施形態の薬剤識別システム10(図1)は、図2A−図2Fに示されているような識別指標と、図3に示されているような識別指標テーブル42を用いて、撮影画像22に含まれる薬剤12を識別することもできる。
(Identification using identification index)
The drug identification system 10 (FIG. 1) of the present embodiment uses an identification index as shown in FIGS. 2A-2F and an identification index table 42 as shown in FIG. 3, and captures an image 22. It is also possible to identify the drug 12 contained in.

すなわち、撮影対象の薬剤12または薬剤包装に識別指標が記されている場合には、薬剤識別システム10は、AIモデル50の出力データをそのまま識別結果とするのではなく、識別指標が示す識別情報から薬剤の情報を特定することで識別結果を得ることができる。例えばAIモデル50とは別に、薬剤識別部30が、文字やバーコードからなる識別指標を画像解析により撮影画像22から検出する検出機能を備えているならば、その検出機能によって得られた識別指標の示す識別情報を識別指標テーブル42と照合することで、AIモデル50を用いずに薬剤12の情報を得ることができる。 That is, when the identification index is written on the drug 12 or the drug package to be imaged, the drug identification system 10 does not use the output data of the AI model 50 as the identification result as it is, but the identification information indicated by the identification index. The identification result can be obtained by specifying the drug information from. For example, if the drug identification unit 30 has a detection function for detecting an identification index consisting of characters or barcodes from the captured image 22 by image analysis, apart from the AI model 50, the identification index obtained by the detection function is provided. By collating the identification information shown in the above with the identification index table 42, the information of the drug 12 can be obtained without using the AI model 50.

つまり、識別指標の検出および読み取りはAIモデル50とは別の画像解析プログラムによって行われてもよい。識別指標(バーコードや文字列など)の存在する部分を検出し、その部分のみに着目して読み取ることに特化した画像解析プログラムは、識別対象の外観全体から識別を行うAIモデル50に比べて、撮影条件によっては(例えば全体的に照明が暗いがバーコード部分のみ明るくなっている場合などには)AIモデル50よりも精度の高い識別を行えることがある。 That is, the detection and reading of the identification index may be performed by an image analysis program different from the AI model 50. Compared to the AI model 50, which detects the part where the identification index (bar code, character string, etc.) exists and specializes in reading only that part, it distinguishes from the entire appearance of the identification target. Therefore, depending on the shooting conditions (for example, when the illumination is dark as a whole but only the barcode portion is bright), it may be possible to perform identification with higher accuracy than the AI model 50.

ただしAIモデル50によっても、撮影画像22に含まれている識別指標を検出することは可能である。すなわち、AIモデル50は、撮影画像22に写っている薬剤12について、識別指標以外の姿(輪郭の形状、色彩など)に基づく識別を行うとともに、識別指標の有無についても判定することができる。AIモデル50は、識別指標が撮影画像22に含まれていると判定したならば、その識別指標に対応する薬剤12の識別情報を薬剤識別部30へ通知する。そして薬剤識別部30が、通知された識別情報を識別指標テーブル42と照合することで、AIモデル50を用いつつ識別指標に基づく薬剤12の識別が行われる。 However, the AI model 50 can also detect the identification index included in the captured image 22. That is, the AI model 50 can identify the drug 12 shown in the photographed image 22 based on the appearance (outline shape, color, etc.) other than the identification index, and can also determine the presence or absence of the identification index. If the AI model 50 determines that the identification index is included in the captured image 22, the AI model 50 notifies the drug identification unit 30 of the identification information of the drug 12 corresponding to the identification index. Then, the drug identification unit 30 collates the notified identification information with the identification index table 42, so that the drug 12 is identified based on the identification index while using the AI model 50.

以上のようにして識別情報に基づいて薬剤12の情報が得られたならば、識別情報に基づいて得られた薬剤12の情報を識別結果としてモニタ14へ表示するとともに、その識別結果と撮影画像22を組み合わせて学習データ記憶部60に送信する。具体的には図4に示すような、薬剤撮影例データ32a,32bを作成して学習データ記憶部60に送信する。この場合、つまり画像解析プログラムやAIモデル50によって識別指標が検出されたら、その識別指標の示す識別情報に基づく識別が、AIモデル50による識別結果よりも優先されることになる。 When the information on the drug 12 is obtained based on the identification information as described above, the information on the drug 12 obtained based on the identification information is displayed on the monitor 14 as the identification result, and the identification result and the photographed image are displayed. 22 are combined and transmitted to the learning data storage unit 60. Specifically, as shown in FIG. 4, drug imaging example data 32a and 32b are created and transmitted to the learning data storage unit 60. In this case, that is, when the identification index is detected by the image analysis program or the AI model 50, the identification based on the identification information indicated by the identification index has priority over the identification result by the AI model 50.

(学習データの更新)
薬剤撮影例データ32a,32bには薬剤識別部30が識別情報に基づいて識別した薬剤12の情報と、そのときに識別対象の薬剤12を撮影した撮影画像22とが含まれる。例えば識別対象が図1に示すような1錠の錠剤12a単体と1枚の錠剤PTPシート12bであったならば、図4に示すように、「製品名がExampleA 1mgの薬剤が1シート(10錠)写っている撮影画像」という情報を表す薬剤撮影例データ32aと、「製品名がExampleX 5mgの薬剤が1錠写っている撮影画像」という情報を表す薬剤撮影例データ32bとを薬剤識別部30が作成し、これらの薬剤撮影例データ32a,32bを学習データ記憶部60へ送信する。なお、ここでは撮影画像22を「ExampleA 1mgが1シート」写っている薬剤撮影例データ32aと、「ExampleX 5mgが1錠」写っている薬剤撮影例データ32bとに切り分けているが、撮影画像22の全体を「ExampleA 1mgが1シートと、ExampleX 5mgが1錠」が写っている薬剤撮影例データとして学習データ記憶部60へ送信してもよい。
(Update of learning data)
The drug imaging example data 32a and 32b include information on the drug 12 identified by the drug identification unit 30 based on the identification information, and captured images 22 obtained by photographing the drug 12 to be identified at that time. For example, if the identification target is one tablet 12a alone and one tablet PTP sheet 12b as shown in FIG. 1, as shown in FIG. 4, "one sheet (10) of a drug having a product name of Example A 1 mg. Drug identification unit 3 30 creates and transmits these drug imaging example data 32a and 32b to the learning data storage unit 60. Here, the photographed image 22 is divided into the drug imaging example data 32a in which "Example A 1 mg is one sheet" and the drug imaging example data 32b in which "Example X 5 mg is one tablet". The whole of the above may be transmitted to the learning data storage unit 60 as drug imaging example data in which "Example A 1 mg is one sheet and Example X 5 mg is one tablet".

学習データ記憶部60は、薬剤識別部30から薬剤撮影例データ32a,32bを受信すると、薬剤撮影例データ32a,32bを基に学習データ62を更新する。具体的には、薬剤撮影例データ32a,32bに含まれている薬剤12の情報(どのような薬剤が撮影されたか)と、撮影画像22の情報(どのような画像であるか)の組み合わせを、「この薬剤12(ここでは「ExampleA 1mg」および「ExampleX 5mg」)は撮影画像22においてこのような姿で現れることがある」という一例として記憶する。 When the learning data storage unit 60 receives the drug imaging example data 32a and 32b from the drug identification unit 30, the learning data storage unit 60 updates the learning data 62 based on the drug imaging example data 32a and 32b. Specifically, the combination of the information of the drug 12 (what kind of drug was photographed) and the information of the photographed image 22 (what kind of image) included in the drug imaging example data 32a and 32b is combined. , "This drug 12 (here," Example A 1 mg "and" Example X 5 mg ") may appear in such a form in the photographed image 22".

学習データ62が更新されたら、その更新後の学習データ62に基づき所定のタイミングでAIモデル50が再作成(教育)される。この再作成は、薬剤識別システム10の動作に支障をきたさないタイミングで行われることが望ましい。例えば学習データ記憶部60自身がAIモデル50の再作成を行うことができ、その再作成にそれほど時間がかからないのであれば、学習データ62が更新される度にAIモデル50が再作成されてもよい。一方、AIモデル50の再作成に要する時間が長く、さらにその再作成作業中には薬剤識別システム10が利用できなくなるような場合には、薬剤識別システム10が稼働していないとき(システム停止中)にAIモデル50の再作成が行われることが好ましい。例えば再作成のためには学習データ62を解析する外部機器(図1に示す構成要素とは別の機器)を薬剤識別システム10に接続する必要があり、その間はAIモデル50が利用できなくなるような場合には、システム停止中での再作成が望まれる。これ以外にも、再作成のタイミングは様々に設定することができ、例えば前回の再作成から所定の期間が経過したとき、学習データ62がある程度蓄積されたとき(学習データ62の更新が所定の回数行われたとき、更新により追加されたデータ量が所定量を上回ったときなど)といったタイミングでもよい。 When the learning data 62 is updated, the AI model 50 is recreated (educated) at a predetermined timing based on the updated learning data 62. It is desirable that this re-creation be performed at a timing that does not interfere with the operation of the drug identification system 10. For example, if the learning data storage unit 60 itself can recreate the AI model 50 and it does not take much time to recreate it, even if the AI model 50 is recreated every time the learning data 62 is updated. good. On the other hand, if the time required to recreate the AI model 50 is long and the drug identification system 10 becomes unavailable during the re-creation work, the drug identification system 10 is not operating (system is stopped). ), It is preferable that the AI model 50 is recreated. For example, in order to recreate it, it is necessary to connect an external device (a device different from the component shown in FIG. 1) that analyzes the learning data 62 to the drug identification system 10, so that the AI model 50 cannot be used during that time. In such a case, it is desirable to recreate it while the system is stopped. In addition to this, the timing of re-creation can be set in various ways. For example, when a predetermined period has elapsed since the previous re-creation, or when the learning data 62 is accumulated to some extent (update of the learning data 62 is predetermined). It may be a timing such as when it is performed a number of times, when the amount of data added by the update exceeds a predetermined amount, and so on.

更新後の学習データ62を基に再作成されたAIモデル50は、再作成前のAIモデル50よりも、撮影画像22に写っている薬剤12を識別する能力が高くなる。例えば図4の薬剤撮影例データ32aにはPTPシートの裏側が写っており薬剤単体の姿は現れておらず、さらに製品名の文字も小さくて読み取り困難であるが、バーコードは読み取り可能な状態になっている。このため薬剤識別部30はバーコードの示す識別情報を基に、この撮影画像は「ExampleA 1mg」が写ったものであると特定することができる。このときの薬剤撮影例データ32aを用いて学習データ62が更新され、それを基にAIモデル50が再作成(教育)されると、AIモデル50は今後、入力された撮影画像に薬剤単体の姿は現れておらず製品名も読み取り困難な場合にも、薬剤撮影例データ32aに類似した撮影画像であれば「ExampleA 1mg」が写っていると識別することが可能になる。 The AI model 50 recreated based on the updated learning data 62 has a higher ability to identify the drug 12 shown in the captured image 22 than the AI model 50 before the re-creation. For example, in the drug imaging example data 32a of FIG. 4, the back side of the PTP sheet is shown, the appearance of the drug alone does not appear, and the characters of the product name are small and difficult to read, but the barcode is in a readable state. It has become. Therefore, the drug identification unit 30 can identify that the photographed image is an image of "Example A 1 mg" based on the identification information indicated by the barcode. When the learning data 62 is updated using the drug imaging example data 32a at this time and the AI model 50 is recreated (educated) based on the learning data 62, the AI model 50 will be added to the input captured image of the drug alone in the future. Even if the figure does not appear and the product name is difficult to read, it is possible to identify that "Example A 1 mg" is shown if the photographed image is similar to the drug imaging example data 32a.

また、個別の薬剤12a,12bに関する薬剤撮影例データ32a,32bが数多く蓄積されることにより、その情報が反映されたAIモデル50は、複数の薬剤12が写っている撮影画像22に対して、その中に個別の薬剤12a,12bがそれぞれ写っていることを識別できるようになる。つまり、個別の薬剤12a,12bに関する薬剤撮影例データ32a,32bを収集することで、複数の薬剤12を同時に識別することも可能になる。その一方で、撮影画像22が個別の薬剤12a,12bに関する薬剤撮影例データ32a,32bとして切り分けられずに、「複数の薬剤が写っている薬剤撮影例データ」という形で蓄積された場合にも、その薬剤撮影例データに類似する撮影画像に対して、複数の薬剤に関する識別を精度よく素早く行うことが可能になる。 Further, by accumulating a large number of drug imaging example data 32a and 32b relating to the individual agents 12a and 12b, the AI model 50 in which the information is reflected can be obtained with respect to the captured image 22 in which the plurality of agents 12 are captured. It becomes possible to identify that the individual drugs 12a and 12b are reflected in it. That is, by collecting the drug imaging example data 32a and 32b relating to the individual drugs 12a and 12b, it is possible to identify a plurality of drugs 12 at the same time. On the other hand, even when the captured image 22 is not separated as the drug imaging example data 32a and 32b relating to the individual drugs 12a and 12b, but is accumulated in the form of "drug imaging example data showing a plurality of drugs". , It becomes possible to accurately and quickly identify a plurality of drugs for a photographed image similar to the drug imaging example data.

(薬剤識別システムによる識別の手順)
図5に、図1の薬剤識別システム10によって行われる薬剤12の識別および学習データ62の更新の手順をフローチャートとして示す。まず、ユーザが撮影した撮影画像22が、薬剤識別部30に入力される(ステップS01)。薬剤識別部30は入力された撮影画像22の画像認識を開始し(ステップS02)、AIモデル50またはそれとは別の検出機能によって、撮影画像22内に識別指標が含まれているかどうかを判定する(ステップS03)。
(Procedure for identification by drug identification system)
FIG. 5 shows as a flowchart a procedure for identifying the drug 12 and updating the learning data 62 performed by the drug identification system 10 of FIG. First, the captured image 22 captured by the user is input to the drug identification unit 30 (step S01). The drug identification unit 30 starts image recognition of the input captured image 22 (step S02), and determines whether or not the captured image 22 contains an identification index by the AI model 50 or a detection function different from the AI model 50. (Step S03).

撮影画像22内に識別指標が含まれていた場合(ステップS03−YES)、薬剤識別部30はその識別指標が示す識別情報に基づいて、識別指標テーブル記憶部40の識別指標テーブル42から、撮影画像22内の薬剤12に関する情報(薬剤情報)を取得し(ステップS04)、その薬剤情報を識別結果とする。そして薬剤識別部30は撮影画像22および取得した薬剤情報を基に、薬剤撮影例データ32a,32bを作成し(ステップS05)、それを学習データ記憶部60へ送信する(ステップS06)。薬剤撮影例データ32a,32bを受信した学習データ記憶部60は、その薬剤撮影例データ32a,32bを基に学習データ62を更新する(ステップS07)。 When the identification index is included in the captured image 22 (step S03-YES), the drug identification unit 30 photographs the image from the identification index table 42 of the identification index table storage unit 40 based on the identification information indicated by the identification index. Information (drug information) regarding the drug 12 in the image 22 is acquired (step S04), and the drug information is used as the identification result. Then, the drug identification unit 30 creates drug imaging example data 32a and 32b based on the captured image 22 and the acquired drug information (step S05), and transmits the data to the learning data storage unit 60 (step S06). The learning data storage unit 60 that has received the drug imaging example data 32a and 32b updates the learning data 62 based on the drug imaging example data 32a and 32b (step S07).

一方、撮影画像22内に識別指標が含まれていなかった場合(ステップS03−NO)、撮影画像22を入力データとして受け取ったAIモデル50が出力データとして返す薬剤情報を識別結果とする(ステップS08)。 On the other hand, when the identification index is not included in the captured image 22 (step S03-NO), the drug information returned as the output data by the AI model 50 receiving the captured image 22 as input data is used as the identification result (step S08). ).

そして薬剤識別部30は、ステップS04またはステップS08において得られた識別結果をモニタ14へ送信する。識別結果を受信したモニタ14は、その識別結果をユーザに対して表示する(ステップS09)。 Then, the drug identification unit 30 transmits the identification result obtained in step S04 or step S08 to the monitor 14. The monitor 14 that has received the identification result displays the identification result to the user (step S09).

以上のようにして、ユーザが撮影対象とした薬剤12について、識別結果がモニタ14へ表示されるとともに、識別指標が撮影画像22に含まれていれば、学習データ62の更新が行われる。この薬剤識別システム10によれば、過去の様々な条件下において撮影された撮影画像22が蓄積された学習データ62に基づいてAIモデル50が作成され、そのAIモデル50を用いて識別が行われる。そのため、薬剤識別システム10は、様々な姿勢の薬剤12(例えば図1に示す錠剤PTPシート12bのような、斜め向きになっている薬剤12またはそれを含む薬剤包装)について、その姿勢のまま識別を行うことができる。したがって特許文献1に記載された従来の秤量装置で行われるような、薬剤12を適正な撮像条件下に置くという作業を行わなくとも識別が可能であるので、ユーザは手軽に識別を行うことができる。「適正な撮像条件に置く」ことの例を一つ挙げると、従来技術では撮影画像22において薬剤12の背景色が特定の色(典型的には黒)に統一される必要があった。これは、「画像中のどこからどこまでが薬剤なのか」の検出、つまり薬剤の輪郭(エッジ)の検出を行うにあたり、従来技術で背景色を特定の色に統一することで、その色と異なる部分を薬剤の存在領域として検出できるようにする必要があった。これに対し、本実施形態で使用されるような、十分に教育されたAIモデル50であれば、画像の背景がどのような色であっても(複数の色や物体が写り込んでいても)エッジを検出することが可能であり、背景色を統一する作業(例えば予め準備された黒一色のマット上に薬剤12を配置する作業)が必要なくなる。 As described above, the identification result of the drug 12 targeted by the user is displayed on the monitor 14, and the learning data 62 is updated if the identification index is included in the captured image 22. According to this drug identification system 10, an AI model 50 is created based on learning data 62 in which captured images 22 taken under various past conditions are accumulated, and identification is performed using the AI model 50. .. Therefore, the drug identification system 10 identifies the drug 12 in various postures (for example, the drug 12 in an oblique direction such as the tablet PTP sheet 12b shown in FIG. 1 or the drug package containing the drug 12) in that posture. It can be performed. Therefore, the identification can be performed without performing the work of placing the drug 12 under appropriate imaging conditions as in the conventional weighing device described in Patent Document 1, so that the user can easily perform the identification. can. To give one example of "putting it in an appropriate imaging condition", in the prior art, it was necessary to unify the background color of the drug 12 to a specific color (typically black) in the captured image 22. This is a part different from that color by unifying the background color to a specific color in the conventional technology when detecting "where in the image the drug is", that is, detecting the outline (edge) of the drug. Needed to be able to be detected as a region of presence of the drug. On the other hand, if the AI model 50 is well-educated as used in the present embodiment, the background of the image may be any color (even if a plurality of colors or objects are reflected). ) Edges can be detected, and the work of unifying the background color (for example, the work of arranging the drug 12 on a black mat prepared in advance) becomes unnecessary.

また撮影画像22に識別指標が含まれていれば、ユーザの作業としては薬剤12を撮影するだけで学習データ62の更新が行われることになるため、薬剤12に関して専門的な知識(正確な薬剤情報)を持たないユーザであっても、学習データ62の更新(蓄積)に寄与することができる。また薬剤識別の過程で撮影される撮影画像22を学習データ62の一部として蓄積することが可能であり、何度も薬剤識別が行われることでAIモデル50による識別の精度を高めていくことが可能となっている。 Further, if the captured image 22 includes the identification index, the learning data 62 is updated only by photographing the drug 12 as the user's work, so that the user has specialized knowledge about the drug 12 (accurate drug). Even a user who does not have the information) can contribute to the update (accumulation) of the learning data 62. Further, it is possible to accumulate the captured image 22 taken in the process of drug identification as a part of the learning data 62, and the accuracy of identification by the AI model 50 is improved by performing drug identification many times. Is possible.

また識別指標が検出されなくともAIモデル50による識別は可能であるので、例えば一包化調剤されることにより製品名やバーコードがわからなくなった薬剤12についても、AIモデル50により薬剤12の外観、輪郭に基づいて識別を行うことができる。また識別指標としては薬剤12単体に施された製品コードの刻印を利用することも可能であるので、薬剤包装から取り出された薬剤12単体についても識別を行うことができるほか、医療用医薬品以外の、バーコードの付いていない市販薬も識別できる。なお、識別コードはメーカが独自に定めるものであるので、異なる薬剤に同じ識別コードが割り当てられることもあるが、そのような場合でも剤形、色彩、割線の有無で区別できることが多く、識別コードの読み取りとAIモデル50による形状識別とを組み合わせることで精度の高い識別を行うことが可能である。 Further, since the identification index can be identified by the AI model 50 even if the identification index is not detected, the appearance of the drug 12 can be identified by the AI model 50 even for the drug 12 whose product name or barcode cannot be known due to, for example, one-pack dispensing. , The identification can be performed based on the contour. In addition, since the product code engraved on the drug 12 alone can be used as an identification index, it is possible to identify the drug 12 alone taken out from the drug packaging, and other than ethical drugs. , Over-the-counter drugs without barcodes can also be identified. Since the identification code is uniquely determined by the manufacturer, the same identification code may be assigned to different drugs, but even in such cases, it is often possible to distinguish by the dosage form, color, and the presence or absence of a score line, and the identification code. It is possible to perform highly accurate identification by combining the reading of the above and the shape identification by the AI model 50.

(ネットワークを介したシステム)
図6は、複数のローカル機器86がネットワーク82を介してメイン機器84へとアクセスする形態の薬剤識別システム80を示している。この薬剤識別システム80においては、ユーザが直接操作するのはローカル機器86である。ローカル機器86はそれぞれ異なる形態の機器であってもよく、図6においてはローカル機器86の例として、スマートフォン86a、調剤鑑査装置86b(調剤薬局などに据え付けで設置される機器)、デスクトップPC86cが示されている。なお、図中ではこれら各ローカル機器86がネットワーク82に対して線で結ばれているが、実際には無線通信によってメイン機器84へのアクセスを行うものであってもよい。
(System via network)
FIG. 6 shows a drug identification system 80 in which a plurality of local devices 86 access the main device 84 via the network 82. In the drug identification system 80, the user directly operates the local device 86. The local device 86 may be a device having a different form, and in FIG. 6, as an example of the local device 86, a smartphone 86a, a dispensing inspection device 86b (a device installed installed in a dispensing pharmacy, etc.), and a desktop PC 86c are shown. Has been done. In the figure, each of these local devices 86 is connected to the network 82 by a line, but in reality, the main device 84 may be accessed by wireless communication.

また、ネットワーク82にはメイン機器84が接続されている。メイン機器84は各ローカル機器86がネットワーク82を介してアクセスする対象となる機器(サーバ装置など)であり、図6に示すように、学習データ62を記憶する学習データ記憶部60と、この学習データ62を基に作成されたメインAIモデル52とを有している。メインAIモデル52は図1の薬剤識別システム10におけるAIモデル50と同じく、薬剤が撮影画像においてどのような姿で現れるのかについての情報が蓄積された学習データ62を基に作成されたものであり、撮影画像を入力データとして、それに対応する薬剤情報を出力データとして返す機能を有する。 Further, the main device 84 is connected to the network 82. The main device 84 is a device (such as a server device) to be accessed by each local device 86 via the network 82, and as shown in FIG. 6, a learning data storage unit 60 that stores learning data 62 and this learning It has a main AI model 52 created based on the data 62. Like the AI model 50 in the drug identification system 10 of FIG. 1, the main AI model 52 is created based on the learning data 62 in which information about how the drug appears in the photographed image is accumulated. , It has a function of returning the photographed image as input data and the corresponding drug information as output data.

各ローカル機器86はそれぞれ、図1の薬剤識別システム10における薬剤識別部30に相当する機能を備えている。例えば薬剤識別機能を提供する識別アプリケーションをローカル機器86へインストールすることで、ローカル機器86の演算器(CPUやプロセッサ)を薬剤識別部30として利用することが可能になる。また、各ローカル機器86にはそれぞれローカルAIモデル56が組み込まれている。例えば前述の識別アプリケーションにローカルAIモデル56を構成するデータが含まれていれば、ローカル機器86にローカルAIモデル56が組み込まれた状態となる。ローカルAIモデル56を構成するデータは例えば、識別アプリケーションのインストール時やアップデート時に、メイン機器84からその時点でのメインAIモデル52のデータを受信することで入手できる。 Each local device 86 has a function corresponding to the drug identification unit 30 in the drug identification system 10 of FIG. For example, by installing an identification application that provides a drug identification function on the local device 86, the arithmetic unit (CPU or processor) of the local device 86 can be used as the drug identification unit 30. In addition, each local device 86 incorporates a local AI model 56. For example, if the above-mentioned identification application includes data constituting the local AI model 56, the local device 86 is in a state where the local AI model 56 is incorporated. The data constituting the local AI model 56 can be obtained, for example, by receiving the data of the main AI model 52 at that time from the main device 84 at the time of installing or updating the identification application.

ローカルAIモデル56もメインAIモデル52と同じく、撮影画像を入力データとして、それに対応する薬剤情報を出力データとして返す機能を有する。また図6には図示しないが、各ローカル機器86には薬剤の画像を撮影する機能も備わっている。例えばスマートフォン86aおよび調剤鑑査装置86bであればこれらに組み込まれたカメラが、デスクトップPC86cであればUSB接続などにより外付けされるカメラが、薬剤の撮影画像を得る手段となる。 Like the main AI model 52, the local AI model 56 also has a function of returning the captured image as input data and the corresponding drug information as output data. Although not shown in FIG. 6, each local device 86 also has a function of taking an image of the drug. For example, in the case of a smartphone 86a and a dispensing inspection device 86b, a camera incorporated therein is used, and in the case of a desktop PC 86c, a camera externally attached by a USB connection or the like is a means for obtaining a photographed image of the drug.

各ローカル機器86はローカルAIモデル56を用いることにより、自身で撮影した撮影画像に関して、それに写っている(含まれる)薬剤の識別を行うことができるほか、撮影画像に識別指標が含まれているか否かを判定し、識別指標が含まれていればそれが示す識別情報を基に薬剤の識別を行うことができる。以下、一例として、スマートフォン86aがローカル機器86として機能する場合の薬剤識別システム80の働きについて説明するが、システムの構成要素間でのデータの入出力においてネットワーク82を経由することがある以外は基本的に図5のフローチャートと同じ流れで薬剤識別が行われる。 By using the local AI model 56, each local device 86 can identify the drug (included) in the photographed image taken by itself, and whether the photographed image contains an identification index. Whether or not it is determined, and if an identification index is included, the drug can be identified based on the identification information indicated by the identification index. Hereinafter, as an example, the function of the drug identification system 80 when the smartphone 86a functions as the local device 86 will be described, but it is basic except that the data input / output between the components of the system may be performed via the network 82. Drug identification is performed in the same flow as the flowchart of FIG.

ユーザがスマートフォン86aのカメラによって薬剤の撮影画像を撮影し、それをローカルAIモデル56へ入力した結果、ローカルAIモデル56が出力データとして薬剤情報を返したならば、その薬剤情報が識別結果としてスマートフォン86aの画面に表示される。また、撮影画像に識別指標が含まれていると判定された場合には、その識別指標に対応する識別情報に基づいて薬剤の識別が行われる。この識別情報に基づく薬剤の識別においては、図3の識別指標テーブル42に相当するデータが識別アプリケーションと共にスマートフォン86aへインストールされていれば、そのデータを用いて識別情報に対応した薬剤情報を得ることができる。あるいは図1の識別指標テーブル記憶部40に相当するものとして、図6に示すような、各種薬剤に関する薬剤情報が収録されている薬剤DB88a(DB:データベース)がネットワーク82に接続されているならば、スマートフォン86aは薬剤DB88aにネットワーク82を介してアクセスし、薬剤DB88a内のデータから、撮影した薬剤に関する情報を取得するようにしてもよい。 If the user takes a photographed image of the drug with the camera of the smartphone 86a and inputs it to the local AI model 56, and the local AI model 56 returns the drug information as output data, the drug information is the identification result of the smartphone. It is displayed on the screen of 86a. When it is determined that the captured image contains an identification index, the drug is identified based on the identification information corresponding to the identification index. In the identification of a drug based on this identification information, if the data corresponding to the identification index table 42 of FIG. 3 is installed on the smartphone 86a together with the identification application, the drug information corresponding to the identification information can be obtained using the data. Can be done. Alternatively, if a drug DB88a (DB: database) in which drug information related to various drugs is recorded as shown in FIG. 6 is connected to the network 82 as corresponding to the identification index table storage unit 40 of FIG. The smartphone 86a may access the drug DB 88a via the network 82 and acquire information on the photographed drug from the data in the drug DB 88a.

識別指標を用いた薬剤の識別が行われた場合には、スマートフォン86aはそのときの撮影画像と識別結果(識別した薬剤の情報)とを組み合わせた薬剤撮影例データを作成し、ネットワーク82を介してメイン機器84へ送信する。なおこの送信は薬剤の識別後すぐに行う必要はなく、メイン機器84へアクセスする機会があったときに行えばよい。メイン機器84はスマートフォン86a(ローカル機器86)から送信された薬剤撮影例データに基づき、自身の学習データ記憶部60に記憶されている学習データ62を更新する。学習データ62が更新されたら、所定のタイミングでメインAIモデル52の再作成(教育)を行う。またその後、スマートフォン86aからローカルAIモデル56を更新する要請を受信した際には、再作成したメインAIモデル52のコピーデータをスマートフォン86aへ送信する。 When a drug is identified using the identification index, the smartphone 86a creates drug imaging example data that combines the captured image at that time and the identification result (information on the identified drug), and via the network 82. Is transmitted to the main device 84. It should be noted that this transmission does not have to be performed immediately after the drug is identified, but may be performed when there is an opportunity to access the main device 84. The main device 84 updates the learning data 62 stored in its own learning data storage unit 60 based on the drug imaging example data transmitted from the smartphone 86a (local device 86). When the learning data 62 is updated, the main AI model 52 is recreated (educated) at a predetermined timing. After that, when the request for updating the local AI model 56 is received from the smartphone 86a, the copy data of the recreated main AI model 52 is transmitted to the smartphone 86a.

ところで、メインAIモデル52は学習データ62の更新(蓄積)に従って識別能力が向上していくが、ローカルAIモデル56はモデル自体が更新されない限り識別能力が一定のままである。そのため、メインAIモデル52であれば入力された撮影画像に何が写っているか識別可能であっても、ローカルAIモデル56では識別できないという事態も起こり得る。そこで、ローカルAIモデル56による識別では撮影画像に含まれる薬剤を識別不能な(どのような薬剤が撮影画像に含まれているか特定できない)場合には、スマートフォン86aはネットワーク82を介してメイン機器84へアクセスし、そのときの撮影画像をメイン機器84へ送信して、その撮影画像に写っている薬剤について「問い合わせ」を行う。「問い合わせ」を受けたメイン機器84は、そのときの撮影画像をメインAIモデル52に入力することで、その撮影画像に写っている薬剤を識別し、その識別結果をスマートフォン86aへ送信することで「回答」を行う。このように、ローカル機器86であるスマートフォン86aからでも、ネットワーク82を介することでメインAIモデル52を用いた薬剤の識別を行うことが可能になっていることが好ましい。 By the way, the discriminating ability of the main AI model 52 improves as the learning data 62 is updated (accumulated), but the discriminating ability of the local AI model 56 remains constant unless the model itself is updated. Therefore, even if the main AI model 52 can identify what is shown in the input captured image, the local AI model 56 may not be able to identify it. Therefore, when the drug contained in the captured image cannot be identified by the identification by the local AI model 56 (what kind of drug is contained in the captured image cannot be identified), the smartphone 86a is used as the main device 84 via the network 82. Is accessed, the photographed image at that time is transmitted to the main device 84, and an "inquiry" is made about the drug shown in the photographed image. Upon receiving the "inquiry", the main device 84 inputs the captured image at that time into the main AI model 52, identifies the drug shown in the captured image, and transmits the identification result to the smartphone 86a. Make an "answer". As described above, it is preferable that the drug can be identified using the main AI model 52 even from the smartphone 86a, which is the local device 86, via the network 82.

調剤鑑査装置86bやデスクトップPC86cといったその他の機器がローカル機器86として働く場合も、上記のスマートフォン86aの場合と同様のことが行われる。このように、薬剤識別システム80がネットワーク82を介して接続されたメイン機器84と複数のローカル機器86を有する場合には、メイン機器84は世間に大量に出回っているスマートフォン86aなどの多数のローカル機器86から薬剤撮影例データを収集することが可能となり、学習データ62の蓄積速度が向上することが見込まれる。なお、このように多数の機器から薬剤撮影例データを収集する際には、データ整合性の担保およびデータ解析の効率化のため、ローカル機器86が薬剤撮影例データに撮影日時、撮影場所、自身の端末識別番号などを付加してメイン機器84へ送るようにしてもよい。 When other devices such as the dispensing inspection device 86b and the desktop PC 86c work as the local device 86, the same procedure as in the case of the smartphone 86a described above is performed. In this way, when the drug identification system 80 has a main device 84 connected via the network 82 and a plurality of local devices 86, the main device 84 is a large number of local devices such as smartphones 86a that are widely available in the world. It is possible to collect drug imaging example data from the device 86, and it is expected that the accumulation speed of the learning data 62 will be improved. When collecting drug imaging example data from a large number of devices in this way, the local device 86 uses the drug imaging example data as the imaging date, shooting location, and itself in order to ensure data consistency and improve the efficiency of data analysis. The terminal identification number and the like may be added and sent to the main device 84.

また、ローカル機器86に組み込まれたローカルAIモデル56を用いて撮影画像に含まれる薬剤を識別する場合には、ローカルAIモデル56のみによって薬剤の識別が可能であればローカル機器86はメイン機器84へアクセスする必要がないため、ネットワーク82を介した通信の頻度を最小限に抑えることができ、薬剤識別の平均速度が向上し、またシステム全体の通信量を抑えることができる。 Further, when the drug contained in the captured image is identified using the local AI model 56 incorporated in the local device 86, the local device 86 is the main device 84 if the drug can be identified only by the local AI model 56. Since it is not necessary to access to, the frequency of communication via the network 82 can be minimized, the average speed of drug identification can be improved, and the amount of communication in the entire system can be suppressed.

なお、各ローカル機器86は、撮影画像を得る手段、ネットワーク82へアクセスするための通信機能、および薬剤識別部30を搭載する一方で、ローカルAIモデル56を搭載しない構成であってもよい。この場合、各ローカル機器86は、上記の「問い合わせ」を行う場合と同様に、撮影画像をメイン機器84に送信し、メイン機器84のAIモデル52を利用して薬剤を識別する。撮影画像を受信したメイン機器84が、その撮影画像に関してAIモデル52による識別の結果となる出力データを各ローカル機器86に引き渡すことにより、各ローカル機器86における薬剤の識別が行われる。 Each local device 86 may be equipped with a means for obtaining a captured image, a communication function for accessing the network 82, and a drug identification unit 30, but may not be equipped with the local AI model 56. In this case, each local device 86 transmits the captured image to the main device 84 and identifies the drug by using the AI model 52 of the main device 84, as in the case of making the above-mentioned "inquiry". The main device 84 that has received the captured image passes the output data that is the result of identification by the AI model 52 with respect to the captured image to each local device 86, so that the drug in each local device 86 is identified.

またネットワーク82には、メイン機器84とローカル機器86以外にも、様々な構成要素を接続することが可能である。図6には例として、処方箋DB88b、在庫DB88c、服薬管理DB88dがネットワーク82に接続された状態が示されている。 Further, in addition to the main device 84 and the local device 86, various components can be connected to the network 82. FIG. 6 shows, as an example, a state in which the prescription DB88b, the inventory DB88c, and the medication management DB88d are connected to the network 82.

(調剤鑑査)
処方箋DB88bは、医師の判断により入力される処方箋情報を記憶するデータベースである。処方箋情報とは、病院などの医療機関において医師が患者を診断した結果、その患者に処方するべきものとして医師が判断した薬剤の情報である。いわゆる調剤薬局においては、患者が処方箋情報を記載した書面(処方箋)を提出することにより、その処方箋情報に基づいて薬剤が調剤されて患者に交付される。このときに、患者へ交付しようとする薬剤が本当に処方箋に記載された内容と一致するかどうかを確認する「調剤鑑査」の作業において、処方箋DB88bがネットワーク82に接続されていれば、薬剤識別システム80を利用することができる。すなわち、患者へ交付しようとする薬剤をスマートフォン86aや調剤鑑査装置86bのカメラなどで撮影し、交付しようとする薬剤を識別して、その識別結果を処方箋DB88bと照合することにより、処方箋情報に基づいて調剤された薬剤が本当に処方箋情報と合致しているかどうかを確認することができる。ここで、調剤される薬剤が複数ある場合には、薬剤識別システム80はそれら複数の薬剤をまとめて識別して、それら複数の薬剤の情報が種類も数量も全て処方箋情報と合致しているかどうかを判定することが好ましい。あるいは、薬剤識別システム80は複数回に分けて識別を行い、それらの識別結果の総合が処方箋情報と合致しているか否かを判定してもよい。
(Dispensing inspection)
The prescription DB88b is a database that stores prescription information input at the discretion of a doctor. Prescription information is information on a drug that a doctor has determined to be prescribed to the patient as a result of the doctor diagnosing the patient at a medical institution such as a hospital. In a so-called dispensing pharmacy, when a patient submits a document (prescription) containing prescription information, a drug is dispensed based on the prescription information and delivered to the patient. At this time, in the work of "dispensing inspection" for confirming whether the drug to be delivered to the patient really matches the contents described in the prescription, if the prescription DB88b is connected to the network 82, the drug identification system 80 can be used. That is, the drug to be delivered to the patient is photographed with a smartphone 86a or a camera of the dispensing inspection device 86b, the drug to be delivered is identified, and the identification result is collated with the prescription DB88b based on the prescription information. It is possible to confirm whether the dispensed drug really matches the prescription information. Here, when there are a plurality of drugs to be dispensed, the drug identification system 80 collectively identifies the plurality of drugs, and whether the information on the plurality of drugs matches the prescription information in both type and quantity. It is preferable to determine. Alternatively, the drug identification system 80 may perform identification in a plurality of times and determine whether or not the total of the identification results matches the prescription information.

(在庫管理)
在庫DB88cは、薬局において入庫した薬剤の情報と、出庫した薬剤の情報とに応じて変動する在庫情報を記憶するデータベースである。つまり在庫情報とは、その薬局に現在どのような薬剤が残っているはずであるかを表す情報である。在庫DB88cがネットワーク82に接続されていれば、薬局に現在どのような薬剤が残っているかを確認する作業、いわゆる棚卸しの際に、薬剤識別システム80を利用することができる。例えば、薬局に残っている薬剤を取り出す度にスマートフォン86aのカメラなどで撮影して識別を行い、全ての薬剤を取り出した時点でそれまでの識別結果の総合が在庫情報と合致するか否かを判定することで、在庫情報と、実際に残っている薬剤との間に差異が生じていないかを確認することができる。このとき、在庫情報に比べて実際に残っている薬剤が少なければ、薬剤を紛失している可能性があり、残っている薬剤が多ければ、記録に残らない形で余分に入庫したか、出庫するべき薬剤を出庫し忘れているといった可能性がある。薬剤識別システム80を利用することで、こうした不測の事態が生じている可能性を割り出すことができる。
(Inventory control)
The inventory DB 88c is a database that stores inventory information that fluctuates according to information on drugs that have been received at a pharmacy and information on drugs that have been issued. In other words, inventory information is information that indicates what kind of drug should be left in the pharmacy at present. If the inventory DB 88c is connected to the network 82, the drug identification system 80 can be used for the work of confirming what kind of drug is currently left in the pharmacy, that is, the so-called inventory. For example, every time a drug remaining in a pharmacy is taken out, it is photographed with a camera of a smartphone 86a or the like to identify it, and when all the drugs are taken out, whether or not the total identification result up to that point matches the inventory information. By making a determination, it is possible to confirm whether or not there is a difference between the inventory information and the actually remaining drug. At this time, if there are actually few drugs remaining compared to the inventory information, there is a possibility that the drugs have been lost, and if there are many remaining drugs, extra warehousing or shipping in a form that is not recorded. There is a possibility that you have forgotten to take out the medicine you should do. By using the drug identification system 80, it is possible to determine the possibility that such an unexpected situation has occurred.

(服薬管理)
服薬管理DB88dは、患者に対して調剤された薬剤について、医療機関の指示する服薬スケジュールを管理するデータベースである。具体的には、調剤された薬剤の各種類について、調剤が行われた日時と、調剤された時点の全数量と、服薬1回あたりに消費すべき数量と、望ましい服薬頻度(毎食後など)が記録されており、これらの情報を基に、現在時刻においては調剤した薬剤はどれだけ残っている(どれだけ消費された)はずであるかを推定することが可能である。服薬管理DB88dがネットワーク82に接続されていれば、患者による服薬コンプライアンスの遵守状況を確認でき、服薬アドヒアランスの向上を図ることも可能である。すなわち、在宅介護の現場などにおいて、患者の手元に残っている薬剤を撮影して識別を行い、その識別結果と、服薬管理DB88dから推定される現在の残薬剤数とが合致するか否かを判定することで、患者が服薬スケジュール通りに薬剤を服薬しているかどうかを確認することができる。また、医療機関のスタッフは、患者が服薬スケジュール通りに薬剤を服薬していない場合には、なぜ服薬スケジュールに従わないのかを患者に問い、服薬スケジュールに従えない何らかの事情があるならば、その事情に合わせて服薬スケジュールを見直すなどすることで、服薬アドヒアランスの向上が見込まれる。
(Medication management)
The medication management DB88d is a database that manages the medication schedule instructed by the medical institution for the drugs dispensed to the patient. Specifically, for each type of dispensed drug, the date and time of dispensing, the total quantity at the time of dispensing, the quantity to be consumed per dose, and the desired dosing frequency (after each meal, etc.) Is recorded, and based on this information, it is possible to estimate how much of the dispensed drug should remain (how much was consumed) at the current time. If the medication management DB88d is connected to the network 82, it is possible to confirm the compliance status of the medication compliance by the patient and improve the medication adherence. That is, at the site of home care, the drug remaining in the patient's hand is photographed and identified, and whether or not the identification result matches the current number of remaining drugs estimated from the medication management DB88d. By determining, it is possible to confirm whether or not the patient is taking the drug according to the medication schedule. In addition, the staff of the medical institution asks the patient why he / she does not follow the medication schedule if the patient does not take the medicine according to the medication schedule, and if there is any reason why he / she cannot follow the medication schedule, the circumstances. It is expected that the medication adherence will be improved by reviewing the medication schedule according to the above.

(課金処理)
図6に示すような、ネットワーク82を介して構成された薬剤識別システム80を運営する管理者は、この薬剤識別システム80を利用するユーザに対して、その利用状況に応じて料金を請求(課金)することも可能である。例えばメインAIモデル52を利用した識別を行うとき、ローカルAIモデル56の更新を行うとき、処方箋DB88b、在庫DB88c、服薬管理DB88dにアクセスするときなど、ユーザがネットワーク82上のリソースを利用しようとする際に、そのリソース利用形態に応じて設定された料金を支払うことについて同意したユーザに対してのみリソースの利用を許可するといったことが可能である。
(Billing process)
The administrator who operates the drug identification system 80 configured via the network 82 as shown in FIG. 6 charges the user who uses the drug identification system 80 a fee according to the usage status (billing). ) Is also possible. For example, when performing identification using the main AI model 52, when updating the local AI model 56, when accessing the prescription DB88b, inventory DB88c, medication management DB88d, etc., the user tries to use the resources on the network 82. At that time, it is possible to allow the use of the resource only to the user who has agreed to pay the fee set according to the resource usage pattern.

(識別センサ)
図1に示すような、本発明の薬剤識別システム10においては、ユーザが薬剤の識別を行うたびに学習データ62が更新されていき、その学習データ62を基に再作成(教育)されるAIモデル50の薬剤識別精度も、薬剤識別システム10の利用回数に従って向上していく。その結果としてある程度まで薬剤識別精度が向上したAIモデル50を薬剤識別センサに組み込むことで、高い薬剤識別精度を持つ薬剤識別センサを構築することができる。
(Identification sensor)
In the drug identification system 10 of the present invention as shown in FIG. 1, the learning data 62 is updated every time the user identifies a drug, and the AI is recreated (educated) based on the learning data 62. The drug identification accuracy of the model 50 also improves according to the number of times the drug identification system 10 is used. As a result, by incorporating the AI model 50 whose drug identification accuracy has been improved to some extent into the drug identification sensor, it is possible to construct a drug identification sensor having high drug identification accuracy.

図7に、薬剤識別センサ90の一例を概略的に示す。この薬剤識別センサ90は、基板91上に配置された演算素子93(CPU、プロセッサ、PLDなど)および記憶素子95(メモリ素子など)と、フレキシブルケーブル92を介して基板91に接続された画像撮影素子94(カメラなど)と、基板91と外部の機器とを接続するためのコネクタ98と、を有する。 FIG. 7 schematically shows an example of the drug identification sensor 90. The drug identification sensor 90 is connected to a substrate 91 via a flexible cable 92 and an arithmetic element 93 (CPU, processor, PLD, etc.) and a storage element 95 (memory element, etc.) arranged on the substrate 91. It has an element 94 (such as a camera) and a connector 98 for connecting the substrate 91 and an external device.

図1の薬剤識別システム10において薬剤の識別が繰り返されたことにより十分に蓄積された学習データ62に基づいて作成された(十分に教育された)AIモデル50のデータが、記憶素子95に記憶される。薬剤識別センサ90において、演算素子93と記憶素子95は、AIモデル50が組み込まれた処理部として機能する。この薬剤識別センサ90は、画像撮影素子94によって撮影された撮影画像を処理部において画像認識処理を行うことで、その撮影画像に含まれている薬剤の識別を行うことができる。具体的には、撮影画像を入力データとしてAIモデル50に渡し、AIモデル50が出力データとして返す薬剤の情報を識別結果とすればよい。その識別結果は、コネクタ98に接続されるモニタなどに表示させることができる。 The data of the AI model 50 created (fully educated) based on the learning data 62 sufficiently accumulated by repeating the drug identification in the drug identification system 10 of FIG. 1 is stored in the storage element 95. Will be done. In the drug identification sensor 90, the arithmetic element 93 and the storage element 95 function as a processing unit in which the AI model 50 is incorporated. The drug identification sensor 90 can identify the drug contained in the photographed image by performing image recognition processing on the photographed image photographed by the image capturing element 94 in the processing unit. Specifically, the captured image may be passed to the AI model 50 as input data, and the drug information returned by the AI model 50 as output data may be used as the identification result. The identification result can be displayed on a monitor or the like connected to the connector 98.

図7の薬剤識別センサ90は、図1の薬剤識別システム10において十分に蓄積された学習データ62に基づいて作成されたAIモデル50が組み込まれているため、非常に高い精度で薬剤の識別を行うことができる。また薬剤識別センサ90を構成する最低限の構成要素は画像撮影素子94と処理部(記憶素子95と演算素子93)のみであるので、薬剤識別センサ90の寸法は非常にコンパクトなものとすることができる。 Since the drug identification sensor 90 of FIG. 7 incorporates the AI model 50 created based on the learning data 62 sufficiently accumulated in the drug identification system 10 of FIG. 1, drug identification can be performed with extremely high accuracy. It can be carried out. Further, since the minimum components constituting the drug identification sensor 90 are only the image capturing element 94 and the processing unit (memory element 95 and calculation element 93), the dimensions of the drug identification sensor 90 should be very compact. Can be done.

なお、薬剤識別センサ90に図1に示すような学習データ記憶部60を設けたり、識別指標に基づく薬剤の識別や学習データ62の更新を行わせたりすることも可能である。さらに、コネクタ98を介して薬剤識別センサ90を図6に示すようなネットワーク82へ接続することで、薬剤識別センサ90において更新された学習データあるいは薬剤識別センサ90において収集された薬剤撮影例データをメイン機器84へ送信して、薬剤識別センサ90によって行われた薬剤識別の結果を利用してメイン機器84の学習データ62を更新することも可能である。 It is also possible to provide the drug identification sensor 90 with a learning data storage unit 60 as shown in FIG. 1, to identify the drug based on the identification index, and to update the learning data 62. Further, by connecting the drug identification sensor 90 to the network 82 as shown in FIG. 6 via the connector 98, the learning data updated by the drug identification sensor 90 or the drug imaging example data collected by the drug identification sensor 90 can be obtained. It is also possible to update the learning data 62 of the main device 84 by transmitting to the main device 84 and using the result of the drug identification performed by the drug identification sensor 90.

(ユーザによるデータの確認と修正)
図1の実施形態においては、識別指標の示す識別情報に基づいて薬剤の識別が行われた場合には、その識別結果が撮影画像22と組み合わされて薬剤撮影例データ32a,32bが作成され、学習データ記憶部60へ送信されるが、薬剤撮影例データ32a,32bが学習データ記憶部60へ送信される前に、ユーザによってデータの確認と入力が行われてもよい。例えば、モニタ14は識別結果を表示するとともに、「確定」ボタンと「修正」ボタンも表示する。表示された識別結果が正しければ、ユーザは(マウスやタッチパネルなどの入力手段により)「確定」ボタンを選択して、識別結果が正しいことを薬剤識別部30へ伝える。表示された識別結果が間違っていれば、ユーザは「修正」ボタンを選択して、識別結果が間違っていることを薬剤識別部30へ伝えるとともに、(キーボードやタッチパネルなどの入力手段により)薬剤12の正しい情報を入力して薬剤識別部30へ伝える。薬剤識別部30は、「確定」ボタンが選択された場合には作成した識別結果が確定されたものとして、薬剤撮影例データ32a,32bをそのまま学習データ記憶部60へ送信する。「修正」ボタンが選択された場合には、識別結果をユーザが入力した正しい情報に修正し、それを撮影画像22と組み合わせて薬剤撮影例データ32a,32bを作成し直してから学習データ記憶部60へ送信する。このようにすれば、バーコードなどの識別指標の読み取り間違いがあったとしても、正しい情報を学習データ記憶部60へ送信することができる。なお、「正しいデータ」の入力においてユーザは、図2Bに示すような、薬剤または薬剤包装に記されている識別コード71aや製品名72aなどの、人間がそのまま読み取ることが可能な識別指標の表している識別情報を入力することも可能である。特に医療用医薬品においてはこうした文字列としての識別指標が薬剤包装などに記されていると共に、バーコード76a(図2D)の表す数字もバーコード76a付近に文字列として印刷されていることが多い。そのため、ユーザが薬剤に関する専門的な知識を持っていなくとも、「正しいデータ」を入力することが可能である。このように、ユーザによるデータの入力を行う場合にも、識別指標が示す識別情報が入力されることにより、識別情報に基づいて薬剤の識別が行われることになる。
(User confirmation and correction of data)
In the embodiment of FIG. 1, when the drug is identified based on the identification information indicated by the identification index, the identification result is combined with the captured image 22 to create drug imaging example data 32a and 32b. Although it is transmitted to the learning data storage unit 60, the data may be confirmed and input by the user before the drug imaging example data 32a and 32b are transmitted to the learning data storage unit 60. For example, the monitor 14 displays the identification result and also displays the "confirm" button and the "correct" button. If the displayed identification result is correct, the user selects the "confirm" button (by an input means such as a mouse or a touch panel) to inform the drug identification unit 30 that the identification result is correct. If the displayed identification result is incorrect, the user selects the "correct" button to inform the drug identification unit 30 that the identification result is incorrect, and the drug 12 (by input means such as a keyboard or touch panel). Enter the correct information of and convey it to the drug identification unit 30. When the "confirm" button is selected, the drug identification unit 30 transmits the drug imaging example data 32a and 32b as they are to the learning data storage unit 60, assuming that the created identification result has been confirmed. When the "correct" button is selected, the identification result is corrected to the correct information input by the user, and the identification result is combined with the captured image 22 to recreate the drug imaging example data 32a and 32b, and then the learning data storage unit. Send to 60. In this way, even if there is an error in reading an identification index such as a barcode, the correct information can be transmitted to the learning data storage unit 60. In inputting the "correct data", the user represents an identification index that can be read by humans as it is, such as the identification code 71a or the product name 72a written on the drug or the drug package, as shown in FIG. 2B. It is also possible to enter the identification information. In particular, in medical drugs, such an identification index as a character string is written on the drug packaging, etc., and the number represented by the barcode 76a (FIG. 2D) is often printed as a character string near the barcode 76a. .. Therefore, it is possible for the user to input "correct data" even if he / she does not have specialized knowledge about the drug. In this way, even when the data is input by the user, the drug is identified based on the identification information by inputting the identification information indicated by the identification index.

また、識別指標を用いずにAIモデル50による識別が行われた場合でも、ユーザによるデータの確認と入力を行わせることが可能である。例えば、上記の例と同様、AIモデル50による識別結果と共に「確定」ボタンと「修正」ボタンがモニタ14に表示される。そしてそれぞれのボタンについて、上記と同様に識別結果の確定または修正が行われ、確定または修正された識別結果と撮影画像22とが組み合わされて学習データ記憶部60へ送られる。また、識別指標が検出されず、AIモデル50によっても識別が不可能であった場合には、識別できなかったことを示す表示(「識別不能」など)と共に、「データ入力」ボタンがモニタ14に表示され、このボタンが押された場合にもユーザによって正しいデータの入力が行われてもよい。このようにすれば、AIモデル50による識別が行われた場合や、AIモデル50によっても識別指標によっても識別が不可能であった場合にも、そのときの撮影画像22を含んだ薬剤撮影例データ32a,32bを学習データ記憶部60へ送信することが可能になる。なお、この場合の「正しいデータ」の入力においては、ユーザは、識別指標が記されている箇所を撮影器20で撮影し直す(例えば最初の撮影がPTPシートの表側を写した場合には裏側を撮影し直す)、あるいは撮影器20とは別に設けられたバーコードリーダでバーコードを読み取るなどの方法で、識別対象となっている薬剤または薬剤包装に記されている識別指標を改めて薬剤識別部30へ検出させるようにしてもよい。また、薬剤の販売包装単位となる化粧箱に書かれた薬品名も一種の薬剤包装に記された識別指標であり、PTPシートなどの薬剤個別包装に記された識別指標が汚れなどにより読み取り困難な場合には、こうした化粧箱の識別指標が読み取られてもよい。また瓶詰めの薬剤であれば、その瓶に付されたバーコードなどの識別指標が読み取られてもよい。 Further, even when the identification is performed by the AI model 50 without using the identification index, it is possible for the user to confirm and input the data. For example, as in the above example, the "confirm" button and the "correct" button are displayed on the monitor 14 together with the identification result by the AI model 50. Then, for each button, the identification result is confirmed or corrected in the same manner as described above, and the confirmed or corrected identification result and the captured image 22 are combined and sent to the learning data storage unit 60. If the identification index is not detected and the AI model 50 cannot identify the data, the monitor 14 displays a display indicating that the identification cannot be performed (such as "unidentifiable") and a "data input" button. The correct data may be input by the user even when this button is pressed. In this way, even when the identification is performed by the AI model 50, or when the identification is impossible by the AI model 50 or the identification index, the drug imaging example including the captured image 22 at that time is included. The data 32a and 32b can be transmitted to the learning data storage unit 60. In the input of "correct data" in this case, the user re-photographs the part where the identification index is written with the camera 20 (for example, when the first shooting is the front side of the PTP sheet, the back side). The drug is identified again by reading the bar code with a bar code reader provided separately from the camera 20) or by reading the bar code on the drug to be identified or the identification index written on the drug package. The unit 30 may be made to detect it. In addition, the drug name written on the cosmetic box, which is the unit for selling and packaging the drug, is also an identification index written on a kind of drug packaging, and the identification index written on the individual drug packaging such as a PTP sheet is difficult to read due to dirt or the like. In such cases, the identification index of such a cosmetic box may be read. Further, in the case of a bottled drug, an identification index such as a barcode attached to the bottle may be read.

(識別確信度の評価)
また、AIモデル50による識別が行われた場合には、その識別がどの程度信頼できるかの評価が行われてもよい。例えば入力された撮影画像22が過去の撮影画像とどの程度一致するかに応じて、識別結果をどの程度の確信を持って割り出しているかを表す「確信度」の値が算出されるようにすればよい。そして、この「確信度」が所定の閾値(例えば90%)を超えているならば、その識別結果を撮影画像22と組み合わせて学習データ記憶部60へ送るようにしてもよい(確信度が高ければ、AIモデル50による識別であっても薬剤撮影例データを作成する)。また、「確信度」が高くても低くても、その場合の識別結果が確信度の値と共にモニタ14に表示される。このときモニタ14には上記の「識別不能」の場合と同じく「データ入力ボタン」が表示され、特に確信度が低い場合には、ユーザが「正しいデータ」を入力すればよい。このようにすれば、ユーザは確信度が低い場合にのみ「正しいデータ」を入力すればよく、操作のわずらわしさが低減される。
(Evaluation of identification certainty)
Further, when the identification is performed by the AI model 50, it may be evaluated how reliable the identification is. For example, a value of "confidence" indicating how confidently the identification result is calculated according to how much the input captured image 22 matches the past captured image is calculated. Just do it. Then, if this "certainty" exceeds a predetermined threshold value (for example, 90%), the identification result may be combined with the captured image 22 and sent to the learning data storage unit 60 (high certainty). For example, even if it is identified by the AI model 50, drug imaging example data is created). Further, regardless of whether the "certainty" is high or low, the identification result in that case is displayed on the monitor 14 together with the value of the certainty. At this time, the monitor 14 displays the "data input button" as in the case of the above-mentioned "unidentifiable", and when the certainty is particularly low, the user may input the "correct data". In this way, the user only has to input "correct data" when the certainty is low, and the troublesome operation is reduced.

(ユーザによるデータ入力の補助)
また、識別指標やAIモデル50による識別をそのまま識別結果とするのではなく、ユーザによるデータ入力の補助として識別指標やAIモデル50が用いられてもよい。例えば、データは基本的にユーザが手入力するものとされ、モニタ14に表示される入力欄にユーザがデータを記入することでデータの入力が行われるようになっていてもよい。その一方で、識別指標やAIモデル50による識別が行われると、その識別結果のデータが自動的に入力欄へ挿入される。ユーザはその自動的に挿入されたデータを確認して、必要に応じて修正した上で確定することにより、薬剤識別部30や学習データ記憶部60に識別結果を通知すればよい。このようにすれば、入力されるデータはすべてユーザの確認を経た上で入力されるのでデータの信頼性が高まる一方で、データの大部分は自動的に挿入されるので、ユーザにとっては操作がわずらわしいということもない。
(Assistance for user data entry)
Further, instead of using the identification index or the identification by the AI model 50 as the identification result as it is, the identification index or the AI model 50 may be used as an aid for data input by the user. For example, the data is basically manually input by the user, and the data may be input by the user entering the data in the input field displayed on the monitor 14. On the other hand, when the identification index or the AI model 50 is used for identification, the identification result data is automatically inserted into the input field. The user may notify the drug identification unit 30 and the learning data storage unit 60 of the identification result by confirming the automatically inserted data, modifying the data as necessary, and confirming the data. In this way, all the input data is input after the user's confirmation, which increases the reliability of the data, while most of the data is automatically inserted, so that the user can operate it. It's not bothersome.

(AIモデルと識別指標の組み合わせ)
また、識別をAIモデル50のみ、または識別指標のみで行うのではなく、AIモデル50による識別と識別指標による識別とが組み合わされて識別結果の決定が行われてもよい。特に、「1シート」や「1錠」などの数量の割り出しについては、AIモデル50による識別と識別指標による識別とを組み合わせることで精度が高くなることが見込まれる。
(Combination of AI model and identification index)
Further, the identification is not performed only by the AI model 50 or only the identification index, but the identification by the AI model 50 and the identification by the identification index may be combined to determine the identification result. In particular, for the determination of the quantity of "1 sheet" or "1 tablet", it is expected that the accuracy will be improved by combining the identification by the AI model 50 and the identification by the identification index.

例えばPTPシートのバーコードが1シートに1箇所だけ記されているとすると、識別指標のみによる識別であれば、そのバーコードが読み取られることにより「PTPシート1シート分」の薬剤が存在すると識別される。しかしながら、実際に薬局や患者の家庭で取り扱われるPTPシートは、バーコードを残しつつも一部だけ切り取られて使用されることもある。また切り取りが行われなくとも、一部の錠剤だけ既に取り出されている可能性がある。こうした場合、AIモデル50による識別であれば、「切り取られたPTPシートの形状」や「一部の錠剤領域が破かれたPTPシートの形状」を基に、現在PTPシート内に何錠の錠剤が残っているかを識別することができる。PTPシートの形状は包装される薬剤の種類が異なっていても概ね同様の形状であるので、薬剤の種類についてはバーコードなどの識別指標に基づいて識別しつつ、数量についてはPTPシートの形状からAIモデル50により識別することにより、種類と数量の両方について精度の高い識別を行うことができる。一方、識別コードのように錠剤の1錠単位に記されている識別指標が、画像解析によって検出可能となっていれば、識別指標に基づいて薬剤の数量を識別することも可能である。 For example, if the barcode of the PTP sheet is written only in one place on one sheet, if the identification is performed only by the identification index, the barcode is read to identify that the drug for "one sheet of PTP sheet" exists. Will be done. However, PTP sheets that are actually handled in pharmacies and patients' homes may be partially cut out and used while leaving a barcode. Moreover, even if the cutting is not performed, it is possible that only some tablets have already been taken out. In such a case, in the case of identification by the AI model 50, the number of tablets currently contained in the PTP sheet is based on the "shape of the cut out PTP sheet" and the "shape of the PTP sheet in which a part of the tablet region is torn". Can be identified if is left. Since the shape of the PTP sheet is almost the same even if the type of the packaged drug is different, the type of the drug is identified based on the identification index such as a barcode, and the quantity is determined from the shape of the PTP sheet. By identifying by the AI model 50, it is possible to perform highly accurate identification of both the type and the quantity. On the other hand, if the identification index written for each tablet such as the identification code can be detected by image analysis, it is possible to identify the quantity of the drug based on the identification index.

なお、薬剤包装(例えばPTPシート)の形状と数量との具体的な対応関係については、薬剤包装の形状と数量とが組み合された薬剤撮影例データとして学習データ62に蓄積させることが可能である。例えば10錠入りPTPシートのうち1錠だけ取り出し済みの(1錠分の領域だけ破かれている)PTPシートについて、そのPTPシートを撮影したユーザが「この撮影画像に写っているPTPシートに残っている錠剤は9錠」といった情報を入力して学習データ記憶部60へ送信すればよい。このように薬剤包装の形状とそれに内包される薬剤の数量との対応関係を示す情報が数多く学習データ62に蓄積されると、その情報が反映されたAIモデル50は、薬剤包装の形状から、その薬剤包装に内包される薬剤の数量を識別することが可能になる。例えば10錠入りPTPシートのうち1錠だけ取り出し済みのPTPシートに関する薬剤撮影例データが蓄積されていれば、蓄積された薬剤撮影例データと類似する形状のPTPシートに対して、AIモデル50は「10錠入りシートのうち9錠分が残っている」という識別が可能になる。 The specific correspondence between the shape and quantity of the drug package (for example, PTP sheet) can be stored in the learning data 62 as drug imaging example data in which the shape and quantity of the drug package are combined. be. For example, with respect to a PTP sheet in which only one of the 10 tablets of the PTP sheet has been taken out (only the area of one tablet is torn), the user who photographed the PTP sheet "remains in the PTP sheet shown in this photographed image". Information such as "9 tablets are used" may be input and transmitted to the learning data storage unit 60. When a large amount of information indicating the correspondence between the shape of the drug package and the quantity of the drug contained therein is accumulated in the learning data 62 in this way, the AI model 50 reflecting the information can be obtained from the shape of the drug package. It becomes possible to identify the quantity of the drug contained in the drug package. For example, if only one of the 10 PTP sheets containing the PTP sheet has been taken out and the drug imaging example data is accumulated, the AI model 50 can be used with respect to the PTP sheet having a shape similar to the accumulated drug imaging example data. It is possible to identify that "9 out of 10 sheets containing 10 tablets remain".

(持参薬識別について)
さらに、十分に教育されたAIモデル50によれば、識別指標が付されていない薬剤であっても、薬剤自身の形状や色彩などに基づいて識別が可能になる。そのため、AIモデル50を用いた識別は、持参薬識別のために非常に有効である。持参薬とは患者が医療機関で診察、検査、治療を受ける、または入院する際に、患者がその時点で普段服用している薬剤として提示する薬剤である。医療機関にとって、患者の持参薬の内容を把握することは、診察後、治療中、入院時に薬剤を処方する上で、また手術や検査を適切に行う上で非常に重要となる。すなわち、処方する薬剤と持参薬との重複投与を避けたり、薬剤の危険な組み合わせを避けたりすることができる。さらに、治療、手術、検査前までに服用を中止した、あるいは中止すべき薬剤を確認することができる。また、医療機関から患者に対してその薬剤の服用方を適切に助言することや、健康食品やサプリメントとの飲み合わせについても助言することができる。薬剤識別を行わずとも、薬剤の説明書やいわゆるお薬手帳の情報により、患者が服薬している薬剤の内容を把握することは可能である。しかしながら、患者が実際に服薬しているかについてはこれらの情報では完全には把握できない。最も確実なのは、患者に実際に服薬している薬剤を持参してもらい、その持参薬を確認することである。持参薬を確認する際に、識別指標として薬剤の製品名や識別コードが薬剤の包装に記載されていれば、薬剤識別システムによらずとも比較的容易に薬剤を識別できる。しかし一包化調剤されたり、PTPシートが切り取られたり、錠剤が包装から取り出されて単体で保管されたりした結果、識別指標が読み取れる形で薬剤の包装に記載されていない、あるいは薬剤の包装自体が存在しないことがある。この場合、肉眼では持参薬の識別は困難となる。本発明の薬剤識別システムであれば、このような場合でも薬剤を識別することができ、患者の持参薬識別、持参薬確認のために非常に有効となる。
(About identification of brought-in medicine)
Furthermore, according to the well-educated AI model 50, even a drug to which an identification index is not attached can be identified based on the shape and color of the drug itself. Therefore, identification using the AI model 50 is very effective for identification of brought-in drugs. Bringing medicine is a medicine that a patient presents as a medicine that the patient usually takes at that time when he / she is examined, tested, treated, or hospitalized at a medical institution. For medical institutions, it is very important to understand the contents of the medicines brought by patients in order to prescribe medicines after medical examination, during treatment, and at the time of admission, and to properly perform surgery and examinations. That is, it is possible to avoid double administration of the prescribed drug and the brought-in drug, and to avoid dangerous combinations of drugs. In addition, it is possible to identify drugs that have been or should be discontinued before treatment, surgery, or examination. In addition, medical institutions can give appropriate advice to patients on how to take the drug, and can also give advice on how to take the drug with health foods and supplements. Even if the drug is not identified, it is possible to grasp the content of the drug that the patient is taking from the drug description or the information in the so-called drug notebook. However, this information does not give a complete picture of whether the patient is actually taking the drug. The most reliable way is to ask the patient to bring the drug they are actually taking and to confirm the drug they are taking. When confirming the drug to be brought, if the product name or identification code of the drug is described on the packaging of the drug as an identification index, the drug can be identified relatively easily without using the drug identification system. However, as a result of being dispensed in one package, the PTP sheet being cut off, or the tablet being taken out of the package and stored as a single substance, the identification index is not listed on the drug package in a readable form, or the drug package itself. May not exist. In this case, it is difficult to identify the brought medicine with the naked eye. The drug identification system of the present invention can identify a drug even in such a case, and is very effective for identifying a patient's brought-in drug and confirming the brought-in drug.

(外部機器に対するデータ入出力)
図1に示す実施形態においては撮影器20、モニタ14が薬剤識別システム10の構成要素となっているが、これらは薬剤識別システム10の外部の機器であってもよく、薬剤識別システム10は外部から撮影画像22のデータ入力を受け付け、識別結果のデータを外部へ出力できるようになっていればよい。
(Data input / output to external devices)
In the embodiment shown in FIG. 1, the imager 20 and the monitor 14 are components of the drug identification system 10, but these may be external devices of the drug identification system 10, and the drug identification system 10 is external. It suffices if the data input of the captured image 22 can be received from the above and the data of the identification result can be output to the outside.

(データの配置について)
また図1に示す実施形態においては識別指標テーブル記憶部40およびAIモデル50が薬剤識別部30とは別体となっているが、識別指標テーブル42のデータとAIモデル50のデータが薬剤識別部30に組み込まれていてもよい。一方で、識別指標テーブル42のデータとAIモデル50のデータは、ネットワークを介してアクセス可能な、薬剤識別部30から遠方の機器に配置されてもよい。
(About data placement)
Further, in the embodiment shown in FIG. 1, the identification index table storage unit 40 and the AI model 50 are separate from the drug identification unit 30, but the data of the identification index table 42 and the data of the AI model 50 are the drug identification units. It may be incorporated in 30. On the other hand, the data in the identification index table 42 and the data in the AI model 50 may be arranged in a device distant from the drug identification unit 30 that can be accessed via the network.

(撮影時期について)
また薬剤12の撮影は識別の際に行われる必要はなく、事前に薬剤識別システム10とは別の場所で撮影された画像のデータを撮影画像22として取り込む(薬剤識別部30に入力する)ことも可能である。
(About shooting time)
Further, the photographing of the drug 12 does not need to be performed at the time of identification, and the data of the image taken in advance at a place different from the drug identification system 10 is taken in as the captured image 22 (input to the drug identification unit 30). Is also possible.

(AIモデルの作成方式について)
また学習データ62に基づいて作成されるAIモデル50は、学習データ62を教師データとする教師あり学習によって作成されるものに限られない。例えば学習データ62に基づいて深層学習が行われた結果得られたAIモデルが、薬剤識別システム10のAIモデル50として用いられてもよい。
(About AI model creation method)
Further, the AI model 50 created based on the learning data 62 is not limited to the one created by supervised learning using the learning data 62 as teacher data. For example, the AI model obtained as a result of deep learning based on the learning data 62 may be used as the AI model 50 of the drug identification system 10.

10 薬剤識別システム
12 薬剤
12a 錠剤
12b 錠剤PTPシート
14 モニタ
20 撮影器
22 撮影画像
30 薬剤識別部
32a,32b 薬剤撮影例データ
40 識別指標テーブル記憶部
42 識別指標テーブル
50 AIモデル
52 メインAIモデル
56 ローカルAIモデル
60 学習データ記憶部
62 学習データ
70a 錠剤
70b 散剤
70c カプセル剤
71a,71b,71c 識別コード
72a,72b,72c 製品名
73a,73c PTPシート一片
73b 個別包装
75a PTPシート
76a,76b,76c バーコード
80 薬剤識別システム
82 ネットワーク
84 メイン機器
86 ローカル機器
88a 薬剤DB
88b 処方箋DB
88c 在庫DB
88d 服薬管理DB
90 薬剤識別センサ
91 基板
92 フレキシブルケーブル
93 演算素子
94 画像撮影素子
95 記憶素子
98 コネクタ
S01−S09 ステップ
10 Drug identification system 12 Drug 12a Tablet 12b Tablet PTP sheet 14 Monitor 20 Camera 22 Photographed image 30 Drug identification unit 32a, 32b Drug imaging example data 40 Identification index table Storage unit 42 Identification index table 50 AI model 52 Main AI model 56 Local AI model 60 Learning data storage unit 62 Learning data 70a Tablets 70b Powder 70c Capsules 71a, 71b, 71c Identification code 72a, 72b, 72c Product name 73a, 73c PTP sheet piece 73b Individual packaging 75a PTP sheet 76a, 76b, 76c Bar code 80 Drug identification system 82 Network 84 Main device 86 Local device 88a Drug DB
88b Prescription DB
88c inventory DB
88d medication management DB
90 Drug identification sensor 91 Board 92 Flexible cable 93 Computing element 94 Imaging element 95 Storage element 98 Connector S01-S09 Step

Claims (11)

薬剤を撮影した撮影画像の画像認識を行うことにより撮影された薬剤の識別を行う薬剤識別システムにおいて、
各種薬剤がそれぞれ撮影画像においてどのような姿で現れるのかを学習データとして記憶する学習データ記憶部と、
撮影画像に含まれる薬剤を識別する薬剤識別部と、
を備え、
前記薬剤識別部は、前記学習データ記憶部に記憶された前記学習データに基づいて作成されたAIモデルであって、撮影画像を入力データとして、それに対応する薬剤の情報を出力データとして返すAIモデルを用いて、入力された撮影画像に含まれる薬剤を識別することを特徴とする薬剤識別システム。
In a drug identification system that identifies a drug taken by performing image recognition of a photographed image of the drug.
A learning data storage unit that stores as learning data how various drugs appear in captured images,
A drug identification unit that identifies the drug contained in the captured image,
With
The drug identification unit is an AI model created based on the learning data stored in the training data storage unit, and returns an captured image as input data and information on the corresponding drug as output data. A drug identification system characterized by identifying a drug contained in an input captured image by using.
薬剤または薬剤を包装する薬剤包装に、薬剤の識別情報を示す識別指標が記されている場合、前記薬剤識別部は、前記識別指標が示す薬剤の識別情報に基づいて薬剤の識別を行い、識別した薬剤の情報とそのときの撮影画像の情報とを組み合わせた薬剤撮影例データを作成して、前記薬剤撮影例データを前記学習データ記憶部に送信し、
前記学習データ記憶部は、前記薬剤識別部から前記薬剤撮影例データを受信すると、その薬剤撮影例データに含まれる薬剤の情報と撮影画像の情報を、当該薬剤が撮影画像において現れる姿の一例として記憶して前記学習データを更新すること
を特徴とする請求項1に記載の薬剤識別システム。
When a drug or a drug package for packaging a drug contains an identification index indicating drug identification information, the drug identification unit identifies the drug based on the drug identification information indicated by the identification index and identifies the drug. The drug imaging example data was created by combining the information of the drug and the information of the captured image at that time, and the drug imaging example data was transmitted to the learning data storage unit.
When the learning data storage unit receives the drug imaging example data from the drug identification unit, the learning data storage unit uses the drug information and the captured image information included in the drug imaging example data as an example of the appearance of the drug appearing in the captured image. The drug identification system according to claim 1, wherein the learning data is stored and updated.
前記撮影画像に前記識別指標が含まれていると前記AIモデルにより判定された場合、前記薬剤識別部は、AIモデルが判定した前記識別指標に対応する薬剤の識別情報に基づいて薬剤の識別を行い、識別した薬剤の情報とそのときの撮影画像の情報とを組み合わせた薬剤撮影例データを作成すること
を特徴とする請求項2に記載の薬剤識別システム。
When it is determined by the AI model that the captured image contains the identification index, the drug identification unit identifies the drug based on the identification information of the drug corresponding to the identification index determined by the AI model. The drug identification system according to claim 2, wherein the drug imaging example data is created by combining the information of the identified drug and the information of the captured image at that time.
それぞれが前記薬剤識別部を備えており、ネットワークを介してメイン機器へとアクセス可能な複数のローカル機器を有し、
前記ローカル機器によって行われた薬剤の識別において前記薬剤撮影例データが作成された場合には、その薬剤撮影例データを前記メイン機器へ送信し、
前記メイン機器は、前記ローカル機器から送信された薬剤撮影例データに基づいて自身の記憶している学習データを更新すること
を特徴とする請求項2または請求項3に記載の薬剤識別システム。
Each is equipped with the drug identification unit, and has a plurality of local devices that can access the main device via a network.
When the drug imaging example data is created in the drug identification performed by the local device, the drug imaging example data is transmitted to the main device.
The drug identification system according to claim 2 or 3, wherein the main device updates learning data stored by itself based on drug imaging example data transmitted from the local device.
前記ローカル機器の薬剤識別部は、前記ローカル機器に組み込まれたローカルAIモデルを用いて撮影画像に含まれる薬剤を識別し、前記ローカルAIモデルを用いても撮影画像に含まれる薬剤を識別不能な場合には、ネットワークを介して前記メイン機器にアクセスして、前記メイン機器に記憶されている学習データを基に作成されたメインAIモデルを用いて薬剤の識別を行うこと
を特徴とする請求項4に記載の薬剤識別システム。
The drug identification unit of the local device identifies the drug contained in the captured image by using the local AI model incorporated in the local device, and cannot identify the drug contained in the captured image even by using the local AI model. In this case, the claim is characterized in that the main device is accessed via a network and the drug is identified using the main AI model created based on the learning data stored in the main device. 4. The drug identification system according to 4.
撮影された薬剤が医療用医薬品である場合、医療用医薬品の薬剤包装に記されておりその医療用医薬品に関する情報を示す光学マークを、前記識別指標とすること
を特徴とする請求項2ないし請求項5のいずれか1項に記載の薬剤識別システム。
Claim 2 to claim that when the photographed drug is a ethical drug, the optical mark on the ethical drug packaging indicating the information about the ethical drug is used as the identification index. Item 5. The drug identification system according to any one of Item 5.
撮影された薬剤が、医師の判断により入力された処方箋情報に基づいて調剤された薬剤である場合、
前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記処方箋情報と合致するか否かを判定すること
を特徴とする請求項1ないし請求項6のいずれか1項に記載の薬剤識別システム。
If the drug taken is a drug dispensed based on prescription information entered at the discretion of the doctor
The drug identification according to any one of claims 1 to 6, wherein it is determined whether or not the information of one or more drugs identified by the drug identification unit matches the prescription information. system.
撮影された薬剤が、薬局において入庫した薬剤および出庫した薬剤の情報に応じて変動する在庫情報に基づいて管理される薬剤である場合、
前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記在庫情報と合致するか否かを判定すること
を特徴とする請求項1ないし請求項6のいずれか1項に記載の薬剤識別システム。
When the photographed drug is a drug that is managed based on inventory information that fluctuates according to the information of the drug that has been received and the drug that has been issued at the pharmacy.
The drug identification according to any one of claims 1 to 6, wherein it is determined whether or not the information of one or more drugs identified by the drug identification unit matches the inventory information. system.
撮影された薬剤が、患者に対して調剤された薬剤であって、医療機関の指示する服薬スケジュールに基づいて服薬されるべき薬剤である場合、
前記薬剤識別部が識別した1つ以上の薬剤の情報が、前記服薬スケジュールと合致するか否かを判定すること
を特徴とする請求項1ないし請求項6のいずれか1項に記載の薬剤識別システム。
If the drug taken is a drug that has been dispensed to the patient and should be taken according to the medication schedule instructed by the medical institution.
The drug identification according to any one of claims 1 to 6, wherein it is determined whether or not the information of one or more drugs identified by the drug identification unit matches the medication schedule. system.
前記学習データ記憶部と前記薬剤識別部とが、それぞれ別体の機器によって構成されており、前記薬剤識別部はネットワークを介して前記学習データ記憶部にアクセス可能であること
を特徴とする請求項1ないし請求項9のいずれか1項に記載の薬剤識別システム。
The claim is characterized in that the learning data storage unit and the drug identification unit are configured by separate devices, and the drug identification unit can access the learning data storage unit via a network. The drug identification system according to any one of claims 1 to 9.
請求項1ないし請求項10のいずれか1項に記載の薬剤識別システムによって得られた学習データに基づいて作成されたAIモデルが組み込まれた記憶素子および演算素子を含む処理部と、
画像を撮影することが可能な画像撮影素子とを有し、
前記画像撮影素子によって撮影された撮影画像について、前記処理部にて画像認識処理を行うことで、前記撮影画像に含まれる薬剤の識別を行うこと
を特徴とする薬剤識別センサ。
A processing unit including a storage element and a calculation element incorporating an AI model created based on the learning data obtained by the drug identification system according to any one of claims 1 to 10.
It has an image capturing element capable of capturing an image, and has
A drug identification sensor characterized in that a drug included in a photographed image is identified by performing image recognition processing on the photographed image captured by the image capturing element in the processing unit.
JP2020018394A 2020-02-06 2020-02-06 drug identification system Active JP7329463B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020018394A JP7329463B2 (en) 2020-02-06 2020-02-06 drug identification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020018394A JP7329463B2 (en) 2020-02-06 2020-02-06 drug identification system

Publications (2)

Publication Number Publication Date
JP2021124989A true JP2021124989A (en) 2021-08-30
JP7329463B2 JP7329463B2 (en) 2023-08-18

Family

ID=77460081

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020018394A Active JP7329463B2 (en) 2020-02-06 2020-02-06 drug identification system

Country Status (1)

Country Link
JP (1) JP7329463B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023080742A (en) * 2021-11-30 2023-06-09 NeoX株式会社 Medication management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015228082A (en) * 2014-05-30 2015-12-17 日本電信電話株式会社 Dosage evidence management terminal, dosage evidence management system, and dosage evidence management method
JP2016015093A (en) * 2014-07-03 2016-01-28 アレイ株式会社 Tablet identifying apparatus and method thereof, and packaged tablet monitoring apparatus
JP2017058919A (en) * 2015-09-16 2017-03-23 富士フイルム株式会社 Medicine information registration device, medicine information registration method, and program
JP2018027242A (en) * 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015228082A (en) * 2014-05-30 2015-12-17 日本電信電話株式会社 Dosage evidence management terminal, dosage evidence management system, and dosage evidence management method
JP2016015093A (en) * 2014-07-03 2016-01-28 アレイ株式会社 Tablet identifying apparatus and method thereof, and packaged tablet monitoring apparatus
JP2017058919A (en) * 2015-09-16 2017-03-23 富士フイルム株式会社 Medicine information registration device, medicine information registration method, and program
JP2018027242A (en) * 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023080742A (en) * 2021-11-30 2023-06-09 NeoX株式会社 Medication management system

Also Published As

Publication number Publication date
JP7329463B2 (en) 2023-08-18

Similar Documents

Publication Publication Date Title
JP6009888B2 (en) Drug inspection apparatus and method
US11314964B2 (en) Apparatus and method for determination of medication location
JP6879298B2 (en) Image processing program and image processing device
JP6521528B2 (en) Alternative medicine search device and alternative medicine search method
US20110261194A1 (en) System for performing clinical trials
JP2004157579A (en) Work management system for dispensing pharmacy
JP5091950B2 (en) A management system for prescribing and dispensing drugs that can cause serious side effects
JP6809721B2 (en) Inventory management device, inventory management method, inventory management program
US20190051397A1 (en) One-packaging medicine audit apparatus, one-packaging medicine audit system, method of outputting one-packaging medicine information, and one-packaging medicine information output program
JP7329463B2 (en) drug identification system
CN110232506A (en) A kind of pharmacist deploys the real time evaluating method and system of state
US20140195262A1 (en) Drug registration apparatus and program
JP2009189875A (en) Dispensing inspection support system for packaged medicament
US11707415B2 (en) Medicine management system
JP6092764B2 (en) Drug mixing preparation management device and control program
JP2021157684A (en) Information processing device, information processing method, information processing program, and information processing system
JP2020177595A (en) Prescription information receiving device, method, and computer program
JP6312905B2 (en) Drug inspection device and program
JP6082707B2 (en) Drug registration device and program
JP2007317216A (en) Pharmacy system utilizing two-dimensional code
JP5852057B2 (en) Drug registration device and program
JP6155205B2 (en) Drug inspection device and program
TWM524524U (en) Hospital inpatient department pharmaceutical affair management system
JP2024055808A (en) Medication management system, management server, and control program for the management server
JP2023003649A (en) Information processing device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211015

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220927

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230307

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230407

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230711

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230807

R150 Certificate of patent or registration of utility model

Ref document number: 7329463

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150