This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2019-55019, filed on Mar. 22, 2019, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are related to a noise determination method, a noise determination device, and a non-transitory computer-readable storage medium for storing a noise determination program.
Electrocardiographic waves, brain waves, and signals emitted from the body due to biological phenomena such as pulse, respiration, and perspiration are analyzed to, for example, diagnose diseases or changes in physical conditions and find diseases at an early stage. For example, when brain waves are analyzed, noise may be mixed in brain wave data and decrease the accuracy. Examples of the noise include power-supply noise and noise generated by baseline fluctuations that occur when the contact states of electrodes or sensors are changed by body movement. Accordingly, a technique for removing noise from frequency data such as brain wave data using a frequency filter has been employed in recent years.
Examples of the related art include Japanese Laid-open Patent Publication No. 2019-16193, Japanese Laid-open Patent Publication No. 2011-110378, Japanese Laid-open Patent Publication No. 2004-249124, and Japanese Laid-open Patent Publication No. 2008-229307.
According to an aspect of the embodiments, a noise determination method executed by a computer, the noise determination method includes: acquiring time-series data; identifying a shape of a waveform of the time-series data using a persistent diagram; extracting a cluster whose lifetime from birth to death is equal to or greater than a threshold value in the persistent diagram; determining, from statistical information regarding time intervals related to pieces of data included in the cluster, whether or not peaks appear at regular intervals in the waveform of the time-series data; and controlling, based on a result of the determining, notification of an alert indicating that the time-series data includes noise.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention.
With the technique described above, however, when the frequency band of the main component is the same between a target signal and noise, it is difficult to remove only noise. Even after filtering is performed on data, it is difficult to determine whether or not the data includes noise.
For example, assume that electrocardiographic waveform data is superimposed on brain wave data. In this case, the removal of the electrocardiographic waveform data using the frequency filter is difficult because both have the same frequency band as the main component. Therefore, the data may be unable to be used to diagnose a disease that would otherwise be derived from brain wave data. It may be possible for an expert to visually examine the brain wave data one by one to determine whether noise is mixed. However, this is not practical because it takes an enormous amount of time to process large amounts of patient data.
An object of an aspect of the present embodiments is to provide a noise determination method, a noise determination program, and a noise determination device that may improve noise mixture determination accuracy.
According to an embodiment, noise mixture determination accuracy may be improved.
Embodiments of a noise determination method, a noise determination program, and a noise determination device disclosed in the present application will be described in detail with reference to the drawings. The present disclosure is not limited to the embodiments. The embodiments may be appropriately combined as long as no contradiction occurs.
For example, as illustrated in
The analysis using TDA-VBF (hereinafter occasionally simply referred to as TDA) will be described. TDA-VBF is data analysis based on a topology called “topological data analysis” and characterizes the shape of data such as a figure and an image on a multiscale basis. For example, intersection points when a straight line, which is parallel to an axis of time-series data such as brain wave data, is moved are extracted as a topology. A persistent diagram is obtained from the extracted topology. In the persistent diagram, each point represents a chunk in the data. The features of the time-series data are extracted with one axis serving as a birth axis and another axis serving as a death axis. The birth axis represents birth parameters of chunks. The death axis represents death parameters of the chunks. For example, the time interval between the birth and the death of each chunk may be observed on the persistent diagram. The diagonal in the center of the diagram indicates that the time interval between the birth and the death of a chunk is zero. When the time interval between the birth and the death of a chunk is large, a diagram is generated in a position distant from the diagonal and the chunk may be regarded as noise. For example, in the case of electrocardiographic waves having a waveform with large amplitudes, the time interval from the birth to the death of a chunk is large. Accordingly, a diagram is generated in a position distant from the diagonal. In the case of brain waves with amplitudes that are smaller than amplitudes of the electrocardiographic waveform, the time interval from the birth to the death of a chunk is small. Accordingly, a diagram is generated in a position close to the diagonal.
As illustrated in
In the TDA analysis, analyzing the persistent diagram illustrated in
The waveforms assumed in the present application will be described below.
On the assumption that each waveform has the features described above, analysis of noise mixture using TDA will be described.
For example, a region (a) in
Under these conditions, there assume to be 17 pieces of data belonging to the region (1), 10 pieces of data belonging to the region (2), 12 pieces of data belonging to the region (3), and three pieces of data belonging to the region (4). In this case, the score is calculated as “(1×17+10×10+100×12+1000×3)=4317.” When the score is equal to or greater than a threshold value, it is determined that noise such as electrocardiographic waves is highly likely to be mixed. Therefore, the data is excluded from disease diagnosis data.
In some cases, however, even brain waves alone may have large amplitudes depending on the surrounding environment, human brain activation, and how devices are installed.
In the case of the brain wave data having large amplitudes illustrated in
In view of the foregoing, in the present embodiment, when large-amplitude waves continue at certain regular intervals for a long period of time, it is determined that the waves are not normal brain waves and electrocardiographic waves are mixed therein. This improves noise mixture determination accuracy.
[Functional Configuration]
The communication unit 11 is a processing unit that controls communication with other devices. The communication unit 11 is, for example, a communication interface or the like. For example, the communication unit 11 receives brain wave data (measurement data), which is data to be determined, from an electroencephalograph, and transmits a result of determination and the like to an administrator terminal.
The storage unit 12 is an example of a storage device that stores data, a program to be executed by the controller 20, and the like. The storage unit 12 is, for example, a memory, a hard disk, or the like. The storage unit 12 stores a measurement data database (DB) 13, a brain wave data DB 14, and a noise-mixed data DB 15.
The measurement data DB 13 is a database that stores measurement data. The measurement data is brain wave data received from the electroencephalograph and subject to noise mixture determination. For example, the measurement data DB 13 stores data to be determined, which has been measured as brain wave data and is unknown about whether noise is mixed therein.
The brain wave data DB 14 is a database that stores data that has been determined that no noise is mixed therein or the degree of noise mixture is within an allowable range. For example, the brain wave data DB 14 stores data that has been determined to be brain wave data by the controller 20 described later and that is usable as disease diagnosis data.
The noise-mixed data DB 15 is a database that stores data that has been determined that noise is mixed therein or the degree of noise mixture is out of the allowable range. For example, the noise-mixed data DB 15 stores data that has been determined to be brain wave data including many noises by the controller 20 described later and that may possibly hamper accurate diagnosis since the data is not suitable to be used as disease diagnosis data.
The controller 20 is a processing unit that controls the processes of the entire noise determination device 10. The controller 20 is, for example, a processor or the like. The controller 20 includes a measurement unit 21, a filtering unit 22, a TDA processing unit 23, an analysis unit 24, a classification unit 25, and a display controller 26. The measurement unit 21, the filtering unit 22, the TDA processing unit 23, the analysis unit 24, the classification unit 25, and the display controller 26 are examples of processes that are executed by an electronic circuit included in the processor or the like, the processor, or the like.
The measurement unit 21 is a processing unit that measures brain waves. For example, the measurement unit 21 acquires measured brain wave data from the electroencephalograph that measures brain waves, and stores the brain wave data in the measurement data DB 13 as measurement data.
The filtering unit 22 is a processing unit that performs a filtering process on measurement data, which is data to be determined. For example, the filtering unit 22 reads the measurement data from the measurement data DB 13 and applies a frequency filter to the measurement data to remove a frequency band other than the brain waves. The filtering unit 22 then outputs the measurement data after the removal to the TDA processing unit 23.
The TDA processing unit 23 is a processing unit that analyzes the measurement data using TDA and generates a persistent diagram. For example, the TDA processing unit 23 performs feature extraction using TDA, which has been described with reference to
The analysis unit 24 is a processing unit that analyzes the persistent diagram corresponding to the measurement data generated by the TDA processing unit 23 and determines whether noise is mixed. For example, the analysis unit 24 clusters pieces of data plotted in the persistent diagram. The analysis unit 24 generates “distant cluster” and “close cluster.” “Distant cluster” is in a distance equal to or greater than a threshold value from the diagonal. “Close cluster” is in a distance less than the threshold value from the diagonal. When no “distant cluster” is present or when the number of samples (pieces of data) belonging to “distant cluster” is less than a threshold value, the analysis unit 24 determines that no noise is mixed, and outputs the result of the determination to the classification unit 25 and the display controller 26.
When “distant cluster” is present or when the number of samples (pieces of data) belonging to “distant cluster” is equal to or greater than the threshold value, the analysis unit 24 separates the distant cluster from each generated cluster. Subsequently, the analysis unit 24 extracts the peaks of large amplitudes of the separated cluster. After that, the analysis unit 24 detects the distribution of the time intervals between the peaks, and checks whether or not the peaks appear at certain regular intervals. When the large amplitudes continue to appear at regular intervals, the analysis unit 24 determines the measurement data as brain wave data in which noise is mixed.
For example, the analysis unit 24 determines whether noise is mixed by determining whether or not a long-lifetime data group, which corresponds to large amplitudes and appears in a position distant from the diagonal, has features of electrocardiographic waves whose large amplitudes appear at regular intervals. For example, when the data group has certain regularity, the analysis unit 24 gives an analysis that the large amplitudes appear at regular intervals, and determines that the measurement data includes electrocardiographic wave data. When the data group has no regularity, the analysis unit 24 gives an analysis that the brain wave data simply has large amplitudes, and determines that the measurement data does not include electrocardiographic wave data. The analysis unit 24 then outputs the measurement data and the result of the analysis to the classification unit 25 and the display controller 26.
The analysis unit 24 focuses on each “cluster distant from the diagonal” in a position equal to or greater than the threshold value from the diagonal. Subsequently, the analysis unit 24 refers to the measurement data to be analyzed, identifies large amplitudes (peaks) that are equal to or greater than the threshold value, and calculates the time intervals (Δt) between the peaks. After that, the analysis unit 24 identifies, for each time interval (Δt) between the peaks, the number of samples belonging to a corresponding one of the clusters that corresponds to the time interval between the peaks. Based on the identified number of samples, the analysis unit 24 determines whether peaks appear at regular intervals in the large-amplitude data group.
For example, as illustrated in
When the plot result for each set of Δt and N has a shape with a peak as illustrated in (a) of
In order to increase the reliability of the result of analysis, the analysis unit 24 may determine whether or not peaks appear at certain regular intervals from statistical information of the measurement data itself.
The analysis unit 24 may also identify, from the measurement data, b1 to b6 as peaks with amplitudes that are less than the first threshold value and equal to or greater than a second threshold value. For these peaks, the analysis unit 24 may calculate the standard deviation of the peak-to-peak distances and determine whether the peaks appear at regular intervals using the threshold value. Alternatively, when both the standard deviation of the peak-to-peak intervals from a1 to a7 and the standard deviation of the peak-to-peak intervals from b1 to b6 are less than the threshold value, the analysis unit 24 may determine that the peaks appear at regular intervals.
Referring back to
The display controller 26 is a processing unit that displays the result of the classification. For example, the display controller 26 displays the result of the classification performed by the classification unit 25 and the result of the analysis performed by the analysis unit 24 on a display unit such as a display and/or transmits the results to the administrator terminal or the like.
For example, assume that brain wave data has been measured to diagnose a disease in a medical institution.
The display controller 26 may also identify a position in which noise is mixed from the result of the analysis of the data of the series of measured brain waves and highlight the position on the brain wave data, for example. In this manner, the display controller 26 may also notify the doctor of the position that is not suitable for diagnosis.
[Flow of Analysis Process]
A flow of the above-described process of analyzing whether or not noise is mixed in measurement data will be described.
The filtering unit 22 applies the frequency filter to the measurement data to remove the frequency band other than brain waves (S103). The TDA processing unit 23 performs a TDA process on the measurement data after the removal, and generates a persistent diagram (S104).
After that, the analysis unit 24 clusters the results of the persistent diagram (S105), and derives the time intervals between peaks of cluster(s) distant from the diagonal of the diagram (S106). Subsequently, the analysis unit 24 determines whether or not the peaks appear at regular intervals (S107).
The classification unit 25 classifies the measurement data according to the result of the determination performed by the analysis unit 24 (S108), and the display controller 26 displays the result of the determination on the display or the like (S109). When there is any other measurement data to be analyzed (S110: Yes), processes in and after S102 are repeated. When there is no measurement data to be analyzed (S110: No), the process ends.
(Flow of Determination Process)
A flow of the determination process using the technique described with reference to
As illustrated in
When the standard deviation is less than the threshold value (S205: Yes), the analysis unit 24 deduces that the waveform has peaks at regular intervals, and determines that noise is mixed in the measurement data (S206). When the standard deviation is equal to or greater than the threshold value (S205: No), the analysis unit 24 deduces that the peak-to-peak intervals are irregular, and determines that no noise is mixed in the measurement data (S207).
[Effects]
As described above, when the measured brain wave data (measurement data) includes large-amplitude waves that occur at certain regular intervals for a long period of time, the noise determination device 10 determines that these waves are not normal brain waves and electrocardiographic waves are mixed therein. The noise determination device 10 may automate determination by calculating scores based on the brain wave data and the data in which electrocardiographic waves are mixed in brain waves and comparing the score of the brain wave data with the score of the data in which the electrocardiographic waves are mixed in the brain waves. Accordingly, an artifact of an electrocardiogram may be detected from the time-series brain wave information without individually recording the electrocardiogram.
In electrocardiographic waves having regular period and peak positions, the noise determination device 10 may easily grasp the features of a waveform of R waves or the like using TDA. As in the case of the electrocardiographic waves, moreover, the noise determination device 10 may easily perform feature extraction on brain waves having period and peaks that irregularly change. By applying TDA to data in which electrocardiographic waves are mixed in brain waves, the features of the brain waves are distinguished from the features of the electrocardiographic waves. Therefore, whether noise is mixed may be sufficiently determined by visual observation.
With the technique according to the first embodiment, even when waves are normal brain waves, there is a possibility that the waves are erroneously detected as noise when the amplitude of a specific frequency band such as α waves or β waves is large. In a second embodiment, in order to suppress such erroneous noise detection, whether the peak shape of a waveform is sharp is added to the electrocardiographic-wave mixture determination in the first embodiment.
For example, the analysis unit 24 separates a cluster close to the diagonal and a cluster distant from the diagonal from each other based on the results of the persistent diagram. The analysis unit 24 determines whether or not the standard deviation σ of the lifetimes of pieces of data included in the cluster close to the diagonal is equal to or greater than a given value by comparing the standard deviation σ with the hypotenuse of a right triangle in which the cluster distant from the diagonal serves as the vertex. For example, the standard deviation for the data including only brain waves is greater than the standard deviation for the data in which electrocardiographic waves are mixed. Therefore, when a ratio of the standard deviation σ to the length of the hypotenuse of the right triangle is equal to or greater than a threshold value, the analysis unit 24 determines that the data includes only brain waves.
A mixed pattern where electrocardiographic waves are mixed and a pattern where only brain waves are included will be described.
As illustrated in
As illustrated in
As illustrated in
In this manner, the standard deviation of the cluster close to the diagonal is compared with the hypotenuse of the right triangle in which the cluster distant from the diagonal serves as the vertex. This may suppress such a situation that normal brain wave data having large amplitudes in a specific frequency band is erroneously detected as noise.
While the embodiments of the present disclosure have been described above, the present disclosure may be implemented in various different forms in addition to the embodiments above.
[Measurement Data]
While the brain wave data has been described as an example in the embodiments above, the measurement data is not limited thereto and other time-series data having irregular peaks may also be similarly processed.
[Analysis]
While both the analysis illustrated in
While the standard deviation or the length of the cluster close to the diagonal is compared with the hypotenuse of the right triangle in the example in the second embodiment, the way the determination is made is not limited thereto. For example, it may be determined whether or not the standard deviation or the length of the cluster close to the diagonal is equal to or greater than a threshold value. In this case, when the standard deviation or the length of the cluster close to the diagonal is equal to or greater than the threshold value, the possibility of noise mixture may be determined to be low.
[Noise]
While electrocardiographic waves have been described as an example of noise that is mixed in brain waves in the embodiments above, noise is not limited thereto and pulse waves or the like may be similarly processed. Moreover, while the output of the message for prompting remeasurement has been described as an example of an alert of noise mixture, the alert is not limited thereto and warning sound may be output or a warning lamp may light up, for example.
[System]
Unless otherwise specified, any change may be made to processing procedures, control procedures, specific names, and information including various pieces of data and parameters described in the embodiments above and drawings.
The components of the devices illustrated in the drawings are functional concepts and do not need to be physically configured as illustrated in the drawings. For example, concrete forms of the distribution and integration of the devices are not limited to those illustrated in the drawings, and all or part of the devices may be functionally or physically distributed or integrated in any desired unit depending on various loads and usage conditions.
All or any desired part of the processing functions to be executed by each device may be implemented by a central processing unit (CPU) and a program that is analyzed and executed by the CPU, or may be implemented as hardware using wired logic.
[Hardware]
The communication device 10a is a network interface card or the like and communicates with other servers. The HDD 10b stores the program and the DBs that operate the functions illustrated in
The processor 10d reads the program that executes the same processes as the processing units illustrated in
In this manner, the noise determination device 10 reads and executes the program to operate as an information processing device that executes the noise determination method. The noise determination device 10 may cause a medium reader to read the program from a recording medium, and execute the read program to implement the same functions as those in the embodiments above. The program referred to herein is not limited to being executed by the noise determination device 10. For example, when another computer or server executes the program or when the computer and server execute the program in cooperation with each other, the present embodiments may also be similarly applied.
All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2019-055019 | Mar 2019 | JP | national |