JP7162232B1 - Heart rate classification device and bather monitoring system - Google Patents

Heart rate classification device and bather monitoring system Download PDF

Info

Publication number
JP7162232B1
JP7162232B1 JP2022125488A JP2022125488A JP7162232B1 JP 7162232 B1 JP7162232 B1 JP 7162232B1 JP 2022125488 A JP2022125488 A JP 2022125488A JP 2022125488 A JP2022125488 A JP 2022125488A JP 7162232 B1 JP7162232 B1 JP 7162232B1
Authority
JP
Japan
Prior art keywords
data
signal
electrocardiographic
classification
treatment
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.)
Active
Application number
JP2022125488A
Other languages
Japanese (ja)
Other versions
JP2024022122A (en
Inventor
ムディヤンセラゲ イスル ニロシャナ セネヴィラッナ
文西 陳
聡 黒田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Aizu
Information System Engineering Inc
Original Assignee
University of Aizu
Information System Engineering Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Aizu, Information System Engineering Inc filed Critical University of Aizu
Priority to JP2022125488A priority Critical patent/JP7162232B1/en
Application granted granted Critical
Publication of JP7162232B1 publication Critical patent/JP7162232B1/en
Publication of JP2024022122A publication Critical patent/JP2024022122A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

【課題】心拍の間隔の変化に対応した心電ビート信号の分離ができる心拍分類装置及び入浴者見守りシステムを提供する。【解決手段】心拍分類装置は、心電信号に基づいて、心電信号の各心拍の分類を示す所属分類を推定する心拍分類装置において、前記心電信号から前記心電信号の一部を含む部分信号を抽出する抽出手段と、前記抽出手段により抽出された部分信号が心電信号のピークを含む参照用部分信号である確率を算出する確率算出手段と、前記確率算出手段により算出された確率が閾値以上となる部分信号に基づいて、1周期分の心電信号を示す心電ビート信号を分離する分離手段と、前記分離手段により分離された心電ビート信号に基づいて、前記所属分類を推定する所属分類推定手段とを備えることを特徴とする。【選択図】図1Kind Code: A1 A heart rate classification device and a bathing person monitoring system capable of separating electrocardiographic beat signals corresponding to changes in heart rate intervals are provided. Kind Code: A1 A heartbeat classifying apparatus for estimating, based on an electrocardiographic signal, a belonging classification indicating a classification of each heartbeat of the electrocardiographic signal, wherein a part of the electrocardiographic signal is included from the electrocardiographic signal. extraction means for extracting a partial signal; probability calculation means for calculating a probability that the partial signal extracted by the extraction means is a reference partial signal containing a peak of an electrocardiographic signal; and probability calculated by the probability calculation means. separating means for separating an electrocardiographic beat signal representing one cycle of the electrocardiographic signal based on the partial signal having a threshold value or more; and an affiliation classification estimation means for estimation. [Selection drawing] Fig. 1

Description

本発明は、心拍分類装置及び入浴者見守りシステムに関する。 The present invention relates to a heart rate classification device and a bather monitoring system.

従来、ユーザの心拍を分類する技術が注目されている。また、これに伴い、ユーザの心拍を分類するためのユーザの心拍の1周期分の心電信号を示す心電ビート信号を分離する技術が必要とされている。心電ビート信号を分離する技術として、例えば特許文献1のような技術が提案されている。 Conventionally, a technique for classifying a user's heartbeat has attracted attention. Along with this, there is a need for a technique for separating an electrocardiographic beat signal representing an electrocardiographic signal for one cycle of the user's heartbeat for classifying the user's heartbeat. As a technique for separating an electrocardiogram beat signal, a technique such as that disclosed in Patent Document 1 has been proposed.

特許文献1では、ユーザが選択した固定サイズの抽出ウィンドウにより抽出された部分信号に基づいて、心電ビート信号を分離する技術が開示されている。 Japanese Patent Application Laid-Open No. 2004-200000 discloses a technique for separating an electrocardiographic beat signal based on partial signals extracted by a user-selected fixed-size extraction window.

国際公開第2011/094105号WO2011/094105

しかしながら心電信号等の非決定論的信号の場合、心拍の間隔が常に変化するため、心電信号から最適な心電ビート信号を分離するには、心拍の間隔の変化に対応した心電ビート信号の分離が必要とされている。しかしながら、特許文献1に開示されている心電ビート信号を分離する技術では、ユーザが選択した固定サイズの抽出ウィンドウにより抽出された部分信号に基づいて、心電ビート信号を分離する。このため、心拍の間隔の変化に対応した心電ビート信号の分離ができないという問題点があった。 However, in the case of non-deterministic signals such as electrocardiographic signals, the intervals between heartbeats change all the time. separation is required. However, in the technique for separating the electrocardiographic beat signal disclosed in Patent Document 1, the electrocardiographic beat signal is separated based on the partial signals extracted by the fixed-size extraction window selected by the user. Therefore, there is a problem that an electrocardiographic beat signal cannot be separated corresponding to changes in heartbeat intervals.

そこで本発明は、上述した問題点に鑑みて案出されたものであり、その目的とするところは、心拍の間隔の変化に対応した心電ビート信号の分離ができる心拍分類装置及び入浴者見守りシステムを提供することにある。 SUMMARY OF THE INVENTION Accordingly, the present invention has been devised in view of the above-described problems, and its object is to provide a heartbeat classification apparatus and a bathing person monitoring apparatus capable of separating electrocardiographic beat signals corresponding to changes in heartbeat intervals. It is to provide a system.

第1発明に係る心拍分類装置は、心電信号に基づいて、心電信号の各心拍の分類を示す所属分類を推定する心拍分類装置において、前記心電信号から前記心電信号の一部を含む部分信号を抽出する抽出手段と、前記抽出手段により抽出された部分信号と心電信号のピークを含む参照用部分信号との確率を算出する確率算出手段と、前記確率算出手段により算出された確率が閾値以上となる部分信号に基づいて、1周期分の心電信号を示す心電ビート信号を分離する分離手段と、前記分離手段により分離された心電ビート信号に基づいて、前記所属分類を推定する所属分類推定手段とを備えることを特徴とする。 A heartbeat classification device according to a first aspect of the invention is a heartbeat classification device for estimating, based on an electrocardiographic signal, a classification indicating a classification of each heartbeat of the electrocardiographic signal, wherein a part of the electrocardiographic signal is extracted from the electrocardiographic signal. extraction means for extracting a partial signal containing the peak of the electrocardiographic signal; probability calculation means for calculating the probability between the partial signal extracted by the extraction means and the reference partial signal containing the peak of the electrocardiographic signal; Separating means for separating an electrocardiographic beat signal representing one cycle of the electrocardiographic signal based on the partial signal whose probability is equal to or greater than a threshold; and an affiliation classification estimation means for estimating the

第2発明に係る心拍分類装置は、第1発明において、前記参照用部分信号に基づく入力データ、及び前記入力データに紐づく確率を一対の確率学習用データとして、複数の前記確率学習用データを用いて機械学習により生成された確率モデルを参照し、前記抽出手段により抽出された部分信号に基づく確率を算出することを特徴とする。 A heart rate classification apparatus according to a second aspect of the invention is the first aspect of the invention, wherein the input data based on the reference partial signal and the probability associated with the input data are used as a pair of probability learning data, and a plurality of the probability learning data are used. and calculating the probability based on the partial signal extracted by the extraction means by referring to the probability model generated by machine learning using the extraction means.

第3発明に係る心拍分類装置は、第1発明において、前記抽出手段は、心拍に関する心拍情報に基づいて、前記部分信号を抽出することを特徴とする。 A heartbeat classification apparatus according to a third invention is characterized in that, in the first invention, the extracting means extracts the partial signals based on heartbeat information about heartbeats.

第4発明に係る心拍分類装置は、第1発明において、前記抽出手段は、前記分離手段により分離された心電ビート信号に基づいて、新たに部分信号を抽出することを特徴とする。 A heart rate classification apparatus according to a fourth invention is characterized in that, in the first invention, the extracting means newly extracts partial signals based on the electrocardiographic beat signal separated by the separating means.

第5発明に係る心拍分類装置は、第1発明において、前記分離手段は、前記心電信号における複数のピーク間の距離に基づいて、前記心電ビート信号の1周期分の長さを算出することを特徴とする。 A heartbeat classification apparatus according to a fifth aspect of the invention is the first aspect, wherein the separating means calculates the length of one cycle of the electrocardiographic beat signal based on distances between a plurality of peaks in the electrocardiographic signal. It is characterized by

第6発明に係る心拍分類装置は、第1発明~第5発明の何れかにおいて、前記所属分類推定手段は、前記分離手段により分離された心電ビート信号をスカログラム画像に変換し、予め取得された学習用スカログラム画像に基づく入力データ、及び前記入力データに紐づく所属分類を一対の学習用データとして、複数の前記学習用データを用いて生成されたニューラルネットワークモデルを参照し、変換した前記スカログラム画像を入力として、所属分類を推定することを特徴とする。 A heart beat classification apparatus according to a sixth invention is the heart beat classification apparatus according to any one of the first invention to the fifth invention, wherein the belonging classification estimating means converts the electrocardiographic beat signal separated by the separating means into a scalogram image, which is obtained in advance. Input data based on the training scalogram image and the affiliation classification linked to the input data as a pair of learning data, referring to a neural network model generated using a plurality of the learning data, and converting the scalogram It is characterized by estimating a classification belonging to an image as an input.

第7発明に係る入浴者見守りシステムは、浴室内に設けられる温度、湿度、照度、響度、香り又は気圧のうちの何れか1以上を示す環境データを計測する浴室環境センサと、前記浴室に入浴する入浴者の健康データを取得する入浴者情報取得手段と、第6発明に記載された心拍分類装置により推定された1又は複数の所属分類と、前記浴室環境センサにより計測された環境データ及び前記入浴者情報取得手段により取得された健康データを組み合わせた入浴情報とに基づいて、予め取得された所属分類と入浴情報とに対する入浴者の状態を示す状態データを記録した状態データベースを参照し、前記入浴者の状態データを判定する状態判定手段と、予め取得された状態データと状態データに対する処置の方法を示す処置データとを1対の判断用学習データとし、複数の判断用学習データが記録された処置情報データベースを参照し、前記状態判定手段によって判定された状態データに対する処置データを判断する処置判断手段と、を備えることを特徴とする。 A bathing person monitoring system according to a seventh aspect of the present invention comprises a bathroom environment sensor that measures environmental data indicating any one or more of temperature, humidity, illuminance, reverberation, scent, and air pressure provided in a bathroom; bather information acquisition means for acquiring health data of a bather, one or more affiliation classifications estimated by the heart rate classification apparatus according to the sixth invention, environmental data measured by the bathroom environment sensor and the Based on bathing information obtained by combining health data obtained by the bathing person information obtaining means, referring to a state database recording state data indicating the state of the bathing person with respect to previously obtained belonging classification and bathing information, A state determining means for determining state data of a bather and treatment data indicating a method of treatment for state data obtained in advance and state data are used as a pair of learning data for determination, and a plurality of learning data for determination are recorded. and action determination means for determining action data corresponding to the state data determined by the state determination means by referring to the action information database.

第8発明に係る入浴者見守りシステムは、第7発明において、前記処置判断手段により判断された処置データを外部機器に送信する送信手段と、前記処置判断手段により判断された処置データを入浴者に提示する提示手段と、をさらに備えることを特徴とする。 A bathing person monitoring system according to an eighth aspect of the invention is characterized in that, in the seventh aspect of the invention, transmission means for transmitting treatment data determined by the treatment determination means to an external device, and transmitting the treatment data determined by the treatment determination means to the bather. presenting means for presenting;

第9発明に係る入浴者見守りシステムは、第7発明において、前記処置判断手段により判断された処置データに基づき、前記浴室に設けられた浴槽を排水する排水手段をさらに備えることを特徴とする。 A bathing person watching system according to a ninth aspect of the invention is characterized in that, in the seventh aspect of the invention, it further comprises drainage means for draining a bathtub provided in the bathroom based on the treatment data determined by the treatment determination means.

第10発明に係る入浴者見守りシステムは、第7発明において、前記処置判断手段により判断された処置データに対する処置結果を示す結果データを取得する処置結果取得手段と、前記処置結果取得手段により取得された結果データに応じて、前記状態判定手段によって判定された状態データと、前記処置判断手段により判断された処置データとを1対の判断用学習データとし、新たに前記処置情報データベースに記録する記録手段とを備えることを特徴とする。 A bathing person watching system according to a tenth invention is, in the seventh invention, a treatment result acquisition means for acquiring result data indicating a treatment result for the treatment data determined by the treatment determination means; The state data determined by the state determination means and the treatment data determined by the treatment determination means according to the result data obtained are used as a pair of learning data for determination, and are newly recorded in the treatment information database. and means.

第1発明~第10発明によれば、分離手段は、確率が閾値以上となる部分信号に基づいて、1周期分の心電信号を示す心電ビート信号を分離する。このため、心電信号のピークを含む参照用部分信号との確率が高い部分信号に基づいて心電ビート信号を分離することができる。これにより、心拍の間隔の変化に対応した心電ビート信号の分離が可能となる。 According to the first to tenth inventions, the separating means separates the electrocardiographic beat signal representing one cycle of the electrocardiographic signal based on the partial signal whose probability is equal to or higher than the threshold. Therefore, the electrocardiographic beat signal can be separated based on the partial signal that has a high probability of being the reference partial signal containing the peak of the electrocardiographic signal. As a result, it is possible to separate electrocardiographic beat signals corresponding to changes in heartbeat intervals.

特に、第2発明によれば、確率算出手段は、確率モデルを参照し、部分信号に基づく確率を算出する。このため、より高精度に確率を算出することが可能となる。 In particular, according to the second invention, the probability calculation means refers to the probability model and calculates the probability based on the partial signal. Therefore, it is possible to calculate the probability with higher accuracy.

特に、第3発明によれば、心拍に関する心拍情報に基づいて、部分信号を抽出する。これにより、例えばユーザの心拍数に基づいて、ユーザ毎に適したウィンドウの幅を有する部分信号を抽出することが可能となる。これにより、精度の良い心電ビート信号の分離が可能となる。 In particular, according to the third invention, the partial signal is extracted based on the heartbeat information regarding the heartbeat. This makes it possible to extract a partial signal having a window width suitable for each user, for example, based on the user's heart rate. As a result, it is possible to separate electrocardiographic beat signals with high accuracy.

特に、第4発明によれば、抽出手段は、心電ビート信号に基づいて、新たに部分信号を抽出する。これにより、ユーザの心拍の変化に伴い、適切な位置の部分信号を抽出することが可能となるため、より高速かつ効率的に心電ビート信号を分離することができ、かつ同一のピークを含む部分信号の抽出を防ぐことが可能となる。 In particular, according to the fourth invention, the extraction means newly extracts the partial signal based on the electrocardiographic beat signal. As a result, it is possible to extract partial signals at appropriate positions as the user's heartbeat changes. It is possible to prevent the extraction of partial signals.

特に、第5発明によれば、分離手段は、複数のピーク間の距離に基づいて、心電ビート信号の1周期分の長さを算出する。これにより、例えば心拍の間隔が変化した場合においても、適切な周期の心電ビート信号の分離が可能となる。 In particular, according to the fifth invention, the separating means calculates the length of one cycle of the electrocardiographic beat signal based on the distances between the peaks. This makes it possible to separate electrocardiographic beat signals with an appropriate period even if, for example, the interval between heartbeats changes.

特に、第6発明によれば、所属分類推定手段は、ニューラルネットワークモデルを参照し、変換したスカログラム画像を入力として、所属分類を推定する。このため、スカログラム画像を入力データとして使用することにより、CNNモデルのサイズを縮小することができ、低コスト且つ高速で心拍分類が可能となる。 In particular, according to the sixth invention, the belonging class estimating means refers to the neural network model, receives the converted scalogram image as an input, and estimates the belonging class. Therefore, by using scalogram images as input data, the size of the CNN model can be reduced, and heart rate classification can be performed at low cost and at high speed.

第7発明~第10発明によれば、所属分類と入浴情報とに基づいて、状態データベースを参照し、入浴者の状態データを判定する。これにより、入浴者の状態を高精度に判定することが可能となる。また、処置判断手段は、状態判定手段によって判定された状態データに対する処置データを判断する。これにより、入浴者に対する適切な処置を高精度に判断することができる。 According to the seventh to tenth inventions, the state data of the bather is determined by referring to the state database based on the belonging classification and the bathing information. This makes it possible to determine the state of the bather with high accuracy. Further, the treatment determination means determines treatment data for the status data determined by the status determination means. This makes it possible to determine with high accuracy the appropriate treatment for the bather.

特に、第8発明によれば、処置データを外部機器に送信し、処置データを入浴者に提示する。これにより、入浴者及び外部端末を所有する入浴者の家族又は介護者に適切な処置方法を提示することが可能となる。 In particular, according to the eighth invention, the treatment data is transmitted to the external device and the treatment data is presented to the bather. This makes it possible to present an appropriate treatment method to the bather and the bather's family or caregiver who owns the external terminal.

特に、第9発明によれば、排水手段は、処置データに基づき、浴室に設けられた浴槽を排水する。これにより、入浴者の状態に応じて、自動的に排水を行うことが可能となる。 In particular, according to the ninth invention, the drainage means drains water from the bathtub provided in the bathroom based on the treatment data. As a result, it is possible to automatically drain the water according to the state of the bather.

特に、第10発明によれば、記録手段は、結果データに応じて、状態データと処置データとを1対の判断用学習データとし、新たに処置情報データベースに記録する。これにより、結果に応じて、適切な学習データをフィードバックすることが可能となる。 In particular, according to the tenth invention, the recording means makes the state data and the treatment data a pair of learning data for judgment according to the result data, and newly records them in the treatment information database. Thereby, appropriate learning data can be fed back according to the result.

図1は、本実施形態における入浴者見守りシステムの一例を示す模式図である。FIG. 1 is a schematic diagram showing an example of a bathing person watching system according to the present embodiment. 図2は、本実施形態における浴槽の一例を示す模式図である。FIG. 2 is a schematic diagram showing an example of a bathtub in this embodiment. 図3(a)は、本実施形態における心拍分類装置の構成の一例を示す模式図である。図3(b)は、本実施形態における心拍分類装置の機能の一例を示す模式図である。FIG. 3A is a schematic diagram showing an example of the configuration of the heartbeat classification device according to this embodiment. FIG. 3(b) is a schematic diagram showing an example of the function of the heart rate classification device according to this embodiment. 図4は、本実施形態における心拍分類装置の動作の一例を示すフローチャートである。FIG. 4 is a flow chart showing an example of the operation of the heartbeat classification device according to this embodiment. 図5(a)は、心電信号の一例を示す模式図である。図5(b)は、心電ビート信号の三例を示す模式図である。図5(c)は、(b)に対応するスカログラム画像の三例を示す模式図である。FIG. 5(a) is a schematic diagram showing an example of an electrocardiographic signal. FIG. 5B is a schematic diagram showing three examples of electrocardiographic beat signals. FIG. 5(c) is a schematic diagram showing three examples of scalogram images corresponding to (b). 図6は、所属分類の七例を示す模式図である。図6は、左側は心電信号を示し、右側はそれぞれの対応するスカログラム画像を示す。FIG. 6 is a schematic diagram showing seven examples of belonging classifications. FIG. 6 shows the electrocardiographic signals on the left and the corresponding scalogram images on the right. 図7は、心電ビート信号の分類に用いるニューラルネットワークモデルの一例を示す模式図である。FIG. 7 is a schematic diagram showing an example of a neural network model used for classification of electrocardiographic beat signals. 図8は、心電信号から心電ビート信号を抽出する動作の一例を示すフローチャートである。FIG. 8 is a flowchart showing an example of an operation for extracting an electrocardiographic beat signal from an electrocardiographic signal. 図9は、心電信号から部分信号を抽出し、心電ビート信号の境界を決定するためのウィンドウ移動の適応プロセスを示す模式図である。FIG. 9 is a schematic diagram illustrating the adaptive process of window movement for extracting partial signals from an electrocardiographic signal and determining the boundaries of the electrocardiographic beat signal. 図10は、ウィンドウのパラメータの計算の一例を示すフローチャートである。FIG. 10 is a flow chart illustrating an example of window parameter calculation. 図11は、確率モデルの学習データである参照用部分信号を生成するための心電信号のトリプレットの一例を示す模式図である。FIG. 11 is a schematic diagram showing an example of an electrocardiographic signal triplet for generating a reference partial signal, which is learning data for a stochastic model. ECGトリプレットセグメントおよびクリティカルcpl、cpm、cprを用いて、1の確率が割り当てられる12個の参照用部分信号を生成する方法を示す模式図である。FIG. 4 is a schematic diagram showing how an ECG triplet segment and critical cpl, cpm, cpr are used to generate 12 reference sub-signals that are assigned a probability of 1; 図13は、ECGトリプレットセグメントおよびクリティカルcpl、cpm、cprを用いて、0の確率が割り当てられる12個の参照用部分信号を生成する方法を示す模式図である。FIG. 13 is a schematic diagram showing how an ECG triplet segment and critical cpl, cpm, cpr are used to generate 12 reference sub-signals that are assigned a probability of 0; 図14は、確率評価モデルの一例を示す模式図である。FIG. 14 is a schematic diagram showing an example of a probability evaluation model. 図15は、本実施形態における入浴者見守りシステムの動作の一例を示すフローチャートである。FIG. 15 is a flow chart showing an example of the operation of the bathing person watching system according to this embodiment.

以下、本発明の実施形態における入浴者見守りシステムの一例について、図面を参照しながら説明する。 An example of a bathing person watching system according to an embodiment of the present invention will be described below with reference to the drawings.

図1は、本実施形態における入浴者見守りシステム100の一例を示す模式図である。 FIG. 1 is a schematic diagram showing an example of a bather monitoring system 100 according to this embodiment.

入浴者見守りシステム100は、入浴者の状態を管理するために用いられる。 The bather watching system 100 is used to manage the condition of the bather.

入浴者見守りシステム100は、例えば図1に示すように、通信網4を介して接続される心拍分類装置1と、端末2と、サーバ3と浴室5とを備える。 The bather monitoring system 100 includes, for example, a heart rate classification device 1 connected via a communication network 4, a terminal 2, a server 3, and a bathroom 5, as shown in FIG.

端末2は、例えば入浴者見守りシステム100により状態を管理される入浴者の家族、又は介護者等が保有し、通信網4を介して心拍分類装置1と接続される。端末2は、例えばパーソナルコンピュータや、タブレット端末等の電子機器が用いられる。端末2は、例えば心拍分類装置1の備える機能のうち、少なくとも一部の機能を備えてもよい。 The terminal 2 is owned by, for example, a bather's family or caregiver whose condition is managed by the bather monitoring system 100 , and is connected to the heart rate classification device 1 via the communication network 4 . As the terminal 2, for example, an electronic device such as a personal computer or a tablet terminal is used. The terminal 2 may have at least part of the functions of the heart rate classification device 1, for example.

サーバ3は、通信網4を介して心拍分類装置1等に接続される。サーバ3は、過去の各種データ等が記憶され、必要に応じて心拍分類装置1及び浴室5から各種データが送信される。サーバ3は、例えば心拍分類装置1の備える機能のうち、少なくとも一部の機能を備えてもよく、例えば心拍分類装置1の代わりに少なくとも一部の処理を行ってもよい。 The server 3 is connected to the heartbeat classification device 1 and the like via a communication network 4 . The server 3 stores various past data and the like, and various data are transmitted from the heart rate classification device 1 and the bathroom 5 as necessary. The server 3 may have, for example, at least part of the functions of the heartbeat classification device 1, and may perform at least part of the processing instead of the heartbeat classification device 1, for example.

通信網4は、例えば心拍分類装置1が通信回路を介して接続されるインターネット網等である。通信網4は、いわゆる光ファイバ通信網で構成されてもよい。また、通信網4は、有線通信網のほか、無線通信網等の公知の通信技術で実現してもよい。また、通信網4は、LAN(Local Area Network)であってもよい。 The communication network 4 is, for example, an Internet network or the like to which the heart rate classification device 1 is connected via a communication circuit. The communication network 4 may be composed of a so-called optical fiber communication network. Moreover, the communication network 4 may be realized by a known communication technology such as a wireless communication network in addition to the wired communication network. Also, the communication network 4 may be a LAN (Local Area Network).

浴室5は、入浴者が入浴するための閉空間である。浴室5は、図2に示すように、浴室5内に設置された浴槽51と、浴室5内に設けられたセンサ53と、モニタ54と、換気扇56と、浴槽51に設けられた排水装置52と、電極55とを備える。また、浴室5は、2個又は2個以上の電極55が備えられてもよい。また、浴室5は、図示しない空調機、照明器具、音響機器、香り発生器等を備えてもよい。また、センサ53と、換気扇56と、排水装置52と、モニタ54と、電極55とは、通信網4を介して心拍分類装置1に接続される。 The bathroom 5 is a closed space for a bather to take a bath. The bathroom 5, as shown in FIG. and an electrode 55 . Also, the bathroom 5 may be provided with two or more electrodes 55 . Moreover, the bathroom 5 may be equipped with an air conditioner, lighting equipment, audio equipment, fragrance generator, etc., which are not shown. Sensor 53 , ventilation fan 56 , drainage device 52 , monitor 54 and electrodes 55 are also connected to heart rate classification device 1 via communication network 4 .

排水装置52は、心拍分類装置1の指令により、浴槽51内を排水するための装置である。排水装置52は、例えば後付けが可能な任意の排水機能を有する装置であるが、この限りではなく、任意の装置を用いてもよい。排水装置52は、例えば心拍分類装置1の指令により、バネ等を用いて浴槽51の水栓を開栓することにより浴槽51内を排水する装置であってもよい。 The drainage device 52 is a device for draining the inside of the bathtub 51 according to a command from the heart rate classification device 1 . The drainage device 52 is, for example, a device having an arbitrary drainage function that can be retrofitted, but is not limited to this, and any device may be used. The drainage device 52 may be, for example, a device that drains the inside of the bathtub 51 by opening the faucet of the bathtub 51 using a spring or the like according to a command from the heart rate classification device 1 .

センサ53は、浴室5内の温度、湿度、気圧、照度、響度(音楽等)、又は香りのうちの何れか1以上を示す環境データを計測するセンサであり、温度センサ、湿度センサ、気圧センサ等の各種センサが用いられる。センサ53は、通信網4を介して各種機器に環境データを送信する。 The sensor 53 is a sensor that measures environmental data indicating any one or more of temperature, humidity, atmospheric pressure, illuminance, reverberation (music, etc.), and fragrance in the bathroom 5, and is a temperature sensor, a humidity sensor, and an atmospheric pressure sensor. etc. are used. The sensor 53 transmits environmental data to various devices via the communication network 4 .

モニタ54は、心拍分類装置1の指令に応じて、入浴者に対する処置の方法を示す処置データを提示するためのモニタである。 The monitor 54 is a monitor for presenting treatment data indicating a treatment method for the bather in accordance with a command from the heart rate classification device 1 .

電極55は、入浴者の心電信号を測定するための電極である。電極55は、例えば入浴者の手足や胸部等に近い複数の箇所の電位差を測定することにより、入浴者の心電信号を測定する。電極55は、複数があり、浴槽51に埋め込まれてもよい。また、電極55は、浴槽51の壁に取り付けられてもよい。なお、入浴者は電極55に接触することなく心電波形を測定できる。 The electrodes 55 are electrodes for measuring the bather's electrocardiographic signal. The electrodes 55 measure electrocardiographic signals of the bather by measuring potential differences at a plurality of locations near the limbs, chest, etc. of the bather. A plurality of electrodes 55 may be embedded in the bathtub 51 . Alternatively, the electrodes 55 may be attached to the wall of the bathtub 51 . The bather can measure the electrocardiographic waveform without touching the electrodes 55 .

心拍分類装置1として、例えばラップトップ(ノート)PC又はデスクトップPC等の電子機器が用いられる。心拍分類装置1は、例えば図3(a)に示すように、筐体10と、CPU(Central Processing Unit)101と、ROM(Read Only Memory)102と、RAM(Random Access Memory)103と、保存部104と、I/F105~107とを備える。各構成101~107は、内部バス110により接続される。 As the heartbeat classification device 1, an electronic device such as a laptop (notebook) PC or a desktop PC is used. For example, as shown in FIG. It has a unit 104 and I/Fs 105-107. Each configuration 101 - 107 is connected by an internal bus 110 .

CPU101は、心拍分類装置1全体を制御する。ROM102は、CPU101の動作コードを格納する。RAM103は、CPU101の動作時に使用される作業領域である。保存部104は、データベースや学習対象データ等の各種情報が記憶される。保存部104として、例えばHDD(Hard Disk Drive)のほか、SSD(Solid State Drive)等のデータ保存装置が用いられる。なお、例えば心拍分類装置1は、図示しないGPU(Graphics Processing Unit)を有してもよい。 The CPU 101 controls the heart rate classification device 1 as a whole. ROM 102 stores the operation code of CPU 101 . A RAM 103 is a work area used when the CPU 101 operates. The storage unit 104 stores various types of information such as databases and data to be learned. As the storage unit 104, for example, a data storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive) is used. For example, the heart rate classification device 1 may have a GPU (Graphics Processing Unit) (not shown).

I/F105は、通信網4を介して、必要に応じて端末2、サーバ3、ウェブサイト等との各種情報の送受信を行うためのインターフェースである。I/F106は、入力部108との情報の送受信を行うためのインターフェースである。入力部108として、例えばキーボードが用いられ、心拍分類装置1の使用者等は、入力部108を介して、各種情報、又は心拍分類装置1の制御コマンド等を入力する。I/F107は、表示部109との各種情報の送受信を行うためのインターフェースである。表示部109は、保存部104に保存された各種情報、又はコンテンツ等を表示する。表示部109として、ディスプレイが用いられ、例えばタッチパネル式の場合、入力部108と一体に設けられる。また、表示部109は、スピーカが用いられてもよい。 The I/F 105 is an interface for transmitting/receiving various information to/from the terminal 2, the server 3, a website, etc. via the communication network 4 as necessary. The I/F 106 is an interface for transmitting/receiving information to/from the input unit 108 . A keyboard, for example, is used as the input unit 108 , and the user of the heartbeat classification device 1 or the like inputs various information, control commands for the heartbeat classification device 1 , or the like via the input unit 108 . The I/F 107 is an interface for transmitting and receiving various information to and from the display unit 109 . The display unit 109 displays various types of information or content stored in the storage unit 104 . A display is used as the display unit 109 , and is provided integrally with the input unit 108 in the case of a touch panel type, for example. A speaker may be used for the display unit 109 .

図3(b)は、心拍分類装置1の機能の一例を示す模式図である。心拍分類装置1は、取得部11と、変換部12と、所属分類推定部13と、記憶部14と、出力部15と、処置判断部16と、状態判定部17と、抽出部18、分離部19とを備える。なお、図3(b)に示した各機能は、CPU101が、RAM103を作業領域として、保存部104等に記憶されたプログラムを実行することにより実現され、例えば人工知能等により制御されてもよい。 FIG. 3(b) is a schematic diagram showing an example of the functions of the heart rate classification device 1. As shown in FIG. The heartbeat classification device 1 includes an acquisition unit 11, a conversion unit 12, an affiliation classification estimation unit 13, a storage unit 14, an output unit 15, a treatment determination unit 16, a state determination unit 17, an extraction unit 18, and a separation unit. a part 19; Note that each function shown in FIG. 3B is realized by the CPU 101 using the RAM 103 as a work area and executing a program stored in the storage unit 104 or the like, and may be controlled by, for example, artificial intelligence. .

取得部11は、環境データ、心電信号、入浴者の健康データ等の各種データを取得する。取得部11は、例えば入力部108から入力された健康データを取得するほか、例えば通信網4を介して、浴室5等から環境データと、心電信号とを取得してもよい。 Acquisition unit 11 acquires various data such as environmental data, electrocardiographic signals, health data of bathers, and the like. Acquisition unit 11 acquires, for example, health data input from input unit 108, and may also acquire environmental data and electrocardiogram signals from bathroom 5 or the like via communication network 4, for example.

抽出部18は、取得部11により取得された心電信号から心電信号の一部を含む部分信号を抽出する。 The extraction unit 18 extracts a partial signal including part of the electrocardiogram signal from the electrocardiogram signal acquired by the acquisition unit 11 .

分離部19は、抽出部18により抽出された部分信号が心電信号のクリティカルポイントを含む参照用部分信号である確率を算出する。また、分離部19は、算出した確率が閾値以上となる部分信号に基づいて、1周期分の心電信号を示す心電ビート信号を分離する。 The separating unit 19 calculates the probability that the partial signal extracted by the extracting unit 18 is the reference partial signal containing the critical point of the electrocardiographic signal. Further, the separating unit 19 separates an electrocardiographic beat signal representing one cycle of the electrocardiographic signal based on the partial signals for which the calculated probability is equal to or higher than the threshold.

変換部12は、分離部19により分離された心電ビート信号をスカログラム画像に変換する。 The converter 12 converts the electrocardiogram beat signal separated by the separator 19 into a scalogram image.

所属分類推定部13は、予め取得された学習用スカログラム画像に基づく入力データ、及び入力データに紐づく所属分類の一対を学習用データとして、複数の学習用データを用いて生成されたニューラルネットワークモデルを参照し、変換部12により変換されたスカログラム画像を入力として、所属分類を推定する。 The affiliation classification estimation unit 13 sets a pair of input data based on a learning scalogram image acquired in advance and an affiliation classification linked to the input data as learning data, and generates a neural network model using a plurality of learning data. , and the scalogram image converted by the conversion unit 12 is used as an input to estimate the affiliation class.

状態判定部17は、所属分類推定部13により推定された1又は複数の所属分類と、環境データ及び健康データを組み合わせた入浴情報とに基づいて、予め取得された所属分類と入浴情報とに対する入浴者の状態を示す状態データを記録した状態データベースを参照し、入浴者の状態データを判定する。 The state determination unit 17 performs bathing for the pre-acquired affiliation classification and bathing information based on the one or more affiliation classifications estimated by the affiliation classification estimation unit 13 and the bathing information obtained by combining the environmental data and the health data. The state data of the bather is determined by referring to a state database in which the state data indicating the state of the bather is recorded.

処置判断部16は、予め取得された状態データと当該状態データに対する処置の方法を示す処置データとを1対の判断用学習データとし、複数の判断用学習データが記録された処置情報データベースを参照し、状態判定部17により判定された状態データに対する処置データを判断する。 The treatment determination unit 16 sets state data obtained in advance and treatment data indicating a method of treatment for the state data as a pair of learning data for determination, and refers to a treatment information database in which a plurality of learning data for determination are recorded. Then, treatment data corresponding to the state data determined by the state determination unit 17 is determined.

記憶部14は、保存部104に保存されたデータベース等の各種データを必要に応じて取り出す。記憶部14は、各構成により取得又は生成された各種データを、必要に応じて保存部104に保存する。 The storage unit 14 retrieves various data such as databases stored in the storage unit 104 as necessary. The storage unit 14 stores various data acquired or generated by each configuration in the storage unit 104 as necessary.

出力部15は、各種データを出力する。出力部15は、I/F107を介して表示部109に各種データを出力するほか、例えばI/F105を介して、複数の端末2等に各種データを出力する。 The output unit 15 outputs various data. The output unit 15 outputs various data to the display unit 109 via the I/F 107, and also outputs various data to a plurality of terminals 2 or the like via the I/F 105, for example.

次に、本実施形態における入浴者見守りシステム100の動作の一例について説明する。 Next, an example of the operation of the bathing person watching system 100 according to this embodiment will be described.

入浴者見守りシステム100は、例えば心拍分類装置1内にインストールされたプログラムを介して実行する。即ち、心拍分類装置1にインストールされているプログラムを通じて、入浴者の状態を管理する。 The bather monitoring system 100 is executed via a program installed in the heart rate classification device 1, for example. That is, the state of the bather is managed through a program installed in the heart rate classification device 1 .

図4は、本実施形態における心拍分類装置1の動作の一例を示すフローチャートである。入浴者見守りシステム100の動作は、まず図4に示す各ステップにより、所属分類を推定する。 FIG. 4 is a flow chart showing an example of the operation of the heart rate classification device 1 according to this embodiment. In the operation of the bather monitoring system 100, the belonging classification is first estimated by each step shown in FIG.

まずステップS110において、入浴者の心電信号を測定する。例えば浴室5の電極55は、入浴者の心電信号を測定する。かかる場合、電極55は、全入浴時間又は予め設定された時間に亘り、心電信号を測定する。電極55は、例えば10分間に亘り、入浴者の心電信号を測定する。または、入浴者の入浴と出浴タイミングを自動的に検出し、入浴者の入浴から出浴までの全入浴時間に亘り、入浴者の心電信号を測定する。浴室5は、通信網4を介して、測定したデータを心拍分類装置1へ送信する。 First, in step S110, the bather's electrocardiogram signal is measured. For example, the electrodes 55 in the bathroom 5 measure the bather's electrocardiographic signal. In such a case, the electrodes 55 measure the electrocardiogram signal over the entire bathing time or a preset time. Electrodes 55 measure the bather's electrocardiogram signal for, for example, 10 minutes. Alternatively, the bather's bathing and bathing timings are automatically detected, and the electrocardiogram signal of the bather is measured over the entire bathing time from bathing to bathing. Bathroom 5 transmits the measured data to heart rate classification device 1 via communication network 4 .

心電信号は、図5(a)に示すような、時間(s)に対する心臓の電位変化(mVオーダー)を示す信号であり、心房の興奮を示すP波、心室の興奮を示すQRS波、心室の興奮がさめるT波等を含む。また、心電信号の1周期は、これら特定の信号が再び観察されるまでの期間であり、例えばP波から次のP波の期間を示す。また、心電信号の1周期は、一定の時間毎に区切られた心電信号であってもよい。 As shown in FIG. 5(a), the electrocardiographic signal is a signal that indicates changes in cardiac potential (mV order) with respect to time (s), and includes a P wave that indicates atrial excitation, a QRS wave that indicates ventricular excitation, It includes the T wave, etc., in which ventricular excitation subsides. Also, one cycle of the electrocardiographic signal is the period until these specific signals are observed again, and indicates, for example, the period from the P wave to the next P wave. Also, one cycle of the electrocardiographic signal may be an electrocardiographic signal that is segmented at regular time intervals.

ステップS110において、心電信号を1周期分の心電信号を示す心電ビート信号に分離する。心電ビート信号は、心電信号のクリティカルポイントを含む。心電信号のクリティカルポイントは、例えばQRS波であるが、これに限らず、他の信号の最大値又は最小値を示すピーク、臨界点、極値であってもよい。心電信号のクリティカルポイントは、閾値に対する絶対値の大きさで判断してもよい。心電ビート信号は、例えば図5(b)に示すように、一つのQRS波が含まれる。このステップS110における心電ビート信号の分離方法の詳細は後述する。 In step S110, the electrocardiographic signal is separated into electrocardiographic beat signals representing one cycle of the electrocardiographic signal. The electrocardiographic beat signal contains the critical points of the electrocardiographic signal. A critical point of an electrocardiographic signal is, for example, a QRS wave, but is not limited to this, and may be a peak, critical point, or extremum indicating the maximum value or minimum value of another signal. A critical point of an electrocardiogram signal may be determined by the magnitude of the absolute value with respect to the threshold. The electrocardiographic beat signal includes one QRS wave, for example, as shown in FIG. 5(b). The details of the method of separating the electrocardiographic beat signal in step S110 will be described later.

次に、ステップS120において、心電ビート信号をスカログラム画像に変換する。スカログラム画像は、図5(c)に示すように、心電ビート信号のスカログラムを示す画像である。ステップS160において、例えば変換部12は、心電ビート信号をスカログラム画像、またはスペクトルグラム画像に変換してもよい。 Next, in step S120, the electrocardiographic beat signal is converted into a scalogram image. A scalogram image is an image showing a scalogram of an electrocardiographic beat signal, as shown in FIG. 5(c). In step S160, for example, the conversion unit 12 may convert the electrocardiographic beat signal into a scalogram image or a spectrumgram image.

次にステップS130において、スカログラム画像を入力として、所属分類を推定する。かかる場合、所属分類推定部13は、予め取得された学習用スカログラム画像に基づく入力データ、及び入力データに紐づく所属分類の一対を学習用データとして、複数の学習用データを用いて生成されたニューラルネットワークモデルを参照し、変換処理により変換されたスカログラム画像を入力として、所属分類を推定する。また、所属分類の推定において、上記のステップS120及びS130に記載された方法を用いる必要はなく、任意の方法を用いて、ステップS110により分離された心電ビート信号の所属分類を推定してもよい。 Next, in step S130, the scalogram image is used as an input to estimate the belonging class. In such a case, the affiliation classification estimation unit 13 uses a pair of input data based on a learning scalogram image acquired in advance and an affiliation classification linked to the input data as learning data, and generates using a plurality of learning data A neural network model is referred to, and a scalogram image converted by a conversion process is used as an input to estimate belonging classification. In addition, in estimating the classification, it is not necessary to use the methods described in steps S120 and S130 above, and any method may be used to estimate the classification of the electrocardiographic beat signals separated in step S110. good.

所属分類は、心電信号の心拍分類を示すデータである。所属分類は、例えば表1に示すような分類を示すデータである。 Affiliation classification is data indicating the heartbeat classification of the electrocardiogram signal. The affiliation classification is data indicating the classification as shown in Table 1, for example.

Figure 0007162232000002
ニューラルネットワークモデルは、例えば複数の学習用データを用いた機械学習により生成された、学習済みモデルを含んでもよい。学習済みモデルは、例えばCNN(Convolutional Neural Network)等のニューラルネットワークモデルを示すほか、SVM(Support Vector Machine)等を示す。また、機械学習として、例えば深層学習を用いることができる。図6は、学習用データの一例を示す模式図である。学習用データは、例えば図6に示すように、学習用スカログラム画像と、所属分類とが紐づけられる。
Figure 0007162232000002
A neural network model may include a trained model generated by machine learning using a plurality of training data, for example. A trained model indicates, for example, a neural network model such as a CNN (Convolutional Neural Network), or an SVM (Support Vector Machine). As machine learning, for example, deep learning can be used. FIG. 6 is a schematic diagram showing an example of learning data. In the learning data, for example, as shown in FIG. 6, the learning scalogram image and the affiliation classification are linked.

ニューラルネットワークモデルには、例えばスカログラム画像又は心電ビート信号(入力データ)と所属分類(出力データ)との間における連関度を有する連関性が記憶される。連関度は、入力データと出力データとの繋がりの度合いを示しており、例えば連関度が高いほど各データの繋がりが強いと判断することができる。連関度は、例えば百分率等で示されるほか、数段階で示されてもよい。 The neural network model stores associations with degrees of association, for example, between scalogram images or electrocardiographic beat signals (input data) and belonging classes (output data). The degree of association indicates the degree of connection between the input data and the output data. For example, it can be determined that the higher the degree of association, the stronger the connection between the data. The degree of association may be indicated by, for example, a percentage or the like, and may be indicated by several levels.

例えば連関性は、多対多の情報(複数の入力データ、対、複数の出力データ)の間における繋がりの度合いにより構築される。連関性は、機械学習の過程で適宜更新され、例えば複数の入力データ、及び複数の出力データに基づいて最適化された関数(分類器)を示す。なお、連関性は、例えば各データの間における繋がりの度合いを示す複数の連関度を有してもよい。連関度は、例えばデータベースがニューラルネットワークで構築される場合、重み変数に対応させることができる。 For example, associations are constructed by the degree of connectivity between many-to-many information (multiple input data versus multiple output data). Associations are updated as appropriate during the course of machine learning, and represent optimized functions (classifiers), for example, based on multiple input data and multiple output data. Note that the relevance may have, for example, a plurality of relevance degrees indicating the degree of connection between each piece of data. The degree of association can correspond to a weight variable, for example when the database is built with neural networks.

このため、心拍分類装置1では、例えば分類器の判定した結果を全て踏まえた連関性を用いて、入力データに適した出力データを選択する。これにより、入力データが、学習用入力データと同一又は類似である場合のほか、非類似である場合においても、入力データに適した出力データを定量的に選択することができる。 For this reason, the heart rate classification device 1 selects output data suitable for input data, for example, by using association based on all the results determined by the classifier. This makes it possible to quantitatively select output data suitable for the input data not only when the input data is the same as or similar to the learning input data, but also when they are dissimilar.

連関性は、例えば、複数の出力データと、複数の入力データとの間における繋がりの度合いを示してもよい。この場合、連関性を用いることで、複数の出力データ(「所属分類A」~「所属分類C」)のそれぞれに対し、複数の入力データ(「スカログラム画像A」~「スカログラム画像C」)の関係の度合いを紐づけて記憶させることができる。このため、例えば連関性を介して、1つの入力データに対して、特有な連関度で、複数の出力データを紐づけることができる。これにより、スカログラム画像に対して所属分類を取得することができる。 Relevance may indicate, for example, the degree of connection between a plurality of output data and a plurality of input data. In this case, by using the association, for each of the plurality of output data (“affiliation class A” to “affiliation class C”), the plurality of input data (“scalogram image A” to “scalogram image C”) The degree of relationship can be linked and stored. For this reason, it is possible to associate a plurality of output data with a specific degree of association with one input data, for example, via association. This makes it possible to obtain the belonging classification for the scalogram image.

連関性は、例えば各出力データと、各入力データとをそれぞれ紐づける複数の連関度を有する。連関度は、例えば百分率、10段階、又は5段階等の3段階以上で示され、例えば線の特徴(例えば太さ等)で示される。例えば、入力データに含まれる「スカログラム画像A」は、出力データに含まれる「所属分類A」との間の連関度AA「73%」を示し、出力データに含まれる「所属分類B」との間の連関度AB「12%」、出力データに含まれる「所属分類C」との間の連関度AC「15%」を示す。すなわち、「連関度」は、各データ間における繋がりの度合いを示しており、例えば連関度が高いほど、各データの繋がりが強いことを示す。 Relevance has, for example, a plurality of degrees of relevance linking each output data and each input data. The degree of association is indicated, for example, in three or more levels such as percentage, 10 levels, or 5 levels, and is indicated, for example, by line characteristics (such as thickness). For example, "scalogram image A" included in the input data indicates the degree of association AA "73%" between "belonging class A" included in the output data, and "belonging class B" included in the output data. It shows the degree of association AB “12%” between and the degree of association AC “15%” with “belonging class C” included in the output data. That is, the "relevance degree" indicates the degree of connection between each piece of data. For example, the higher the degree of association, the stronger the connection between each piece of data.

また、ニューラルネットワークモデルは、入力データと出力データとの間に少なくとも1以上の隠れ層が設けられ、機械学習させるようにしてもよい。入力データ又は隠れ層データの何れか一方又は両方において上述した連関度が設定され、これが各データの重み付けとなり、これに基づいて出力の選択が行われる。そして、この連関度がある閾値を超えた場合に、その出力を選択するようにしてもよい。 Further, the neural network model may be provided with at least one or more hidden layers between the input data and the output data for machine learning. The degree of association described above is set in either or both of the input data and the hidden layer data, and this serves as weighting for each data, and output selection is performed based on this. Then, when the degree of association exceeds a certain threshold, the output may be selected.

また、ステップS110において、分離した心電ビート信号を上述したステップS120及びステップS130の方法も用いることなく分類する場合、例えば図7に示すような学習データを用いて生成されたニューラルネットワークを用いて、ステップS110により分離された心電ビート信号に基づいて、所属分類を推定してもよい。かかる場合、学習データは入力を参照用心電ビート信号とし、出力を所属分類としてもよい。参照用心電ビート信号は、学習データとして用いるために予め取得された心電ビート信号である。この場合、連関性を用いることで、複数の出力データ(「所属分類A」~「所属分類C」)のそれぞれに対し、複数の入力データ(「心電ビート信号A」~「心電ビート信号C」)の関係の度合いを紐づけて記憶させることができる。 In addition, when classifying the separated electrocardiographic beat signals in step S110 without using the methods of steps S120 and S130 described above, for example, a neural network generated using learning data as shown in FIG. , the classification may be estimated based on the electrocardiographic beat signals separated by step S110. In such a case, the learning data may have the reference electrocardiographic beat signal as the input and the belonging classification as the output. The reference electrocardiographic beat signal is an electrocardiographic beat signal previously acquired for use as learning data. In this case, by using the association, a plurality of input data (“electrocardiographic beat signal A” to “electrocardiographic beat signal C”) can be linked and stored.

所属分類推定部13は、上述したニューラルネットワークモデルを用いて、ステップS160により変換されたスカログラム画像を入力として、所属分類を出力する。 The affiliation classification estimating unit 13 receives the scalogram image converted in step S160 using the neural network model described above, and outputs the affiliation classification.

また、所属分類推定部13は、複数の学習用スカログラム画像を入力データとする学習用データを用いて生成されたニューラルネットワークモデルを参照し、ステップS160により変換された複数のスカログラム画像を入力として、所属分類を推定してもよい。このニューラルネットワークモデルは、入力データに複数のスカログラム画像が含まれる点で、上述したニューラルネットワークモデルと異なる。 In addition, the affiliation classification estimation unit 13 refers to the neural network model generated using the learning data having the plurality of learning scalogram images as input data, and receives the plurality of scalogram images converted in step S160 as input, Classification may be inferred. This neural network model differs from the neural network model described above in that the input data includes multiple scalogram images.

この入力データは、2以上のスカログラム画像が含まれる。また、入力データは、時系列的に連続している複数のスカログラム画像を含んでもよい。これにより、例えば時系列的に連続した複数のスカログラム画像を入力とすることにより、心電図の時間的な変化のパターンから特徴を判断することが可能となる。これによって、所属分類を推定する際の精度向上を図ることが可能となる。また、入力データは、電極55による測定部位毎に分けられた複数のチャネルを用いて取得された複数の心電信号に基づく複数のスカログラム画像を含んでもよい。 This input data includes two or more scalogram images. Also, the input data may include a plurality of scalogram images that are continuous in time series. As a result, for example, by inputting a plurality of scalogram images that are continuous in time series, it is possible to determine the characteristics from the pattern of temporal changes in the electrocardiogram. This makes it possible to improve the accuracy when estimating the belonging classification. The input data may also include a plurality of scalogram images based on a plurality of electrocardiographic signals acquired using a plurality of channels divided for each measurement site by the electrodes 55 .

また、ステップS130において、所属分類推定部13は、複数のスカログラム画像を入力として、複数の推定用所属分類を推定し、推定した複数の推定用所属分類に基づいて、所属分類を推定してもよい。推定用所属分類は、複数の所属分類から1つの所属分類を推定するための所属分類である。かかる場合、所属分類推定部13は、例えば電極55による測定部位毎に分けられた複数のチャネルを用いて取得された複数の心電信号に基づく複数のスカログラム画像から複数の推定用所属分類を推定し、複数の推定用所属分類の中から最も数の多い所属分類を選択してもよい。これにより、例えば複数のチャネルを用いて取得した複数のスカログラム画像から総合的に所属分類を推定することが可能となる。このため、所属分類を高精度に推定することができる。 Further, in step S130, the affiliation class estimation unit 13 receives a plurality of scalogram images as input, estimates a plurality of estimation affiliation classes, and estimates the affiliation class based on the estimated plurality of estimation affiliation classes. good. The affiliation classification for estimation is an affiliation classification for estimating one affiliation classification from a plurality of affiliation classifications. In this case, the affiliation classification estimating unit 13 estimates a plurality of estimation affiliation classifications from a plurality of scalogram images based on a plurality of electrocardiographic signals acquired using a plurality of channels divided for each measurement site by the electrode 55, for example. However, the largest number of affiliation classifications may be selected from a plurality of estimation affiliation classifications. This makes it possible to comprehensively estimate the belonging class from, for example, a plurality of scalogram images acquired using a plurality of channels. Therefore, it is possible to estimate the affiliation classification with high accuracy.

また、ステップS130において、所属分類推定部13は、1のスカログラム画像を入力として、複数の推定用所属分類を推定し、推定した複数の推定用所属分類に基づいて、所属分類を推定してもよい。かかる場合、例えば入力をスカログラム画像、出力を推定用所属分類とする任意の学習済みモデルを用いて、入力したスカログラム画像と連関性がある、又は連関度が予め設定された閾値以上である複数の推定用所属分類を推定してもよい。 In step S130, the classification affiliation estimating unit 13 receives one scalogram image as an input, estimates a plurality of classifications for estimation, and estimates the classification based on the estimated plurality of classifications for estimation. good. In such a case, for example, using an arbitrary trained model whose input is a scalogram image and whose output is an affiliation classification for estimation, multiple An inferred affiliation class may be inferred.

また、ステップS130において、所属分類推定部13は、変換部12により変換された複数のスカログラム画像と予め取得された参照用スカログラム画像との類似度を算出し、算出した類似度が所定の閾値以上となる場合、所属分類の推定を行うようにしてもよい。 Further, in step S130, the affiliation classification estimation unit 13 calculates the degree of similarity between the plurality of scalogram images converted by the conversion unit 12 and the pre-obtained reference scalogram image. In this case, it is possible to estimate the affiliation classification.

参照用スカログラム画像は、例えば推定の対象となる入浴者の心電信号の基づくスカログラム画像であってもよい。この参照用スカログラム画像との類似度を比較することにより、ステップS110において、測定した心電信号が推定の対象となる入浴者の心電信号に基づくスカログラム画像であるか否かを推定することができる。このため、判定の対象となる入浴者が入浴をしているときのみ、推定を自動で行うことができるため、低コスト且つ高速で推定することができる。 The reference scalogram image may be, for example, a scalogram image based on the bather's electrocardiogram signal to be estimated. By comparing the degree of similarity with this reference scalogram image, it can be estimated in step S110 whether or not the measured electrocardiographic signal is a scalogram image based on the electrocardiographic signal of the bather to be estimated. can. Therefore, the estimation can be performed automatically only when the bather to be judged is bathing, so that the estimation can be performed at low cost and at high speed.

また、参照用スカログラム画像は、例えば推定の対象となる入浴者が入浴しているときの心電信号の基づくスカログラム画像であってもよい。この参照用スカログラム画像との類似度を比較することにより、ステップS110において、測定した心電信号が推定の対象となる入浴者が入浴しているときの心電信号に基づくスカログラム画像であるか否かを推定することができる。このため、判定の対象となる入浴者が入浴をしているときのみ、推定を自動で行うことができるため、低コスト且つ高速で推定することができる。 Also, the reference scalogram image may be, for example, a scalogram image based on an electrocardiographic signal when the bather to be estimated is taking a bath. By comparing the degree of similarity with this reference scalogram image, it is determined in step S110 whether or not the measured electrocardiographic signal is a scalogram image based on the electrocardiographic signal when the bather to be estimated is bathing. can be estimated. Therefore, the estimation can be performed automatically only when the bather to be judged is bathing, so that the estimation can be performed at low cost and at high speed.

上述した各ステップを行うことにより、入浴者見守りシステム100の所属分類を推定する動作が完了する。これにより、スカログラム画像を入力データとして使用することにより、CNNモデルのサイズを縮小することができ、低コスト且つ高速で心拍分類が可能となる。 By performing each step described above, the operation of estimating the affiliation classification of the bathing person watching system 100 is completed. This allows the size of the CNN model to be reduced by using scalogram images as input data, enabling low-cost and high-speed heart rate classification.

次に、ステップS110において、心電信号から心電ビート信号を抽出する動作の詳細について説明する。図8は、心電信号から心電ビート信号を抽出する動作の一例を示すフローチャートである。 Next, details of the operation of extracting an electrocardiographic beat signal from the electrocardiographic signal in step S110 will be described. FIG. 8 is a flowchart showing an example of an operation for extracting an electrocardiographic beat signal from an electrocardiographic signal.

まず、ステップS20において、抽出部18は、心電信号から部分信号を抽出する。図9は、心電信号から部分信号を抽出し、心電ビート信号の境界を決定するためのウィンドウの適応プロセスを示す模式図である。まずステップS20において、抽出部18は、幅wnのウィンドウに含まれる心電信号を部分信号として抽出する。 First, in step S20, the extraction unit 18 extracts partial signals from the electrocardiographic signal. FIG. 9 is a schematic diagram illustrating the window adaptation process for extracting partial signals from an electrocardiographic signal and determining the boundaries of the electrocardiographic beat signal. First, in step S20, the extraction unit 18 extracts the electrocardiogram signal included in the window of width w n as a partial signal.

次に、ステップS21において、抽出部18は、ウィンドウのパラメータを再計算及び更新する。ウィンドウのパラメータは、例えばウィンドウの幅wn、ウィンドウのステップ幅sn、推定される将来のRR間隔の最大値(maxRRI)、推定される将来のRR間隔の最小値(minRRI)、過去のcp(cpn-2、cpn-1)と現在のcpn、スモールステップフォワード(fwd)、ウィンドウの位置(wposition)、オフセット値等である。wnは、ウィンドウの幅を示し、例えば過去に取得された心電信号から抽出した事前に決定された複数(例えば、16心拍)のRR間隔から算出されたRR間隔の平均、又はユーザの平均心拍数(例えば、過去最新の16心拍を用いる)により算出される。ステップ幅snは、部分信号を抽出するたびにウィンドウが移動する距離を示す。RR間隔の最大値(maxRRI)は、予想される最大RRIリミットを示し、例えば過去に取得された心電信号から抽出した複数の部分信号から算出したRR間隔の平均値とある定数との積により算出される。また、RR間隔の最大値(maxRRI)は、心電ビート信号が分離されるたびに更新されてもよい。RR間隔の最小値(minRRI)は、予想される最小RRIリミットを示し、例えば過去に取得された心電信号から抽出した複数(例えば、16心拍)のRR間隔から算出したRR間隔の平均とある定数との積により算出される。また、RR間隔の最小値(minRRI)は、心電ビート信号が分離されるたびに更新されてもよい。スモールステップフォワード(fwd)は、必要に応じて、ウィンドウを細かく移動させるためのパラメータである。オフセット値は、次のウィンドウの開始位置を示し、現在検出された部分信号にすでに含まれている心電信号のクリティカルポイントを除外するために使用される。これで、次の部分信号を検出するためのステップ数を最小限に抑えることが可能となる。オフセット値は、新しく自適応調整されたウィンドウの幅、現在のcp、および事前設定した定数を使用して計算される。RR間隔は、心電信号において、隣接するクリティカルポイントの間の距離である。 Next, in step S21, the extraction unit 18 recalculates and updates the parameters of the window. The parameters of the window are, for example, window width w n , window step width s n , maximum estimated future RR interval (maxRRI), minimum estimated future RR interval (minRRI), past cp (cp n-2 , cp n-1 ), current cp n , small step forward (fwd), window position (wposition), offset value, and so on. w n indicates the width of the window, e.g., the average of RR intervals calculated from a plurality of predetermined (e.g., 16 beats) RR intervals extracted from previously acquired electrocardiographic signals, or the user's average It is calculated from the heart rate (for example, using the latest 16 heart beats in the past). The step width s n indicates the distance the window moves each time a partial signal is extracted. The maximum value of the RR interval (maxRRI) indicates the expected maximum RRI limit, for example, the product of the average value of the RR interval calculated from a plurality of partial signals extracted from the previously acquired electrocardiographic signal and a certain constant. Calculated. Also, the maximum value of the RR interval (maxRRI) may be updated each time the electrocardiographic beat signal is separated. The minimum value of the RR interval (minRRI) indicates the expected minimum RRI limit, for example, the average of the RR intervals calculated from a plurality of (eg, 16 beats) RR intervals extracted from the electrocardiographic signal acquired in the past. Calculated by multiplying with a constant. Also, the minimum value of the RR interval (minRRI) may be updated each time the electrocardiographic beat signal is separated. Small step forward (fwd) is a parameter for finely moving the window as necessary. The offset value indicates the starting position of the next window and is used to exclude critical points of the ECG signal already contained in the currently detected partial signal. This makes it possible to minimize the number of steps for detecting the next partial signal. The offset value is calculated using the new auto-adapted window width, the current cp, and a preset constant. The RR interval is the distance between adjacent critical points in the electrocardiogram signal.

次に、ステップS22は、S21で計算された有効または無効な心電ビート信号であるかを部分信号の状態に基づいて評価する。評価結果が有効な心電ビート信号である場合、プロセスはステップS23に移行する。評価結果が無効な心電ビート信号である場合、プロセスはステップS35に移行する。この評価結果は、例えば部分信号が心電信号のクリティカルポイントを含む参照用部分信号である確率を評価値として、評価値が予め設定された閾値との比較に基づいて決定してもよい。例えば、確率が0.9よりも大きい場合、部分信号を有効な心電ビート信号とし、確率が0.9よりも小さい場合、部分信号を無効な心電ビート信号としてもよい。 Next, a step S22 evaluates whether the electrocardiographic beat signal calculated in S21 is valid or invalid based on the state of the partial signal. If the evaluation result is a valid ECG beat signal, the process moves to step S23. If the evaluation result is an invalid ECG beat signal, the process moves to step S35. This evaluation result may be determined, for example, by comparing the evaluation value with a preset threshold, using the probability that the partial signal is the reference partial signal containing the critical point of the electrocardiogram signal as an evaluation value. For example, if the probability is greater than 0.9, the partial signal may be a valid ECG beat signal, and if the probability is less than 0.9, the partial signal may be an invalid ECG beat signal.

ステップS22において、抽出部18は、例えば部分信号が心電信号のクリティカルポイントを含む参照用部分信号である確率を算出する。参照用部分信号は、予め取得された心電信号のクリティカルポイントを含む部分信号である。図8は、適応ウィンドウをスライドさせながら一連の部分信号を処理して、有効な心電ビート信号を抽出する。図10は、ウィンドウパラメータを計算し、部分信号と参照部分信号の類似性を計算した上、図8でさらに使用される。 In step S22, the extraction unit 18 calculates, for example, the probability that the partial signal is the reference partial signal containing the critical point of the electrocardiographic signal. A reference partial signal is a partial signal containing a critical point of an electrocardiographic signal acquired in advance. FIG. 8 processes a series of partial signals while sliding an adaptive window to extract valid electrocardiographic beat signals. FIG. 10 is used further in FIG. 8 after calculating the window parameters and calculating the similarity between the partial signal and the reference partial signal.

ステップS23において、抽出部18は、ステップS22により評価した確率が閾値以上な部分信号の数が16より多いか判断する。16よりも多い場合、ステップS24に移行し、16以下ならステップS35に移行する。これにより、ステップS23により検出された16以上の部分信号に基づいて、ウィンドウのパラメータの初期設定を決定する。また、この16の値は一例であり、任意の値を用いてもよい。 In step S<b>23 , the extraction unit 18 determines whether the number of partial signals whose probability evaluated in step S<b>22 is equal to or greater than the threshold is greater than 16. If the number is greater than 16, the process proceeds to step S24, and if the number is 16 or less, the process proceeds to step S35. Thus, initial setting of window parameters is determined based on the 16 or more partial signals detected in step S23. Also, the value of 16 is an example, and any value may be used.

ステップS35において、抽出部18は、次の部分信号を抽出するためにウィンドウを移動させ、再びステップS20により部分信号を抽出する。かかる場合、例えばステップS21により更新したウィンドウのパラメータのウィンドウの位置からウィンドウのステップ幅snだけウィンドウを移動させる。 In step S35, the extraction unit 18 moves the window to extract the next partial signal, and extracts the partial signal again in step S20. In such a case, for example, the window is moved by the step width s n of the window from the window position of the window parameter updated in step S21.

ステップS36において、抽出部18は、S22により評価した部分信号のクリティカルポイントの横にウィンドウを移動させ、再びステップS20により部分信号を抽出する。かかる場合、オフセット値をクリティカルポイントに基づいて算出する。抽出部18は、例えばクリティカルポイントと定数との和をオフセット値としてもよい。これにより、クリティカルポイントよりも前の不必要な個所にウィンドウを移動させずに次の部分信号を抽出できるため、より効率よく部分信号を抽出でき、かつ同一のクリティカルポイントを含む部分信号の抽出を防ぐことが可能となる。 In step S36, the extraction unit 18 moves the window to the side of the critical point of the partial signal evaluated in step S22, and again extracts the partial signal in step S20. In such cases, the offset value is calculated based on the critical point. The extraction unit 18 may use, for example, the sum of the critical point and the constant as the offset value. As a result, the next partial signal can be extracted without moving the window to an unnecessary location before the critical point, so that the partial signal can be extracted more efficiently and the partial signal containing the same critical point can be extracted. can be prevented.

また、ステップS37において、ステップS20~ステップS23によりウィンドウのパラメータの初期設定を決定する代わりに、ウィンドウのパラメータの初期設定を見積もってもよい。 Further, in step S37, the initial settings of the window parameters may be estimated instead of determining the initial settings of the window parameters in steps S20 to S23.

次に、ステップS24において、抽出部18は、心拍に関する心拍情報に基づいて、実際に心電ビート信号を分離するための部分信号を抽出する。心拍情報は、例えばウィンドウのパラメータである。また、心拍情報は、ユーザの心拍数等の生体情報であってもよい。ステップS24において、抽出部18は、例えばステップS23により決定したウィンドウのパラメータの初期設定を用いて、実際に心電ビート信号を分離するための部分信号を抽出する。また、ステップS24において、ステップS37により見積もったウィンドウのパラメータを用いて部分信号を抽出してもよい。 Next, in step S24, the extraction unit 18 extracts partial signals for actually separating the electrocardiographic beat signal based on the heartbeat information regarding the heartbeat. Heartbeat information is, for example, a window parameter. Also, the heartbeat information may be biological information such as the user's heartbeat rate. In step S24, the extraction unit 18 extracts partial signals for actually separating the electrocardiographic beat signal, for example, using the initial setting of the window parameters determined in step S23. In step S24, the partial signal may be extracted using the window parameter estimated in step S37.

次に、ステップS25において、ウィンドウのパラメータを再計算及び更新する。 Next, in step S25, the window parameters are recalculated and updated.

次に、ステップS26において、ステップS24により抽出した部分信号の評価を行う。ステップS26において、ステップS24により抽出した部分信号の確率が閾値以上ならステップS27又はステップS30に移行し、確率が閾値以下ならステップS38に移行する。また、ステップS26において、確率が閾値以上かつ心電ビート信号の出力パターンBを用いる場合、ステップS27に移行し、確率が閾値以上かつ心電ビート信号の出力パターンAを用いる場合、ステップS30に移行してもよい。この心電ビート信号の出力パターンは必要に応じて、変更してもよい。また、心電ビート信号の出力パターンを複数用いて、それぞれの心電ビート信号を出力してもよい。これにより、複数の出力パターンを用いて出力した心電ビート信号を分類することにより、さらに分類の精度を向上させることが可能となる。また、ステップS26において、評価値が閾値以上となる部分信号を心電ビート信号として分離してもよい。 Next, in step S26, the partial signals extracted in step S24 are evaluated. In step S26, if the probability of the partial signal extracted in step S24 is equal to or greater than the threshold, the process proceeds to step S27 or step S30, and if the probability is equal to or less than the threshold, the process proceeds to step S38. If the probability is equal to or greater than the threshold and the output pattern B of the electrocardiographic beat signal is used in step S26, the process proceeds to step S27. If the probability is equal to or greater than the threshold and the output pattern A of the electrocardiographic beat signal is used, the process proceeds to step S30. You may The output pattern of this electrocardiographic beat signal may be changed as required. Alternatively, a plurality of output patterns of the electrocardiographic beat signal may be used to output each electrocardiographic beat signal. Accordingly, by classifying the output electrocardiographic beat signals using a plurality of output patterns, it is possible to further improve the classification accuracy. Further, in step S26, a partial signal whose evaluation value is equal to or greater than a threshold value may be separated as an electrocardiogram beat signal.

ステップS38において、抽出部18は、次の部分信号を抽出するためにウィンドウを移動させ、再びステップS24により部分信号を抽出する。かかる場合、抽出部18は、例えばステップS25により更新したウィンドウのパラメータのウィンドウの位置からウィンドウのステップ幅snだけウィンドウを移動させる。 In step S38, the extraction unit 18 moves the window to extract the next partial signal, and extracts the partial signal again in step S24. In such a case, the extraction unit 18 moves the window by the step width s n of the window from the window position of the parameter of the window updated in step S25, for example.

心電ビート信号の出力パターンBを用いる場合、ステップS27において、抽出部18は、ステップS25により更新したウィンドウのパラメータに基づいて、クリッピングポイントを再配置する。かかる場合、抽出部18は、例えばクリティカルポイント、RR間隔、過去のRR間隔の平均値等に基づいて、クリッピングポイントのスタート位置と終わりの位置を決定する。 When the output pattern B of the electrocardiographic beat signal is used, in step S27, the extraction unit 18 rearranges the clipping points based on the window parameters updated in step S25. In such a case, the extraction unit 18 determines the start position and end position of the clipping point based on, for example, the critical point, the RR interval, the average value of past RR intervals, and the like.

ステップS28において、抽出部18は、ステップS27により再配置したクリティカルポイントのスタート位置と終わりの位置とに基づいて、心電ビート信号を抽出する。また、次の部分信号を抽出するために、ステップS38に移行してもよい。 In step S28, the extraction unit 18 extracts an electrocardiogram beat signal based on the start position and end position of the critical points rearranged in step S27. Alternatively, the process may proceed to step S38 in order to extract the next partial signal.

ステップS29において、抽出部18は、抽出した心電ビート信号の確率を予測する。抽出部18は、例えば心電ビート信号と心電信号のクリティカルポイントを含む参照用部分信号との確率を評価値として算出する。抽出部18は、確率が閾値以上なら抽出した心電ビート信号を出力する。 In step S29, the extraction unit 18 predicts the probability of the extracted electrocardiographic beat signal. The extraction unit 18 calculates, for example, the probability of the electrocardiographic beat signal and the reference partial signal including the critical point of the electrocardiographic signal as an evaluation value. The extraction unit 18 outputs the extracted electrocardiographic beat signal if the probability is equal to or greater than the threshold.

心電ビート信号の出力パターンAを用いる場合、ステップS30において、抽出部18は、分離された心電ビート信号に基づいて、新たに部分信号を抽出する。抽出部18は、例えばステップS25により更新したウィンドウのパラメータに基づいて、新たに部分信号を抽出するためのクリッピングポイントのスタート位置を計算する。かかる場合、抽出部18は、例えばスタート位置を過去のクリティカルポイント及び一つまたは二つ事前設定した定数から計算してもよい。また、抽出部18は、例えばステップS26又はS29において、出力された心電ビート信号に基づいて、新たに部分信号を抽出するためのクリッピングポイントのスタート位置を計算してもよい。抽出部18は、例えば過去に分離された心電ビート信号のクリティカルポイントとオフセット値に基づいて、クリッピングポイントのスタート位置を算出する。 When the output pattern A of the electrocardiographic beat signal is used, in step S30, the extraction unit 18 newly extracts a partial signal based on the separated electrocardiographic beat signal. The extraction unit 18 calculates the start position of the clipping point for extracting a new partial signal, for example, based on the window parameters updated in step S25. In such a case, the extractor 18 may, for example, calculate the starting position from past critical points and one or two preset constants. Further, the extraction unit 18 may calculate the start position of the clipping point for newly extracting the partial signal based on the output electrocardiogram beat signal, for example, in step S26 or S29. The extraction unit 18 calculates the start position of the clipping point, for example, based on the critical point and the offset value of the electrocardiographic beat signal separated in the past.

ステップS31において、抽出部18は、ステップS30により計算したスタート位置が、クリティカルポイントよりも小さいかを判断する。抽出部18は、クリティカルポイントよりも小さい場合、ステップS32に移行する。抽出部18は、クリティカルポイント以上の場合、ステップS33に移行する。 In step S31, the extraction unit 18 determines whether the start position calculated in step S30 is smaller than the critical point. If it is smaller than the critical point, the extraction unit 18 proceeds to step S32. If it is equal to or greater than the critical point, the extraction unit 18 proceeds to step S33.

ステップS32において、抽出部18は、ステップS30により計算したスタート位置を調整する。かかる場合、抽出部18は、クリティカルポイントに基づいて、スタート位置を調整する。 In step S32, the extraction unit 18 adjusts the start position calculated in step S30. In such a case, the extractor 18 adjusts the start position based on the critical point.

ステップS33において、抽出部18は、クリティカルポイントの終わりの位置を計算する。抽出部18は、例えばRR間隔とスタートの位置とに基づいて、終わりの位置を計算する。 In step S33, the extraction unit 18 calculates the end position of the critical point. The extraction unit 18 calculates the end position, for example, based on the RR interval and the start position.

ステップS34において、分離部19は、ステップS30により計算したクリッピングポイントのスタート位置、又はステップS32により調整したクリッピングポイントのスタート位置とステップS33により計算したクリッピングポイントの終わりの位置とに基づいて、心電ビート信号を抽出する。また、分離部19は、抽出した心電ビート信号を出力してもよい。また、抽出部18は、次の部分信号を抽出するために、ステップS38に移行してもよい。 In step S34, the separation unit 19 performs electrocardiogram based on the start position of the clipping point calculated in step S30, or the start position of the clipping point adjusted in step S32 and the end position of the clipping point calculated in step S33. Extract the beat signal. Moreover, the separating unit 19 may output the extracted electrocardiographic beat signal. Also, the extraction unit 18 may proceed to step S38 in order to extract the next partial signal.

上述した各ステップを行うことにより、心電信号から心電ビート信号を抽出する動作を終了する。これにより、心電信号のクリティカルポイントを含む参照用部分信号である確率が高い部分信号に基づいて心電ビート信号を分離することができる。このため、心拍の間隔の変化に対応した心電ビート信号の分離が可能となる。また、心電ビート信号の出力パターンAを用いることにより、ウィンドウの境界の計算は、適合されたウィンドウ、最新のクリティカルポイントの位置、および所定の定数に基づいて行われる。つまり、境界の計算は、隣接するクリティカルポイントを考慮せずに、最新のクリティカルポイントを参照して計算される。これにより、リアルタイムの心電ビート信号の分離が可能となる。また、心電ビート信号の出力パターンBを用いることにより、ウィンドウの境界の計算は、隣接するクリティカルポイントに基づいて計算されます。これにより、より正確なウィンドウの境界の計算が可能となります。 By performing the steps described above, the operation of extracting the electrocardiographic beat signal from the electrocardiographic signal is completed. Thus, the electrocardiographic beat signal can be separated based on the partial signal that has a high probability of being the reference partial signal containing the critical point of the electrocardiographic signal. Therefore, it is possible to separate electrocardiographic beat signals corresponding to changes in heartbeat intervals. Also, by using the output pattern A of the electrocardiographic beat signal, the calculation of the window boundary is performed based on the fitted window, the position of the latest critical point, and a predetermined constant. That is, boundary calculations are calculated with reference to the latest critical point without considering neighboring critical points. This allows real-time electrocardiographic beat signal separation. Also, by using the output pattern B of the ECG beat signal, the calculation of the window boundary is calculated based on the adjacent critical points. This allows for more accurate window bounds calculations.

次に、ウィンドウのパラメータの計算方法について説明する。図10は、ウィンドウのパラメータの計算のフローを示す図である。 Next, a method for calculating window parameters will be described. FIG. 10 is a diagram showing the flow of window parameter calculation.

まずステップS1において、抽出部18は、抽出した部分信号のノイズ除去と正規化とを行う。かかる場合、心電ビート信号の中心にQRS波が揃うようにしてもよい。また、このとき心電ビート信号のクリティカルポイントを中心として、中心から一定時間前から後までの心電信号を含めるものを心電ビート信号としてもよい。また、必ずしもクリティカルポイントを中心とする必要はなく、中心が一定の位置となるように揃えてもよい。 First, in step S1, the extractor 18 removes noise from the extracted partial signals and normalizes them. In such a case, the QRS complex may be aligned with the center of the electrocardiographic beat signal. At this time, the electrocardiogram beat signal may include the electrocardiogram signals from before to after a certain time from the center of the critical point of the electrocardiogram beat signal. Also, the critical point does not necessarily have to be the center, and the center may be aligned at a fixed position.

次に、ステップS2において、抽出部18は、ステップS1によりノイズ除去と正規化とを行った部分信号のクリティカルポイントを中心に配置する。ノイズ除去は任意のフィルタを用いて行ってもよい。また、正規化は、例えば心電ビート信号の最大値を1、最小値を0として、正規化を行ってもよい。 Next, in step S2, the extraction unit 18 centers the critical point of the partial signal subjected to noise removal and normalization in step S1. Noise removal may be performed using any filter. Normalization may be performed by setting the maximum value of the electrocardiographic beat signal to 1 and the minimum value to 0, for example.

次に、ステップS3において、抽出部18は、ステップS2によりクリティカルポイントを中心に配置した部分信がと心電信号のクリティカルポイントを含む参照用部分信号である確率を算出する。参照用部分信号は、予め取得された心電信号のクリティカルポイントを含む部分信号である。また、参照用部分信号は、ステップS1及びステップS2と同様にノイズ除去と正規化とを行い、クリティカルポイントを中心に配置した部分信号であってもよい。 Next, in step S3, the extraction unit 18 calculates the probability that the partial signal centered on the critical point in step S2 is the reference partial signal including the critical point of the electrocardiogram signal. A reference partial signal is a partial signal containing a critical point of an electrocardiographic signal acquired in advance. Also, the reference partial signal may be a partial signal in which noise removal and normalization are performed in the same manner as in steps S1 and S2 and the critical point is centered.

また、ステップS3において、抽出部18は、参照用部分信号に基づく入力データ、及び入力データに紐づく確率を一対の確率学習用データとして、複数の確率学習用データを用いて機械学習により生成された確率モデルを参照し、ステップS2によりクリティカルポイントを中心に配置した部分信号に基づく確率を算出してもよい。 Further, in step S3, the extraction unit 18 sets the input data based on the reference partial signal and the probability associated with the input data as a pair of probability learning data, and generates the data by machine learning using a plurality of probability learning data. The probabilistic model may be referred to, and the probability based on the partial signal centered on the critical point may be calculated in step S2.

図11は、確率モデルの学習データである参照用部分信号を生成するための心電信号のトリプレットの一例を示す模式図である。参照用部分信号は、例えば図11に示すような心電信号のトリプレットを用いて、学習データセットのサンプル数を増やすための処理により取得されてもよい。ECGトリプレットセグメントおよびクリティカルcpl、cpm、cprを用いて、1の確率が割り当てられる12個の参照用部分信号(1個典型的標準的な有効な参照用部分信号+11個の代替的等価的な有効部分信号)を生成する方法を示す模式図である。図13は、ECGトリプレットセグメントおよびクリティカルcpl、cpm、cprを用いて、0の確率が割り当てられる12個の参照用部分信号(無効な参照用部分信号)を生成する方法を示す模式図である。図13において、slは、選択された心電信号のトリプレットの左端を示し、srは選択された心電信号のトリプレットの右端を示す。d1とd2は、心電信号の複数のクリティカルポイント間のRR間隔である。心電信号のトリプレットには、図13に示すように、クリティカルポイント(cp)やクリッピングポイント等の情報が含まれている。cpは、心電信号のクリティカルポイント等の特徴点であり、具体的な位置は心電信号の形態に依存する。ほとんどの場合は、QRS群のクリティカルポイント位置だが、必ずしもクリティカルポイントである必要はない。cpmは中央のcp、cplはcpmの左側のcp、cprはcpmの右側のcpである。blとbrとは、部分信号の両端の座標の位置を示す。図13に示すように、RR間隔、d1、d2の値と、予め設定された任意の定数とに基づいて、自動的に部分信号を抽出することが可能となり、これにより抽出した部分信号を確率0の無効な心電ビート信号として学習データとして用いてもよい。図12におけるこの参照用部分信号は、学習用のデータを拡張するセットを生成するための各心電信号のトリプレットの一例である。たとえば、blは部分信号の左端を示し、brは部分信号の右端を示す。d1とd2を使用して、事前設定したセンタリング比に基づいてblとbrを計算する。これにより、生成した部分信号を確率1の有効な参照用部分信号として、学習データに用いてもよい。上記のクリティカルポイント(cp)やクリッピングポイントは、図12および図13で説明されているように、左・右シフトを実行するための参照ポイント、およびサンプルサイズを増やすための拡張手順及び他の操作として使用されてもよい。これにより抽出された信号を参照用部分信号として確率モデルの学習に用いる。これにより、自動的に参照用部分信号の拡張が可能となる。 FIG. 11 is a schematic diagram showing an example of an electrocardiographic signal triplet for generating a reference partial signal, which is learning data for a stochastic model. The reference partial signal may be obtained by processing for increasing the number of samples of the learning data set, for example, using an electrocardiographic signal triplet as shown in FIG. With ECG triplet segments and critical cpl, cpm, cpr, 12 reference sub-signals assigned a probability of 1 (1 typical standard valid reference sub-signal + 11 alternative equivalent valid 1 is a schematic diagram showing a method of generating a partial signal). FIG. FIG. 13 is a schematic diagram showing how ECG triplet segments and critical cpl, cpm, cpr are used to generate 12 reference sub-signals (invalid reference sub-signals) that are assigned a probability of 0; In FIG. 13, sl indicates the left edge of the selected electrocardiographic signal triplet, and sr indicates the right edge of the selected electrocardiographic signal triplet. d1 and d2 are the RR intervals between critical points of the ECG signal. As shown in FIG. 13, the triplet of the electrocardiographic signal includes information such as critical points (cp) and clipping points. cp is a characteristic point such as a critical point of the electrocardiographic signal, and its specific position depends on the form of the electrocardiographic signal. Most often, it is the critical point location of the QRS complex, but not necessarily the critical point. cpm is the middle cp, cpl is the left cp of cpm, and cpr is the right cp of cpm. bl and br indicate the coordinate positions of both ends of the partial signal. As shown in FIG. 13, it is possible to automatically extract a partial signal based on the values of the RR interval, d1, and d2, and an arbitrary preset constant. An invalid electrocardiographic beat signal of 0 may be used as learning data. This reference partial signal in FIG. 12 is an example of a triplet of each electrocardiographic signal for generating a set that extends the training data. For example, bl indicates the left edge of the partial signal and br indicates the right edge of the partial signal. d1 and d2 are used to calculate bl and br based on preset centering ratios. As a result, the generated partial signal may be used as learning data as a valid reference partial signal with a probability of 1. The above critical points (cp) and clipping points are reference points for performing left and right shifts, and expansion procedures and other manipulations to increase the sample size, as described in FIGS. 12 and 13. may be used as The signal thus extracted is used as a reference partial signal for learning of the probability model. This enables automatic extension of the reference partial signal.

分割処理過程において、新しく計算されたウィンドウの長さ(更新されたウィンドウパラメータ)、クリティカルポイント、および事前設定した中心比に基づいて、2つのクリッピングポイントが決定される。これらの2つのクリッピングポイントは、有効な信号セグメントが検出された後に心電ビート信号を抽出するのに使う。そのため、主要な心電信号の特徴(正常なQRSまたは異常なQRSのような波形など)は、分割された心電ビート信号のほぼ中央に配置される。 During the segmentation process, two clipping points are determined based on the newly calculated window length (updated window parameters), the critical point, and the preset center ratio. These two clipping points are used to extract the ECG beat signal after a valid signal segment is detected. As such, the main ECG signal feature (such as a normal QRS or an abnormal QRS-like waveform) is placed approximately in the middle of the split ECG beat signal.

確率モデルは、例えば複数の学習用データを用いた機械学習により生成された、学習済みモデルを含んでもよい。学習済みモデルは、例えばCNN(Convolutional Neural Network)等のニューラルネットワークモデルを示すほか、SVM(Support Vector Machine)等を示す。学習済みモデルは、例えばk分割交差検定等を用いて学習を行ってもよい。また、機械学習として、例えば深層学習を用いることができる。また、確率モデルは、複数の参照用部分信号を用いた教師無し学習により生成されたモデルであってもよい。学習用データは、例えば参照用部分信号と、確率とが紐づけられる。 A probabilistic model may include a trained model generated by machine learning using a plurality of training data, for example. A trained model indicates, for example, a neural network model such as a CNN (Convolutional Neural Network), or an SVM (Support Vector Machine). The trained model may be trained using, for example, k-fold cross validation. As machine learning, for example, deep learning can be used. Also, the probability model may be a model generated by unsupervised learning using a plurality of reference partial signals. In the learning data, for example, reference partial signals and probabilities are linked.

確率モデルには、例えば参照用部分信号(入力データ)と確率(出力データ)との間における連関度を有する連関性が記憶される。このため、心拍分類装置1では、例えば分類器の判定した結果を全て踏まえた連関性を用いて、入力データに適した出力データを選択する。これにより、入力データが、学習用入力データと同一又は類似である場合のほか、非類似である場合においても、入力データに適した出力データを定量的に選択することができる。 The probabilistic model stores, for example, relationships having degrees of association between reference partial signals (input data) and probabilities (output data). For this reason, the heart rate classification device 1 selects output data suitable for input data, for example, by using association based on all the results determined by the classifier. This makes it possible to quantitatively select output data suitable for the input data not only when the input data is the same as or similar to the learning input data, but also when they are dissimilar.

連関性は、例えば複数の出力データと、複数の入力データとの間における繋がりの度合いを示してもよい。かかる場合、連関度A1は、有効な参照用部分信号との連関度を示し、連関度A0は、無効な心電ビート信号との連関度を示す。この場合、連関性を用いることで、複数の出力データのそれぞれに対し、複数の入力データの関係の度合いを紐づけて記憶させることができる。このため、例えば連関性を介して、1つの出力データに対して、複数の入力データを紐づけることができる。これにより、参照用部分信号に対して確率を取得することができる。また、出力データとして用いる確率は、例えば確率1と確率0との2種類だけでもよいがこの限りではなく、任意の値に設定された3以上の確率が用いられてもよい。 Relevance may indicate the degree of connection between, for example, a plurality of output data and a plurality of input data. In this case, the degree of association A1 indicates the degree of association with valid reference partial signals, and the degree of association A0 indicates the degree of association with invalid electrocardiographic beat signals. In this case, by using associativity, it is possible to link the degree of relationship between the plurality of input data to each of the plurality of output data and store them. For this reason, a plurality of input data can be linked to one output data, for example, via association. Thereby, the probability can be obtained for the reference partial signal. Also, the probabilities used as output data may be, for example, only two types of probabilities 1 and 0, but the present invention is not limited to this, and probabilities of 3 or more set to arbitrary values may be used.

また、確率モデルは、入力データと出力データとの間に少なくとも1以上の隠れ層が設けられ、機械学習させるようにしてもよい。入力データ又は隠れ層データの何れか一方又は両方において上述した連関度が設定され、これが各データの重み付けとなり、これに基づいて出力の選択が行われる。そして、この連関度がある閾値を超えた場合に、その出力を選択するようにしてもよい。図14に示すように、この確率モデルに部分信号を入力し、出力された確率と閾値との比較により、部分信号が有効な心電ビート信号か、無効な心電ビート信号かを判断することが可能となる。 Moreover, the probability model may be machine-learned by providing at least one or more hidden layers between the input data and the output data. The degree of association described above is set in either or both of the input data and the hidden layer data, and this serves as weighting for each data, and output selection is performed based on this. Then, when the degree of association exceeds a certain threshold, the output may be selected. As shown in FIG. 14, a partial signal is input to this probability model, and the output probability is compared with a threshold to determine whether the partial signal is a valid electrocardiographic beat signal or an invalid electrocardiographic beat signal. becomes possible.

また、確率モデルの学習データとしてクリティカルポイントが含まれない確率0の無効な心電ビート信号を参照用部分信号として用いてもよい。かかる場合、図13に示すようなクリティカルポイントが含まれない部分信号を参照用部分信号として用いてもよい。この場合、確率モデルを用いて、参照用部分信号との乖離度を算出するようにしてもよい。 Further, invalid electrocardiographic beat signals with probability 0 that do not contain critical points may be used as reference partial signals as learning data for the stochastic model. In such a case, a partial signal that does not include a critical point as shown in FIG. 13 may be used as a reference partial signal. In this case, a probability model may be used to calculate the degree of divergence from the reference partial signal.

抽出部18は、上述した確率モデルを用いて、ステップS2によりクリティカルポイントを中心に配置した部分信号を入力として、確率を出力する。 The extracting unit 18 uses the above-described probability model, receives as input the partial signal arranged at the center of the critical point in step S2, and outputs the probability.

次に、ステップS4において、抽出部18は、ステップS3により算出した確率が閾値を超えているかを判断する。抽出部18は、確率が閾値を超えている場合、ステップS5に移行する。抽出部18は、確率が閾値以下の場合、ステップS9に移行する。 Next, in step S4, the extraction unit 18 determines whether the probability calculated in step S3 exceeds a threshold. If the probability exceeds the threshold, the extraction unit 18 proceeds to step S5. If the probability is equal to or less than the threshold, the extraction unit 18 proceeds to step S9.

次に、ステップS5において、抽出部18は、ステップS3により確率を計算した部分信号のcpを計算する。抽出部18は、例えば部分信号において閾値に対する差の絶対値が最も大きいポイントをcpとしてもよい。 Next, in step S5, the extraction unit 18 calculates cp of the partial signal whose probability has been calculated in step S3. The extraction unit 18 may set, for example, the point at which the absolute value of the difference from the threshold in the partial signal is the largest as cp.

次に、ステップS6において、抽出部18は、ステップS5により計算したcpと、当該cpと隣接するcpとの間の距離であるRR間隔とRR間隔の予想最小値とを比較する。抽出部18は、RR間隔がRR間隔の予想最小値より大きい場合、ステップS10に移行する。抽出部18は、RR間隔がRR間隔の予想最小値以下の場合、ステップS7に移行する。 Next, in step S6, the extraction unit 18 compares the cp calculated in step S5 with the RR interval, which is the distance between the cp and the adjacent cp, and the expected minimum value of the RR interval. If the RR interval is greater than the expected minimum value of the RR interval, the extraction unit 18 proceeds to step S10. If the RR interval is equal to or less than the expected minimum value of the RR interval, the extraction unit 18 proceeds to step S7.

ステップS7において、抽出部18は、ステップS5により計算したcpと、当該cpと隣接するcpとの間の距離であるRR間隔とRR間隔の予想最大値とを比較する。抽出部18は、RR間隔がRR間隔の予想最大値より大きい場合、ステップS8に移行する。抽出部18は、RR間隔がRR間隔の予想最大値以下の場合、ステップS11に移行する。 In step S7, the extraction unit 18 compares the cp calculated in step S5 with the RR interval, which is the distance between the cp and the adjacent cp, and the expected maximum value of the RR interval. If the RR interval is greater than the expected maximum value of the RR interval, the extraction unit 18 proceeds to step S8. If the RR interval is equal to or less than the expected maximum value of the RR interval, the extraction unit 18 proceeds to step S11.

ステップS8において、抽出部18は、ウィンドウのパラメータのcpをステップS5において計算したcpを更新する。また、ステップS8において、過去のcpも順次更新してもよい。 In step S8, the extraction unit 18 updates the cp of the window parameter calculated in step S5. Also, in step S8, the past cp may be updated sequentially.

ステップS9において、抽出部18は、次のウィンドウの位置を計算する。ステップS9において、抽出部18は、ウィンドウのパラメータを計算したウィンドウの位置に更新する。 In step S9, the extractor 18 calculates the position of the next window. In step S9, the extraction unit 18 updates the window parameter to the calculated window position.

ステップS10において、抽出部18は、オフセット値を計算する。抽出部18は、例えばクリティカルポイントとfwdとの和に基づいてオフセット値を計算する。また、抽出部18は、ウィンドウのパラメータを計算したオフセット値に更新してもよい。 In step S10, the extractor 18 calculates an offset value. The extraction unit 18 calculates the offset value based on, for example, the sum of the critical point and fwd. Also, the extraction unit 18 may update the parameter of the window to the calculated offset value.

ステップS11において、抽出部18は、ウィンドウのパラメータの更新を行う。ステップS11において、例えばRR間隔、RR間隔の予想最大値及び予想最小値、ウィンドウ幅wn、ステップ幅snを計算する。 In step S11, the extraction unit 18 updates the parameters of the window. In step S11, for example, the RR interval, expected maximum and expected minimum values of the RR interval, window width w n and step width s n are calculated.

ステップS12において、抽出部18は、fwdをリセットする。 In step S12, the extraction unit 18 resets fwd.

ステップS13において、抽出部18は、ウィンドウのパラメータのcpをステップS5において計算したcpを更新する。また、ステップS13において、過去のcpも順次更新してもよい。 In step S13, the extraction unit 18 updates the cp of the window parameter calculated in step S5. Also, in step S13, the past cp may be updated sequentially.

ステップS14において、抽出部18は、オフセット値を計算する。抽出部18は、例えばクリティカルポイントに基づいてオフセット値を計算する。また、ウィンドウのパラメータを計算したオフセット値に更新してもよい。 In step S14, the extractor 18 calculates an offset value. The extractor 18 calculates the offset value based on the critical point, for example. Also, the parameters of the window may be updated to the calculated offset value.

上述した各ステップを行うことにより、ウィンドウのパラメータの計算の動作を終了する。 By performing the steps described above, the window parameter calculation operation is completed.

次に、入浴者見守りシステム100は、分類した所属分類に基づいて、入浴者の状態を管理する。図15は、入浴者の状態を管理する動作の一例を示すフローチャートである。 Next, the bather watching system 100 manages the state of the bather based on the classification. FIG. 15 is a flow chart showing an example of the operation for managing the bather's condition.

まず、ステップS210において、取得部11は、各種データを取得する。かかる場合、取得部11は、センサ53により測定された浴室5の環境データ、入浴者の健康データ等を取得する。 First, in step S210, the acquisition unit 11 acquires various data. In such a case, the acquisition unit 11 acquires environmental data of the bathroom 5 measured by the sensor 53, health data of the bather, and the like.

次に、ステップS220において、状態判定部17は、ステップS170により分類された1又は複数の所属分類と、環境データ及び健康データを組み合わせた入浴情報とに基づいて、予め取得された所属分類と入浴情報とに対する入浴者の状態を示す状態データを記録した状態データベースを参照し、入浴者の状態データを判定する。また、状態判定部17は、入浴情報を用いることなく、所属分類のみに基づいて、状態データを判定してもよい。 Next, in step S220, the state determination unit 17 determines the pre-acquired affiliation classification and bathing information based on one or more affiliation classifications classified in step S170 and bathing information combining environmental data and health data. The state data of the bather is determined by referring to a state database that records state data indicating the state of the bather for the information. Moreover, the state determination unit 17 may determine the state data based only on the affiliation classification without using the bathing information.

状態データベースは、所属分類と入浴情報とに対する状態データを記録したデータベースである。状態データベースは、入力データを所属分類と入浴情報とし、出力データを状態データとして、一対の入力データと出力データとを学習用データとして、複数の学習用データを用いて生成された状態モデルを記録してもよい。かかる場合、この状態モデルは、入力データを所属分類と入浴情報とし、出力データを状態データとする点で上述したニューラルネットワークモデルと異なる。 The status database is a database that records status data for belonging classification and bathing information. The state database records a state model generated using a plurality of pieces of learning data, with input data as belonging classification and bathing information, output data as state data, and a pair of input data and output data as learning data. You may In such a case, this state model differs from the above-described neural network model in that the input data are belonging classes and bathing information, and the output data are state data.

状態データは、入浴者の状態を示すデータであり、例えば「正常」、「異常」、「熱中症」、「心筋梗塞」、「失神」等の状態を示す。 The state data is data indicating the state of the bather, such as "normal", "abnormal", "heatstroke", "myocardial infarction", and "fainting".

また、ステップS220において、状態判定部17は、ステップS170により分類された複数の所属分類に基づいて、状態データベースを参照し、入浴者の状態データを判定してもよい。かかる場合、状態判定部17は、時系列的に連続した複数のスカログラム画像からそれぞれ推定された複数の所属分類を入力として、状態データを判定する。かかる場合、例えば状態判定部17は、時系列的に連続した所属分類のうち、心室期外収縮が一定数観測されたとき、「異常」の状態データを出力してもよい。 Further, in step S220, the state determination unit 17 may refer to the state database to determine the state data of the bather based on the plurality of affiliation categories classified in step S170. In such a case, the state determination unit 17 receives as input a plurality of affiliation classes estimated from a plurality of time-series continuous scalogram images, and determines state data. In such a case, for example, the state determination unit 17 may output "abnormal" state data when a certain number of premature ventricular contractions are observed among the classifications that are continuous in time series.

次にステップS230において、処置判断部16は、状態データに対する処置データを判断する。処置データは、状態データに対する処置の方法を示すデータであり、例えば「浴槽51を排水する」、「救急車を呼ぶ」、「家族に通知する」等の処置を示すデータである。 Next, in step S230, the treatment determination unit 16 determines treatment data for the state data. The treatment data is data indicating a treatment method for the state data, such as "drain the bathtub 51", "call an ambulance", and "notify the family".

処置判断部16は、例えば予め取得された状態データと当該状態データに対する処置の方法を示す処置データとを1対の判断用学習データとし、複数の判断用学習データが記録された処置情報データベースを参照し、ステップS220により判定された状態データに対する処置データを判断する。 The treatment determination unit 16 sets, for example, condition data obtained in advance and treatment data indicating a treatment method for the condition data as a pair of learning data for judgment, and creates a treatment information database in which a plurality of learning data for judgment are recorded. Refer to it to determine treatment data for the state data determined in step S220.

処置情報データベースは、状態データに対する処置データを記録したデータベースである。処置情報データベースは、入力データを状態データとし、出力データを処置データとして、一対の入力データと出力データとを判断用学習データとして、複数の判断用学習データを用いて生成された処置モデルを記録してもよい。かかる場合、この処置モデルは、入力データを状態データとし、出力データを処置データとする点で上述したニューラルネットワークモデルと異なる。 The treatment information database is a database that records treatment data for status data. The treatment information database uses input data as state data, output data as treatment data, a pair of input data and output data as learning data for judgment, and records a treatment model generated using a plurality of learning data for judgment. You may In such a case, this treatment model differs from the neural network model described above in that the input data is state data and the output data is treatment data.

次に、ステップS240において、出力部15は、ステップS230により判断された処置データを送信する。かかる場合、出力部15は、例えば端末2、又はモニタ54等に処置データを送信し、入浴者の家族、介護者、又は入浴者に処置データを提示させる。これにより、入浴者の家族、介護者、又は入浴者に適切な処置方法を提示することが可能となる。 Next, in step S240, the output unit 15 transmits the treatment data determined in step S230. In such a case, the output unit 15 transmits the treatment data to, for example, the terminal 2, the monitor 54, or the like, and presents the treatment data to the bather's family, caregiver, or bather. This makes it possible to present an appropriate treatment method to the bather's family, caregiver, or bather.

次に、ステップS250において、ステップS240により送信された処置データに応じて、排水装置52は、浴槽51を排水する。かかる場合、排水装置52は、予め各処置データに対して排水を行うか行わないかが設定されていてもよい。また、処置データに応じて、換気扇56は、浴室5内を換気してもよい。かかる場合、予め各処置データに対して換気を行うか行わないかが設定されていてもよい。 Next, in step S250, the drainage device 52 drains the bathtub 51 according to the treatment data transmitted in step S240. In such a case, the drainage device 52 may be set in advance as to whether or not to perform drainage for each treatment data. Further, the ventilation fan 56 may ventilate the inside of the bathroom 5 according to the treatment data. In such a case, whether or not to perform ventilation may be set in advance for each treatment data.

次に、ステップS260において、取得部11は、ステップS230により判断された処置データに対する処置結果を示す結果データを取得する。結果データは、入浴者に処置を施した結果を示すデータであり、例えば「問題なし」、又は「問題あり」等のデータを含む。取得部11は、例えば端末2から送信された結果データを取得してもよい。 Next, in step S260, the acquisition unit 11 acquires result data indicating the treatment result for the treatment data determined in step S230. The result data is data indicating the result of treatment given to the bather, and includes data such as "no problem" or "problem". The acquisition unit 11 may acquire result data transmitted from the terminal 2, for example.

次に、ステップS270において、記憶部14は、ステップS260により取得された結果データに応じて、ステップS220により判定された状態データと、ステップS230により判断された処置データとを1対の判断用学習データとし、新たに処置情報データベースに記録する。記憶部14は、例えば結果データが「問題なし」であった場合に、判断用学習データを新たに処置情報データベースに記録し、「問題あり」であった場合、判断用学習データを新たに処置情報データベースに記録しないようにしてもよい。また、例えば結果データが「問題なし」であった場合、状態データと処置データとの連関度が高くなるように設定してもよい。これにより、結果をフィードバックさせることが可能となるため、より精度を向上させることができる。 Next, in step S270, the storage unit 14 combines the state data determined in step S220 and the treatment data determined in step S230 into a pair of determination learning data according to the result data acquired in step S260. data and newly recorded in the treatment information database. For example, when the result data is "no problem", the storage unit 14 newly records the learning data for judgment in the treatment information database, and when the result data is "problem", the learning data for judgment is newly recorded in the treatment information database. It may not be recorded in the information database. Further, for example, if the result data is "no problem", the degree of association between the status data and the treatment data may be set to be high. As a result, it is possible to feed back the result, so that the accuracy can be further improved.

上述した各ステップを行うことにより、入浴者見守りシステム100の入浴者の状態を管理する動作が終了する。これにより、入浴者の状態を高精度に判定することが可能となる。 By performing the steps described above, the operation of the bather monitoring system 100 for managing the state of the bather is completed. This makes it possible to determine the state of the bather with high accuracy.

本発明の実施形態を説明したが、この実施形態は例として提示したものであり、発明の範囲を限定することは意図していない。このような新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。この実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 While embodiments of the invention have been described, the embodiments have been presented by way of example and are not intended to limit the scope of the invention. Such novel embodiments can be implemented in various other forms, and various omissions, replacements, and modifications can be made without departing from the scope of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the scope of the invention described in the claims and its equivalents.

1 :心拍分類装置
2 :端末
3 :サーバ
4 :通信網
5 :浴室
10 :筐体
11 :取得部
12 :変換部
13 :所属分類推定部
14 :記憶部
15 :出力部
16 :処置判断部
17 :状態判定部
18 :抽出部
19 :分離部
51 :浴槽
52 :排水装置
53 :センサ
54 :モニタ
55 :電極
56 :換気扇
100 :入浴者見守りシステム
101 :CPU
102 :ROM
103 :RAM
104 :保存部
105 :I/F
106 :I/F
107 :I/F
108 :入力部
109 :表示部
110 :内部バス
Reference Signs List 1: heartbeat classification device 2: terminal 3: server 4: communication network 5: bathroom 10: housing 11: acquisition unit 12: conversion unit 13: affiliation classification estimation unit 14: storage unit 15: output unit 16: treatment determination unit 17 : State determination unit 18 : Extraction unit 19 : Separation unit 51 : Bathtub 52 : Drainage device 53 : Sensor 54 : Monitor 55 : Electrode 56 : Ventilation fan 100 : Bather monitoring system 101 : CPU
102: ROM
103: RAM
104: Storage unit 105: I/F
106: I/F
107: I/F
108: Input section 109: Display section 110: Internal bus

Claims (10)

心電信号に基づいて、心電信号の各心拍の分類を示す所属分類を推定する心拍分類装置において、
前記心電信号から前記心電信号の一部を含む部分信号を抽出する抽出手段と、
前記抽出手段により抽出された部分信号が心電信号のピークを含む参照用部分信号である確率を算出する確率算出手段と、
前記確率算出手段により算出された確率が閾値以上となる部分信号に基づいて、1周期分の心電信号を示す心電ビート信号を分離する分離手段と、
前記分離手段により分離された心電ビート信号に基づいて、前記所属分類を推定する所属分類推定手段とを備えること
を特徴とする心拍分類装置。
In a heartbeat classification device that estimates a classification indicating a classification of each heartbeat of the electrocardiographic signal based on the electrocardiographic signal,
extracting means for extracting a partial signal containing a part of the electrocardiographic signal from the electrocardiographic signal;
probability calculating means for calculating the probability that the partial signal extracted by the extracting means is a reference partial signal containing the peak of the electrocardiographic signal;
Separating means for separating an electrocardiographic beat signal representing one cycle of the electrocardiographic signal based on the partial signal for which the probability calculated by the probability calculating means is equal to or greater than a threshold;
A heartbeat classification apparatus, comprising: classification affiliation estimation means for estimating the classification classification based on the electrocardiographic beat signal separated by the separation means.
前記確率算出手段は、前記参照用部分信号に基づく入力データ、及び前記入力データに紐づく確率を一対の確率学習用データとして、複数の前記確率学習用データを用いて機械学習により生成された確率モデルを参照し、前記抽出手段により抽出された部分信号に基づく確率を算出すること
を特徴とする請求項1に記載の心拍分類装置。
The probability calculation means sets the input data based on the reference partial signal and the probability associated with the input data as a pair of probability learning data, and the probability is generated by machine learning using a plurality of the probability learning data. 2. The heart rate classification device according to claim 1, wherein a probability is calculated based on the partial signals extracted by said extraction means with reference to a model.
前記抽出手段は、心拍に関する心拍情報に基づいて、前記部分信号を抽出すること
を特徴とする請求項1に記載の心拍分類装置。
2. The heartbeat classification device according to claim 1, wherein said extraction means extracts said partial signals based on heartbeat information about heartbeats.
前記抽出手段は、前記分離手段により分離された心電ビート信号に基づいて、新たに部分信号を抽出すること
を特徴とする請求項1に記載の心拍分類装置。
2. The heart rate classification apparatus according to claim 1, wherein said extraction means newly extracts partial signals based on the electrocardiographic beat signal separated by said separation means.
前記分離手段は、前記心電信号における複数のピーク間の距離に基づいて、前記心電ビート信号の1周期分の長さを算出すること
を特徴とする請求項1に記載の心拍分類装置。
2. The heart rate classification apparatus according to claim 1, wherein said separating means calculates the length of one cycle of said electrocardiographic beat signal based on distances between a plurality of peaks in said electrocardiographic signal.
前記所属分類推定手段は、前記分離手段により分離された心電ビート信号をスカログラム画像に変換し、予め取得された学習用スカログラム画像に基づく入力データ、及び前記入力データに紐づく所属分類を一対の学習用データとして、複数の前記学習用データを用いて生成されたニューラルネットワークモデルを参照し、変換した前記スカログラム画像を入力として、所属分類を推定すること
を特徴とする請求項1~5の何れか1項に記載の心拍分類装置。
The classification estimating means converts the electrocardiogram beat signal separated by the separation means into a scalogram image, and combines input data based on the learning scalogram image acquired in advance and the classification associated with the input data into a pair. A neural network model generated using a plurality of the learning data as learning data is referred to, and the converted scalogram image is used as an input to estimate the belonging classification. 2. A heart rate classifier according to claim 1.
浴室内に設けられる温度、湿度、照度、響度、香り又は気圧のうちの何れか1以上を示す環境データを計測する浴室環境センサと、
前記浴室に入浴する入浴者の健康データを取得する入浴者情報取得手段と、
請求項6に記載された心拍分類装置により推定された1又は複数の所属分類と、前記浴室環境センサにより計測された環境データ及び前記入浴者情報取得手段により取得された健康データを組み合わせた入浴情報とに基づいて、予め取得された所属分類と入浴情報とに対する入浴者の状態を示す状態データを記録した状態データベースを参照し、前記入浴者の状態データを判定する状態判定手段と、
予め取得された状態データと状態データに対する処置の方法を示す処置データとを1対の判断用学習データとし、複数の判断用学習データが記録された処置情報データベースを参照し、前記状態判定手段によって判定された状態データに対する処置データを判断する処置判断手段と、を備えること
を特徴とする入浴者見守りシステム。
a bathroom environment sensor that measures environmental data indicating any one or more of temperature, humidity, illuminance, reverberation, scent, and atmospheric pressure provided in the bathroom;
a bather information acquiring means for acquiring health data of a bather taking a bath in the bathroom;
Bathing information obtained by combining one or more affiliation classifications estimated by the heartbeat classification device according to claim 6, environmental data measured by the bathroom environment sensor, and health data obtained by the bather information obtaining means. a state determination means for determining the state data of the bather by referring to a state database in which state data indicating the state of the bather with respect to the previously obtained affiliation classification and bathing information is recorded based on;
State data obtained in advance and action data indicating a method of action for the state data are used as a pair of learning data for judgment, and referring to a action information database in which a plurality of learning data for judgment are recorded, the state judging means and treatment determination means for determining treatment data for the determined condition data.
前記処置判断手段により判断された処置データを外部機器に送信する送信手段と、
前記処置判断手段により判断された処置データを入浴者に提示する提示手段と、をさらに備えること
を特徴とする請求項7に記載の入浴者見守りシステム。
a transmitting means for transmitting treatment data determined by the treatment determining means to an external device;
8. The bather watching system according to claim 7, further comprising presenting means for presenting the treatment data determined by the treatment determining means to the bather.
前記処置判断手段により判断された処置データに基づき、前記浴室に設けられた浴槽を排水する排水手段をさらに備えること
を特徴とする請求項7に記載の入浴者見守りシステム。
8. The bather watching system according to claim 7, further comprising drain means for draining a bathtub provided in said bathroom based on the treatment data determined by said treatment determination means.
前記処置判断手段により判断された処置データに対する処置結果を示す結果データを取得する処置結果取得手段と、
前記処置結果取得手段により取得された結果データに応じて、前記状態判定手段によって判定された状態データと、前記処置判断手段により判断された処置データとを1対の判断用学習データとし、新たに前記処置情報データベースに記録する記録手段とを備えること
を特徴とする請求項7に記載の入浴者見守りシステム。
a treatment result obtaining means for obtaining result data indicating a treatment result for the treatment data determined by the treatment determination means;
According to the result data acquired by the treatment result acquisition means, the state data determined by the state determination means and the treatment data determined by the treatment determination means are set as a pair of learning data for determination, and newly 8. The system for watching over a bather according to claim 7, further comprising recording means for recording in said treatment information database.
JP2022125488A 2022-08-05 2022-08-05 Heart rate classification device and bather monitoring system Active JP7162232B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022125488A JP7162232B1 (en) 2022-08-05 2022-08-05 Heart rate classification device and bather monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022125488A JP7162232B1 (en) 2022-08-05 2022-08-05 Heart rate classification device and bather monitoring system

Publications (2)

Publication Number Publication Date
JP7162232B1 true JP7162232B1 (en) 2022-10-28
JP2024022122A JP2024022122A (en) 2024-02-16

Family

ID=83806020

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022125488A Active JP7162232B1 (en) 2022-08-05 2022-08-05 Heart rate classification device and bather monitoring system

Country Status (1)

Country Link
JP (1) JP7162232B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269654A (en) 2001-03-13 2002-09-20 Osaka Gas Co Ltd Bathing safety management system
JP2009240661A (en) 2008-03-31 2009-10-22 Toyota Motor Corp Health care network system
WO2013114596A1 (en) 2012-02-01 2013-08-08 富士通株式会社 Information processing device, method for generating representative waveform, and program for generating representative waveform
JP2019201997A (en) 2018-05-24 2019-11-28 日本電信電話株式会社 Instantaneous heart rate reliability evaluation device, method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0562202U (en) * 1992-01-29 1993-08-20 横河メディカルシステム株式会社 Electrocardiographic system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002269654A (en) 2001-03-13 2002-09-20 Osaka Gas Co Ltd Bathing safety management system
JP2009240661A (en) 2008-03-31 2009-10-22 Toyota Motor Corp Health care network system
WO2013114596A1 (en) 2012-02-01 2013-08-08 富士通株式会社 Information processing device, method for generating representative waveform, and program for generating representative waveform
JP2019201997A (en) 2018-05-24 2019-11-28 日本電信電話株式会社 Instantaneous heart rate reliability evaluation device, method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Md. Rashed-Al-Mahfuz et al.,Deep convolutional neural networks based ECG beats classification to diagnose cardiovascular conditi,Biomedical Engineering letters,Vol.11,2021年,p.147-162,https://doi.org/10.1007/s13534-021-00185-w

Also Published As

Publication number Publication date
JP2024022122A (en) 2024-02-16

Similar Documents

Publication Publication Date Title
Narin et al. Early prediction of paroxysmal atrial fibrillation based on short-term heart rate variability
US9655559B2 (en) Automated sleep staging using wearable sensors
Acharya et al. Automated prediction of sudden cardiac death risk using Kolmogorov complexity and recurrence quantification analysis features extracted from HRV signals
CN111417337B (en) Disease onset risk prediction device, method, and program
JP2008536208A (en) Space-time self-organizing map
WO2021057423A1 (en) Image processing method, image processing apparatus, and storage medium
CN111870793B (en) Temperature pre-adjusting method and device, electronic equipment and readable storage medium
Surucu et al. Convolutional neural networks predict the onset of paroxysmal atrial fibrillation: Theory and applications
JP2021514768A (en) Methods for sleep stage detection, computing devices, and wearable devices
Martín-González et al. Improving the understanding of sleep apnea characterization using Recurrence Quantification Analysis by defining overall acceptable values for the dimensionality of the system, the delay, and the distance threshold
Cecotti Adaptive time segment analysis for steady-state visual evoked potential based brain–computer interfaces
AKDAĞ et al. A new approach for congestive heart failure and arrhythmia classification using downsampling local binary patterns with LSTM
JP7162232B1 (en) Heart rate classification device and bather monitoring system
JP2016120063A (en) Drowsiness estimation device and drowsiness estimation program
US11327567B2 (en) Information processing device and non-transitory computer readable medium
JP7126230B1 (en) Bathing person monitoring system
CN115778403B (en) Electrocardiogram analysis method, apparatus, electronic device, and storage medium
JP2002345862A (en) Individually adaptive biological signal passive-movement appliance control system and its control method
KR102342775B1 (en) Electrocardiogram signal processing method and apparatus
Tanii et al. A fuzzy logic approach to predict human body weight based on AR model
KR20200057309A (en) Method and apparatus for re-learning emotion recognition based on physiological signals
KR102475793B1 (en) Medical data providing method and recording medium storing the Medical data providing method
CN117459877B (en) Earphone sound effect regulation and control method and system based on intelligent perception
CN112716504B (en) Electrocardiogram data processing method and device, storage medium and electronic equipment
JP4440661B2 (en) EEG control device and program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220808

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20220808

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221005

R150 Certificate of patent or registration of utility model

Ref document number: 7162232

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150