JP2020042758A - Device and method for supporting guidance of medication - Google Patents

Device and method for supporting guidance of medication Download PDF

Info

Publication number
JP2020042758A
JP2020042758A JP2019018750A JP2019018750A JP2020042758A JP 2020042758 A JP2020042758 A JP 2020042758A JP 2019018750 A JP2019018750 A JP 2019018750A JP 2019018750 A JP2019018750 A JP 2019018750A JP 2020042758 A JP2020042758 A JP 2020042758A
Authority
JP
Japan
Prior art keywords
vector
learning model
patient
instruction
character string
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
JP2019018750A
Other languages
Japanese (ja)
Other versions
JP7260315B2 (en
Inventor
莫東 談
Modong Tan
莫東 談
祐一郎 清水
Yuichiro Shimizu
祐一郎 清水
直幸 六車
Naoyuki Rokusha
直幸 六車
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.)
PHC Holdings Corp
Original Assignee
Panasonic Healthcare Holdings 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 Panasonic Healthcare Holdings Co Ltd filed Critical Panasonic Healthcare Holdings Co Ltd
Publication of JP2020042758A publication Critical patent/JP2020042758A/en
Application granted granted Critical
Publication of JP7260315B2 publication Critical patent/JP7260315B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

To provide a device and a method for supporting guidance of medication which can teach a patient to take medicines properly by extracting necessary information for the patient from information on medicines.SOLUTION: The device for supporting guidance of medication includes: a vector generation unit 16 for generating a patient vector and a plurality of character-string vectors on the basis of patient data on patients and plural pieces of character-strings for guidance of medication according to medicines; a learning model generation unit 17 for generating a learning model on which learning processing has been performed so that the learning model will output a predetermined character-string vector in response to input of the patient vector and the plurality of character-string vectors; and a character-string extraction unit 19 for extracting a character string corresponding to the character-string vector output from the learning model in response to input of new medicine and a new patient vector.SELECTED DRAWING: Figure 3

Description

本開示は、薬剤とともに患者に提供されるべき服薬指導文書を作成する支援を行う服薬指導支援装置および服薬指導支援システムに関する。   The present disclosure relates to a medication instruction support device and a medication instruction support system that support creation of a medication instruction document to be provided to a patient together with a drug.

処方箋に基づいて薬剤師が患者に薬を渡すとき、薬に関する情報の提供を行うことが義務づけられている。このような行為は一般に服薬指導と呼ばれる。薬に関する情報には、薬効や服薬方法、保管方法、服薬の意義、禁忌等、様々な情報が含まれる。薬剤師による服薬指導では、薬に関する情報の全てが患者に伝えられる必要はなく、患者に必要な情報のみが抽出されて提供されることが望ましい。   When a pharmacist delivers a medicine to a patient based on a prescription, it is obliged to provide information on the medicine. Such an act is generally called medication instruction. The information on the medicine includes various information such as a medicinal effect, a medicine taking method, a storage method, significance of the medicine taking, contraindications, and the like. In the medication instruction by a pharmacist, it is not necessary that all the information on the medicine be transmitted to the patient, and it is desirable that only the information necessary for the patient is extracted and provided.

服薬指導の際には、患者から処方箋を受け取った薬剤師は、処方箋に基づいて薬を用意するとともに、その薬に関する様々な情報の中から、その患者に必要な情報を素早く抽出する必要がある。しかしながら、薬に関する様々な情報の中から、患者に必要な情報を素早く抽出することは容易ではなく、薬剤師の技量によっては、必ずしも患者に最適な服薬指導を行えていない場合がある。これらの事情から、薬剤師の技量によらず、様々な情報の中から患者に必要な情報を抽出して、好適な服薬指導を行うことが要望されている。   At the time of medication instruction, a pharmacist who has received a prescription from a patient needs to prepare a medicine based on the prescription and quickly extract necessary information for the patient from various information related to the medicine. However, it is not easy to quickly extract information necessary for a patient from various kinds of information on medicines, and depending on the skill of a pharmacist, the patient may not always be able to perform optimal medication instruction. Under these circumstances, it is demanded to extract information necessary for a patient from various information regardless of the skill of a pharmacist, and to provide suitable medication instruction.

服薬指導を支援するシステムとして、例えば特許文献1に開示された技術がある。特許文献1には、患者に対して行われるべき最適な服薬指導方針データおよびその確信度を服薬指導上のルールIDと共に迅速に出力することができる服薬指導支援システムが開示されている。   As a system for supporting medication instruction, for example, there is a technique disclosed in Patent Document 1. Patent Literature 1 discloses a medication instruction support system capable of quickly outputting optimal medication instruction policy data to be performed on a patient and the certainty thereof together with a rule ID for medication instruction.

特開平8−272882号公報JP-A-8-272882

特許文献1に開示された技術では、患者に関する各種データに基づいて服薬指導方針の推論を行い、推論した服薬指導方針の妥当性を示す確信度データを生成するものの、服薬指導方針の内容そのものについての検討は行っていない。このため、推論した服薬指導方針の妥当性が低い場合には適切な服薬指導方針を出力することができない。   According to the technology disclosed in Patent Document 1, a medication instruction policy is inferred based on various data concerning a patient, and certainty data indicating the validity of the inferred medication instruction policy is generated. Has not been considered. For this reason, if the inferred medication instruction policy is not appropriate, an appropriate medication instruction policy cannot be output.

本開示の目的は、薬に関する様々な情報の中から患者に必要な情報を抽出して、患者に適した服薬指導を行うことができる服薬指導支援装置および服薬指導支援システムを提供することである。   An object of the present disclosure is to provide a medication instruction support device and a medication instruction support system that can extract information necessary for a patient from various information related to medicine and can perform medication instruction suitable for the patient. .

本発明の服薬指導支援装置は、患者に関する患者データおよび薬剤に対応した服薬指導用の複数の文字列に基づいて、患者ベクトルおよび複数の文字列ベクトルを生成するベクトル生成部と、前記患者ベクトルおよび複数の前記文字列ベクトルの入力に対して、所定の文字列ベクトルを出力するように学習処理が施された学習モデルを生成する学習モデル生成部と、前記学習モデルを用いて前記複数の文字列から所定の文字列を抽出する文字列抽出部と、を有する。   A medication instruction support device of the present invention is a vector generation unit that generates a patient vector and a plurality of character string vectors based on patient data on a patient and a plurality of character strings for medication instruction corresponding to a medicine, A learning model generating unit configured to generate a learning model subjected to a learning process so as to output a predetermined character string vector with respect to the input of the plurality of character string vectors, and the plurality of character strings using the learning model. And a character string extracting unit that extracts a predetermined character string from the character string.

本発明の服薬指導支援システムは、患者に関する患者データおよび薬剤に対応した服薬指導用の複数の文字列に基づいて、患者ベクトルおよび複数の文字列ベクトルを生成するベクトル生成部と、前記患者ベクトルおよび複数の前記文字列ベクトルの入力に対して、所定の文字列ベクトルを出力するように学習処理が施された学習モデルを生成する学習モデル生成部と、前記学習モデルを用いて前記複数の文字列から所定の文字列を抽出する文字列抽出部と、抽出された前記所定の文字列が、薬剤師により作成される服薬指導文書に使用されたか否かに基づいて、前記所定の文字列に対応する前記文字列ベクトルに対する重み付け値を決定する重み付け部と、を有する複数の服薬指導支援装置と、サーバ装置と、前記複数の服薬指導支援装置と前記サーバ装置とを接続している所定のネットワークと、を有し、前記サーバ装置は、複数の前記服薬指導支援装置から送信された前記重み付け値に基づいて、それぞれの服薬指導支援装置において用いられる前記学習モデルを生成または更新する。   A medication support system according to the present invention is a vector generation unit that generates a patient vector and a plurality of character string vectors based on patient data relating to a patient and a plurality of character strings for medication guidance corresponding to medicines, A learning model generating unit configured to generate a learning model subjected to a learning process so as to output a predetermined character string vector with respect to the input of the plurality of character string vectors, and the plurality of character strings using the learning model. And a character string extraction unit that extracts a predetermined character string from the character string corresponding to the predetermined character string based on whether or not the extracted predetermined character string is used in a medication instruction document created by a pharmacist. A plurality of medication instruction support devices having a weighting unit for determining a weight value for the character string vector; a server device; and the plurality of medication instruction support devices. A predetermined network connected to the server device, wherein the server device is used in each of the medication support devices based on the weight values transmitted from the plurality of medication support devices. Generate or update the learning model.

本発明によれば、薬に関する様々な情報の中から患者に必要な情報を抽出して、患者に適した服薬指導を行うことができる。   ADVANTAGE OF THE INVENTION According to this invention, the information required for a patient can be extracted from the various information regarding a medicine, and the medication instruction | indication suitable for a patient can be performed.

服薬指導支援装置を含む服薬指導支援システムの構成例を示す図The figure which shows the example of a structure of the medication support system containing a medication support apparatus. 服薬指導支援装置のハードウェア構成の一例を示す図The figure which shows an example of the hardware constitutions of the medication instruction support device 第1の実施の形態における服薬指導支援装置の機能構成の一例を示すブロック図FIG. 2 is a block diagram illustrating an example of a functional configuration of a medication instruction support device according to the first embodiment. 添付文書について例示した図Figure illustrating the attached document 患者データに基づく患者ベクトルの生成について例示した図Diagram illustrating generation of patient vector based on patient data 指導文に基づく指導文ベクトルの生成について例示した図Diagram illustrating generation of instruction sentence vector based on instruction sentence 指導文表示部による表示画面を例示した図Figure exemplifying the display screen by the guidance sentence display unit 重み付け部による重み付けの例について説明するための図Diagram for explaining an example of weighting by a weighting unit 第2の実施の形態における服薬指導支援装置の機能構成の一例を示すブロック図FIG. 9 is a block diagram showing an example of a functional configuration of a medication instruction support device according to the second embodiment. 第3の実施の形態に係る服薬指導支援装置の機能構成の一例を示すブロック図FIG. 9 is a block diagram showing an example of a functional configuration of a medication support system according to a third embodiment. 第3の実施の形態において用いられる教師データを例示した図The figure which illustrated the teacher data used in 3rd Embodiment 第3の実施の形態における学習モデルの概念図Conceptual diagram of a learning model according to the third embodiment 第4の実施の形態における教師データを例示した図The figure which illustrated the teacher data in 4th Embodiment. 第5の実施の形態に係る服薬指導支援装置の機能構成を示すブロック図FIG. 13 is a block diagram showing a functional configuration of a medication instruction support device according to a fifth embodiment. 第6の実施の形態に係る服薬指導支援装置の機能構成を示すブロック図FIG. 13 is a block diagram showing a functional configuration of a medication instruction support device according to a sixth embodiment. 第6の実施の形態の教師データを生成するための収集データの例を示す図The figure which shows the example of the collection data for producing | generating the teacher data of 6th Embodiment. 図15に示す収集データに基づいて生成された処方箋教師データの例を示す図The figure which shows the example of the prescription teacher data generated based on the collection data shown in FIG. 図15に示す収集データに基づいて生成された処方箋教師データの例を示す図The figure which shows the example of the prescription teacher data generated based on the collection data shown in FIG. 図15に示す収集データに基づいて生成された処方箋教師データの例を示す図The figure which shows the example of the prescription teacher data generated based on the collection data shown in FIG. 処方箋教師データの他の例を示す図Diagram showing another example of prescription teacher data 処方箋教師データの他の例を示す図Diagram showing another example of prescription teacher data チェック欄および指導文を表示させるためのボタンの表示例を示す図Diagram showing a display example of a button for displaying a check column and a guidance sentence

以下、本発明の各実施の形態について図面を参照して詳細に説明する。ただし、必要以上に詳細な説明、例えば、既によく知られた事項の詳細説明や実質的に同一の構成に対する重複説明等は省略する場合がある。以下の説明及び参照される図面は、当業者が本発明を理解するために提供されるものであって、本発明の請求の範囲を限定するためのものではない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, an unnecessary detailed description, for example, a detailed description of a well-known matter or a redundant description of substantially the same configuration may be omitted. The following description and the referenced drawings are provided to enable those skilled in the art to understand the present invention, and not to limit the scope of the present invention.

(第1の実施の形態)
まず、本発明の第1の実施の形態に係る服薬指導支援装置10について説明する。
(First Embodiment)
First, a medication instruction support device 10 according to a first embodiment of the present invention will be described.

<システム構成>
図1は、服薬指導支援装置10を含む服薬指導支援システム1の構成例を示す図である。図1に示すように、服薬指導支援システム1は、薬局Pに設置された服薬指導支援装置10と、この服薬指導支援装置10と通信ネットワークNを介して接続された服薬指導支援サーバ20と、を有する。図1に示すように、服薬指導支援システム1において、複数の服薬指導支援装置10が複数の薬局Pにそれぞれ設置されることが想定されている。服薬指導支援システム1に含まれる服薬指導支援装置10の数及び服薬指導支援装置10が設置される薬局の数については、本発明では特に限定しない。
<System configuration>
FIG. 1 is a diagram illustrating a configuration example of a medication instruction support system 1 including a medication instruction support device 10. As shown in FIG. 1, the medication support system 1 includes a medication support device 10 installed in a pharmacy P, a medication support server 20 connected to the medication support device 10 via a communication network N, Having. As shown in FIG. 1, in the medication support system 1, it is assumed that a plurality of medication support devices 10 are installed in a plurality of pharmacies P, respectively. The present invention does not particularly limit the number of the medication instruction support devices 10 included in the medication instruction support system 1 and the number of pharmacies where the medication instruction support devices 10 are installed.

服薬指導支援装置10は、薬局Pに勤務する薬剤師が操作する端末であり、例えばPC(Personal Comupter)やタブレット端末等の一般的なコンピュータである。服薬指導支援装置10は、薬局Pを訪れた患者が有する処方箋に関する情報と、その患者に関する情報とに基づいて、薬剤師が薬剤とともに患者に提供するべき服薬指導文書を作成するための支援を行う。なお、本明細書において、服薬指導とは、薬剤師が患者に対して、その患者に処方された薬剤に関する情報提供を行うことを意味しており、服薬指導文書とは、薬剤に関する情報を含む文章等の文字列が記載された文書を意味する。服薬指導文書に記載された文章等の文字列を、以下では指導文と記載する。   The medication instruction support device 10 is a terminal operated by a pharmacist working at the pharmacy P, and is a general computer such as a personal computer (PC) or a tablet terminal. The medication support device 10 provides support for the pharmacist to prepare a medication guidance document to be provided to the patient together with the drug, based on the information on the prescription of the patient who has visited the pharmacy P and the information on the patient. In the present specification, the medication instruction means that a pharmacist provides a patient with information on a drug prescribed to the patient, and the medication instruction document is a document containing information on the drug. Etc. means a document in which a character string is described. Hereinafter, a character string such as a sentence described in the medication instruction document is referred to as an instruction sentence.

服薬指導支援サーバ20は、複数の薬局Pに設置された服薬指導支援装置10と、LAN(Local Area Network)、WAN(Wide Area Network)、またはインターネット回線等の通信ネットワークNを介して接続されているサーバ装置である。服薬指導支援サーバ20は、例えばクラウドサーバである。服薬指導支援サーバ20は、複数の服薬指導支援装置10において服薬指導文書の作成時に使用された情報を、通信ネットワークNを介して服薬指導支援装置10から受信し、図示しない記憶装置に記憶する。また、服薬指導支援サーバ20は、服薬指導支援装置10からの要求に応じて、服薬指導支援装置10における服薬指導文書の作成時に使用される情報を、通信ネットワークNを介して服薬指導支援装置10に送信する。   The medication guidance support server 20 is connected to the medication guidance support devices 10 installed in a plurality of pharmacies P via a communication network N such as a LAN (Local Area Network), a WAN (Wide Area Network), or an Internet line. Server device. The medication administration support server 20 is, for example, a cloud server. The medication support server 20 receives the information used at the time of creating the medication guidance document in the plurality of medication support devices 10 from the medication support device 10 via the communication network N, and stores the information in a storage device (not shown). In addition, in response to a request from the medication guidance support device 10, the medication guidance support server 20 transmits the information used when the medication guidance document is created in the medication guidance support device 10 to the medication guidance support device 10 via the communication network N. Send to

<服薬指導支援装置10の構成>
図2は、服薬指導支援装置10のハードウェア構成の一例を示す図である。
<Configuration of medication compliance support device 10>
FIG. 2 is a diagram illustrating an example of a hardware configuration of the medication instruction support device 10.

服薬指導支援装置10は、例えば、CPU101、ROM102、RAM103、外部記憶装置104、通信インターフェイス105、入力装置106、および出力装置107等を備えたコンピュータである。外部記憶装置104の例としては、HDD、SSD、またはフラッシュメモリ等が挙げられる。通信インターフェイス105の例としては、LAN回線用の通信コントローラ等が挙げられる。入力装置106の例としては、キーボード、マウス、タッチパネル、スキャナ、バーコードリーダ等が挙げられる。出力装置107の例としては、CRTや液晶等のディスプレイ装置、プリンタ等が挙げられる。   The medication taking support device 10 is, for example, a computer including a CPU 101, a ROM 102, a RAM 103, an external storage device 104, a communication interface 105, an input device 106, an output device 107, and the like. Examples of the external storage device 104 include an HDD, an SSD, and a flash memory. Examples of the communication interface 105 include a communication controller for a LAN line. Examples of the input device 106 include a keyboard, a mouse, a touch panel, a scanner, and a barcode reader. Examples of the output device 107 include a display device such as a CRT and a liquid crystal, and a printer.

服薬指導支援装置10の後述する各機能は、例えば、CPU101がROM102、RAM103、及び外部記憶装置104等に記憶された処理プログラムや各種データを参照することによって実現される。但し、上記した各機能の一部または全部は、ソフトウェアによる処理に代えて、またはソフトウェアによる処理と共に、専用のハードウェア回路による処理によって実現されてもよい。   Each function described later of the medication instruction support device 10 is realized by, for example, the CPU 101 referring to a processing program and various data stored in the ROM 102, the RAM 103, the external storage device 104, and the like. However, some or all of the above-described functions may be realized by processing by a dedicated hardware circuit instead of or together with the processing by software.

図3は、第1の実施の形態における服薬指導支援装置10の機能構成の一例を示すブロック図である。   FIG. 3 is a block diagram illustrating an example of a functional configuration of the medication instruction support device 10 according to the first embodiment.

図3に示すように、服薬指導支援装置10は、処方箋データ取得部11、薬剤情報文書データ取得部12、薬剤情報文書データベース(DB)13、患者データ取得部14、患者DB15、ベクトル生成部16、学習モデル生成部17、学習モデルDB18、指導文抽出部19、順位付け部110、指導文表示部111、選択受付部112、服薬指導文書データ生成部113、重み付け部114を有する。   As shown in FIG. 3, the medication instruction support device 10 includes a prescription data acquisition unit 11, a medicine information document data acquisition unit 12, a medicine information document database (DB) 13, a patient data acquisition unit 14, a patient DB 15, a vector generation unit 16. , A learning model generation unit 17, a learning model DB 18, a guidance sentence extraction unit 19, a ranking unit 110, a guidance sentence display unit 111, a selection reception unit 112, a medication instruction document data generation unit 113, and a weighting unit 114.

図1に示すように、服薬指導支援装置10は薬局Pに設置されており、薬局Pに勤務する薬剤師によって操作される。医師から入手した処方箋を持った患者が薬局Pを訪れると、薬剤師は、入力装置106(図2参照)を用いて、処方箋に記載された処方箋に関する情報(以下、処方箋データと記載する)を服薬指導支援装置10に入力する。服薬指導支援装置10への処方箋データの入力方法は、例えば薬剤師がマウス、キーボード、タッチパネル等を用いて直接入力する方法の他、処方箋に記載された、処方箋データを表すバーコードや2次元コード等をスキャナ(リーダ装置)等でスキャンする方法等が採用されうる。   As shown in FIG. 1, the medication instruction support device 10 is installed in a pharmacy P, and is operated by a pharmacist working at the pharmacy P. When a patient having a prescription obtained from a doctor visits the pharmacy P, the pharmacist uses the input device 106 (see FIG. 2) to take information on the prescription described in the prescription (hereinafter, referred to as prescription data). Input to the guidance support device 10. The method of inputting prescription data to the medication instruction support device 10 is, for example, a method in which a pharmacist directly inputs using a mouse, a keyboard, a touch panel, and the like, and a barcode or a two-dimensional code that represents prescription data described in a prescription. A method of scanning with a scanner (reader device) or the like can be adopted.

処方箋データ取得部11は、入力された処方箋データを取得する。処方箋データには、例えば、その処方箋を有する患者の氏名、生年月日、性別、保険者番号等の情報等の患者に関する情報、および、その患者に処方された薬剤の名称、分量、使用部位、使用時点、使用量等の薬剤に関する情報が含まれる。   The prescription data acquisition unit 11 acquires the input prescription data. The prescription data includes, for example, information on the patient such as the name of the patient having the prescription, date of birth, gender, insurer number, and the like, and the name, amount, and use site of the drug prescribed for the patient. Information about the medicine, such as the time of use and the amount used, is included.

薬剤情報文書データ取得部12は、処方箋データに基づいて、患者に処方された薬剤に対応する全指導文に関するデータを薬剤情報文書DB13から取得する。指導文とは、薬剤に関する情報提供のための薬剤情報文書に記載された文章である。薬剤情報文書とは、薬事法第52条に規定される記載事項が記載された添付文書や、くすりのしおり(登録商標)、任意の薬剤情報提供書等、例えば薬剤を製造する医薬品メーカー等から提供されたり、薬剤師の有志によって提供されたりしたものである。   The medicine information document data obtaining unit 12 obtains, from the medicine information document DB 13, data on all guidance sentences corresponding to the medicine prescribed to the patient based on the prescription data. The guidance sentence is a sentence described in a medicine information document for providing information on a medicine. A drug information document is a package insert that describes the items specified in Article 52 of the Pharmaceutical Affairs Law, a medicine bookmark (registered trademark), an optional drug information report, etc., for example, from a drug manufacturer that manufactures drugs. Or provided by volunteer pharmacists.

薬剤情報文書は、複数の項目を含み、各項目には、小項目が含まれうる。薬剤情報文書の各項目または小項目には、1または複数の文章、または単語の羅列等の文字列が含まれる。この薬剤情報文書に含まれる文字列を、本明細書では指導文と記載している。この指導文は、本発明における服薬指導用の文字列の一例である。薬剤情報文書の一例としての添付文書には、例えば、「名称」、「禁忌」、「効能・効果」、「用法・用量」、「慎重投与」、「重要な基本的注意」、「相互作用」、「副作用」等の項目が含まれる。これらの各項目には、小項目が含まれうる他、薬剤の性質について説明する指導文、および/または薬剤の使用方法や注意点等に関する指導文等が含まれる。   The medicine information document includes a plurality of items, and each item may include a small item. Each item or sub-item of the drug information document includes one or more sentences or a character string such as a list of words. The character string included in the medicine information document is described as a guidance sentence in this specification. This instruction sentence is an example of a character string for medication instruction in the present invention. Package inserts as examples of drug information documents include, for example, `` name '', `` contraindications '', `` efficacy / effect '', `` dosage / dose '', `` careful administration '', `` important basic precautions '', `` interactions , "Side effects" and the like. Each of these items may include a small item, an instruction sentence explaining the nature of the drug, and / or an instruction sentence on how to use the drug, precautions, and the like.

図4は、添付文書について例示した図である。図4に示す例では、「禁忌」、「慎重投与」、「重要な基本的注意」、「相互作用」、「副作用」等の各項目には、それぞれ複数の指導文(図4では(1)、(2)、(3)・・・等で示される)が含まれている。これらの複数の指導文には、特定の患者には必要がない内容のものも含まれているため、薬局Pにおいて、特定の患者に対する服薬指導のために提供される服薬指導文書を作成するには、その患者に必要な内容の指導文が抽出されることが望ましい。   FIG. 4 is a diagram illustrating an example of an attached document. In the example shown in FIG. 4, each of the items such as “contraindications”, “cautious administration”, “important basic precautions”, “interaction”, “side effects”, etc., has a plurality of instruction sentences ((1 ), (2), (3), etc.). Since these plural instruction sentences include contents that are not necessary for a specific patient, the pharmacy P prepares a medication instruction document provided for medication instruction for a specific patient. It is desirable that a guidance sentence of the content necessary for the patient be extracted.

そこで、本実施の形態に係る服薬指導支援装置10では、以下説明するように、患者に合わせて必要な情報を含む指導文を抽出して提供するようにしている。患者に合わせて必要な情報を含む指導文を抽出する具体的な方法については、後述する。   Therefore, the medication instruction support device 10 according to the present embodiment extracts and provides an instruction sentence including information necessary for a patient, as described below. A specific method of extracting a guidance sentence including information necessary for a patient will be described later.

図3の説明に戻る。患者データ取得部14は、処方箋データおよび患者DB15に基づいて、患者に関する情報(以下、患者データと称する)を取得する。患者データには、患者の氏名、生年月日、性別、疾患、保険者番号等の患者本人に関する情報や、その患者に対する過去の調剤内容や指導履歴等の薬歴情報等が含まれうる。患者DB15には、患者本人に関する情報と、その患者の薬歴情報とが関連づけられてデータベース化されている。ただし、服薬指導支援装置10において用いられる患者データとしては、患者本人に関する情報と、その患者の薬歴情報が全て含まれる必要はなく、その一部のみが用いられてもよい。本実施の形態では、患者データには例えば性別、年齢等の情報が少なくとも含まれる。患者DB15に登録されていない新たな患者が薬局Pを訪れた場合、薬剤師によって、例えば患者から患者データに関する聞き取りを行い、新規患者データを患者DB15に登録する作業等が行われてもよい。   Returning to the description of FIG. The patient data acquisition unit 14 acquires information about a patient (hereinafter, referred to as patient data) based on the prescription data and the patient DB 15. The patient data may include information about the patient, such as the patient's name, date of birth, gender, disease, and insurer number, and drug history information, such as past dispensing contents and guidance history for the patient. The patient DB 15 is a database in which information on the patient and drug history information of the patient are associated with each other. However, the patient data used in the medication instruction support device 10 does not need to include all information about the patient and the drug history information of the patient, and may use only a part of the information. In the present embodiment, the patient data includes at least information such as gender and age. When a new patient who is not registered in the patient DB 15 visits the pharmacy P, the pharmacist may perform, for example, an operation of listening to the patient data from the patient and registering the new patient data in the patient DB 15.

ベクトル生成部16は、薬剤情報文書データ取得部12が取得した指導文に関するデータ、および患者データ取得部14が取得した患者データに基づいて、指導文ベクトルおよび患者ベクトルを生成する。指導文ベクトルとは、薬剤情報文書に含まれる各指導文をベクトル変換したものであり、患者ベクトルとは、患者データの各項目の内容をベクトル変換したものである。指導文および患者データをベクトル変換する具体例な方法としては、例えば文章あるいは患者データ中に含まれる単語の出現回数をカウントするBag of Wordsや、単語そのものをベクトル変換するWord2Vec等が採用されうる。より精度のよいベクトル変換のため、医療用語辞書等を用いて学習された学習モデルを用いてもよい。なお、指導文ベクトルは本発明の文字列ベクトルの一例である。   The vector generation unit 16 generates a guidance sentence vector and a patient vector based on the data related to the guidance sentence acquired by the medicine information document data acquisition unit 12 and the patient data acquired by the patient data acquisition unit 14. The guidance sentence vector is obtained by vector-converting each guidance sentence included in the medicine information document, and the patient vector is obtained by vector-converting the contents of each item of the patient data. As a specific example of the vector conversion of the guidance sentence and the patient data, for example, Bag of Words for counting the number of appearances of a word included in a sentence or patient data, Word2Vec for performing a vector conversion of the word itself, or the like can be adopted. For more accurate vector conversion, a learning model learned using a medical term dictionary or the like may be used. The instruction sentence vector is an example of the character string vector of the present invention.

図5は、患者データおよび指導文のベクトル変換の例について説明するための図である。図5Aは患者データに基づく患者ベクトルの生成について例示した図であり、図5Bは指導文に基づく指導文ベクトルの生成について例示した図である。   FIG. 5 is a diagram for describing an example of vector conversion of patient data and instruction text. FIG. 5A is a diagram illustrating generation of a patient vector based on patient data, and FIG. 5B is a diagram illustrating generation of a guidance sentence vector based on a guidance sentence.

図5Aでは、患者データの項目として、「年齢」、「性別」、「妊婦」、「授乳」、「新規」、「アレルギー」、「併用薬」、「高血圧」、「腎機能障害」、「肝機能障害」、「前回同じ指導済み」等が設けられている。「データ内容」行は各項目に対応した内容を示し、このデータ内容をベクトル変換したものが「ベクトル値」行に示されている。図5Aに示す例では、年齢および性別を除いて、単にデータ内容が「あり」または「YES」である項目のベクトル値を「1」、データ内容が「なし」または「NO」である項目のベクトル値を「0」とした場合について例示している。このような方法により、患者データの項目数と同じ次元を有する患者ベクトルが生成される。   In FIG. 5A, the items of the patient data include “age”, “sex”, “pregnant woman”, “lactation”, “new”, “allergy”, “concomitant medication”, “hypertension”, “renal dysfunction”, “ Hepatic dysfunction "," The same guidance was given last time ", etc. are provided. The “data content” row indicates the content corresponding to each item, and the data content obtained by performing vector conversion is shown in the “vector value” row. In the example shown in FIG. 5A, excluding the age and gender, the vector value of the item whose data content is simply “Yes” or “YES” is “1”, and the vector value of the item whose data content is “No” or “NO” is The case where the vector value is “0” is illustrated. According to such a method, a patient vector having the same dimension as the number of items of the patient data is generated.

なお、ここでは、患者データの項目数と同じ次元を有するように患者ベクトルを生成したが、よりユニークに表現するために次元を拡張してもよい。例えばEntity Embeddings(Entity Embeddings of Categorical Variables)という手法を用いれば、患者データの各項目を任意の次元に拡張して表現することができる。   Here, the patient vector is generated so as to have the same dimension as the number of items of the patient data, but the dimension may be extended for more unique expression. For example, if a technique called Entity Embeddings (Entity Embeddings of Categorical Variables) is used, each item of patient data can be extended to any dimension and expressed.

図5Bでは、図4に例示した薬剤情報文書の項目「重要な基本的注意」に例示した指導文(1)から(3)をベクトル変換した例が示されている。図5Bに示すように、指導文(1)には、「両側性」、「腎動脈狭窄」、「患者」、「使用」、「避ける」等の単語が出現しており、この場合これらの各単語の出現回数がカウントされ、カウント値がベクトル値に対応している。このような方法により、単語数と同じ次元を有する指導文ベクトルが生成される。なお、図5Bでは指導文中に出現する単語の一部のみ示しているが、実際には全ての単語について出現回数のカウントが行われる。   FIG. 5B shows an example in which the instruction sentences (1) to (3) exemplified in the item “important basic caution” of the medicine information document illustrated in FIG. 4 are vector-converted. As shown in FIG. 5B, words such as “bilateral”, “renal artery stenosis”, “patient”, “use”, and “avoid” appear in the instruction sentence (1). The number of appearances of each word is counted, and the count value corresponds to the vector value. By such a method, a guidance sentence vector having the same dimension as the number of words is generated. Although FIG. 5B shows only a part of the words appearing in the guidance sentence, the number of appearances is actually counted for all the words.

各指導文から単語を抽出する方法については、例えば既知の形態素解析の手法を適用することができる。また、1つの単語として扱われるべき単語が複数に分割されることを防止するため、例えば医療用語辞書等を併用して形態素解析を行うことが望ましい。具体的には、例えば「間質性肺炎」という単語が「間」、「質性」、「肺炎」等と3つの単語に分割されてしまうと精度のよい指導文ベクトルを生成するためには好適ではないため、「間質性肺炎」が1つの単語として登録された医療用語辞書を用いることでこれを防止する例が挙げられる。   As a method of extracting a word from each instruction sentence, for example, a known morphological analysis technique can be applied. In addition, in order to prevent a word to be treated as one word from being divided into a plurality of words, it is desirable to perform morphological analysis using, for example, a medical term dictionary or the like. Specifically, for example, if the word “interstitial pneumonia” is divided into three words such as “between”, “characteristics”, “pneumonia”, etc., in order to generate an accurate instruction sentence vector, Since it is not preferable, there is an example in which “interstitial pneumonia” is prevented by using a medical term dictionary registered as one word.

また、図5Bに示す例では、各単語の出現回数をそのままベクトル値として使用する方法(Bag-of-Words)が採用されているが、本発明はこれに限定されず、他の方法を採用してもよい。例えば、TF−IDF等、より文章中の特徴的な単語を評価するような手法を採用することができる。また、Word2vec等、単語毎に意味をベースにベクトル変換を行い、指導文に出現する全単語のベクトルに基づいて指導文ベクトルを生成するようにしてもよい。   In the example shown in FIG. 5B, a method (Bag-of-Words) of using the number of appearances of each word as a vector value as it is is adopted, but the present invention is not limited to this, and another method is adopted. May be. For example, a method such as TF-IDF that evaluates more characteristic words in a sentence can be adopted. In addition, vector conversion may be performed based on the meaning of each word, such as Word2vec, and an instruction sentence vector may be generated based on the vectors of all words appearing in the instruction sentence.

図3の説明に戻る。学習モデル生成部17は、ベクトル生成部16が生成した患者ベクトルおよび指導文ベクトルを教師データとして機械学習を行い、学習モデルを生成する。より具体的には、学習モデル生成部17が用いる教師データは、複数の患者に対応する患者ベクトルと、過去にそれぞれの患者に対して提供された指導文に対応する指導文ベクトルとが互いに対応づけられた教師データである。   Returning to the description of FIG. The learning model generation unit 17 performs machine learning using the patient vector and the guidance sentence vector generated by the vector generation unit 16 as teacher data, and generates a learning model. More specifically, the teacher data used by the learning model generation unit 17 includes a patient vector corresponding to a plurality of patients and an instruction sentence vector corresponding to an instruction sentence provided to each patient in the past. This is the attached teacher data.

本第1の実施の形態において、学習モデル生成部17が生成する学習モデルは、ある患者に対して提供された指導文に対応する指導文ベクトルと、その患者の患者ベクトルとが類似するように学習処理が施されたモデルである。同時に、この学習モデルは、ある患者に対して提供されなかった指導文に対応する指導文ベクトルと、その患者の患者ベクトルとが類似しないように学習処理が施されたモデルである。換言すれば、学習モデル生成部17が生成する学習モデルは、患者ベクトルおよび複数の指導文ベクトルの入力に対して、その患者ベクトルとの類似の度合いが大きい順に指導文ベクトルを並べ替えて出力するように学習されたモデルである。   In the first embodiment, the learning model generated by the learning model generating unit 17 is configured such that the instruction sentence vector corresponding to the instruction sentence provided to a certain patient is similar to the patient vector of the patient. This is a model that has been subjected to learning processing. At the same time, this learning model is a model that has been subjected to learning processing so that the instruction sentence vector corresponding to the instruction sentence not provided to a certain patient is not similar to the patient vector of the patient. In other words, the learning model generated by the learning model generation unit 17 rearranges and outputs the instruction sentence vectors in the order of the degree of similarity with the patient vector in response to the input of the patient vector and the plurality of instruction sentence vectors. Is a model that was learned as follows.

患者ベクトルと指導文ベクトルとの類似の度合いは、例えばベクトル間の類似度を算出することにより判断される。類似度の算出方法としては、例えばコサイン類似度等の既知の手法が採用されうる。コサイン類似度とは、正規化したベクトル同士の内積を用いて算出する、2つのベクトル同士の成す角度の近さを示す値である。コサイン類似度では、2つのベクトル同士の向きが近いほど1に近い値となり、これらのベクトルが類似していることが示される。学習モデル生成部17にて生成された学習モデルは、学習モデルDB18に登録され、必要に応じて指導文抽出部19に読み出される。   The degree of similarity between the patient vector and the instruction sentence vector is determined, for example, by calculating the degree of similarity between the vectors. As a method of calculating the similarity, for example, a known method such as cosine similarity can be adopted. The cosine similarity is a value that is calculated using the inner product of the normalized vectors and indicates the closeness of the angle formed by the two vectors. In the cosine similarity, the closer the directions of the two vectors are, the closer the value is to 1, indicating that these vectors are similar. The learning model generated by the learning model generation unit 17 is registered in the learning model DB 18 and read out by the guidance sentence extraction unit 19 as necessary.

なお、学習モデルDB18には、通信ネットワークNを介して服薬指導支援サーバ20(図1参照)から、後述の再学習により新規作成または更新された学習モデルが送信される。学習モデルDB18は、新規作成または更新された学習モデルを受信すると、登録された学習モデルを新たに受信した学習モデルで随時更新する。   A learning model newly created or updated by re-learning, which will be described later, is transmitted from the medication administration support server 20 (see FIG. 1) to the learning model DB 18 via the communication network N. Upon receiving a newly created or updated learning model, the learning model DB 18 updates the registered learning model with the newly received learning model as needed.

学習モデル生成部17による学習モデルの生成は、例えば薬局Pにおける服薬指導支援装置10の稼働前に行われていることが望ましいが、本発明では必ずしも服薬指導支援装置10の稼働前に学習モデルの生成が行われていなくてもよい。すなわち、薬局Pにおいて服薬指導支援装置10が稼働した状態で、新たな患者の患者ベクトルと、その患者に対して薬剤師が作成した指導文の指導文ベクトルとを新たな教師データとして、随時学習モデルを更新し続ける(任意のタイミングで追加学習、もしくは再学習する)ような形態を採用してもよい。   It is desirable that the generation of the learning model by the learning model generation unit 17 is performed before the operation of the medication instruction support device 10 in the pharmacy P, for example. The generation does not have to be performed. That is, in the state where the medication instruction support device 10 is operating in the pharmacy P, the learning model is used as a new teacher data with the patient vector of the new patient and the instruction sentence vector of the instruction sentence created by the pharmacist for the patient as new teacher data. May be continuously updated (additional learning or re-learning is performed at an arbitrary timing).

上記説明では、服薬指導支援装置10が学習モデル生成部17を有している例について説明したが、学習モデル生成部17は、服薬指導支援装置10内に存在しなくてもよい。すなわち、学習モデル生成部17は、例えば通信ネットワークNを介して通信可能な他の装置内、例えば服薬指導支援サーバ20内に存在してもよい。この場合、服薬指導支援装置10は、モデル生成に必要な情報(患者ベクトルおよび指導文ベクトル)を通信ネットワークNを介して服薬指導支援サーバ20に伝達して学習モデルを生成するというような形態を採用してもよい。   In the above description, the example in which the medication instruction support device 10 includes the learning model generation unit 17 has been described, but the learning model generation unit 17 may not be provided in the medication instruction support device 10. That is, the learning model generation unit 17 may exist in another device that can communicate via the communication network N, for example, in the medication support server 20. In this case, the medication instruction support device 10 transmits information necessary for model generation (patient vector and instruction sentence vector) to the medication instruction support server 20 via the communication network N to generate a learning model. May be adopted.

指導文抽出部19は、学習モデルDB18から読み出した学習モデルを用いて、薬剤情報文書中の項目毎に、患者に提供する服薬指導文書に含まれるべき指導文を抽出する。具体的には、指導文抽出部19は、ベクトル生成部16から、新たな患者ベクトルと、その患者に処方された薬剤の薬剤情報文書に含まれる全指導文の指導文ベクトルとを取得し、全指導文の指導文ベクトルを項目毎の指導文ベクトルに分類する。そして、指導文抽出部19は、患者ベクトルと項目毎の指導文ベクトルとを学習モデルに入力し、患者ベクトルとの類似度が大きい順に並べ替えられた指導文ベクトルの出力を得る。そして、指導文抽出部19は、出力された指導文ベクトルの上位所定数(例えば1つ)の指導文ベクトルに対応する指導文を抽出する。これにより、指導文抽出部19は、薬剤情報文書に含まれる指導文の中から、項目毎に、患者との関連性が大きい指導文を抽出することができる。例えば図4に例示した薬剤情報文書の場合、指導文抽出部19は、項目「禁忌」から1つ、「効能・効果」から1つ、「用法・用量」から1つ、というように指導文を抽出することができる。   Using the learning model read from the learning model DB 18, the instruction sentence extracting unit 19 extracts an instruction sentence to be included in the medication instruction document provided to the patient for each item in the drug information document. Specifically, the guidance sentence extracting unit 19 acquires a new patient vector and the guidance sentence vector of all the guidance sentences included in the medicine information document of the medicine prescribed for the patient from the vector generation unit 16, The instruction sentence vectors of all instruction sentences are classified into instruction sentence vectors for each item. Then, the instruction sentence extracting unit 19 inputs the patient vector and the instruction sentence vector for each item to the learning model, and obtains an output of the instruction sentence vector rearranged in descending order of the similarity with the patient vector. Then, the guidance sentence extracting unit 19 extracts a guidance sentence corresponding to a predetermined number (for example, one) of guidance instruction vectors that are higher than the output guidance sentence vector. Thereby, the guidance sentence extracting unit 19 can extract, from the guidance sentence included in the medicine information document, a guidance sentence that is highly relevant to the patient for each item. For example, in the case of the medicine information document illustrated in FIG. 4, the instruction sentence extracting unit 19 outputs the instruction sentence such as one item from the item “contraindications”, one item from “effect / effect”, and one item from “usage / dose”. Can be extracted.

順位付け部110は、学習モデルDB18から読み出した学習モデルを用いて、指導文抽出部19が薬剤情報文書の項目毎に抽出した指導文の順位付けを行う。具体的には、順位付け部110は、患者ベクトルと、項目毎に抽出された指導文ベクトルと、を学習モデルに入力し、患者ベクトルとの類似度が大きい順に並べ替えられた指導文ベクトルの出力を得る。これにより、順位付け部110は、より患者にとって関連性が高い項目の指導文を、より上位に順位付けすることができる。   The ranking unit 110 uses the learning model read from the learning model DB 18 to rank the guidance sentences extracted by the guidance sentence extraction unit 19 for each item of the drug information document. Specifically, the ranking unit 110 inputs the patient vector and the instruction sentence vector extracted for each item to the learning model, and outputs the instruction sentence vector sorted in descending order of similarity with the patient vector. Get output. Accordingly, the ranking unit 110 can rank the instruction sentences of items that are more relevant to the patient in a higher rank.

指導文表示部111は、指導文抽出部19によって抽出された項目毎の指導文を、順位付け部110によって順位付けされた順位の通りに、出力装置107(図2参照)に表示させる。図6は、出力装置107がディスプレイ装置である場合の、指導文表示部111による表示画面を例示した図である。   The guidance sentence display unit 111 causes the output device 107 (see FIG. 2) to display the guidance sentences for each item extracted by the guidance sentence extraction unit 19 in the order determined by the ranking unit 110. FIG. 6 is a diagram exemplifying a display screen of the guidance sentence display unit 111 when the output device 107 is a display device.

図6では、表示画面200内に指導文表示欄201が表示された例が示されている。指導文表示欄201には、複数の項目の指導文が順位付けされた順番で表示されている。図6では、項目毎のフィルタ機能により、例えば薬剤師によって選択された項目のみ表示されるようになっている。また、指導文表示欄201には、「キーワード」列が設けられており、その指導文が抽出される根拠となった単語が表示されている。このようなキーワードの抽出方法としては、例えば抽出された指導文の指導文ベクトルと、学習モデル生成のための教師データに用いられた患者データの項目名(「性別」、「妊婦」等)をベクトル変換したものとの類似度を算出し、指導文ベクトルとの類似度が大きい項目名をキーワードとする方法が採用されうる。このような方法を用いたキーワードの抽出は、例えば指導文表示部111によって実行されればよい。   FIG. 6 shows an example in which a guidance sentence display column 201 is displayed on the display screen 200. In the guidance sentence display column 201, guidance sentences of a plurality of items are displayed in the order of ranking. In FIG. 6, only items selected by, for example, a pharmacist are displayed by the filter function for each item. In the guidance sentence display column 201, a “keyword” column is provided, and the word on which the guidance sentence is extracted is displayed. As a method of extracting such a keyword, for example, an instruction sentence vector of an extracted instruction sentence and an item name (“sex”, “pregnant woman”, etc.) of patient data used for teacher data for generating a learning model are used. A method of calculating the similarity with the vector-converted one and using the item name having a high similarity with the instruction sentence vector as a keyword may be adopted. The extraction of the keyword using such a method may be executed by, for example, the instruction sentence display unit 111.

選択受付部112は、指導文表示部111が表示した複数項目の指導文のうち、薬剤師が患者に提供するべきと判断したものの選択を受け付ける。薬剤師による選択は、例えば図2に示す入力装置106(マウス、キーボード、タッチパネル等)によって行われればよい。   The selection receiving unit 112 receives a selection of a plurality of instruction sentences displayed by the instruction sentence display unit 111 that the pharmacist determines to provide to the patient. The selection by the pharmacist may be performed by, for example, the input device 106 (mouse, keyboard, touch panel, etc.) shown in FIG.

服薬指導文書データ生成部113は、選択受付部112が受け付けた薬剤師の選択に基づいて、選択された指導文を含む服薬指導文書データを生成する。服薬指導文書データは、指導文抽出部19によって項目毎に抽出され、順位付け部110によって項目毎に順位づけされた指導文のうち、薬剤師によって選択された指導文が記載された文書データである。服薬指導文書データ生成部113は、生成した服薬指導文書データを出力装置107(図2参照、例えばプリンタ等)へ出力する。これにより、例えば服薬指導文書データが印刷されて、薬剤とともに患者に提供される。なお、服薬指導文書データは印刷されるのではなく、例えば患者の有する携帯端末等に表示されてもよい。   The medication instruction document data generating unit 113 generates medication instruction document data including the selected instruction based on the pharmacist's selection received by the selection receiving unit 112. The medication instruction document data is document data that describes the instruction sentence selected by the pharmacist among the instruction sentences extracted for each item by the instruction sentence extraction unit 19 and ranked by item by the ranking unit 110. . The medication instruction document data generating unit 113 outputs the generated medication instruction document data to the output device 107 (see FIG. 2, for example, a printer). As a result, for example, the medication instruction document data is printed and provided to the patient together with the medicine. The medication instruction document data may not be printed but may be displayed on, for example, a portable terminal of the patient.

また、服薬指導文書データ生成部113は、生成した服薬指導文書データを、患者DB15において、患者の薬歴データと関連づけて登録するようにしてもよい。   The medication instruction document data generation unit 113 may register the generated medication instruction document data in the patient DB 15 in association with the medication history data of the patient.

なお、本実施の形態では、服薬指導文書データ生成部113が生成した服薬指導文書データに含まれる指導文は、添付文書、くすりのしおり、または薬剤情報提供書に基づく文章(または文字列)であり、必ずしも患者にとってわかりやすい文章とは限らない。患者にとってわかりやすい文章が記載された服薬指導文書を提供するため、服薬指導文書データ生成部113は、指導文の文章形式を例えば口語体に変換する口語体変換処理を行ってもよい。   In the present embodiment, the instruction text included in the medication instruction document data generated by the medication instruction document data generation unit 113 is a sentence (or a character string) based on an attached document, a bookmark, or a drug information provision book. Yes, it is not always easy for patients to understand. In order to provide a medication instruction document in which a sentence that is easy for the patient to understand is described, the medication instruction document data generation unit 113 may perform a colloquial style conversion process of converting the text format of the instruction sentence into, for example, a colloquial style.

口語体変換処理には、例えばsequence to sequence(seq2seq)等の機械学習モデルを用いることができる。口語体変換処理に用いられる学習モデルを生成するための教師データには、例えば医療用語辞書が用いられることが好適である。このような処理により、平易でわかりやすい指導文が記載された服薬指導文書を患者に対して提供することができる。ここで、服薬指導支援装置10における機械学習の設計を容易にするため、順位付け部110によって順位付けされた順に、口語体変換処理を1文ずつ行うようにすることが好適である。   For the colloquial style conversion processing, for example, a machine learning model such as sequence to sequence (seq2seq) can be used. It is preferable that, for example, a medical term dictionary is used as teacher data for generating a learning model used in the colloquial style conversion process. By such a process, it is possible to provide the patient with a medication instruction document in which a plain and easy-to-understand instruction sentence is described. Here, in order to facilitate the design of the machine learning in the medication instruction support device 10, it is preferable to perform the colloquial style conversion processing one sentence at a time in the order of the ranking by the ranking unit 110.

一方、重み付け部114は、選択受付部112が受け付けた、薬剤師による指導文の選択または非選択に基づいて、学習モデル生成部17における学習モデル生成の際に使用される教師データに対する重み付け値を設定する。図7は、重み付け部114による重み付けの例について説明するための図である。   On the other hand, the weighting unit 114 sets a weighting value for the teacher data used when the learning model generation unit 17 generates the learning model based on the selection or non-selection of the guidance sentence by the pharmacist, which is received by the selection reception unit 112. I do. FIG. 7 is a diagram for describing an example of weighting by the weighting unit 114.

図7には、重み付け前の教師データと、重み付け部114による重み付け後の教師データと、が例示されている。図7に示す例では、教師データに含まれる3つの指導文(文1、文2、文3)のうち、文1が非選択、文2および文3が選択された場合が示されている。図7に示す例では、文1は非選択であったため、文1に出現する全ての単語に対応したベクトル値(上記した指導文ベクトル)には0.5倍の重み付けがなされる。これにより、例えば重み付け前における、文1に含まれる単語1のベクトル値「5」は、重み付け後においては「2.5」となっている。同様に、文1に含まれる他の単語についても、ベクトル値が全て0.5倍されている。   FIG. 7 illustrates the teacher data before weighting and the teacher data after weighting by the weighting unit 114. In the example shown in FIG. 7, a case is shown where sentence 1 is not selected and sentence 2 and sentence 3 are selected among the three instruction sentences (sentence 1, sentence 2, and sentence 3) included in the teacher data. . In the example shown in FIG. 7, since sentence 1 is not selected, the vector value (the above-mentioned instruction sentence vector) corresponding to all the words appearing in sentence 1 is weighted by 0.5 times. Thereby, for example, the vector value “5” of the word 1 included in the sentence 1 before the weighting is “2.5” after the weighting. Similarly, the vector values of other words included in sentence 1 are all multiplied by 0.5.

一方、文2および文3は選択されていたため、文2および文3に出現する全ての単語には2倍の重み付けがなされる。これにより、例えば重み付け前における、文2に含まれる単語2のベクトル値「3」は、重み付け後においては「6」となっている。同様に、文2および文3に含まれる他の単語についても、ベクトル値が全て2倍されている。   On the other hand, since sentences 2 and 3 have been selected, all words appearing in sentences 2 and 3 are weighted twice. Thus, for example, the vector value “3” of the word 2 included in the sentence 2 before weighting is “6” after weighting. Similarly, the vector values of all the other words included in the sentences 2 and 3 are also doubled.

このように、重み付け部114は、指導文が薬剤師によって選択されたか否かに基づいて、指導文ベクトルのベクトル値に対して重み付けを行う。なお、上記例では選択された場合2倍、選択されなかった場合0.5倍の重み付けを行っていたが、本発明はこれに限定されず、重み付けの量については適宜設定されればよい。   As described above, the weighting unit 114 weights the vector value of the instruction sentence vector based on whether the instruction sentence is selected by the pharmacist. In the above example, weighting is performed twice when selected and 0.5 times when not selected. However, the present invention is not limited to this, and the amount of weighting may be set as appropriate.

重み付け部114においてなされた重み付け後の教師データは、学習モデル生成部17に入力される。学習モデル生成部17は、重み付け後の教師データを用いて再学習を行い、学習モデルを更新して新たな学習モデルを学習モデルDB18に登録する。また、重み付け部114においてなされた重み付け後の教師データは、通信ネットワークNを介して服薬指導支援サーバ20(図1参照)へ送信されてもよい。重み付け部114においてなされた重み付けに関する情報と、重み付けされていない教師データとが服薬指導支援サーバ20に対して送信されてもよい。   The teacher data after the weighting performed by the weighting unit 114 is input to the learning model generation unit 17. The learning model generation unit 17 performs re-learning using the weighted teacher data, updates the learning model, and registers a new learning model in the learning model DB 18. Further, the teacher data after the weighting performed by the weighting unit 114 may be transmitted to the medication instruction support server 20 (see FIG. 1) via the communication network N. Information regarding the weighting performed by the weighting unit 114 and unweighted teacher data may be transmitted to the medication administration support server 20.

服薬指導支援サーバ20では、送信された教師データ(および重み付けに関する情報)が記憶されるとともに、重み付けされた教師データを用いた再学習により新たな学習モデルが生成される、または既存の学習モデルが更新される。服薬指導支援サーバ20において新規作成または更新された学習モデルは、通信ネットワークNを介して、必要に応じて上記説明した学習モデルDB18に送信される。   The medication instruction support server 20 stores the transmitted teacher data (and information about the weighting), and generates a new learning model by re-learning using the weighted teacher data, or replaces the existing learning model with the weighted teacher data. Be updated. The learning model newly created or updated in the medication administration support server 20 is transmitted to the above-described learning model DB 18 via the communication network N as needed.

服薬指導支援サーバ20は、複数の薬局Pから重み付けに関する情報および教師データを収集し、学習データを更新するサーバ装置であることが望ましい。服薬指導支援サーバ20は、全店舗からの情報および教師データに基づいて、全店舗で使用可能な学習モデルを生成してもよいし、一部の薬局Pから収集した情報および教師データに基づいて、一部の薬局Pに適合した学習モデルを生成してもよい。一部の薬局Pとは、例えば一店舗だけでもよいし、ある地域内に存在する複数の店舗であってもよい。また、店舗毎ではなく、薬剤師の識別情報を併せて収集し、薬剤師毎に学習モデルを生成するようにしてもよい。このように複数の学習モデルを生成しておくことで、服薬指導支援装置10において、店舗、地域、または薬剤師に最適化された学習モデルを用いて、より患者に適した服薬指導文書を作成することができるようになる。   The medication support server 20 is preferably a server device that collects weighting information and teacher data from a plurality of pharmacies P and updates learning data. The medication compliance support server 20 may generate a learning model that can be used in all stores based on information and teacher data from all stores, or based on information and teacher data collected from some pharmacies P. , A learning model suitable for some pharmacies P may be generated. Some pharmacies P may be, for example, only one store or a plurality of stores existing in a certain area. Alternatively, the identification information of the pharmacist may be collected together with the information, and the learning model may be generated for each pharmacist. By generating a plurality of learning models in this way, the medication instruction support device 10 creates a medication instruction document more suitable for a patient using a learning model optimized for a store, a region, or a pharmacist. Will be able to do it.

以上説明したように、本発明の第1の実施の形態に係る服薬指導支援装置10は、患者ベクトルと指導文ベクトルとに基づいて学習モデルを生成し、この学習モデルを用いて、薬剤情報文書の項目毎に、患者ベクトルと類似度が大きい指導文ベクトルに対応する指導文を抽出する。そして、対応する指導文ベクトルの患者ベクトルとの類似度に基づいて、項目毎に抽出された指導文を順位付けする。   As described above, the medication instruction support device 10 according to the first embodiment of the present invention generates a learning model based on a patient vector and an instruction sentence vector, and uses the learning model to generate a drug information document. For each item, an instruction sentence corresponding to an instruction sentence vector having a large similarity to the patient vector is extracted. Then, based on the similarity between the corresponding instruction text vector and the patient vector, the extracted instruction texts are ranked for each item.

このため、患者にとって関連性が高く、重要な内容を含む指導文が、項目毎に抽出される。また、項目毎の順位付けもされているので、抽出された指導文の中でもどの指導文がより重要であるのかがわかりやすい。さらに、項目毎に指導文の抽出を行っているため、例えば全指導文から患者にとって重要なものを抽出する場合と比較して、項目毎の重要な情報を含む指導文が抽出されずに漏れてしまう事態を回避しやすい。これにより、服薬指導支援装置10は、薬剤師による服薬指導文書の作成を好適に支援することができる。   Therefore, a guidance sentence that is highly relevant to the patient and includes important contents is extracted for each item. In addition, since the ranking is set for each item, it is easy to understand which of the extracted instruction sentences is more important. Furthermore, since guidance sentences are extracted for each item, guidance sentences containing important information for each item are not extracted and omitted compared to, for example, extracting important items for the patient from all guidance sentences. Is easy to avoid. Thereby, the medication instruction support device 10 can suitably support the pharmacist in preparing the medication instruction document.

なお、上記説明において、学習モデル生成部17は、ベクトル同士の類似度を算出して類似する指導文ベクトルを出力するような学習モデルを生成していたが、本発明はこれに限定されない。例えばあらかじめ患者ベクトルおよび指導文ベクトルにクラスタリングを行って患者クラスタと指導文クラスタとを生成しておき、クラスタ同士の類似度を算出して類似するクラスタを出力するような学習モデルを生成してもよい。この場合、例えば指導文抽出部19は、出力された指導文クラスタの例えば中心に位置する指導文ベクトルに対応する指導文を抽出するようにすればよい。なお、指導文抽出部19が、学習モデルを用いて得られた指導文クラスタからどの指導文ベクトルを抽出するか、については本発明では特に限定しない。   In the above description, the learning model generation unit 17 generates a learning model that calculates a similarity between vectors and outputs a similar instruction sentence vector, but the present invention is not limited to this. For example, a learning model may be generated in which clustering is performed on a patient vector and a guidance sentence vector in advance to generate a patient cluster and a guidance sentence cluster, and a similarity between the clusters is calculated to output a similar cluster. Good. In this case, for example, the instruction sentence extracting unit 19 may extract an instruction sentence corresponding to, for example, an instruction sentence vector located at the center of the output instruction sentence cluster. The present invention does not particularly limit which instruction sentence vector is extracted from the instruction sentence cluster obtained by using the learning model by the instruction sentence extracting unit 19.

(第2の実施の形態)
次に、本発明の第2の実施の形態について説明する。図8は、第2の実施の形態における服薬指導支援装置10Aの機能構成の一例を示すブロック図である。第2の実施の形態では、学習モデル生成部により生成される学習モデルが上記説明した第1の実施の形態と異なっている。このため、以下では、第2の実施の形態における、学習モデル生成部17Aの第1の実施の形態の学習モデル生成部17とは異なる動作について説明し、第1の実施の形態と同じ動作を行う構成については説明を省略する。
(Second embodiment)
Next, a second embodiment of the present invention will be described. FIG. 8 is a block diagram illustrating an example of a functional configuration of the medication instruction support device 10A according to the second embodiment. In the second embodiment, the learning model generated by the learning model generator differs from the first embodiment described above. Therefore, in the following, an operation of the learning model generation unit 17A according to the second embodiment that is different from that of the learning model generation unit 17 according to the first embodiment will be described, and the same operation as that of the first embodiment will be described. The description of the configuration to be performed is omitted.

本第2の実施の形態において、学習モデル生成部17Aが生成する学習モデルは、ある患者の患者ベクトルの入力に対して、その患者ベクトルと類似する患者ベクトルとあらかじめ対応づけられた指導文ベクトルが出力されるように学習処理が施されたモデルである。患者ベクトルとあらかじめ対応づけられた指導文ベクトルとは、ある患者ベクトルに対応する患者に対して過去に提供された指導文に対応する指導文ベクトルを意味する。   In the second embodiment, the learning model generated by the learning model generation unit 17A is such that, in response to the input of a patient vector of a certain patient, a guidance sentence vector previously associated with a patient vector similar to the patient vector is used. This is a model that has been subjected to learning processing so as to be output. The instruction sentence vector previously associated with a patient vector means an instruction sentence vector corresponding to an instruction sentence provided in the past to a patient corresponding to a certain patient vector.

学習モデル生成部17Aは、第1の実施の形態と同様に、複数の患者に対応する患者ベクトルと、それぞれの患者に対して過去に提供された指導文の指導文ベクトルと、を教師データとして、このような学習モデルを生成すればよい。患者ベクトル同士の類似の度合いについても、第1の実施の形態と同様に、コサイン類似度等の既知の手法により判断されればよい。このように生成された学習モデルは、学習モデルDB18Aに登録される。   As in the first embodiment, the learning model generation unit 17A uses the patient vectors corresponding to a plurality of patients and the instruction sentence vector of the instruction sentence previously provided to each patient as teacher data. What is necessary is just to generate such a learning model. The degree of similarity between patient vectors may be determined by a known method such as cosine similarity, as in the first embodiment. The learning model thus generated is registered in the learning model DB 18A.

このように生成された学習モデルを用いて、以後の服薬指導支援装置10Aにおける処理が実行される。すなわち、指導文抽出部19が学習モデルを用いて新たな患者に提供する指導文を項目毎に抽出し、順位付け部110が項目毎の指導文の順位付けを行い、指導文表示部111が順位付けの通りに指導文を表示する。そして、選択受付部112が薬剤師の選択を受け付け、服薬指導文書データ生成部113が選択された指導文を含む服薬指導文書データを生成する。重み付け部114は薬剤師の選択に基づいて教師データに重み付けを行い、服薬指導支援サーバ20に重み付け情報または教師データを送信する。   Using the learning model generated in this way, the subsequent processing in the medication administration support device 10A is executed. That is, the guidance sentence extracting unit 19 extracts a guidance sentence to be provided to a new patient for each item by using a learning model, the ranking unit 110 ranks the guidance sentences for each item, and the guidance sentence display unit 111 Display instruction sentences according to the ranking. Then, the selection receiving unit 112 receives the selection of the pharmacist, and the medication instruction document data generating unit 113 generates medication instruction document data including the selected instruction text. The weighting unit 114 weights the teacher data based on the pharmacist's selection, and transmits the weighting information or the teacher data to the medication instruction support server 20.

以上説明したように、本発明の第2の実施の形態に係る服薬指導支援装置10Aでは、入力された患者ベクトルと類似する患者ベクトルにあらかじめ対応づけられた指導文ベクトルを出力するように学習処理が施された学習モデルが生成される。このため、服薬指導支援装置10Aによれば、過去に様々な患者に対して提供した服薬指導文書の蓄積を活かして、新たな患者に対して最適な指導文を含む服薬指導文書を作成するための支援を行うことができる。   As described above, in the medication support system 10A according to the second embodiment of the present invention, a learning process is performed so as to output a guidance sentence vector previously associated with a patient vector similar to the input patient vector. Is generated. For this reason, according to the medication guidance support device 10A, it is possible to create a medication guidance document including an optimal guidance sentence for a new patient by utilizing the accumulation of medication guidance documents provided to various patients in the past. Can provide assistance.

なお、上記説明した第2の実施の形態では、患者ベクトルの入力に対して、その患者ベクトルと類似する患者ベクトルとあらかじめ対応づけられた指導文ベクトルが出力されるように学習処理が施された学習モデルが生成されると説明した。しかしながら、例えば、患者ベクトルの入力に対して、その患者ベクトルと類似する患者ベクトルが出力されるように学習処理が施された学習モデルが生成されるようにしてもよい。この場合、複数の患者に対して過去に提供された指導文があらかじめ登録されたデータベースを用意しておき、指導文抽出部19は、このデータベースを参照することで、新たな患者の患者ベクトルを学習モデルに入力したときに出力された患者ベクトルに対応する患者に対して提供された指導文を新たな患者に提供する指導文として抽出することができる。   In the above-described second embodiment, the learning process is performed such that, in response to the input of the patient vector, a guidance sentence vector previously associated with a patient vector similar to the patient vector is output. It has been described that a learning model is generated. However, for example, a learning model may be generated in which a learning process is performed so that a patient vector similar to the patient vector is output in response to the input of the patient vector. In this case, a database in which instruction sentences provided in the past for a plurality of patients are registered in advance is prepared, and the instruction sentence extracting unit 19 refers to this database to extract a patient vector of a new patient. The guidance sentence provided to the patient corresponding to the patient vector output when input to the learning model can be extracted as a guidance sentence to be provided to a new patient.

(第3の実施の形態)
次に、本発明の第3の実施の形態について説明する。図9は、第3の実施の形態に係る服薬指導支援装置10Bの機能構成の一例を示すブロック図である。
(Third embodiment)
Next, a third embodiment of the present invention will be described. FIG. 9 is a block diagram illustrating an example of a functional configuration of a medication instruction support device 10B according to the third embodiment.

上記説明した第1の実施の形態では、学習モデル生成部17の生成した学習モデルを用いて、指導文抽出部19が項目毎に指導文を抽出し、順位付け部110が抽出された指導文の順位付けを行っていた。以下説明する第3の実施の形態では、指導文の項目毎の抽出と、順位付けとが一度に(1ステップで)行われる。これを実現するため、第3の実施の形態に係る服薬指導支援装置10Bは、ベクトル生成部16Bと、学習モデル生成部17Bと、指導文抽出部19Bと、重み付け部114Bと、を有する。また、第3の実施の形態に係る服薬指導支援装置10Bは、第1の実施の形態の服薬指導支援装置10が有する順位付け部110を有していない。   In the first embodiment described above, using the learning model generated by the learning model generating unit 17, the instruction sentence extracting unit 19 extracts an instruction sentence for each item, and the ranking unit 110 extracts the extracted instruction sentence. Was being ranked. In the third embodiment described below, the extraction and the ranking of the guidance sentences for each item are performed at one time (one step). To realize this, the medication support system 10B according to the third embodiment includes a vector generation unit 16B, a learning model generation unit 17B, a guidance sentence extraction unit 19B, and a weighting unit 114B. Further, the medication instruction support device 10B according to the third embodiment does not include the ranking unit 110 included in the medication instruction support device 10 according to the first embodiment.

本第3の実施の形態において、学習モデル生成部17Bが生成する学習モデルは、ある患者の患者ベクトルと、その患者に処方された薬剤に対応する全指導文の指導文ベクトルと、の入力に対して、指導文ベクトル毎の確信度を出力するように学習処理が施されたモデルである。なお、本明細書において、確信度とは、ある指導文が、ある患者に対して必要な情報を含む度合い(確からしさ)を示す値である。確信度についての詳細は後述する。このように生成された学習モデルは、学習モデルDB18Bに登録される。   In the third embodiment, the learning model generated by the learning model generation unit 17B is used to input a patient vector of a certain patient and a guidance sentence vector of all the guidance sentences corresponding to the medicine prescribed for the patient. On the other hand, it is a model that has been subjected to a learning process so as to output the certainty factor for each instruction sentence vector. In the present specification, the certainty factor is a value indicating a degree (probability) that a certain instruction sentence includes information necessary for a certain patient. Details of the certainty factor will be described later. The learning model thus generated is registered in the learning model DB 18B.

このような学習モデルを生成するために、本第3の実施の形態では、複数の患者の患者ベクトルと、各患者に処方された薬剤に関する全指導文の指導文ベクトルと、を含み、患者に提供された服薬指導文書において各指導文が使用されたか否かを示す情報があらかじめ付与された教師データが用いられる。   In order to generate such a learning model, the third embodiment includes a patient vector of a plurality of patients and a guidance sentence vector of all guidance sentences related to drugs prescribed for each patient. Teacher data to which information indicating whether or not each instruction sentence was used in the provided medication instruction document is used in advance.

図10は、第3の実施の形態において用いられる教師データを例示した図である。図10に示すように、教師データには、薬剤に関する情報、患者データ、指導文、および重要度が含まれる。なお、重要度とは、各指導文が患者に提供された服薬指導文書において使用されたか否かを示す情報(ラベル)であり、使用された指導文については重要度が「1」、使用されなかった指導文については重要度が「0」となっている。   FIG. 10 is a diagram illustrating teacher data used in the third embodiment. As shown in FIG. 10, the teacher data includes information on medicine, patient data, instruction text, and importance. The importance level is information (label) indicating whether or not each instructional sentence was used in the medication instruction document provided to the patient. The importance level is “0” for the instruction text that was not provided.

図10に示すような教師データは、ベクトル生成部16Bによってベクトル変換される。本第3の実施の形態において、ベクトル生成部16Bによる指導文のベクトル変換には、単語毎のベクトル変換であるWord2vecが用いられる。具体的には、ベクトル生成部16Bは、形態素解析により指導文から単語を抽出し、Word2vecを用いて単語のベクトル変換を行う。これにより指導文に含まれる単語を変換した単語ベクトルが生成される。この単語ベクトルの次元は、単語数には依存せず、あらかじめ決めた固定の次元である。次元を大きくすると、指導文を表現する性能が上がることが知られており、例えば200次元等とすればよい。そして、ベクトル生成部16Bは、指導文に含まれる全単語ベクトルに基づいて指導文ベクトルを生成する。単語ベクトルに基づいて指導文ベクトルを生成するには、例えば指導文に含まれる単語ベクトルの平均を取ればよい。   The teacher data as shown in FIG. 10 is vector-converted by the vector generation unit 16B. In the third embodiment, Word2vec, which is a vector conversion for each word, is used for the vector conversion of the guidance sentence by the vector generation unit 16B. Specifically, the vector generation unit 16B extracts words from the instruction sentence by morphological analysis, and performs word vector conversion using Word2vec. As a result, a word vector obtained by converting a word included in the instruction sentence is generated. The dimension of this word vector does not depend on the number of words, but is a predetermined fixed dimension. It is known that when the dimension is increased, the performance of expressing a guidance sentence is improved. Then, the vector generation unit 16B generates a guidance sentence vector based on all word vectors included in the guidance sentence. In order to generate an instruction sentence vector based on a word vector, for example, an average of the word vectors included in the instruction sentence may be obtained.

このような教師データを用いて、学習モデル生成部17Bは、以下のような学習モデルを生成する。本第3の実施の形態において、学習モデル生成部17Bは、複数の予測モデルの集合としての学習モデルを生成する。図11は、第3の実施の形態における学習モデルの概念図である。   Using such teacher data, the learning model generator 17B generates the following learning model. In the third embodiment, the learning model generation unit 17B generates a learning model as a set of a plurality of prediction models. FIG. 11 is a conceptual diagram of a learning model according to the third embodiment.

図11に示す例では、4つの予測モデルが生成されている。図11に示す例では、それぞれの予測モデルには、教師データに基づいて、例えば患者データの各項目、または指導文に含まれる単語ベクトルを説明変数とし、重要度を目的変数とする決定木が含まれる。例えば予測モデル1では、ルートノードで「性別」について分類され、その下の子ノードで「併用薬」、あるいは「年齢」について分類されている。また、予測モデル2では、ルートノードで「成分[n]」(指導文ベクトル内のn個目の成分(要素)ベクトル)について分類され、その下の子ノードで「肝機能障害」、あるいは「性別」について分類されている。   In the example shown in FIG. 11, four prediction models are generated. In the example illustrated in FIG. 11, each prediction model includes a decision tree based on teacher data, for example, a word vector included in each item of patient data or an instruction sentence as an explanatory variable, and importance as an objective variable. included. For example, in the prediction model 1, the root node classifies “sex”, and the child nodes below it classify “concomitant medication” or “age”. In the prediction model 2, the root node classifies “component [n]” (the n-th component (element) vector in the instruction sentence vector), and the child nodes below it classify “hepatic dysfunction” or “liver dysfunction”. Gender ".

図11に示すように、学習モデル生成部17Bが生成する学習モデルは、複数の予測モデルが出力した重要度の平均値を算出し、この平均値を確信度として出力している。上記のように、重要度は0または1の値であるため、確信度は0以上1以下の値をとる。図11の例では、4つの予測モデルの出力する重要度が1,0,1,1であるため、確信度は0.75となる。   As illustrated in FIG. 11, the learning model generated by the learning model generation unit 17B calculates an average value of the importance levels output by the plurality of prediction models, and outputs the average value as a certainty factor. As described above, since the importance is a value of 0 or 1, the certainty takes a value of 0 or more and 1 or less. In the example of FIG. 11, the output degrees of the four prediction models are 1, 0, 1, and 1, so the confidence is 0.75.

複数の予測モデルが出力する重要度は、患者データおよび指導文の一部の要素(患者データの項目または指導文の単語)のみを考慮して予測された重要度である。このため、複数の予測モデルが出力する重要度の平均値である確信度は、患者データおよび指導文の全要素を考慮して予測されており、ある指導文が、ある患者に対して必要な情報を含む度合い(確からしさ)を示す値となる。   The importance output by the plurality of prediction models is the importance predicted in consideration of only some of the patient data and the instruction sentence (items of the patient data or words of the instruction sentence). For this reason, the certainty factor, which is the average value of the importance levels output by the plurality of prediction models, is predicted in consideration of all the elements of the patient data and the instruction sentence, and a certain instruction sentence is necessary for a certain patient. A value indicating the degree (probability) of including information.

なお、図11に示す例では、4つの予測モデルが学習モデルに含まれていたが、実際にはより多くの予測モデルが生成されることが望ましい。確信度の精度を確保するためには、少なくとも、患者データの全ての項目を説明変数として含むだけの予測モデルが生成されることが望ましい。また、図11に示す例では、各予測モデルの決定木に含まれるノードの数は3つであったが、各決定木にはより多くのノードが含まれてもよい。   In the example shown in FIG. 11, four prediction models are included in the learning model. However, it is desirable that more prediction models are actually generated. In order to ensure the accuracy of the certainty factor, it is desirable to generate a prediction model that includes at least all the items of the patient data as explanatory variables. In the example shown in FIG. 11, the number of nodes included in the decision tree of each prediction model is three, but each decision tree may include more nodes.

指導文抽出部19Bは、このように生成された学習モデルを用いて、患者に提供すべき指導文を抽出する。具体的には、指導文抽出部19Bは、新たに患者ベクトルと、その患者に処方された薬剤の薬剤情報文書に含まれる全指導文の指導文ベクトルとを取得すると、新たな患者ベクトルと各指導文ベクトルとを学習モデルに入力し、その指導文ベクトルの確信度の出力を得る。   The instruction sentence extracting unit 19B extracts an instruction sentence to be provided to the patient using the learning model generated in this manner. Specifically, when the instruction sentence extracting unit 19B acquires a new patient vector and instruction instruction vectors of all instruction sentences included in the medicine information document of the medicine prescribed for the patient, the new instruction vector and each of the new patient vectors are acquired. The instruction sentence vector is input to the learning model, and an output of the degree of certainty of the instruction sentence vector is obtained.

ここで、指導文抽出部19Bは、ある指導文ベクトルの確信度が所定の閾値以上である場合には、入力された指導文ベクトルに対応する指導文が、入力された患者ベクトルに対応する患者にとって重要である、と判定し、当該指導文を選択する。また、指導文抽出部19Bは、ある指導文ベクトルの確信度が所定の閾値より小さい場合には、入力された指導文ベクトルに対応する指導文が、入力された患者ベクトルに対応する患者にとって重要ではない、と判定し、当該指導文を選択しない。指導文抽出部19Bは、全ての指導文ベクトルに対してこのような判定を行い、選択された指導文ベクトルに対応する指導文を抽出する。このように抽出された指導文は、患者に提供すべき(患者にとって重要な)可能性が高い指導文である。   Here, when the certainty degree of a certain guidance sentence vector is equal to or more than a predetermined threshold, the guidance sentence extraction unit 19B determines that the guidance sentence corresponding to the input guidance sentence vector is a patient corresponding to the input patient vector. Is determined to be important to the user, and the instruction sentence is selected. When the certainty factor of a certain instruction sentence vector is smaller than a predetermined threshold, the instruction sentence extraction unit 19B determines that the instruction sentence corresponding to the input instruction sentence vector is important for the patient corresponding to the input patient vector. Is not determined, and the instruction sentence is not selected. The guidance sentence extracting unit 19B performs such a determination for all the guidance sentence vectors, and extracts a guidance sentence corresponding to the selected guidance sentence vector. The instruction sentence extracted in this manner is an instruction sentence that is highly likely to be provided (important to the patient) to the patient.

なお、所定の閾値としては、例えば0.5等の値が採用されうる。また、統計的解析手法を用いることで、動的に閾値を決定するようにしてもよい。具体的には、学習モデルから出力された確信度の頻度分布に対し、判別分析2値化法(大津の手法)やMaxEntropy法を用いて、頻度分布の谷の値を閾値とする方法がある。これにより学習モデルの出力特性に応じて、適切な指導文の抽出を行うことができる。   Note that, for example, a value such as 0.5 can be adopted as the predetermined threshold. The threshold may be dynamically determined by using a statistical analysis method. Specifically, there is a method of using the value of the valley of the frequency distribution as a threshold value using the discriminant analysis binarization method (Otsu's method) or the MaxEntropy method for the frequency distribution of the certainty factor output from the learning model. . As a result, an appropriate instruction sentence can be extracted according to the output characteristics of the learning model.

指導文抽出部19Bは、上記説明した指導文の抽出を、薬剤情報文書の項目毎に行う。そして、指導文抽出部19Bは、抽出した指導文に対して、確信度の大きさに基づく順位付けを行う。これにより、第3の実施の形態に係る服薬指導支援装置10Bでは、第1の実施の形態に係る服薬指導支援装置10(図1参照)における指導文抽出部19による指導文の抽出と、順位付け部110による順位付けと、を一度に行うことができるようになる。   The guidance sentence extracting unit 19B extracts the above-described guidance text for each item of the medicine information document. Then, the guidance sentence extracting unit 19B ranks the extracted guidance sentences based on the degree of certainty. Thereby, in the medication instruction support device 10B according to the third embodiment, the instruction sentence extraction unit 19 in the medication instruction assistance device 10 (see FIG. 1) according to the first embodiment extracts the instruction sentence and ranks the instruction sentence. The ranking by the attaching unit 110 can be performed at once.

なお、上記説明では、指導文の確信度の出力を得るために図11に示すランダムフォレスト分類器を用いたが、他の方法を採用してもよい。具体的には、SGD(Stochastic Gradient Descent)、SVM(Support Vector Machine)、NN(Neural Network)やCNN(Convolutional Neural Network)のどれか、あるいはその組み合わせにより構成された分類器を用いてもよい。   In the above description, the random forest classifier shown in FIG. 11 is used to obtain the output of the degree of certainty of the instruction sentence, but another method may be adopted. Specifically, a classifier configured by any one of SGD (Stochastic Gradient Descent), SVM (Support Vector Machine), NN (Neural Network) and CNN (Convolutional Neural Network), or a combination thereof may be used.

一方、重み付け部114Bは、選択受付部112が受け付けた薬剤師による指導文の選択結果に基づいて、学習モデル生成部17Bにおける学習モデル生成の際に使用される教師データに対する重み付けを設定する。   On the other hand, the weighting unit 114B sets weighting for the teacher data used when the learning model generation unit 17B generates the learning model based on the selection result of the guidance sentence by the pharmacist received by the selection reception unit 112.

重み付け部114Bは、薬剤師により選択された指導文と、その指導文に関連する薬剤に関する情報、患者データ、および重要度を教師データ内に複数回登録させることで、該当指導文の重み付けを実現する。つまり、重み付け部114Bは、新たに薬剤師に選択された指導文と、その指導文に対する薬剤に関する情報、患者データ、および重要度を取得する。そして、重み付け部114Bは、その指導文の重要度が「1」であった場合(その指導文が既に選択されていた場合)は、その指導文を再度教師データに追加する。これにより、同一の指導文およびその指導文に関連する薬剤に関する情報、患者データ、および重要度が教師データ内に重複して存在するようになる。従って、その教師データを用いて生成された学習モデルが、重複して存在する指導文の確信度を高く出力するような重み付けが可能となる。   The weighting unit 114B registers the instruction text selected by the pharmacist and the information on the drug related to the instruction text, the patient data, and the importance multiple times in the teacher data, thereby realizing the weight of the relevant instruction text. . That is, the weighting unit 114B acquires the instruction sentence newly selected by the pharmacist, information on the medicine corresponding to the instruction sentence, patient data, and importance. Then, when the importance level of the instructional sentence is “1” (when the instructional sentence is already selected), the weighting unit 114B adds the instructional sentence to the teacher data again. As a result, the information, patient data, and importance related to the same instruction text and the drug related to the instruction text are duplicated in the teacher data. Therefore, it is possible to perform weighting so that the learning model generated using the teacher data outputs a certainty of the instruction text that exists redundantly.

追加する指導文の個数は、薬剤師によって選択された回数と同じにしてもよいし、選択された回数と比例させるようにしてもよい。追加する指導文の個数を選択された回数と比例させる場合、選択された回数を指導文毎に別途管理すればよい。また、緩やかな重み付けを実施する場合は、選択回数と指導文をと関連付けて管理しておき、選択回数の常用対数に比例させるようにしてもよい。すなわち、例えば10回選択されたときにその指導文を教師データに追加するようにしてもよい。また重み付け部114Bは、薬剤師に選択された指導文の重要度が「0」であった場合は、教師データに追加せず、該当する指導文の重要度を「1」に上書き設定する。   The number of instruction sentences to be added may be the same as the number of times selected by the pharmacist, or may be proportional to the number of times selected. When the number of instruction sentences to be added is made proportional to the number of times selected, the number of times selected may be separately managed for each instruction sentence. In addition, when gradual weighting is performed, the number of times of selection and the instruction sentence may be managed in association with each other, and the number of times of selection may be proportional to the common logarithm of the number of times of selection. That is, for example, when the instruction is selected ten times, the instruction sentence may be added to the teacher data. If the importance of the instruction sentence selected by the pharmacist is “0”, the weighting unit 114B does not add the instruction sentence to the teacher data but overwrites the importance of the corresponding instruction sentence to “1”.

重み付け部114Bにおいてこのようになされた重み付け後の教師データは、学習モデル生成部17Bに入力される。学習モデル生成部17Bは、重み付け後の教師データを用いて再学習を行い、学習モデルを更新して新たな学習モデルを学習モデルDB18Bに登録する。また、重み付け部114Bによって更新した教師データは服薬指導支援サーバ20に送信されてもよい。更新された教師データを受信した服薬指導支援サーバ20の動作に関しては、上記した第1の実施の形態と同様である。   The teacher data after the weighting performed in the weighting unit 114B is input to the learning model generation unit 17B. The learning model generation unit 17B performs re-learning using the weighted teacher data, updates the learning model, and registers a new learning model in the learning model DB 18B. The teacher data updated by the weighting unit 114B may be transmitted to the medication instruction support server 20. The operation of the medication instruction support server 20 that has received the updated teacher data is the same as in the first embodiment described above.

以上説明したように、本発明の第3の実施の形態に係る服薬指導支援装置10Bでは、ある患者の患者ベクトルと、その患者に処方された薬剤に対応する全指導文の指導文ベクトルと、の入力に対して、指導文ベクトル毎の確信度を出力するように学習処理が施されたモデルが生成される。そして、新たに患者ベクトルと、その患者に処方された薬剤の薬剤情報文書に含まれる全指導文の指導文ベクトルとが入力されると、新たな患者ベクトルと各指導文ベクトルとを学習モデルに入力し、その指導文ベクトルの確信度の出力を得る。これにより、患者に対して必要な情報を含む度合いが大きい指導文を抽出できるとともに、確信度に基づいて抽出した指導文の順位付けを行うことができる。   As described above, in the medication support system 10B according to the third embodiment of the present invention, a patient vector of a certain patient, a guidance sentence vector of all the guidance sentences corresponding to the medicine prescribed for the patient, In response to the input, a model that has been subjected to a learning process so as to output a certainty factor for each instruction sentence vector is generated. Then, when the new patient vector and the instruction sentence vector of all instruction sentences included in the drug information document of the drug prescribed for the patient are input, the new patient vector and each instruction sentence vector are used as a learning model. Input and obtain the output of the certainty factor of the instruction sentence vector. This makes it possible to extract a guidance sentence that includes a large degree of information necessary for the patient, and to rank the extracted guidance sentences based on the certainty factor.

(第4の実施の形態)
次に、本発明の第4の実施の形態について説明する。本第4の実施の形態では、同じ内容の異なる指導文が複数抽出されることが防止される。なお、本第4の実施の形態の服薬指導支援装置の機能構成については、図9を参照して説明した第3の実施の形態の服薬指導支援装置10Bと同様である。
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described. In the fourth embodiment, it is possible to prevent a plurality of different instruction sentences having the same content from being extracted. It should be noted that the functional configuration of the medication instruction support device of the fourth embodiment is the same as that of the medication instruction support device 10B of the third embodiment described with reference to FIG.

以下、本第4の実施の形態における服薬指導支援装置の特徴的な動作について、具体例を挙げて説明する。例えば薬剤情報文書の「副作用」という項目において、指導文の出典(添付文書、くすりのしおり、薬剤情報提供書等)によっては、例えば以下のようにほぼ同一内容で異なる表記の指導文が存在しうる。   Hereinafter, a characteristic operation of the medication administration support device according to the fourth embodiment will be described with a specific example. For example, in the item of "side effect" of the drug information document, depending on the source of the instruction text (attached document, medicine bookmark, drug information provision book, etc.), for example, there is an instruction text with substantially the same content but different notation as follows. sell.

・主な副作用として、発疹、食欲不振、吐き気、嘔吐、下痢などが報告されています。
・主な副作用は、食欲不振、吐き気、嘔吐、下痢等です。
・副作用:食欲不振、吐き気、嘔吐、下痢
-The main side effects reported include rash, anorexia, nausea, vomiting, and diarrhea.
-The main side effects are anorexia, nausea, vomiting, diarrhea, etc.
・ Side effects: loss of appetite, nausea, vomiting, diarrhea

本第4の実施の形態では、以下のような構成により、これらのようにほぼ同一内容で異なる表記の指導文が複数抽出されることを防止する。   In the fourth embodiment, the following configuration prevents the extraction of a plurality of instruction sentences having substantially the same contents but different notations.

図12は、第4の実施の形態における教師データを例示した図である。図12に例示した本第4の実施の形態における教師データには、図10に例示した第3の実施の形態における教師データに加えて、「グループ番号」が付与されている。この「グループ番号」は、同一内容の指導文に対してあらかじめ付与されたラベルである(本発明のグループラベルの一例である)。   FIG. 12 is a diagram illustrating teacher data according to the fourth embodiment. The teacher data according to the fourth embodiment illustrated in FIG. 12 is provided with a “group number” in addition to the teacher data according to the third embodiment illustrated in FIG. The “group number” is a label assigned in advance to the instruction text having the same content (an example of the group label of the present invention).

第4の実施の形態において、学習モデル生成部17Bは、グループ番号を加味して学習モデルを生成する。具体的には、学習モデル生成部17Bは、上記第3の実施の形態にて説明したランダムフォレスト分類器を、multi label classifier等を用いてマルチラベル型分類器に拡張することで、学習モデルを生成する。この学習モデルは、患者ベクトルと指導文ベクトルとの入力に対して、確信度とグループ番号とを出力する。   In the fourth embodiment, the learning model generation unit 17B generates a learning model in consideration of the group number. Specifically, the learning model generation unit 17B expands the random forest classifier described in the third embodiment to a multi-label type classifier using a multi-label classifier or the like, thereby generating a learning model. Generate. This learning model outputs a certainty factor and a group number in response to an input of a patient vector and an instruction sentence vector.

第4の実施の形態において、指導文抽出部19Bは、確信度が所定の閾値以上の指導文についてグループ番号を参照し、同じグループ番号の指導文が複数あった場合、最も確信度が大きい指導文のみを抽出し、他を破棄する。これにより、ほぼ同一内容で異なる表記の指導文が複数抽出されることを防止することができる。   In the fourth embodiment, the guidance sentence extracting unit 19B refers to the group number for the guidance sentence having a certainty factor equal to or greater than a predetermined threshold value, and when there are a plurality of guidance sentences with the same group number, the guidance content with the highest certainty factor. Extract only statements and discard others. As a result, it is possible to prevent a plurality of instruction sentences having substantially the same contents but different notations from being extracted.

また、薬剤情報文書DB13には、薬剤師の有志によって提供されるような任意の文書も含まれるため、ベテラン薬剤師の作成した文書や、ベテラン薬剤師が選択した文書を、優先的に抽出したいというような場合がある。このように特定の文書を優先して抽出したい場合にも、第4の実施の形態を拡張することで対応が可能である。   In addition, since the drug information document DB 13 includes an arbitrary document provided by a volunteer of a pharmacist, it is desirable to preferentially extract a document created by a veteran pharmacist or a document selected by a veteran pharmacist. There are cases. In this way, even when a specific document is to be preferentially extracted, it is possible to cope by expanding the fourth embodiment.

具体的には、教師データに「グループ番号」とともに、「優先度」を付与する。「優先度」とは、大きい値ほど優先度合いが高くなる値であり、ベテラン薬剤師が選択した等、その後優先的に抽出されるべき指導文に設定される値である。優先度の例としては、特定の薬剤師が選択した回数等、任意の値が設定されうる。それまで選択されたことがない指導文の優先度は、「0」に設定される。   Specifically, “priority” is assigned to the teacher data together with the “group number”. The “priority” is a value in which the higher the value, the higher the priority, and is a value that is set in a guidance sentence that should be preferentially extracted thereafter, such as selection by a veteran pharmacist. As an example of the priority, an arbitrary value such as the number of times selected by a specific pharmacist can be set. The priority of the instruction sentence that has not been selected before is set to “0”.

学習モデル生成部17Bは、このようにグループ番号と優先度が付与された教師データを用いて、グループ番号と優先度を加味した学習モデルを生成する。このように生成された学習モデルは、患者ベクトルと指導文ベクトルとの入力に対して、確信度とグループ番号と優先度を出力する。指導文抽出部19Bは、学習モデルの出力結果に対し、優先度が設定されている(0でない)指導文については、優先度の値を用いて確信度に対して優先処理を行うことで、優先度が設定された指導文を抽出する可能性を高くすることができる。   The learning model generation unit 17B generates a learning model in which the group number and the priority are added, using the teacher data to which the group number and the priority are assigned. The learning model generated in this way outputs a certainty factor, a group number, and a priority for the input of the patient vector and the instruction sentence vector. The guidance sentence extracting unit 19B performs a priority process on the certainty with respect to the output result of the learning model for the guidance sentence for which the priority is set (non-zero) by using the value of the priority. It is possible to increase the possibility of extracting a guidance sentence with a priority set.

なお、優先処理の具体例としては、優先度の大きさによって決まる値を確信度に対して加算する等の方法がある。具体例としては、優先度×固定値(例えば0.1)を確信度に加算すればよい。指導文抽出部19Bは、このような優先処理を学習モデルの出力後に実施するため、優先度が変更された場合(新たに特定の薬剤師による指導文の選択があった場合)でも再学習が不要である。このため、上記拡張は容易に実現が可能である。   As a specific example of the priority processing, there is a method of adding a value determined by the magnitude of the priority to the certainty factor. As a specific example, priority × fixed value (for example, 0.1) may be added to the certainty factor. Since the instruction sentence extracting unit 19B performs such priority processing after the output of the learning model, re-learning is not required even when the priority is changed (when a specific pharmacist newly selects an instruction sentence). It is. Therefore, the above extension can be easily realized.

教師データにおいて、同一内容の指導文にグループ番号を付与するためには、教師データとして用いられる指導文の中から同一内容の指導文を抽出する必要がある。同一内容の指導文の抽出方法としては、例えば以下のような方法がある。すなわち、あらかじめ全ての指導文の指導文ベクトルを算出しておき、特定の2つの指導文ベクトル間の類似度(コサイン類似度等)を算出する。そして、全ての組み合わせの類似度を算出し、類似度が所定の閾値以上の組み合わせを同一内容の指導文と判断する。   In order to assign a group number to an instruction text having the same content in the teacher data, it is necessary to extract an instruction text having the same content from the instruction text used as the teacher data. As a method of extracting instruction sentences having the same contents, for example, the following methods are available. That is, the instruction sentence vectors of all the instruction sentences are calculated in advance, and the similarity (cosine similarity or the like) between two specific instruction sentence vectors is calculated. Then, the similarities of all the combinations are calculated, and the combinations whose similarities are equal to or more than a predetermined threshold value are determined to be the same instruction text.

この際、類似度算出の演算量削減のため、指導文ベクトルの次元削減や正規化を行ってもよい。   At this time, dimension reduction and normalization of the instruction sentence vector may be performed in order to reduce the calculation amount of the similarity calculation.

また、同一内容の指導文ベクトルがあるか否かに基づいて、重み付けを行うようにしてもよい。図7を参照して説明したように、指導文に含まれる単語毎に重み付けをする場合、特定の2つの指導文ベクトル同士の距離(スカラー値)に基づいて、指導文に含まれる単語全体に距離に応じたベクトル値を加算すればよい。また、図10を参照して説明したように、指導文毎に重み付けをする場合、重要度として「0」か「1」かを追加する代わりに、距離に応じた値を重要度として設定すればよい。   Weighting may be performed based on whether or not there is an instruction sentence vector having the same content. As described with reference to FIG. 7, when weighting is performed for each word included in the instruction sentence, the entire word included in the instruction sentence is determined based on the distance (scalar value) between two specific instruction instruction vectors. What is necessary is just to add the vector value according to distance. Further, as described with reference to FIG. 10, when weighting is performed for each instruction sentence, a value corresponding to the distance may be set as the importance instead of adding “0” or “1” as the importance. I just need.

なお、指導文ベクトル間の距離に応じた値yの一例としては、例えば距離を正規化し、その変数をx(0〜1)としたとき、y=−x+1で与えられる値とすればよい。すなわち、yは指導文ベクトル同士の類似度が大きいほど1に近く、小さいほど0に近くなるような値である。   In addition, as an example of the value y according to the distance between the instruction sentence vectors, for example, when the distance is normalized and its variable is x (0 to 1), a value given by y = −x + 1 may be used. That is, y is a value closer to 1 as the degree of similarity between instruction sentence vectors is larger, and closer to 0 as the degree of similarity is smaller.

このような重み付けにより、同一内容の指導文とそうでない指導文とで、重み付けに差を付けられるため、例えば類似する指導文が同時に抽出されにくくしたり、反対に類似する指導文が同時に抽出されやすくしたりすることができる。また、抽出結果の指導文を表示画面に表示する際に、同一内容の指導文を強調して表示したり、1つの指導文が選択されたときに同一内容の他の指導文を同時に選択したりする等の制御が可能となる。   With such weighting, a difference can be made between the weights of a guidance sentence having the same content and a guidance sentence that is not the same. For example, it is difficult to extract similar guidance sentences at the same time, or conversely, similar guidance sentences are simultaneously extracted. Or make it easier. In addition, when displaying the extracted instruction text on the display screen, the same instruction text is emphasized and displayed, or when one instruction text is selected, another instruction text with the same content is selected at the same time. Control, such as slipping.

(第5の実施の形態)
さらに、本発明の第5の実施の形態について説明する。図13は、第5の実施の形態に係る服薬指導支援装置10Cの機能構成を示すブロック図である。図13に示すように、第5の実施の形態に係る服薬指導支援装置10Cは、図9に示す第3の実施の形態に係る服薬指導支援装置10Bの機能構成に加えて、第2学習モデル生成部115、第2学習モデルDB116、および第2指導文抽出部117を有する。また、第5の実施の形態に係る服薬指導支援装置10Cが有する薬剤情報文書データ取得部12C、患者データ取得部14C、およびベクトル生成部16Cは、第3の実施の形態にて説明した薬剤情報文書データ取得部12、患者データ取得部14、およびベクトル生成部16Bとは動作が異なっている。以下では、これらの詳細について説明する。
(Fifth embodiment)
Further, a fifth embodiment of the present invention will be described. FIG. 13 is a block diagram showing a functional configuration of a medication instruction support device 10C according to the fifth embodiment. As shown in FIG. 13, a medication instruction support device 10C according to the fifth embodiment has a second learning model in addition to the functional configuration of the medication instruction support device 10B according to the third embodiment shown in FIG. 9. It has a generation unit 115, a second learning model DB 116, and a second instruction sentence extraction unit 117. Further, the medicine information document data acquisition unit 12C, the patient data acquisition unit 14C, and the vector generation unit 16C of the medication guidance support device 10C according to the fifth embodiment are configured to include the medicine information described in the third embodiment. The operations are different from those of the document data acquisition unit 12, the patient data acquisition unit 14, and the vector generation unit 16B. Hereinafter, these details will be described.

第5の実施の形態では、以下のような場合を想定する。例えばある薬剤を処方された患者が、その薬剤とは別の薬剤を使用していることが、薬剤師の問診やお薬手帳等によって発覚することがある。以下では処方された薬剤を主薬剤と記載し、別の薬剤を併用薬剤と記載する。このような場合、患者に対して提供する服薬指導文書には、主薬剤と併用薬剤とを併用した場合の注意事項を含む指導文が記載されることが望ましい。   In the fifth embodiment, the following case is assumed. For example, the fact that a patient who has prescribed a certain drug is using a different drug from the drug may be discovered by an interview with a pharmacist, a medicine notebook, or the like. Hereinafter, the prescribed drug is described as a main drug, and another drug is described as a concomitant drug. In such a case, it is desirable that the medication instruction document provided to the patient includes an instruction sentence including precautions when the main drug and the concomitant drug are used in combination.

主薬剤と併用薬剤とを併用した場合の注意事項を含む指導文を抽出するためには、例えば主薬剤の指導文全体を併用薬剤の薬名でテキスト検索する方法が考えられる。しかしながら、薬名には頻繁に表記揺れが存在するため、単にテキスト検索しただけでは漏れが生じる可能性がある。表記揺れの具体例としては、例えば「ムンプスワクチン」と「おたふくかぜワクチン」、または「イソニアジド」と「抗結核薬」のような例が挙げられる。   In order to extract a guidance sentence including precautions when the main drug and the concomitant drug are used together, for example, a method of performing a text search on the entire guidance text of the main drug by the drug name of the concomitant drug is considered. However, since there is frequent spelling in the drug name, there is a possibility that omission may occur by simply performing a text search. Specific examples of the swaying include, for example, "mumps vaccine" and "mumps vaccine" or "isoniazid" and "antituberculosis drug".

本第5の実施の形態では、主薬剤の他に併用薬剤を使用する患者に対して、薬剤情報文書データ取得部12Cが、主薬剤の全指導文を取得した際に、主薬剤との併用時に注意が必要な併用薬剤の名称と、その注意事項を含む指導文と、を抽出する。主薬剤の全指導文のうち、併用時に注意が必要な併用薬剤の名称は、例えば薬剤情報文書が添付文書である場合、項目「相互作用」内の小項目「併用禁忌」や「併用注意」に含まれる「薬剤名」等に記載されている。また、主薬剤の全指導文のうち、併用時に注意が必要な併用薬剤の注意事項は、例えば薬剤情報文書が添付文書である場合、項目「相互作用」内の小項目「併用禁忌」や「併用注意」に含まれる「臨床症状・措置方法」等に記載されている。   In the fifth embodiment, when the medicine information document data acquisition unit 12C acquires all the instruction texts of the main medicine for the patient using the concomitant medicine in addition to the main medicine, The names of concomitant drugs that sometimes require attention and guidance texts containing the precautions are extracted. Of the counseling sentences of the main drug, the names of concomitant medications that require attention when concomitant are, for example, if the drug information document is an attached document, sub-items “Contraindications for concomitant use” and “Caution for concomitant use” In the “drug name” and the like. In addition, among all the instruction texts of the main drug, the precautions for concomitant drugs that require caution when concomitant are, for example, if the drug information document is an attached document, the sub-items It is described in "Clinical symptoms and measures" included in "Precautions for combined use".

以下の説明において、薬剤情報文書データ取得部12Cが取得した、主薬剤との併用時に注意が必要な併用薬剤の名称を「注意併用薬剤名」、その注意事項を含む指導文を「注意指導文」と記載する。以後の処理において、「注意併用薬剤名」とその薬剤に関する「注意指導文」とは互いに関連づけられて用いられる。   In the following description, the name of the concomitant drug that needs attention when used in combination with the main drug acquired by the drug information document data acquisition unit 12C is “Caution Concomitant Drug Name”, and the instruction sentence including the cautionary note is “Caution Instruction Text”. ". In the subsequent processing, the “name of cautionary concomitant drug” and the “cautionary instruction sentence” regarding the drug are used in association with each other.

一方、患者データ取得部14Cは、患者データに加えて、例えば問診やお薬手帳等から、患者が使用する併用薬剤の名称を取得する。以下の説明において、患者が使用する併用薬剤の名称を、「使用併用薬剤名」と記載する。   On the other hand, the patient data acquisition unit 14C acquires the name of the concomitant drug used by the patient, for example, from an interview or a medicine notebook in addition to the patient data. In the following description, the name of the concomitant drug used by the patient will be referred to as “concomitant drug name”.

ベクトル生成部16Cには、患者データ取得部14Cから患者データと使用併用薬剤名とが入力される。また、ベクトル生成部16Cには、薬剤情報文書データ取得部12Cから全指導文と、注意併用薬剤名と、注意指導文とが入力される。これにより、ベクトル生成部16Cは、患者ベクトルと、使用併用薬剤名ベクトルと、全指導文の指導文ベクトルと、注意併用薬剤名ベクトルとを生成する。本第5の実施の形態では、これらのベクトル変換には、それぞれの単語ベクトルを生成する方法(word2vec等)が用いられる。   The patient data and the name of the concomitant drug used are input to the vector generation unit 16C from the patient data acquisition unit 14C. In addition, all instruction sentences, cautionary medicine names, and caution instruction sentences are input to the vector generation unit 16C from the medicine information document data acquisition unit 12C. Thereby, the vector generation unit 16C generates a patient vector, a combined use drug name vector, a guidance sentence vector of all the guidance sentences, and a caution combined use drug name vector. In the fifth embodiment, a method of generating each word vector (word2vec or the like) is used for these vector conversions.

この際、ベクトル生成部16Cは、医療用語辞書を学習させたモデルを使用してベクトル変換を行うことにより、薬剤の名称だけではなく、薬剤名を構成する各単語の意味を含む使用併用薬剤名ベクトルと、注意併用薬剤名ベクトルとを生成する。   At this time, the vector generation unit 16C performs the vector conversion using the model trained in the medical term dictionary, so that not only the name of the drug but also the name of the concomitant drug containing the meaning of each word constituting the drug name is used. A vector and a cautionary medicine name vector are generated.

ベクトル生成部16Cが生成した各ベクトルのうち、患者ベクトルおよび全指導文の指導文ベクトルは、上記第3の実施の形態と同様に、学習モデル生成部17Bおよび指導文抽出部19Bに入力される。   Among the vectors generated by the vector generation unit 16C, the patient vector and the instruction sentence vector of all instruction sentences are input to the learning model generation unit 17B and the instruction sentence extraction unit 19B, as in the third embodiment. .

一方、使用併用薬剤名ベクトルおよび注意併用薬剤名ベクトルは、第2学習モデル生成部115に入力される。そして、第2学習モデル生成部115は、使用併用薬剤名ベクトルとの類似度が大きい注意指導文ベクトルを出力するように学習された第2学習モデルを生成する。ここで、各薬剤名ベクトルは、薬剤名を構成する各単語の意味を含んでいるため、表記揺れによる同一薬剤の抽出漏れを最小限に抑えることができる。類似度の算出方法については、上記第1の実施の形態と同様であるため説明を省略する。第2学習モデルは、第2学習モデルDB116に登録される。   On the other hand, the used combination drug name vector and the caution combined drug name vector are input to the second learning model generation unit 115. Then, the second learning model generation unit 115 generates a second learning model that has been learned to output a cautionary instruction sentence vector having a high degree of similarity to the used combination drug name vector. Here, since each medicine name vector includes the meaning of each word constituting the medicine name, omission of extraction of the same medicine due to fluctuation of notation can be minimized. The method of calculating the similarity is the same as in the first embodiment, and a description thereof will be omitted. The second learning model is registered in the second learning model DB 116.

第2指導文抽出部117は、第2学習モデルに使用併用薬剤名ベクトルを入力して類似度が大きい注意併用薬剤名ベクトルの出力を得、出力された注意併用薬剤名ベクトルの注意併用薬剤名に関連づけられた注意指導文を抽出する。   The second instruction sentence extracting unit 117 inputs the used concomitant drug name vector to the second learning model, obtains an output of a cautionary concomitant drug name vector having a high degree of similarity, and The attention instruction sentence associated with is extracted.

指導文表示部111Cは、指導文抽出部19Bが抽出した指導文と、第2指導文抽出部117が抽出した指導文とを表示する。以後の処理については上記説明した各実施の形態の服薬指導支援装置と同様である。   The guidance text display unit 111C displays the guidance text extracted by the guidance text extraction unit 19B and the guidance text extracted by the second guidance text extraction unit 117. Subsequent processing is the same as that of the medication instruction support device of each embodiment described above.

以上説明したように、第5の実施の形態に係る服薬指導支援装置10Cでは、患者が使用する使用併用薬剤名に基づく使用併用薬剤名ベクトルと、主薬剤の指導文の中からあらかじめ抽出された、注意が必要な注意併用薬剤名に基づく注意併用薬剤名ベクトルと、に基づいて、入力された使用併用薬剤名ベクトルと類似度が大きい注意併用薬剤名ベクトルを出力するように学習された第2学習モデルを生成し、この第2学習モデルを用いて、主薬剤の指導文の中から、患者が使用する使用併用薬剤に関する注意事項を含む指導文を抽出する。この際、薬剤名のベクトル変換では単語の意味を考慮したベクトル変換が行われているため、表記揺れにより、主薬剤の指導文の中から、使用併用薬剤に関する指導文が抽出できない事態を回避することができる。   As described above, in the medication-taking support device 10C according to the fifth embodiment, the combination drug name vector based on the combination drug name used by the patient and the instruction text of the main drug are extracted in advance. Based on the attention-concomitant drug name vector based on the attention-concomitant drug name requiring attention, the second learning is performed to output the attention-concomitant drug name vector having a high degree of similarity to the input concomitant drug name vector. A learning model is generated, and by using the second learning model, a guidance sentence including precautionary notes on the concomitant drug used by the patient is extracted from the guidance text of the main drug. At this time, in the vector conversion of the drug name, since the vector conversion in consideration of the meaning of the word is performed, it is possible to avoid a situation in which a guidance sentence relating to the concomitant drug cannot be extracted from the guidance sentence of the main drug due to a sway of the notation. be able to.

なお、第5の実施の形態では、第2指導文抽出部117の抽出した指導文には、上記第3の実施の形態にて説明した確信度が算出されていない。このため、第5の実施の形態では、確信度に基づいて、抽出された指導文の順位付けを行うことができない。しかしながら、第2指導文抽出部117の抽出した指導文に基づいて、学習モデルDB18Bに登録された学習モデルを用いて確信度の算出を行うことにより、第2指導文抽出部117の抽出した指導文の順位付けを行うようにしてもよい。また、指導文抽出部19Bが抽出した指導文の中に、第2指導文抽出部117の抽出した指導文と同一内容のものが含まれているか否かを確認し、含まれていない場合にのみ第2指導文抽出部117の抽出した指導文を指導文抽出部19Bが抽出した指導文に追加するようにしてもよい。   In the fifth embodiment, the certainty factor described in the third embodiment is not calculated for the instruction sentence extracted by the second instruction sentence extraction unit 117. For this reason, in the fifth embodiment, it is not possible to rank the extracted instruction sentences based on the certainty factor. However, by calculating the certainty factor using the learning model registered in the learning model DB 18B based on the instruction sentence extracted by the second instruction sentence extraction unit 117, the instruction extracted by the second instruction sentence extraction unit 117 is obtained. The ranking of sentences may be performed. Further, it is checked whether or not the instruction sentence extracted by the instruction sentence extraction unit 19B includes the same content as the instruction sentence extracted by the second instruction sentence extraction unit 117. Only the guidance text extracted by the second guidance text extraction unit 117 may be added to the guidance text extracted by the guidance text extraction unit 19B.

(第6の実施の形態)
さらに、本発明の第6の実施の形態について説明する。図14は、第6の実施の形態に係る服薬指導支援装置10Dの機能構成を示すブロック図である。
(Sixth embodiment)
Further, a sixth embodiment of the present invention will be described. FIG. 14 is a block diagram showing a functional configuration of a medication instruction support device 10D according to the sixth embodiment.

上記説明した各実施の形態では、処方箋データに含まれる薬剤に関する情報に基づいて、薬剤毎に患者にとって重要な指導文を抽出する形態について説明した。本第6の実施の形態では、薬剤毎にではなく、処方箋毎に指導文を抽出する形態について説明する。   In each of the above-described embodiments, a mode has been described in which a guidance sentence important to a patient is extracted for each drug based on information on the drug included in the prescription data. In the sixth embodiment, a mode will be described in which a guidance sentence is extracted not for each medicine but for each prescription.

図14に示すように、第6の実施の形態の服薬指導支援装置10Dは、第3の実施の形態に係る服薬指導支援装置10Bの機能構成(図9参照)に加えて、教師データDB118、第3学習モデル生成部119、第3指導文抽出部120、および第3学習モデルDB121を有する。また、第6の実施の形態の服薬指導支援装置10Dは、第3の実施の形態に係る服薬指導支援装置10Bの選択受付部112とは動作が異なる選択受付部112Dを有する。   As illustrated in FIG. 14, a medication instruction support device 10D according to the sixth embodiment has a teacher data DB 118, in addition to the functional configuration of the medication instruction support device 10B according to the third embodiment (see FIG. 9). It has a third learning model generation unit 119, a third instruction sentence extraction unit 120, and a third learning model DB 121. Also, the medication instruction support device 10D of the sixth embodiment has a selection accepting unit 112D that operates differently from the selection accepting unit 112 of the medication instruction support device 10B according to the third embodiment.

教師データDB118には、過去の処方箋データに対して指導文抽出部19Bが抽出した指導文に基づく教師データがあらかじめ格納されている。本第6の実施の形態における教師データを、以下では処方箋教師データと称する。処方箋教師データは、例えば以下のようにして生成される。   The teacher data DB 118 stores in advance teacher data based on the guidance sentence extracted by the guidance sentence extraction unit 19B with respect to past prescription data. The teacher data in the sixth embodiment is hereinafter referred to as prescription teacher data. The prescription teacher data is generated, for example, as follows.

図15は、第6の実施の形態の処方箋教師データを生成するための収集データの例を示す図である。収集データは、過去の処方箋データ、その処方箋データに対して、指導文抽出部19Bから出力されたデータ(以下、抽出部出力データと称する)、および、薬剤師によって付けられた順位(以下、薬剤師順位と称する)を示す薬剤師順位データを含む。   FIG. 15 is a diagram illustrating an example of collected data for generating prescription teacher data according to the sixth embodiment. The collected data includes past prescription data, data output from the instruction sentence extraction unit 19B (hereinafter, referred to as extraction unit output data), and a ranking assigned by a pharmacist (hereinafter, a pharmacist ranking). Pharmacist ranking data).

図15に示すように、処方箋データは、過去のある処方箋に対応するデータ、例えば患者名、およびその患者に対して処方された複数の薬剤名を含む。また、抽出部出力データは、当該処方箋データに対して過去に指導文抽出部19Bが出力したデータである。抽出部出力データには、指導文抽出部19Bにより抽出された所定数(図15では3つ)の指導文、および指導文毎の確信度が含まれる。抽出部出力データには、指導文そのものが含まれていてもよいし、指導文を識別する識別情報のみが含まれていてもよい。また、薬剤師順位データは、当該処方箋に対して指導文抽出部19Bが抽出した所定数の指導文のうち、実際に薬剤師が選択した指導文と、選択した指導文のそれぞれに対して薬剤師が付けた順位とを示すデータである。薬剤師順位データは、例えば選択受付部112Dにより生成される。   As shown in FIG. 15, the prescription data includes data corresponding to a certain past prescription, for example, a patient name and a plurality of drug names prescribed for the patient. The extraction unit output data is data that the instruction sentence extraction unit 19B previously output for the prescription data. The extraction unit output data includes a predetermined number (three in FIG. 15) of guidance sentences extracted by the guidance sentence extraction unit 19B, and the certainty factor for each guidance sentence. The extraction unit output data may include the guidance sentence itself, or may include only identification information for identifying the guidance sentence. In addition, the pharmacist ranking data includes, among a predetermined number of instruction sentences extracted by the instruction sentence extracting unit 19B for the prescription, an instruction sentence actually selected by the pharmacist, and a pharmacist attaching each of the selected instruction sentences. It is the data which shows the order which was performed. The pharmacist ranking data is generated, for example, by the selection receiving unit 112D.

図15には、3つの薬剤(薬剤1〜3)が記載された患者1の処方箋に基づく収集データの例が示されている。図15に示す例では、例えば薬剤1については3種類の指導文1−1〜1−3が抽出されており、それぞれ指導文ベクトルの確信度は1、0.9、0.8である。また、薬剤2についても3種類の指導文2−1〜2−3が抽出されており、それぞれ指導文ベクトルの確信度は0.9、0.8、0.7である。また、薬剤3についても3種類の指導文3−1〜3−3が抽出されており、それぞれ指導文ベクトルの確信度は1、0.9、0.8である。そして、薬剤師は、この処方箋において、指導文1−1を1位に、指導文2−2を2位に、指導文3−1を3位に、それぞれ順位付けており、その他の指導文については選択しなかったとする。収集データにおいて、薬剤師が選択しなかった指導文については、順位付けがなされておらず、薬剤師順位データが「−」で示されている。   FIG. 15 shows an example of collected data based on a prescription of patient 1 in which three drugs (drugs 1 to 3) are described. In the example shown in FIG. 15, for example, three types of instruction sentences 1-1 to 1-3 are extracted for the medicine 1, and the confidence levels of the instruction sentence vectors are 1, 0.9, and 0.8, respectively. In addition, three types of instruction sentences 2-1 to 2-3 are extracted for the medicine 2, and the confidence levels of the instruction sentence vectors are 0.9, 0.8, and 0.7, respectively. Also, three types of instruction sentences 3-1 to 3-3 are extracted for the medicine 3, and the confidence levels of the instruction sentence vectors are 1, 0.9, and 0.8, respectively. In this prescription, the pharmacist ranks the instruction sentence 1-1 first, the instruction sentence 2-2 second, and the instruction sentence 3-1 third. Is not selected. In the collected data, the instructional sentence not selected by the pharmacist is not ranked, and the pharmacist ranking data is indicated by "-".

このような収集データに基づいて、処方箋教師データが生成される。図16A〜図16Cは、図15に示す収集データに基づいて生成された処方箋教師データの例を示す図である。   Prescription teacher data is generated based on such collected data. 16A to 16C are diagrams illustrating examples of prescription teacher data generated based on the collected data illustrated in FIG.

図16A〜図16Cに示すように、処方箋教師データは、2つの指導文に対応する、患者名、指導文、確信度、薬剤師順位、および優劣ラベルを含む。優劣ラベルは、2つの指導文同士の優劣を示している。   As shown in FIG. 16A to FIG. 16C, the prescription teacher data includes a patient name, a guidance sentence, a certainty factor, a pharmacist rank, and a superior / decractive label corresponding to two guidance sentences. The superiority label indicates the superiority between the two instruction sentences.

本第6の実施の形態では、過去の処方箋データに対して抽出された全ての指導文における、2つの指導文同士の組み合わせの全てに対応する処方箋教師データがそれぞれ独立して生成される。   In the sixth embodiment, prescription teacher data corresponding to all combinations of two instruction sentences in all instruction sentences extracted from past prescription data is independently generated.

優劣ラベルは、薬剤師順位に基づいて決定される。図16Aに示すように、特定の2つの指導文のいずれにも薬剤師順位が与えられている場合、より薬剤師順位が高い指導文1−1に優劣ラベル「1」が、より薬剤師順位が低い指導文2−2に優劣ラベル「0」が付与される。   The priority label is determined based on the pharmacist rank. As shown in FIG. 16A, when the pharmacist rank is given to both of the specific two instruction sentences, the superiority label “1” is assigned to the instruction sentence 1-1 having the higher pharmacist rank, and the instruction having the lower pharmacist rank is given. The sentence 2-2 is assigned the superiority / deterrence label “0”.

また、図16Bおよび図16Cに示すように、一方の指導文には薬剤師順位が与えられ、他方の指導文には薬剤師順位が与えられていない場合、薬剤師順位が与えられていない方の指導文に付与される優劣ラベルの値は、常に「0」である。従って、図16Bに示すように、指導文2−2には順位が与えられているが、指導文3−2には順位が与えられていない場合、指導文2−2に優劣ラベル「1」が、指導文3−2には優劣ラベル「0」が、それぞれ付与される。   As shown in FIGS. 16B and 16C, when one of the instruction sentences is given a pharmacist ranking and the other instruction sentence is not given a pharmacist order, the instruction sentence of the person without the pharmacist order is given. Is always “0”. Accordingly, as shown in FIG. 16B, when the instruction sentence 2-2 is given a ranking but the instruction sentence 3-2 is not given a ranking, the instruction sentence 2-2 is given a superiority / delete label "1". However, the instructor sentence 3-2 is assigned a superiority label “0”, respectively.

また、図16Cに示すように、指導文1−2、指導文1−3ともに順位がつけられていない(すなわち過去に薬剤師によって選択されていない)場合には、いずれの指導文に対しても優劣ラベル「0」が付与される。   In addition, as shown in FIG. 16C, when the instruction sentence 1-2 and the instruction sentence 1-3 have not been ranked (that is, have not been selected by the pharmacist in the past), any instruction sentence is not given. The priority label “0” is given.

また、確信度を優劣ラベルに反映するようにしてもよい。すなわち、例えば図16A、図16Bおよび図16Cに示すように、決定した優劣ラベルの値に対して、対応する指導文の確信度を掛けることで、確信度を考慮した優劣ラベルを各指導文に付与するようにしてもよい。具体的には、図16Aに示す例では、指導文1−1の確信度が「1」、優劣ラベルが「1」であるため、確信度を考慮した場合の優劣ラベルは「1」となる。また図16Bに示す例では、指導文2−2の確信度が「0.8」、優劣ラベルが「1」であるので、確信度を考慮した場合の優劣ラベルは「0.8」となる。さらに図16Cに示す例では、優劣ラベルがともに「0」であるため、確信度の値に関わらず、確信度を考慮した場合の優劣ラベルは「0」となる。このようにすることで、確信度の高い指導文の優劣ラベルを相対的に高くする制御が可能となる。   Alternatively, the certainty factor may be reflected on the superiority / inferior label. That is, as shown in FIG. 16A, FIG. 16B and FIG. 16C, for example, the value of the determined superiority label is multiplied by the certainty factor of the corresponding instruction sentence, so that the superiority / consciousness label considering the certainty factor is assigned to each instruction sentence. You may make it give. Specifically, in the example illustrated in FIG. 16A, the confidence level of the instruction sentence 1-1 is “1” and the priority label is “1”, so the priority label in consideration of the confidence level is “1”. . In the example shown in FIG. 16B, the confidence level of the instruction sentence 2-2 is “0.8” and the priority label is “1”, so the priority label in consideration of the confidence level is “0.8”. . Further, in the example shown in FIG. 16C, both the superiority and inferiority labels are “0”, and the superiority and inferiority label in consideration of the confidence is “0” regardless of the value of the confidence. By doing so, it is possible to control to relatively increase the inferiority label of the guidance sentence with high certainty.

以上説明したように、処方箋教師データは、過去の処方箋データに対して抽出された全ての指導文のうち、特定の2つの指導文同士の優劣(薬剤師順位の高低)を示している。   As described above, the prescription teacher data indicates the superiority (high or low of the pharmacist rank) between two specific instruction sentences among all the instruction sentences extracted from the past prescription data.

なお、上記したように、本第6の実施の形態では、過去の処方箋データに対して抽出された全ての指導文における、2つの指導文の組み合わせの全てに対応する処方箋教師データがあらかじめ生成される必要がある。例えば図15の収集データのように、9個の指導文が抽出されている場合、=36個の組み合わせに対応する36個の処方箋教師データが生成される。ただし、予測モデルの出力する優劣ラベルの精度を確保するためには、2つの指導文のデータ内での順序を区別する必要があり、=72個の組み合わせの処方箋教師データが生成される。 As described above, in the sixth embodiment, prescription teacher data corresponding to all combinations of two instruction sentences in all instruction sentences extracted from past prescription data is generated in advance. Need to be For example, when nine instruction sentences are extracted as in the collected data of FIG. 15, 36 prescription teacher data corresponding to 9 C 2 = 36 combinations are generated. However, in order to ensure the accuracy of the superiority / inferiority label output by the prediction model, it is necessary to distinguish the order in the data of the two instruction sentences, and prescription teacher data of 9 P 2 = 72 combinations is generated. You.

このようにして生成された処方箋教師データが、教師データDB118に格納されている。   The prescription teacher data generated in this way is stored in the teacher data DB 118.

第3学習モデル生成部119は、教師データDB118に格納された処方箋教師データを用いて学習モデルを生成する。第3学習モデル生成部119が生成する学習モデルは、新たな処方箋データが入力された際に、新たな処方箋に記載された複数の薬剤に対応する複数の指導文の中から、患者にとって重要な指導文を出力するように学習処理が施されたモデルである。   The third learning model generation unit 119 generates a learning model using the prescription teacher data stored in the teacher data DB 118. The learning model generated by the third learning model generation unit 119 is important for a patient when new prescription data is input, from a plurality of instruction sentences corresponding to a plurality of medicines described in the new prescription. This is a model that has been subjected to learning processing so as to output a guidance sentence.

第3学習モデル生成部119による学習モデルの生成は、学習モデル生成部17Bによる学習モデルの生成と同様、例えば薬局Pにおける服薬指導支援装置10Dの稼働前に行われていることが望ましい。しかしながら、薬局Pにおいて服薬指導支援装置10Dが稼働した状態で、新たな処方箋データに対する抽出部出力データおよび薬剤師順位データが新たに生成された場合、これを新たな処方箋教師データとして用いて、随時第3学習モデルDB121の学習モデルを更新し続ける(任意のタイミングで追加学習、もしくは再学習する)ような形態を採用してもよい。   The generation of the learning model by the third learning model generation unit 119 is preferably performed, for example, before the operation of the medication instruction support device 10D in the pharmacy P, similarly to the generation of the learning model by the learning model generation unit 17B. However, if the extractor output data and the pharmacist ranking data for the new prescription data are newly generated in a state where the medication instruction support device 10D is operating at the pharmacy P, the data is used as new prescription teacher data at any time. A mode in which the learning model of the three learning model DB 121 is continuously updated (additional learning or re-learning at an arbitrary timing) may be adopted.

第3指導文抽出部120は、このように生成された学習モデルを用いて、患者に提供すべき指導文を抽出する。具体的には、第3指導文抽出部120は、新たに入力された処方箋データに基づき、当該処方箋データに対して抽出された指導文を取得する。そして、第3指導文抽出部120は、学習モデルを用いて、取得した指導文における、全ての2つの指導文の組み合わせでの指導文の優劣を判定し、上位所定数の指導文を抽出する。   The third instruction sentence extracting unit 120 extracts an instruction sentence to be provided to the patient using the learning model generated in this manner. Specifically, the third instruction sentence extracting unit 120 acquires an instruction sentence extracted for the prescription data based on the newly input prescription data. Using the learning model, the third instruction sentence extracting unit 120 determines the superiority or inferiority of the instructional sentence in the combination of all the two instructional sentences in the acquired instructional sentence, and extracts a predetermined number of upper instructional sentences. .

このような構成により、第6の実施の形態に係る服薬指導支援装置10Dは、薬剤毎にではなく、処方箋毎に、患者にとって重要な指導文を抽出することができる。これにより、処方箋にて処方されている薬剤同士の相互関係を考慮した指導文を患者に提供することができる。また、薬剤師によって選択されなかった指導文についても、処方箋教師データにおいて除外せず、優劣ラベル「0」を持つ要素として扱っているため、より実態に即した指導文の選択を行うことができる。   With such a configuration, the medication instruction support device 10D according to the sixth embodiment can extract an important instruction sentence for the patient not for each drug but for each prescription. This makes it possible to provide the patient with a guidance sentence that takes into account the interrelationship between the drugs prescribed in the prescription. In addition, since the guidance sentence not selected by the pharmacist is not excluded from the prescription teacher data and is treated as an element having the priority label “0”, it is possible to select a guidance sentence more suited to the actual situation.

このような構成により、例えば以下のような効果が得られる。薬剤によっては、他の薬剤と併用してはならないもの(併用禁忌)や、他の薬剤との併用によって相互作用が生じるものがある。処方箋に記載された薬剤にこのような併用禁忌や相互作用がある場合、薬剤毎に指導文抽出を行った場合、併用禁忌や相互作用に関する指導文が抽出されないことがある。しかしながら、同様の組み合わせの薬剤が記載された過去の処方箋に対して、薬剤師が併用禁忌や相互作用を考慮した指導文の選択(順位付け)を行っている可能性が高い。このことから、第6の実施の形態に係る服薬指導支援装置10Dでは、過去の処方箋毎に薬剤師が順位付けした結果に基づいて学習モデルを生成するため、薬剤毎の抽出では抽出されなかった指導文が抽出されることが期待される。   With such a configuration, for example, the following effects can be obtained. Some drugs must not be used in combination with other drugs (contraindications for concomitant use), and some drugs cause an interaction when used in combination with other drugs. If the medicine described in the prescription has such contraindications or interactions, or if guidance text is extracted for each drug, guidance text on contraindications or interactions may not be extracted. However, it is highly probable that the pharmacist has selected (ranked) instructional sentences in consideration of contraindications for concomitant use and interaction with respect to past prescriptions in which drugs of the same combination are described. From this, the medication instruction support device 10D according to the sixth embodiment generates a learning model based on the result of ranking by the pharmacist for each past prescription, so that the instruction not extracted by the extraction for each drug is provided. The sentence is expected to be extracted.

(第6の実施の形態の変形例)
上記説明した第6の実施の形態では、新たに入力された処方箋データに基づき、処方箋データに対して抽出された全ての指導文において、2つの指導文の組み合わせの全てに対応する処方箋教師データに基づき、学習モデルを生成していた。従って、第3指導文抽出部120による指導文の抽出の際には、全ての2つの指導文の組み合わせの優劣を判定してから、上位所定数の指導文を抽出していた。
(Modification of Sixth Embodiment)
In the sixth embodiment described above, based on the newly input prescription data, in all the instruction sentences extracted from the prescription data, the prescription teacher data corresponding to all combinations of the two instruction sentences are added to the prescription teacher data. Based on this, a learning model was generated. Therefore, at the time of extracting a guidance sentence by the third guidance sentence extraction unit 120, a superior or inferiority of a combination of all two guidance sentences is determined, and then a predetermined number of top guidance sentences are extracted.

本変形例では、生成した学習モデルを利用した優劣ラベル予測時の演算量を低減するため、あらかじめ所定数の指導文間における優劣を判定することができる学習モデルを生成する例について説明する。   In the present modified example, an example will be described in which a learning model that can determine in advance the inferiority between a predetermined number of instruction sentences in order to reduce the amount of computation at the time of predicting the superiority and inferiority label using the generated learning model is described.

本変形例においては、処方箋教師データとして、所定数の指導文間の優劣を示す教師データが教師データDB118に格納されている。図17Aおよび図17Bは、処方箋教師データの他の例を示す図である。図17Aおよび図17Bに示す処方箋教師データは、図15に示す収集データに基づいて生成されたものである。   In this modified example, teacher data indicating superiority between a predetermined number of instruction sentences is stored in the teacher data DB 118 as prescription teacher data. 17A and 17B are diagrams illustrating another example of the prescription teacher data. The prescription teacher data shown in FIGS. 17A and 17B is generated based on the collected data shown in FIG.

図17Aに示す例では、所定数を3とした場合、すなわち3個の指導文のそれぞれに対して、薬剤師順位データに基づく優劣ラベルが付与された処方箋教師データが示されている。本変形例では、所定数の指導文間の優劣を示す必要があるため、優劣ラベルには例えば0から1までの間の任意の数が使用される。図17Aに示す例では、薬剤師順位が1位である指導文1−1に対して優劣ラベル「1」が付与されている。また、薬剤師順位が2位である指導文2−2に対して優劣ラベル「0.5」が付与されている。また、薬剤師順位が3位(全部で3個なので最下位)である指導文3−1に対しては優劣ラベル「0」が付与されている。この場合、処方箋教師データは、これら3行の順序すべてのパターンを考慮した3!=6通り生成される。   In the example shown in FIG. 17A, when the predetermined number is set to 3, that is, prescription teacher data in which superiority and inferior labels based on pharmacist ranking data are assigned to each of the three instruction sentences is shown. In this modification, since it is necessary to indicate the superiority between a predetermined number of instruction sentences, an arbitrary number between 0 and 1 is used for the superiority label, for example. In the example illustrated in FIG. 17A, the superiority label “1” is assigned to the instruction sentence 1-1 having the first pharmacist rank. In addition, the superiority label “0.5” is assigned to the instruction sentence 2-2 in which the pharmacist ranks second. In addition, the superiority label “0” is assigned to the instruction sentence 3-1 in the third place of the pharmacist (the lowest rank because there are three in total). In this case, the prescription teacher data is 3! = 6 types are generated.

一方、図17Bに示す例では、所定数を100とした場合、すなわち100個の指導文のそれぞれに対して、薬剤師順位データに基づく優劣ラベルが付与された処方箋教師データが示されている。図17Bに示す例では、薬剤師順位が3位である指導文3−1が最下位ではなく、薬剤師により選択されていない指導文1−1,2−2,3−1以外の全ての指導文がより下位である。このため、図17Aに示す例では、薬剤師順位が1位である指導文1−1に対して優劣ラベル「1」が付与されている。また、薬剤師順位が2位である指導文2−2に対して優劣ラベル「0.9」が付与されている。また、薬剤師順位が3位である指導文3−1に対しては優劣ラベル「0.8」が付与されている。さらに、それ以外の全ての指導文に対しては優劣ラベル「0」が付与されている。優劣ラベルの値は相対値であり、薬剤師順位を反映する任意の値に設定されればよい。ただし、異なる処方箋に対する複数の処方箋教師データ間においては、同様の設定方法を採用する必要がある。   On the other hand, in the example shown in FIG. 17B, when the predetermined number is set to 100, that is, for each of the 100 instruction sentences, prescription teacher data in which the superiority / inferior label based on the pharmacist ranking data is added is shown. In the example shown in FIG. 17B, the instructional sentence 3-1 having the third pharmacist rank is not the lowest, and all instructional sentences other than the instructional statements 1-1, 2-2, and 3-1 not selected by the pharmacist. Is lower. For this reason, in the example shown in FIG. 17A, the superiority label “1” is assigned to the instruction sentence 1-1 having the first pharmacist rank. Further, the superiority label “0.9” is assigned to the instruction sentence 2-2 having the second highest pharmacist rank. In addition, the instructor sentence 3-1 having the third pharmacist rank is assigned the superiority / deterrence label “0.8”. Furthermore, the superiority label “0” is assigned to all other instruction sentences. The value of the priority label is a relative value, and may be set to an arbitrary value reflecting the pharmacist rank. However, it is necessary to adopt the same setting method between a plurality of prescription teacher data for different prescriptions.

図15に示す収集データには、全部で9個の指導文しか含まれていないため、図17Bに示す例では、100個の指導文を含む処方箋教師データを生成するためには、91個の指導文が足りていない。これを補うため、足りない指導文には空のデータを付与する。空のデータとは、図17Bの最下段に例示するような、指導文およびその識別情報、確信度、および優劣ラベルが全て0のデータである。また、処方箋教師データは、指導文の順序を考慮して並べ替えたデータも利用するので、図17Bに示す例では、9!=362,880通りのデータが生成される。   Since the collected data illustrated in FIG. 15 includes only nine instruction sentences in total, in the example illustrated in FIG. 17B, 91 prescription teacher data including 100 instruction sentences are required to generate 91 instruction sentences. Instruction text is not enough. To make up for this, empty data is given to the missing instruction sentences. The empty data is data in which the instruction sentence and its identification information, the certainty factor, and the superiority / inferiority label are all 0, as exemplified in the lower part of FIG. In addition, since the prescription teacher data also uses data rearranged in consideration of the order of the guidance sentences, in the example shown in FIG. 17B, 9! = 362,880 types of data are generated.

第3学習モデル生成部119は、このように生成された処方箋教師データに基づいて、複数の指導文間の優劣を出力できる学習モデルを生成する。これにより、本変形例では、演算処理量を上記説明した第6の実施の形態と比較して、演算量を低減することができる。   The third learning model generation unit 119 generates a learning model that can output the superiority between a plurality of instruction sentences based on the prescription teacher data generated in this way. Thus, in this modification, the amount of calculation can be reduced as compared with the above-described sixth embodiment.

(第7の実施の形態)
上記説明した第1の実施の形態において、薬剤師による指導文の選択または非選択に基づいて、教師データの重み付けを行い、重み付け後の教師データを用いて、学習モデル生成部17が再学習を行っていた。このような構成において、薬剤師が選択しなかった指導文に1未満の重み付けがなされることにより、薬剤師が選択しなかった指導文の順位付けが大きく下がっていくことがある。順位付けが下がると、その指導文が表示される優先順位が下がり、薬剤師の目に触れにくくなるため、例えその指導文が実際にはある患者にとって重要な指導文であったとしても、薬剤師によって選択されにくくなってしまう。
(Seventh embodiment)
In the first embodiment described above, the training data is weighted based on the selection or non-selection of the guidance sentence by the pharmacist, and the learning model generation unit 17 performs re-learning using the weighted teacher data. I was In such a configuration, by assigning a weight of less than 1 to an instruction sentence not selected by the pharmacist, the ranking of the instruction sentence not selected by the pharmacist may be significantly reduced. When the ranking is lowered, the priority order at which the instruction is displayed is lowered and it is difficult for pharmacists to see it, so even if the instruction is actually important for a patient, It will be difficult to select.

本第7の実施の形態では、このような事態に対応するため、以下のような構成を採用する。なお、本第7の実施の形態の服薬指導支援装置の機能構成については、図3を参照して説明した第1の実施の形態の服薬指導支援装置10と同様である。   In the seventh embodiment, the following configuration is adopted to cope with such a situation. The functional configuration of the medication instruction support device of the seventh embodiment is the same as that of the medication instruction support device 10 of the first embodiment described with reference to FIG.

指導文表示部111は、順位付け部110が行った順位付けに従って項目毎に上位所定数の指導文を表示する指導文表示欄201に加えて、指導文毎に薬剤師による選択を受け付けるチェック欄202を表示させる。また、指導文表示部111は、表示画面200内に、指導文を表示させるための表示要素(ボタン等)を表示する。図18は、チェック欄202および指導文を表示させるためのボタン210の表示例を示す図である。薬剤師が入力装置106を介してボタン210を選択すると、現在指導文表示欄201に表示されている指導文より少し下位の指導文が指導文表示欄201に表示される。   The guidance sentence display unit 111 includes a guidance sentence display column 201 that displays a predetermined number of top guidance sentences for each item in accordance with the ranking performed by the ranking unit 110, and a check column 202 that receives a selection by a pharmacist for each guidance sentence. Is displayed. In addition, the guidance sentence display unit 111 displays a display element (such as a button) for displaying a guidance sentence on the display screen 200. FIG. 18 is a diagram showing a display example of a check box 202 and a button 210 for displaying a guidance sentence. When the pharmacist selects the button 210 via the input device 106, a guidance sentence slightly lower than the guidance sentence currently displayed in the guidance sentence display column 201 is displayed in the guidance sentence display column 201.

薬剤師は、今の患者に対しては選択はしないが、患者によっては重要であるため順位を下げたくないと考える指導文に対して、入力装置106を介してチェック欄202をチェックすることができる。薬剤師によりチェックがなされると、チェックされた指導文に対しては、順位が下がらないような処理がなされる。具体的には、例えば重み付け部114が、薬剤師がチェックした指導文に対して1倍以上の重み付けをすればよい。   The pharmacist can check the check box 202 via the input device 106 for a guidance sentence that does not make a selection for the current patient, but does not want to lower the rank because it is important for some patients. . When the pharmacist makes a check, processing is performed on the checked instruction sentence so as not to lower the ranking. Specifically, for example, the weighting unit 114 may weight the instruction sentence checked by the pharmacist by a factor of 1 or more.

また、薬剤師は、現在指導文表示欄201に表示されている指導文より下位の指導文に対してチェック付けを行いたい場合には、ボタン210を押下する。これにより、現在より少し下位の指導文が指導文表示欄201に表示され、薬剤師がチェック付けを行うことができるようになる。   The pharmacist presses the button 210 when he / she wants to check a guidance sentence lower than the guidance sentence currently displayed in the guidance sentence display column 201. As a result, an instruction sentence slightly lower than the current instruction is displayed in the instruction sentence display column 201, and the pharmacist can check.

なお、薬剤師によってはチェック付けを行わない、あるいはチェック付けできることを薬剤師が知らない場合がある。これに対処するため、表示画面200内に他の指導文を閲覧できること、および重要な指導文について順位を下げない操作を行えることを報知する文章や記号等を表示してもよい。   Depending on the pharmacist, the check may not be performed, or the pharmacist may not know that the check can be performed. In order to cope with this, a sentence, a symbol, or the like may be displayed on the display screen 200 to notify that another instruction sentence can be viewed and that an important instruction sentence can be operated without lowering the ranking.

また、薬剤師が順位を下げたくないと考える指導文に対してチェックするのではなく、薬剤師が複数の指導文の順位を直接編集できるようにしてもよい。   Also, instead of checking for guidance texts that the pharmacist does not want to lower the ranking, the pharmacist may be able to directly edit the ranking of a plurality of guidance texts.

以上のような構成により、薬剤師が選択しなかった指導文の順位が大きく下がり、薬剤師の目に触れにくくなる事態を回避できる。   With the above-described configuration, it is possible to avoid a situation in which the order of the instruction text not selected by the pharmacist is greatly reduced and the pharmacist does not easily see it.

本開示は、服薬指導に必要な情報を含む指導文が記載された服薬指導文書を作成する支援を行う服薬指導支援装置に有用である。   INDUSTRIAL APPLICABILITY The present disclosure is useful for a medication instruction support device that supports creating a medication instruction document in which an instruction sentence including information necessary for medication instruction is described.

1 服薬指導支援システム
10、10A,10B,10C,10D 服薬指導支援装置
11 処方箋データ取得部
12,12C 薬剤情報文書データ取得部
13 薬剤情報文書DB
14,14C 患者データ取得部
15 患者DB
16,16B,16C ベクトル生成部
17,17A,17B 学習モデル生成部
18,18A,18B 学習モデルDB
19,19B 指導文抽出部
20 服薬指導支援サーバ
104 外部記憶装置
105 通信インターフェイス
106 入力装置
107 出力装置
110 順位付け部
111,111C 指導文表示部
112,112D 選択受付部
113 服薬指導文書データ生成部
114,114B 重み付け部
115 第2学習モデル生成部
116 第2学習モデルDB
117 第2指導文抽出部
118 教師データDB
119 第3学習モデル生成部
120 第3指導文抽出部
121 第3学習モデルDB
200 表示画面
201 指導文表示欄
202 チェック欄
210 ボタン
N 通信ネットワーク
1 Medication Guidance Support System 10, 10A, 10B, 10C, 10D Medication Guidance Support Device 11 Prescription Data Acquisition Unit 12, 12C Drug Information Document Data Acquisition Unit 13 Drug Information Document DB
14, 14C Patient data acquisition unit 15 Patient DB
16, 16B, 16C Vector generation unit 17, 17A, 17B Learning model generation unit 18, 18A, 18B Learning model DB
19, 19B Instruction sentence extraction unit 20 Drug administration support server 104 External storage device 105 Communication interface 106 Input device 107 Output device 110 Ranking unit 111, 111C Instruction sentence display unit 112, 112D Selection accepting unit 113 Drug administration instruction document data generation unit 114 , 114B weighting unit 115 second learning model generation unit 116 second learning model DB
117 Second instruction sentence extraction unit 118 Teacher data DB
119 third learning model generation unit 120 third instruction sentence extraction unit 121 third learning model DB
200 display screen 201 guidance sentence display field 202 check field 210 button N communication network

Claims (17)

患者に関する患者データおよび薬剤に対応した服薬指導用の複数の文字列に基づいて、患者ベクトルおよび複数の文字列ベクトルを生成するベクトル生成部と、
前記患者ベクトルおよび複数の前記文字列ベクトルの入力に対して、所定の文字列ベクトルを出力するように学習処理が施された学習モデルを生成する学習モデル生成部と、
前記学習モデルを用いて前記複数の文字列から所定の文字列を抽出する文字列抽出部と、
を有する、服薬指導支援装置。
A vector generation unit that generates a patient vector and a plurality of character string vectors based on a plurality of character strings for taking medication guidance corresponding to patient data and medicines regarding the patient,
A learning model generation unit that generates a learning model that has been subjected to learning processing so as to output a predetermined character string vector with respect to the input of the patient vector and the plurality of character string vectors,
A character string extraction unit that extracts a predetermined character string from the plurality of character strings using the learning model;
A medication instruction support device having
前記学習モデル生成部は、前記患者ベクトルと前記文字列ベクトルとの類似度を算出し、所定の患者ベクトルの入力に対して類似度が大きい順に文字列ベクトルが出力されるように学習処理が施された学習モデルを生成する、
請求項1に記載の服薬指導支援装置。
The learning model generation unit calculates a similarity between the patient vector and the character string vector, and performs a learning process such that a character string vector is output in descending order of similarity with respect to an input of a predetermined patient vector. Generate a learned model,
The medication administration support device according to claim 1.
前記文字列があらかじめ複数の項目に分類されている場合に、前記文字列抽出部は、前記新たな患者ベクトルの入力に基づいて、前記複数の項目のうち、所定の項目毎に所定数の前記文字列を抽出する、
請求項2に記載の服薬指導支援装置。
When the character string has been classified into a plurality of items in advance, the character string extraction unit, based on the input of the new patient vector, a predetermined number of the predetermined number of the Extract a string,
The medication instruction support device according to claim 2.
前記学習モデルに基づいて、抽出された所定数の前記文字列の順位付けを行う順位付け部をさらに有する、
請求項3に記載の服薬指導支援装置。
A ranking unit that ranks the extracted predetermined number of the character strings based on the learning model,
The medication compliance support device according to claim 3.
抽出された前記所定の文字列が、薬剤師により作成される服薬指導文書に使用されたか否かに基づいて、前記所定の文字列に対応する前記文字列ベクトルに対する重み付け値を決定する重み付け部、
をさらに有し、
前記学習モデル生成部は、前記重み付け値に基づいて前記学習モデルを更新する、
請求項1から4のいずれか一項に記載の服薬指導支援装置。
A weighting unit that determines a weight value for the character string vector corresponding to the predetermined character string, based on whether the extracted predetermined character string is used in a medication instruction document created by a pharmacist,
Further having
The learning model generation unit updates the learning model based on the weight value.
The medication instruction support device according to any one of claims 1 to 4.
抽出された前記所定の文字列の文章形式を変換する文章変換部をさらに有する、
請求項1に記載の服薬指導支援装置。
Further comprising a sentence conversion unit for converting the sentence format of the extracted predetermined character string,
The medication administration support device according to claim 1.
前記学習モデル生成部は、複数の前記患者ベクトル同士の類似度を算出し、前記患者ベクトルの入力に対して類似度が大きい患者ベクトルにあらかじめ対応づけられた文字列ベクトルが出力されるように学習処理が施された学習モデルを生成する、
請求項1に記載の服薬指導支援装置。
The learning model generation unit calculates a similarity between the plurality of patient vectors, and performs learning so that a character string vector previously associated with a patient vector having a high similarity to the input of the patient vector is output. Generate a processed learning model,
The medication administration support device according to claim 1.
前記学習モデル生成部は、前記患者ベクトルおよび前記文字列ベクトルの入力に対して、前記文字列ベクトル毎に、前記文字列ベクトルに対応する文字列が前記患者ベクトルに対応する患者にとって必要な情報を含む度合いを示す確信度を出力するように学習処理が施された学習モデルを生成する、
請求項1に記載の服薬指導支援装置。
The learning model generation unit, for the input of the patient vector and the character string vector, for each of the character string vector, the character string corresponding to the character string vector, information necessary for the patient corresponding to the patient vector Generate a learning model that has been subjected to learning processing to output a certainty factor indicating the degree of inclusion,
The medication administration support device according to claim 1.
抽出された前記所定の文字列が、薬剤師により作成される服薬指導文書に使用された回数に基づいて、前記所定の文字列に対応する前記文字列ベクトルに対する重み付け値を決定する重み付け部、
をさらに有し、
前記学習モデル生成部は、前記重み付け値に基づいて前記学習モデルを更新する、
請求項8に記載の服薬指導支援装置。
A weighting unit that determines a weight value for the character string vector corresponding to the predetermined character string, based on the number of times the extracted predetermined character string is used in a medication instruction document created by a pharmacist;
Further having
The learning model generation unit updates the learning model based on the weight value.
A medication compliance support device according to claim 8.
前記文字列抽出部は、前記患者ベクトルおよび前記文字列ベクトルの入力に対して前記学習モデルが出力した確信度が所定値より大きい文字列ベクトルに対応する文字列を抽出する、
請求項8に記載の服薬指導支援装置。
The character string extracting unit extracts a character string corresponding to a character string vector whose certainty factor output by the learning model with respect to the input of the patient vector and the character string vector is larger than a predetermined value.
A medication compliance support device according to claim 8.
前記学習モデル生成部は、前記文字列ベクトルの内容を示唆するグループを示すグループラベルが付与された教師データを用いて、前記確信度に加えて前記グループラベルを出力するように学習処理が施された前記学習モデルを生成し、
前記文字列抽出部は、同一内容を示すグループラベルが付与された前記文字列ベクトルのうち、確信度が大きい順に所定数の文字列ベクトルに対応する文字列を抽出する、
請求項10に記載の服薬指導支援装置。
The learning model generation unit performs a learning process to output the group label in addition to the certainty factor, using teacher data to which a group label indicating a group indicating the content of the character string vector is assigned. Generated learning model,
The character string extraction unit extracts a character string corresponding to a predetermined number of character string vectors in order of the degree of certainty from among the character string vectors to which group labels indicating the same contents are assigned,
The medication instruction support device according to claim 10.
前記学習モデル生成部は、前記文字列が優先して使用される度合いを示す優先度を示す優先ラベルがさらに付与された教師データを用いて、前記確信度に加えて前記グループラベルおよび前記優先ラベルを出力するように学習処理が施された前記学習モデルを生成し、
前記文字列抽出部は、同一内容を示すグループラベルが付与された前記文字列ベクトルのうち、前記優先度に基づき重み付けを行った前記確信度が大きい順に所定数の文字列ベクトルに対応する文字列を抽出する、
請求項11に記載の服薬指導支援装置。
The learning model generation unit uses the teacher data further assigned a priority label indicating a priority indicating the degree to which the character string is preferentially used, in addition to the certainty factor, the group label and the priority label. Generating the learning model subjected to the learning process to output
The character string extraction unit may include a character string corresponding to a predetermined number of character string vectors in the descending order of the certainty factor weighted based on the priority among the character string vectors to which a group label indicating the same content is assigned. Extract the
A medication compliance support device according to claim 11.
第2学習モデル生成部と、
第2抽出部と、
をさらに有し、
前記患者が主薬剤に加えて併用薬剤を使用する場合に、前記ベクトル生成部は、
前記患者が使用する併用薬剤の名称である使用併用薬剤名に基づいて使用併用薬剤名ベクトルを生成し、かつ、
前記主薬剤の前記文字列に含まれる、前記主薬剤との併用時に注意が必要な併用薬剤の名称である注意併用薬剤名に基づいて注意併用薬剤名ベクトルを生成し、
前記第2学習モデル生成部は、前記併用薬剤名ベクトルの入力に対して、入力された前記併称薬剤名ベクトルとの類似度が大きい前記注意併用薬剤名ベクトルを出力するように学習処理が施された第2学習モデルを生成し、
前記第2抽出部は、前記第2学習モデルを用いて、前記併用薬剤名ベクトルの入力に対して出力された前記注意併用薬剤名ベクトルに対応する前記注意併用薬剤名とあらかじめ関連づけられた注意事項を表す文字列を、前記主薬剤の前記文字列から注意併用薬指導文として抽出する、
請求項1に記載の服薬指導支援装置。
A second learning model generator,
A second extraction unit;
Further having
When the patient uses a combination drug in addition to the main drug, the vector generation unit,
Generate a concomitant drug name vector based on the concomitant drug name that is the name of the concomitant drug used by the patient, and
Included in the character string of the main drug, to generate an attention combination medicine name vector based on the attention combination medicine name that is the name of the combination medicine requiring attention when used in combination with the main medicine,
The second learning model generation unit performs a learning process on the input of the concomitant drug name vector so as to output the cautionary concomitant drug name vector having a high degree of similarity to the input concomitant drug name vector. Generated second learning model,
The second extraction unit uses the second learning model to generate a pre-association with the cautionary drug name corresponding to the cautionary drug name vector output in response to the input of the concomitant drug name vector. Is extracted from the character string of the main drug as a cautionary combination medicine instruction sentence,
The medication administration support device according to claim 1.
第3学習モデル生成部と、
第3抽出部と、
をさらに有し、
第3学習モデル生成部は、過去の複数の処方箋に記載された薬剤に対応する文字列の中から前記文字列抽出部が記載された薬剤に対応する文字列の中から抽出した複数の文字列、および当該複数の文字列間の優劣を示す優劣ラベルを含む処方箋教師データに基づいて、新たな処方箋に記載された薬剤に対応する文字列の順位付けを行い、上位所定数の文字列を抽出するように学習処理が施された第3学習モデルを生成し、
前記第3抽出部は、前記第3学習モデルを用いて、新たな処方箋に記載された薬剤に対応する文字列から上位所定数の文字列を抽出する、
請求項10に記載の服薬指導支援装置。
A third learning model generator,
A third extracting unit;
Further having
The third learning model generation unit includes a plurality of character strings extracted from the character strings corresponding to the medicines described by the character string extraction unit from among the character strings corresponding to the medicines described in a plurality of past prescriptions. Based on the prescription teacher data including the superiority / inferiority label indicating the superiority or inferiority between the plurality of character strings, the character strings corresponding to the medicines described in the new prescription are ranked, and a predetermined number of character strings are extracted. Generate a third learning model that has been subjected to learning processing to
The third extraction unit extracts, using the third learning model, a predetermined number of upper-order character strings from character strings corresponding to drugs described in a new prescription.
The medication instruction support device according to claim 10.
前記優劣ラベルは、薬剤師により当該複数の文字列の少なくとも一部に対して与えられた薬剤師順位に基づいて付与される、
請求項14に記載の服薬指導支援装置。
The superiority / inferiority label is given based on a pharmacist rank given to at least a part of the plurality of character strings by a pharmacist,
The medication instruction support device according to claim 14.
薬剤師の操作を受け付ける受付部をさらに有し、
前記重み付け部は、所定数の前記文字列のうち、前記薬剤師の操作によって選択された前記文字列の順位が下がらないように重み付け値を設定する、
請求項5に記載の服薬指導支援装置。
It further has a reception unit that receives the operation of the pharmacist,
The weighting unit sets a weight value so that the order of the character string selected by the operation of the pharmacist is not lowered among a predetermined number of the character strings.
A medication instruction support device according to claim 5.
患者に関する患者データおよび薬剤に対応した服薬指導用の複数の文字列に基づいて、患者ベクトルおよび複数の文字列ベクトルを生成するベクトル生成部と、前記患者ベクトルおよび複数の前記文字列ベクトルの入力に対して、所定の文字列ベクトルを出力するように学習処理が施された学習モデルを生成する学習モデル生成部と、前記学習モデルを用いて前記複数の文字列から所定の文字列を抽出する文字列抽出部と、抽出された前記所定の文字列が、薬剤師により作成される服薬指導文書に使用されたか否かに基づいて、前記所定の文字列に対応する前記文字列ベクトルに対する重み付け値を決定する重み付け部と、を有する複数の服薬指導支援装置と、
サーバ装置と、
前記複数の服薬指導支援装置と前記サーバ装置とを接続している所定のネットワークと、
を有し、
前記サーバ装置は、複数の前記服薬指導支援装置から送信された前記重み付け値に基づいて、それぞれの服薬指導支援装置において用いられる前記学習モデルを生成または更新する、
服薬指導支援システム。
A vector generation unit that generates a patient vector and a plurality of character string vectors based on a plurality of character strings for taking medication guidance corresponding to patient data and medicines regarding a patient, and for inputting the patient vector and the plurality of character string vectors. A learning model generation unit that generates a learning model subjected to learning processing to output a predetermined character string vector, and a character that extracts a predetermined character string from the plurality of character strings using the learning model. A column extracting unit, and determining a weight value for the character string vector corresponding to the predetermined character string, based on whether the extracted predetermined character string is used in a medication instruction document created by a pharmacist. A plurality of medication guidance support devices having:
A server device,
A predetermined network that connects the plurality of medication support devices and the server device;
Has,
The server device generates or updates the learning model used in each of the medication instruction support devices based on the weight values transmitted from the plurality of medication instruction support devices.
Medication guidance support system.
JP2019018750A 2018-09-06 2019-02-05 Medication guidance support device and medication guidance support system Active JP7260315B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018166648 2018-09-06
JP2018166648 2018-09-06

Publications (2)

Publication Number Publication Date
JP2020042758A true JP2020042758A (en) 2020-03-19
JP7260315B2 JP7260315B2 (en) 2023-04-18

Family

ID=69798459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019018750A Active JP7260315B2 (en) 2018-09-06 2019-02-05 Medication guidance support device and medication guidance support system

Country Status (1)

Country Link
JP (1) JP7260315B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210005310A1 (en) * 2019-07-03 2021-01-07 Canon Medical Systems Corporation Order creation support apparatus and order creation support method
JP2022061889A (en) * 2020-10-07 2022-04-19 三菱電機Itソリューションズ株式会社 Medication counseling support device, medication counseling support method, and medication counseling support program
JP2022062232A (en) * 2020-10-07 2022-04-19 三菱電機Itソリューションズ株式会社 Medication counseling support device, medication counseling support method, and medication counseling support program
JPWO2022123790A1 (en) * 2020-12-11 2022-06-16
JP7458000B2 (en) 2019-03-26 2024-03-29 国立大学法人埼玉大学 Support information providing system, support information providing device, support information providing method and program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125615A1 (en) * 2001-05-02 2010-05-20 Qed Solutions, Inc. Processing drug data
JP2016122253A (en) * 2014-12-24 2016-07-07 株式会社サンクスネット Medication related information output device, analysis server, medication related information output system, operation method of medication related information output device, operation program of medication related information output device, operation method of analysis server, and operation program of analysis server
JP2018132859A (en) * 2017-02-14 2018-08-23 ジャパンモード株式会社 Information determination system and method, and information determination program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125615A1 (en) * 2001-05-02 2010-05-20 Qed Solutions, Inc. Processing drug data
JP2016122253A (en) * 2014-12-24 2016-07-07 株式会社サンクスネット Medication related information output device, analysis server, medication related information output system, operation method of medication related information output device, operation program of medication related information output device, operation method of analysis server, and operation program of analysis server
JP2018132859A (en) * 2017-02-14 2018-08-23 ジャパンモード株式会社 Information determination system and method, and information determination program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
神崎 洋治 YOUJI KOUZAKI, 最新 人工知能がよ〜くわかる本 ARTIFICIAL INTELLIGENCE, vol. 第1版, JPN6022043438, 7 July 2016 (2016-07-07), pages 137 - 141, ISSN: 0004970179 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7458000B2 (en) 2019-03-26 2024-03-29 国立大学法人埼玉大学 Support information providing system, support information providing device, support information providing method and program
US20210005310A1 (en) * 2019-07-03 2021-01-07 Canon Medical Systems Corporation Order creation support apparatus and order creation support method
JP2022061889A (en) * 2020-10-07 2022-04-19 三菱電機Itソリューションズ株式会社 Medication counseling support device, medication counseling support method, and medication counseling support program
JP2022062232A (en) * 2020-10-07 2022-04-19 三菱電機Itソリューションズ株式会社 Medication counseling support device, medication counseling support method, and medication counseling support program
JP7093821B2 (en) 2020-10-07 2022-06-30 三菱電機Itソリューションズ株式会社 Medication guidance support device, medication guidance support method, and medication guidance support program
JPWO2022123790A1 (en) * 2020-12-11 2022-06-16
WO2022123790A1 (en) * 2020-12-11 2022-06-16 株式会社Trホールディングス Drug administration guidance information providing system and drug administration guidance information providing program

Also Published As

Publication number Publication date
JP7260315B2 (en) 2023-04-18

Similar Documents

Publication Publication Date Title
Du et al. ML-Net: multi-label classification of biomedical texts with deep neural networks
JP7260315B2 (en) Medication guidance support device and medication guidance support system
Zeng et al. Natural language processing for EHR-based computational phenotyping
US20210090695A1 (en) Healthcare Information Technology System for Predicting or Preventing Readmissions
WO2019212005A1 (en) Dangerous behavior prediction device, prediction model generation device, and dangerous behavior prediction program
Ho et al. Data-driven approach to detect and predict adverse drug reactions
CN102227730A (en) Systems and methods for clinical element extraction, holding, and transmission in widget-based application
CN110651332A (en) Generating a list of medical record issues
US20220059228A1 (en) Systems and methods for healthcare insights with knowledge graphs
CN114765075A (en) Medicine recommendation method, device and system, electronic equipment and storage medium
Wanyan et al. Deep learning with heterogeneous graph embeddings for mortality prediction from electronic health records
US10832822B1 (en) Methods and systems for locating therapeutic remedies
CN116312926A (en) Health path recommending method and related device, electronic equipment and storage medium
JP2017134694A (en) Attribute assignment control program, information processor and attribute assignment control method
Meskers et al. Automated recognition of functioning, activity and participation in COVID-19 from electronic patient records by natural language processing: a proof-of-concept
CN116997974A (en) Automated personalized advice for medical treatment
CN113724830A (en) Medicine taking risk detection method based on artificial intelligence and related equipment
Harris et al. From clinical records to regulatory reporting: formal terminologies as foundation
CN112258135A (en) Method and device for auditing prescription data and computer-readable storage medium
JP2017134693A (en) Meaning information registration support program, information processor and meaning information registration support method
Lee et al. A medical decision support system using text mining to compare electronic medical records
EP4322047A1 (en) Method and apparatus for detecting safety information via artificial intelligence from electronic document
Chen et al. Design and implementation of web-based discharge summary note based on service-oriented architecture
CN114116838B (en) Data processing method, data processing device, electronic equipment and storage medium
KR102567404B1 (en) A method of prescribing aid providing test set by using interview content

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20190704

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20191107

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211020

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221018

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230308

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: 20230328

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230406

R150 Certificate of patent or registration of utility model

Ref document number: 7260315

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150