JP2020042758A - Device and method for supporting guidance of medication - Google Patents
Device and method for supporting guidance of medication Download PDFInfo
- 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
Links
- 239000003814 drug Substances 0.000 title claims abstract description 374
- 229940079593 drug Drugs 0.000 title claims abstract description 311
- 238000000034 method Methods 0.000 title claims abstract description 51
- 239000013598 vector Substances 0.000 claims abstract description 271
- 238000000605 extraction Methods 0.000 claims abstract description 48
- 238000012545 processing Methods 0.000 claims abstract description 19
- 230000004044 response Effects 0.000 claims abstract description 10
- 239000000284 extract Substances 0.000 claims description 30
- 238000006243 chemical reaction Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 15
- 229940000425 combination drug Drugs 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 32
- 238000004891 communication Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 4
- 206010012735 Diarrhoea Diseases 0.000 description 3
- 206010028813 Nausea Diseases 0.000 description 3
- 206010047700 Vomiting Diseases 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000003066 decision tree Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000000877 morphologic effect Effects 0.000 description 3
- 230000008693 nausea Effects 0.000 description 3
- 230000008673 vomiting Effects 0.000 description 3
- 208000029523 Interstitial Lung disease Diseases 0.000 description 2
- 208000022531 anorexia Diseases 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 229940124301 concurrent medication Drugs 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 206010061428 decreased appetite Diseases 0.000 description 2
- 238000001647 drug administration Methods 0.000 description 2
- 208000027700 hepatic dysfunction Diseases 0.000 description 2
- 229940095293 mumps vaccine Drugs 0.000 description 2
- 238000007637 random forest analysis Methods 0.000 description 2
- 238000012706 support-vector machine Methods 0.000 description 2
- 208000010201 Exanthema Diseases 0.000 description 1
- 206010020751 Hypersensitivity Diseases 0.000 description 1
- 206010020772 Hypertension Diseases 0.000 description 1
- 206010035664 Pneumonia Diseases 0.000 description 1
- 208000004531 Renal Artery Obstruction Diseases 0.000 description 1
- 206010038378 Renal artery stenosis Diseases 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 208000026935 allergic disease Diseases 0.000 description 1
- 230000007815 allergy Effects 0.000 description 1
- 230000004596 appetite loss Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000002146 bilateral effect Effects 0.000 description 1
- 238000009223 counseling Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 229940072185 drug for treatment of tuberculosis Drugs 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 201000005884 exanthem Diseases 0.000 description 1
- 229960003350 isoniazid Drugs 0.000 description 1
- QRXWMOHMRWLFEY-UHFFFAOYSA-N isoniazide Chemical compound NNC(=O)C1=CC=NC=C1 QRXWMOHMRWLFEY-UHFFFAOYSA-N 0.000 description 1
- 230000006651 lactation Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 208000019423 liver disease Diseases 0.000 description 1
- 230000005976 liver dysfunction Effects 0.000 description 1
- 208000019017 loss of appetite Diseases 0.000 description 1
- 235000021266 loss of appetite Nutrition 0.000 description 1
- 238000002483 medication Methods 0.000 description 1
- 230000007721 medicinal effect Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 206010037844 rash Diseases 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000008085 renal dysfunction Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 208000024891 symptom Diseases 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 239000000814 tuberculostatic agent Substances 0.000 description 1
Images
Landscapes
- Medical Treatment And Welfare Office Work (AREA)
Abstract
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
特許文献1に開示された技術では、患者に関する各種データに基づいて服薬指導方針の推論を行い、推論した服薬指導方針の妥当性を示す確信度データを生成するものの、服薬指導方針の内容そのものについての検討は行っていない。このため、推論した服薬指導方針の妥当性が低い場合には適切な服薬指導方針を出力することができない。
According to the technology disclosed in
本開示の目的は、薬に関する様々な情報の中から患者に必要な情報を抽出して、患者に適した服薬指導を行うことができる服薬指導支援装置および服薬指導支援システムを提供することである。 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.
以下、本発明の各実施の形態について図面を参照して詳細に説明する。ただし、必要以上に詳細な説明、例えば、既によく知られた事項の詳細説明や実質的に同一の構成に対する重複説明等は省略する場合がある。以下の説明及び参照される図面は、当業者が本発明を理解するために提供されるものであって、本発明の請求の範囲を限定するためのものではない。 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
<システム構成>
図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
服薬指導支援装置10は、薬局Pに勤務する薬剤師が操作する端末であり、例えばPC(Personal Comupter)やタブレット端末等の一般的なコンピュータである。服薬指導支援装置10は、薬局Pを訪れた患者が有する処方箋に関する情報と、その患者に関する情報とに基づいて、薬剤師が薬剤とともに患者に提供するべき服薬指導文書を作成するための支援を行う。なお、本明細書において、服薬指導とは、薬剤師が患者に対して、その患者に処方された薬剤に関する情報提供を行うことを意味しており、服薬指導文書とは、薬剤に関する情報を含む文章等の文字列が記載された文書を意味する。服薬指導文書に記載された文章等の文字列を、以下では指導文と記載する。
The medication
服薬指導支援サーバ20は、複数の薬局Pに設置された服薬指導支援装置10と、LAN(Local Area Network)、WAN(Wide Area Network)、またはインターネット回線等の通信ネットワークNを介して接続されているサーバ装置である。服薬指導支援サーバ20は、例えばクラウドサーバである。服薬指導支援サーバ20は、複数の服薬指導支援装置10において服薬指導文書の作成時に使用された情報を、通信ネットワークNを介して服薬指導支援装置10から受信し、図示しない記憶装置に記憶する。また、服薬指導支援サーバ20は、服薬指導支援装置10からの要求に応じて、服薬指導支援装置10における服薬指導文書の作成時に使用される情報を、通信ネットワークNを介して服薬指導支援装置10に送信する。
The medication
<服薬指導支援装置10の構成>
図2は、服薬指導支援装置10のハードウェア構成の一例を示す図である。
<Configuration of medication
FIG. 2 is a diagram illustrating an example of a hardware configuration of the medication
服薬指導支援装置10は、例えば、CPU101、ROM102、RAM103、外部記憶装置104、通信インターフェイス105、入力装置106、および出力装置107等を備えたコンピュータである。外部記憶装置104の例としては、HDD、SSD、またはフラッシュメモリ等が挙げられる。通信インターフェイス105の例としては、LAN回線用の通信コントローラ等が挙げられる。入力装置106の例としては、キーボード、マウス、タッチパネル、スキャナ、バーコードリーダ等が挙げられる。出力装置107の例としては、CRTや液晶等のディスプレイ装置、プリンタ等が挙げられる。
The medication taking
服薬指導支援装置10の後述する各機能は、例えば、CPU101がROM102、RAM103、及び外部記憶装置104等に記憶された処理プログラムや各種データを参照することによって実現される。但し、上記した各機能の一部または全部は、ソフトウェアによる処理に代えて、またはソフトウェアによる処理と共に、専用のハードウェア回路による処理によって実現されてもよい。
Each function described later of the medication
図3は、第1の実施の形態における服薬指導支援装置10の機能構成の一例を示すブロック図である。
FIG. 3 is a block diagram illustrating an example of a functional configuration of the medication
図3に示すように、服薬指導支援装置10は、処方箋データ取得部11、薬剤情報文書データ取得部12、薬剤情報文書データベース(DB)13、患者データ取得部14、患者DB15、ベクトル生成部16、学習モデル生成部17、学習モデルDB18、指導文抽出部19、順位付け部110、指導文表示部111、選択受付部112、服薬指導文書データ生成部113、重み付け部114を有する。
As shown in FIG. 3, the medication
図1に示すように、服薬指導支援装置10は薬局Pに設置されており、薬局Pに勤務する薬剤師によって操作される。医師から入手した処方箋を持った患者が薬局Pを訪れると、薬剤師は、入力装置106(図2参照)を用いて、処方箋に記載された処方箋に関する情報(以下、処方箋データと記載する)を服薬指導支援装置10に入力する。服薬指導支援装置10への処方箋データの入力方法は、例えば薬剤師がマウス、キーボード、タッチパネル等を用いて直接入力する方法の他、処方箋に記載された、処方箋データを表すバーコードや2次元コード等をスキャナ(リーダ装置)等でスキャンする方法等が採用されうる。
As shown in FIG. 1, the medication
処方箋データ取得部11は、入力された処方箋データを取得する。処方箋データには、例えば、その処方箋を有する患者の氏名、生年月日、性別、保険者番号等の情報等の患者に関する情報、および、その患者に処方された薬剤の名称、分量、使用部位、使用時点、使用量等の薬剤に関する情報が含まれる。
The prescription
薬剤情報文書データ取得部12は、処方箋データに基づいて、患者に処方された薬剤に対応する全指導文に関するデータを薬剤情報文書DB13から取得する。指導文とは、薬剤に関する情報提供のための薬剤情報文書に記載された文章である。薬剤情報文書とは、薬事法第52条に規定される記載事項が記載された添付文書や、くすりのしおり(登録商標)、任意の薬剤情報提供書等、例えば薬剤を製造する医薬品メーカー等から提供されたり、薬剤師の有志によって提供されたりしたものである。
The medicine information document
薬剤情報文書は、複数の項目を含み、各項目には、小項目が含まれうる。薬剤情報文書の各項目または小項目には、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
図3の説明に戻る。患者データ取得部14は、処方箋データおよび患者DB15に基づいて、患者に関する情報(以下、患者データと称する)を取得する。患者データには、患者の氏名、生年月日、性別、疾患、保険者番号等の患者本人に関する情報や、その患者に対する過去の調剤内容や指導履歴等の薬歴情報等が含まれうる。患者DB15には、患者本人に関する情報と、その患者の薬歴情報とが関連づけられてデータベース化されている。ただし、服薬指導支援装置10において用いられる患者データとしては、患者本人に関する情報と、その患者の薬歴情報が全て含まれる必要はなく、その一部のみが用いられてもよい。本実施の形態では、患者データには例えば性別、年齢等の情報が少なくとも含まれる。患者DB15に登録されていない新たな患者が薬局Pを訪れた場合、薬剤師によって、例えば患者から患者データに関する聞き取りを行い、新規患者データを患者DB15に登録する作業等が行われてもよい。
Returning to the description of FIG. The patient
ベクトル生成部16は、薬剤情報文書データ取得部12が取得した指導文に関するデータ、および患者データ取得部14が取得した患者データに基づいて、指導文ベクトルおよび患者ベクトルを生成する。指導文ベクトルとは、薬剤情報文書に含まれる各指導文をベクトル変換したものであり、患者ベクトルとは、患者データの各項目の内容をベクトル変換したものである。指導文および患者データをベクトル変換する具体例な方法としては、例えば文章あるいは患者データ中に含まれる単語の出現回数をカウントするBag of Wordsや、単語そのものをベクトル変換するWord2Vec等が採用されうる。より精度のよいベクトル変換のため、医療用語辞書等を用いて学習された学習モデルを用いてもよい。なお、指導文ベクトルは本発明の文字列ベクトルの一例である。
The
図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
本第1の実施の形態において、学習モデル生成部17が生成する学習モデルは、ある患者に対して提供された指導文に対応する指導文ベクトルと、その患者の患者ベクトルとが類似するように学習処理が施されたモデルである。同時に、この学習モデルは、ある患者に対して提供されなかった指導文に対応する指導文ベクトルと、その患者の患者ベクトルとが類似しないように学習処理が施されたモデルである。換言すれば、学習モデル生成部17が生成する学習モデルは、患者ベクトルおよび複数の指導文ベクトルの入力に対して、その患者ベクトルとの類似の度合いが大きい順に指導文ベクトルを並べ替えて出力するように学習されたモデルである。
In the first embodiment, the learning model generated by the learning
患者ベクトルと指導文ベクトルとの類似の度合いは、例えばベクトル間の類似度を算出することにより判断される。類似度の算出方法としては、例えばコサイン類似度等の既知の手法が採用されうる。コサイン類似度とは、正規化したベクトル同士の内積を用いて算出する、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
なお、学習モデル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
学習モデル生成部17による学習モデルの生成は、例えば薬局Pにおける服薬指導支援装置10の稼働前に行われていることが望ましいが、本発明では必ずしも服薬指導支援装置10の稼働前に学習モデルの生成が行われていなくてもよい。すなわち、薬局Pにおいて服薬指導支援装置10が稼働した状態で、新たな患者の患者ベクトルと、その患者に対して薬剤師が作成した指導文の指導文ベクトルとを新たな教師データとして、随時学習モデルを更新し続ける(任意のタイミングで追加学習、もしくは再学習する)ような形態を採用してもよい。
It is desirable that the generation of the learning model by the learning
上記説明では、服薬指導支援装置10が学習モデル生成部17を有している例について説明したが、学習モデル生成部17は、服薬指導支援装置10内に存在しなくてもよい。すなわち、学習モデル生成部17は、例えば通信ネットワークNを介して通信可能な他の装置内、例えば服薬指導支援サーバ20内に存在してもよい。この場合、服薬指導支援装置10は、モデル生成に必要な情報(患者ベクトルおよび指導文ベクトル)を通信ネットワークNを介して服薬指導支援サーバ20に伝達して学習モデルを生成するというような形態を採用してもよい。
In the above description, the example in which the medication
指導文抽出部19は、学習モデルDB18から読み出した学習モデルを用いて、薬剤情報文書中の項目毎に、患者に提供する服薬指導文書に含まれるべき指導文を抽出する。具体的には、指導文抽出部19は、ベクトル生成部16から、新たな患者ベクトルと、その患者に処方された薬剤の薬剤情報文書に含まれる全指導文の指導文ベクトルとを取得し、全指導文の指導文ベクトルを項目毎の指導文ベクトルに分類する。そして、指導文抽出部19は、患者ベクトルと項目毎の指導文ベクトルとを学習モデルに入力し、患者ベクトルとの類似度が大きい順に並べ替えられた指導文ベクトルの出力を得る。そして、指導文抽出部19は、出力された指導文ベクトルの上位所定数(例えば1つ)の指導文ベクトルに対応する指導文を抽出する。これにより、指導文抽出部19は、薬剤情報文書に含まれる指導文の中から、項目毎に、患者との関連性が大きい指導文を抽出することができる。例えば図4に例示した薬剤情報文書の場合、指導文抽出部19は、項目「禁忌」から1つ、「効能・効果」から1つ、「用法・用量」から1つ、というように指導文を抽出することができる。
Using the learning model read from the
順位付け部110は、学習モデルDB18から読み出した学習モデルを用いて、指導文抽出部19が薬剤情報文書の項目毎に抽出した指導文の順位付けを行う。具体的には、順位付け部110は、患者ベクトルと、項目毎に抽出された指導文ベクトルと、を学習モデルに入力し、患者ベクトルとの類似度が大きい順に並べ替えられた指導文ベクトルの出力を得る。これにより、順位付け部110は、より患者にとって関連性が高い項目の指導文を、より上位に順位付けすることができる。
The
指導文表示部111は、指導文抽出部19によって抽出された項目毎の指導文を、順位付け部110によって順位付けされた順位の通りに、出力装置107(図2参照)に表示させる。図6は、出力装置107がディスプレイ装置である場合の、指導文表示部111による表示画面を例示した図である。
The guidance
図6では、表示画面200内に指導文表示欄201が表示された例が示されている。指導文表示欄201には、複数の項目の指導文が順位付けされた順番で表示されている。図6では、項目毎のフィルタ機能により、例えば薬剤師によって選択された項目のみ表示されるようになっている。また、指導文表示欄201には、「キーワード」列が設けられており、その指導文が抽出される根拠となった単語が表示されている。このようなキーワードの抽出方法としては、例えば抽出された指導文の指導文ベクトルと、学習モデル生成のための教師データに用いられた患者データの項目名(「性別」、「妊婦」等)をベクトル変換したものとの類似度を算出し、指導文ベクトルとの類似度が大きい項目名をキーワードとする方法が採用されうる。このような方法を用いたキーワードの抽出は、例えば指導文表示部111によって実行されればよい。
FIG. 6 shows an example in which a guidance
選択受付部112は、指導文表示部111が表示した複数項目の指導文のうち、薬剤師が患者に提供するべきと判断したものの選択を受け付ける。薬剤師による選択は、例えば図2に示す入力装置106(マウス、キーボード、タッチパネル等)によって行われればよい。
The
服薬指導文書データ生成部113は、選択受付部112が受け付けた薬剤師の選択に基づいて、選択された指導文を含む服薬指導文書データを生成する。服薬指導文書データは、指導文抽出部19によって項目毎に抽出され、順位付け部110によって項目毎に順位づけされた指導文のうち、薬剤師によって選択された指導文が記載された文書データである。服薬指導文書データ生成部113は、生成した服薬指導文書データを出力装置107(図2参照、例えばプリンタ等)へ出力する。これにより、例えば服薬指導文書データが印刷されて、薬剤とともに患者に提供される。なお、服薬指導文書データは印刷されるのではなく、例えば患者の有する携帯端末等に表示されてもよい。
The medication instruction document
また、服薬指導文書データ生成部113は、生成した服薬指導文書データを、患者DB15において、患者の薬歴データと関連づけて登録するようにしてもよい。
The medication instruction document
なお、本実施の形態では、服薬指導文書データ生成部113が生成した服薬指導文書データに含まれる指導文は、添付文書、くすりのしおり、または薬剤情報提供書に基づく文章(または文字列)であり、必ずしも患者にとってわかりやすい文章とは限らない。患者にとってわかりやすい文章が記載された服薬指導文書を提供するため、服薬指導文書データ生成部113は、指導文の文章形式を例えば口語体に変換する口語体変換処理を行ってもよい。
In the present embodiment, the instruction text included in the medication instruction document data generated by the medication instruction document
口語体変換処理には、例えば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
一方、重み付け部114は、選択受付部112が受け付けた、薬剤師による指導文の選択または非選択に基づいて、学習モデル生成部17における学習モデル生成の際に使用される教師データに対する重み付け値を設定する。図7は、重み付け部114による重み付けの例について説明するための図である。
On the other hand, the
図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
一方、文2および文3は選択されていたため、文2および文3に出現する全ての単語には2倍の重み付けがなされる。これにより、例えば重み付け前における、文2に含まれる単語2のベクトル値「3」は、重み付け後においては「6」となっている。同様に、文2および文3に含まれる他の単語についても、ベクトル値が全て2倍されている。
On the other hand, since
このように、重み付け部114は、指導文が薬剤師によって選択されたか否かに基づいて、指導文ベクトルのベクトル値に対して重み付けを行う。なお、上記例では選択された場合2倍、選択されなかった場合0.5倍の重み付けを行っていたが、本発明はこれに限定されず、重み付けの量については適宜設定されればよい。
As described above, the
重み付け部114においてなされた重み付け後の教師データは、学習モデル生成部17に入力される。学習モデル生成部17は、重み付け後の教師データを用いて再学習を行い、学習モデルを更新して新たな学習モデルを学習モデルDB18に登録する。また、重み付け部114においてなされた重み付け後の教師データは、通信ネットワークNを介して服薬指導支援サーバ20(図1参照)へ送信されてもよい。重み付け部114においてなされた重み付けに関する情報と、重み付けされていない教師データとが服薬指導支援サーバ20に対して送信されてもよい。
The teacher data after the weighting performed by the
服薬指導支援サーバ20では、送信された教師データ(および重み付けに関する情報)が記憶されるとともに、重み付けされた教師データを用いた再学習により新たな学習モデルが生成される、または既存の学習モデルが更新される。服薬指導支援サーバ20において新規作成または更新された学習モデルは、通信ネットワークNを介して、必要に応じて上記説明した学習モデルDB18に送信される。
The medication
服薬指導支援サーバ20は、複数の薬局Pから重み付けに関する情報および教師データを収集し、学習データを更新するサーバ装置であることが望ましい。服薬指導支援サーバ20は、全店舗からの情報および教師データに基づいて、全店舗で使用可能な学習モデルを生成してもよいし、一部の薬局Pから収集した情報および教師データに基づいて、一部の薬局Pに適合した学習モデルを生成してもよい。一部の薬局Pとは、例えば一店舗だけでもよいし、ある地域内に存在する複数の店舗であってもよい。また、店舗毎ではなく、薬剤師の識別情報を併せて収集し、薬剤師毎に学習モデルを生成するようにしてもよい。このように複数の学習モデルを生成しておくことで、服薬指導支援装置10において、店舗、地域、または薬剤師に最適化された学習モデルを用いて、より患者に適した服薬指導文書を作成することができるようになる。
The
以上説明したように、本発明の第1の実施の形態に係る服薬指導支援装置10は、患者ベクトルと指導文ベクトルとに基づいて学習モデルを生成し、この学習モデルを用いて、薬剤情報文書の項目毎に、患者ベクトルと類似度が大きい指導文ベクトルに対応する指導文を抽出する。そして、対応する指導文ベクトルの患者ベクトルとの類似度に基づいて、項目毎に抽出された指導文を順位付けする。
As described above, the medication
このため、患者にとって関連性が高く、重要な内容を含む指導文が、項目毎に抽出される。また、項目毎の順位付けもされているので、抽出された指導文の中でもどの指導文がより重要であるのかがわかりやすい。さらに、項目毎に指導文の抽出を行っているため、例えば全指導文から患者にとって重要なものを抽出する場合と比較して、項目毎の重要な情報を含む指導文が抽出されずに漏れてしまう事態を回避しやすい。これにより、服薬指導支援装置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
なお、上記説明において、学習モデル生成部17は、ベクトル同士の類似度を算出して類似する指導文ベクトルを出力するような学習モデルを生成していたが、本発明はこれに限定されない。例えばあらかじめ患者ベクトルおよび指導文ベクトルにクラスタリングを行って患者クラスタと指導文クラスタとを生成しておき、クラスタ同士の類似度を算出して類似するクラスタを出力するような学習モデルを生成してもよい。この場合、例えば指導文抽出部19は、出力された指導文クラスタの例えば中心に位置する指導文ベクトルに対応する指導文を抽出するようにすればよい。なお、指導文抽出部19が、学習モデルを用いて得られた指導文クラスタからどの指導文ベクトルを抽出するか、については本発明では特に限定しない。
In the above description, the learning
(第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
本第2の実施の形態において、学習モデル生成部17Aが生成する学習モデルは、ある患者の患者ベクトルの入力に対して、その患者ベクトルと類似する患者ベクトルとあらかじめ対応づけられた指導文ベクトルが出力されるように学習処理が施されたモデルである。患者ベクトルとあらかじめ対応づけられた指導文ベクトルとは、ある患者ベクトルに対応する患者に対して過去に提供された指導文に対応する指導文ベクトルを意味する。
In the second embodiment, the learning model generated by the learning
学習モデル生成部17Aは、第1の実施の形態と同様に、複数の患者に対応する患者ベクトルと、それぞれの患者に対して過去に提供された指導文の指導文ベクトルと、を教師データとして、このような学習モデルを生成すればよい。患者ベクトル同士の類似の度合いについても、第1の実施の形態と同様に、コサイン類似度等の既知の手法により判断されればよい。このように生成された学習モデルは、学習モデルDB18Aに登録される。
As in the first embodiment, the learning
このように生成された学習モデルを用いて、以後の服薬指導支援装置10Aにおける処理が実行される。すなわち、指導文抽出部19が学習モデルを用いて新たな患者に提供する指導文を項目毎に抽出し、順位付け部110が項目毎の指導文の順位付けを行い、指導文表示部111が順位付けの通りに指導文を表示する。そして、選択受付部112が薬剤師の選択を受け付け、服薬指導文書データ生成部113が選択された指導文を含む服薬指導文書データを生成する。重み付け部114は薬剤師の選択に基づいて教師データに重み付けを行い、服薬指導支援サーバ20に重み付け情報または教師データを送信する。
Using the learning model generated in this way, the subsequent processing in the medication
以上説明したように、本発明の第2の実施の形態に係る服薬指導支援装置10Aでは、入力された患者ベクトルと類似する患者ベクトルにあらかじめ対応づけられた指導文ベクトルを出力するように学習処理が施された学習モデルが生成される。このため、服薬指導支援装置10Aによれば、過去に様々な患者に対して提供した服薬指導文書の蓄積を活かして、新たな患者に対して最適な指導文を含む服薬指導文書を作成するための支援を行うことができる。
As described above, in the
なお、上記説明した第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
(第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
上記説明した第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
本第3の実施の形態において、学習モデル生成部17Bが生成する学習モデルは、ある患者の患者ベクトルと、その患者に処方された薬剤に対応する全指導文の指導文ベクトルと、の入力に対して、指導文ベクトル毎の確信度を出力するように学習処理が施されたモデルである。なお、本明細書において、確信度とは、ある指導文が、ある患者に対して必要な情報を含む度合い(確からしさ)を示す値である。確信度についての詳細は後述する。このように生成された学習モデルは、学習モデルDB18Bに登録される。
In the third embodiment, the learning model generated by the learning
このような学習モデルを生成するために、本第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
このような教師データを用いて、学習モデル生成部17Bは、以下のような学習モデルを生成する。本第3の実施の形態において、学習モデル生成部17Bは、複数の予測モデルの集合としての学習モデルを生成する。図11は、第3の実施の形態における学習モデルの概念図である。
Using such teacher data, the
図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
図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
複数の予測モデルが出力する重要度は、患者データおよび指導文の一部の要素(患者データの項目または指導文の単語)のみを考慮して予測された重要度である。このため、複数の予測モデルが出力する重要度の平均値である確信度は、患者データおよび指導文の全要素を考慮して予測されており、ある指導文が、ある患者に対して必要な情報を含む度合い(確からしさ)を示す値となる。 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
ここで、指導文抽出部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
なお、所定の閾値としては、例えば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
なお、上記説明では、指導文の確信度の出力を得るために図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
重み付け部114Bは、薬剤師により選択された指導文と、その指導文に関連する薬剤に関する情報、患者データ、および重要度を教師データ内に複数回登録させることで、該当指導文の重み付けを実現する。つまり、重み付け部114Bは、新たに薬剤師に選択された指導文と、その指導文に対する薬剤に関する情報、患者データ、および重要度を取得する。そして、重み付け部114Bは、その指導文の重要度が「1」であった場合(その指導文が既に選択されていた場合)は、その指導文を再度教師データに追加する。これにより、同一の指導文およびその指導文に関連する薬剤に関する情報、患者データ、および重要度が教師データ内に重複して存在するようになる。従って、その教師データを用いて生成された学習モデルが、重複して存在する指導文の確信度を高く出力するような重み付けが可能となる。
The
追加する指導文の個数は、薬剤師によって選択された回数と同じにしてもよいし、選択された回数と比例させるようにしてもよい。追加する指導文の個数を選択された回数と比例させる場合、選択された回数を指導文毎に別途管理すればよい。また、緩やかな重み付けを実施する場合は、選択回数と指導文をと関連付けて管理しておき、選択回数の常用対数に比例させるようにしてもよい。すなわち、例えば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
重み付け部114Bにおいてこのようになされた重み付け後の教師データは、学習モデル生成部17Bに入力される。学習モデル生成部17Bは、重み付け後の教師データを用いて再学習を行い、学習モデルを更新して新たな学習モデルを学習モデルDB18Bに登録する。また、重み付け部114Bによって更新した教師データは服薬指導支援サーバ20に送信されてもよい。更新された教師データを受信した服薬指導支援サーバ20の動作に関しては、上記した第1の実施の形態と同様である。
The teacher data after the weighting performed in the
以上説明したように、本発明の第3の実施の形態に係る服薬指導支援装置10Bでは、ある患者の患者ベクトルと、その患者に処方された薬剤に対応する全指導文の指導文ベクトルと、の入力に対して、指導文ベクトル毎の確信度を出力するように学習処理が施されたモデルが生成される。そして、新たに患者ベクトルと、その患者に処方された薬剤の薬剤情報文書に含まれる全指導文の指導文ベクトルとが入力されると、新たな患者ベクトルと各指導文ベクトルとを学習モデルに入力し、その指導文ベクトルの確信度の出力を得る。これにより、患者に対して必要な情報を含む度合いが大きい指導文を抽出できるとともに、確信度に基づいて抽出した指導文の順位付けを行うことができる。
As described above, in the
(第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
以下、本第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
第4の実施の形態において、指導文抽出部19Bは、確信度が所定の閾値以上の指導文についてグループ番号を参照し、同じグループ番号の指導文が複数あった場合、最も確信度が大きい指導文のみを抽出し、他を破棄する。これにより、ほぼ同一内容で異なる表記の指導文が複数抽出されることを防止することができる。
In the fourth embodiment, the guidance
また、薬剤情報文書DB13には、薬剤師の有志によって提供されるような任意の文書も含まれるため、ベテラン薬剤師の作成した文書や、ベテラン薬剤師が選択した文書を、優先的に抽出したいというような場合がある。このように特定の文書を優先して抽出したい場合にも、第4の実施の形態を拡張することで対応が可能である。
In addition, since the drug
具体的には、教師データに「グループ番号」とともに、「優先度」を付与する。「優先度」とは、大きい値ほど優先度合いが高くなる値であり、ベテラン薬剤師が選択した等、その後優先的に抽出されるべき指導文に設定される値である。優先度の例としては、特定の薬剤師が選択した回数等、任意の値が設定されうる。それまで選択されたことがない指導文の優先度は、「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
なお、優先処理の具体例としては、優先度の大きさによって決まる値を確信度に対して加算する等の方法がある。具体例としては、優先度×固定値(例えば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
教師データにおいて、同一内容の指導文にグループ番号を付与するためには、教師データとして用いられる指導文の中から同一内容の指導文を抽出する必要がある。同一内容の指導文の抽出方法としては、例えば以下のような方法がある。すなわち、あらかじめ全ての指導文の指導文ベクトルを算出しておき、特定の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 = −
このような重み付けにより、同一内容の指導文とそうでない指導文とで、重み付けに差を付けられるため、例えば類似する指導文が同時に抽出されにくくしたり、反対に類似する指導文が同時に抽出されやすくしたりすることができる。また、抽出結果の指導文を表示画面に表示する際に、同一内容の指導文を強調して表示したり、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
第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
以下の説明において、薬剤情報文書データ取得部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
一方、患者データ取得部14Cは、患者データに加えて、例えば問診やお薬手帳等から、患者が使用する併用薬剤の名称を取得する。以下の説明において、患者が使用する併用薬剤の名称を、「使用併用薬剤名」と記載する。
On the other hand, the patient
ベクトル生成部16Cには、患者データ取得部14Cから患者データと使用併用薬剤名とが入力される。また、ベクトル生成部16Cには、薬剤情報文書データ取得部12Cから全指導文と、注意併用薬剤名と、注意指導文とが入力される。これにより、ベクトル生成部16Cは、患者ベクトルと、使用併用薬剤名ベクトルと、全指導文の指導文ベクトルと、注意併用薬剤名ベクトルとを生成する。本第5の実施の形態では、これらのベクトル変換には、それぞれの単語ベクトルを生成する方法(word2vec等)が用いられる。
The patient data and the name of the concomitant drug used are input to the
この際、ベクトル生成部16Cは、医療用語辞書を学習させたモデルを使用してベクトル変換を行うことにより、薬剤の名称だけではなく、薬剤名を構成する各単語の意味を含む使用併用薬剤名ベクトルと、注意併用薬剤名ベクトルとを生成する。
At this time, the
ベクトル生成部16Cが生成した各ベクトルのうち、患者ベクトルおよび全指導文の指導文ベクトルは、上記第3の実施の形態と同様に、学習モデル生成部17Bおよび指導文抽出部19Bに入力される。
Among the vectors generated by the
一方、使用併用薬剤名ベクトルおよび注意併用薬剤名ベクトルは、第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
第2指導文抽出部117は、第2学習モデルに使用併用薬剤名ベクトルを入力して類似度が大きい注意併用薬剤名ベクトルの出力を得、出力された注意併用薬剤名ベクトルの注意併用薬剤名に関連づけられた注意指導文を抽出する。
The second instruction
指導文表示部111Cは、指導文抽出部19Bが抽出した指導文と、第2指導文抽出部117が抽出した指導文とを表示する。以後の処理については上記説明した各実施の形態の服薬指導支援装置と同様である。
The guidance
以上説明したように、第5の実施の形態に係る服薬指導支援装置10Cでは、患者が使用する使用併用薬剤名に基づく使用併用薬剤名ベクトルと、主薬剤の指導文の中からあらかじめ抽出された、注意が必要な注意併用薬剤名に基づく注意併用薬剤名ベクトルと、に基づいて、入力された使用併用薬剤名ベクトルと類似度が大きい注意併用薬剤名ベクトルを出力するように学習された第2学習モデルを生成し、この第2学習モデルを用いて、主薬剤の指導文の中から、患者が使用する使用併用薬剤に関する注意事項を含む指導文を抽出する。この際、薬剤名のベクトル変換では単語の意味を考慮したベクトル変換が行われているため、表記揺れにより、主薬剤の指導文の中から、使用併用薬剤に関する指導文が抽出できない事態を回避することができる。
As described above, in the medication-taking
なお、第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
(第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
上記説明した各実施の形態では、処方箋データに含まれる薬剤に関する情報に基づいて、薬剤毎に患者にとって重要な指導文を抽出する形態について説明した。本第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
教師データDB118には、過去の処方箋データに対して指導文抽出部19Bが抽出した指導文に基づく教師データがあらかじめ格納されている。本第6の実施の形態における教師データを、以下では処方箋教師データと称する。処方箋教師データは、例えば以下のようにして生成される。
The
図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
図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
図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
このような収集データに基づいて、処方箋教師データが生成される。図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個の指導文が抽出されている場合、9C2=36個の組み合わせに対応する36個の処方箋教師データが生成される。ただし、予測モデルの出力する優劣ラベルの精度を確保するためには、2つの指導文のデータ内での順序を区別する必要があり、9P2=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
第3学習モデル生成部119は、教師データDB118に格納された処方箋教師データを用いて学習モデルを生成する。第3学習モデル生成部119が生成する学習モデルは、新たな処方箋データが入力された際に、新たな処方箋に記載された複数の薬剤に対応する複数の指導文の中から、患者にとって重要な指導文を出力するように学習処理が施されたモデルである。
The third learning
第3学習モデル生成部119による学習モデルの生成は、学習モデル生成部17Bによる学習モデルの生成と同様、例えば薬局Pにおける服薬指導支援装置10Dの稼働前に行われていることが望ましい。しかしながら、薬局Pにおいて服薬指導支援装置10Dが稼働した状態で、新たな処方箋データに対する抽出部出力データおよび薬剤師順位データが新たに生成された場合、これを新たな処方箋教師データとして用いて、随時第3学習モデルDB121の学習モデルを更新し続ける(任意のタイミングで追加学習、もしくは再学習する)ような形態を採用してもよい。
The generation of the learning model by the third learning
第3指導文抽出部120は、このように生成された学習モデルを用いて、患者に提供すべき指導文を抽出する。具体的には、第3指導文抽出部120は、新たに入力された処方箋データに基づき、当該処方箋データに対して抽出された指導文を取得する。そして、第3指導文抽出部120は、学習モデルを用いて、取得した指導文における、全ての2つの指導文の組み合わせでの指導文の優劣を判定し、上位所定数の指導文を抽出する。
The third instruction
このような構成により、第6の実施の形態に係る服薬指導支援装置10Dは、薬剤毎にではなく、処方箋毎に、患者にとって重要な指導文を抽出することができる。これにより、処方箋にて処方されている薬剤同士の相互関係を考慮した指導文を患者に提供することができる。また、薬剤師によって選択されなかった指導文についても、処方箋教師データにおいて除外せず、優劣ラベル「0」を持つ要素として扱っているため、より実態に即した指導文の選択を行うことができる。
With such a configuration, the medication
このような構成により、例えば以下のような効果が得られる。薬剤によっては、他の薬剤と併用してはならないもの(併用禁忌)や、他の薬剤との併用によって相互作用が生じるものがある。処方箋に記載された薬剤にこのような併用禁忌や相互作用がある場合、薬剤毎に指導文抽出を行った場合、併用禁忌や相互作用に関する指導文が抽出されないことがある。しかしながら、同様の組み合わせの薬剤が記載された過去の処方箋に対して、薬剤師が併用禁忌や相互作用を考慮した指導文の選択(順位付け)を行っている可能性が高い。このことから、第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
(第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
本変形例では、生成した学習モデルを利用した優劣ラベル予測時の演算量を低減するため、あらかじめ所定数の指導文間における優劣を判定することができる学習モデルを生成する例について説明する。 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
図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
(第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
本第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
指導文表示部111は、順位付け部110が行った順位付けに従って項目毎に上位所定数の指導文を表示する指導文表示欄201に加えて、指導文毎に薬剤師による選択を受け付けるチェック欄202を表示させる。また、指導文表示部111は、表示画面200内に、指導文を表示させるための表示要素(ボタン等)を表示する。図18は、チェック欄202および指導文を表示させるためのボタン210の表示例を示す図である。薬剤師が入力装置106を介してボタン210を選択すると、現在指導文表示欄201に表示されている指導文より少し下位の指導文が指導文表示欄201に表示される。
The guidance
薬剤師は、今の患者に対しては選択はしないが、患者によっては重要であるため順位を下げたくないと考える指導文に対して、入力装置106を介してチェック欄202をチェックすることができる。薬剤師によりチェックがなされると、チェックされた指導文に対しては、順位が下がらないような処理がなされる。具体的には、例えば重み付け部114が、薬剤師がチェックした指導文に対して1倍以上の重み付けをすればよい。
The pharmacist can check the
また、薬剤師は、現在指導文表示欄201に表示されている指導文より下位の指導文に対してチェック付けを行いたい場合には、ボタン210を押下する。これにより、現在より少し下位の指導文が指導文表示欄201に表示され、薬剤師がチェック付けを行うことができるようになる。
The pharmacist presses the
なお、薬剤師によってはチェック付けを行わない、あるいはチェック付けできることを薬剤師が知らない場合がある。これに対処するため、表示画面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
また、薬剤師が順位を下げたくないと考える指導文に対してチェックするのではなく、薬剤師が複数の指導文の順位を直接編集できるようにしてもよい。 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
14, 14C Patient
16, 16B, 16C
19, 19B Instruction
117 Second instruction
119 third learning
200
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学習モデルを用いて、前記併用薬剤名ベクトルの入力に対して出力された前記注意併用薬剤名ベクトルに対応する前記注意併用薬剤名とあらかじめ関連づけられた注意事項を表す文字列を、前記主薬剤の前記文字列から注意併用薬指導文として抽出する、
請求項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学習モデルを用いて、新たな処方箋に記載された薬剤に対応する文字列から上位所定数の文字列を抽出する、
請求項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.
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)
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)
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 |
-
2019
- 2019-02-05 JP JP2019018750A patent/JP7260315B2/en active Active
Patent Citations (3)
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)
Title |
---|
神崎 洋治 YOUJI KOUZAKI, 最新 人工知能がよ〜くわかる本 ARTIFICIAL INTELLIGENCE, vol. 第1版, JPN6022043438, 7 July 2016 (2016-07-07), pages 137 - 141, ISSN: 0004970179 * |
Cited By (7)
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 |