Abnormality detection system, device, method and program
The abnormality detection system uses a hidden Markov model with MFCC features to accurately identify quasi-stationary impact noise in time-series signals, enhancing detection precision and enabling non-destructive inspection.
Patent Information
- Application Number
- JP2023061681
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-04-05
AI Technical Summary
Conventional systems struggle to accurately detect quasi-stationary impulsive noise in time-series signals, which is challenging due to its continuous and short-duration nature.
An abnormality detection system utilizing a hidden Markov model to analyze time-series signals, including preprocessing and feature extraction using MFCC features, to identify quasi-stationary impact noise by considering temporal relationships and eliminating background noise.
Highly accurate detection of quasi-stationary impact noise sections in time-series signals, enabling non-destructive inspection and improved detection accuracy through sensor information analysis.
Smart Images

Figure 2024148499000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a system for detecting an abnormal section from a time-series signal. [Background technology]
[0002] In recent years, systems have been developed that detect abnormal sections in time-series signals by analyzing the time-series signals acquired from an object under inspection using machine learning techniques.
[0003] For example, Patent Document 1 discloses a technique for detecting an abnormal section in a time-series signal by generating feature quantities from various time-series signals and clustering the feature quantities. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 6882397 Summary of the Invention [Problem to be solved by the invention]
[0005] However, in this type of conventional system, it was difficult to detect anomalies based on quasi-stationary impulse noise (or quasi-stationary impulse noise). Quasi-stationary impulse noise is an impulse noise (burst) that occurs continuously at a nearly constant level and at extremely short intervals (for example, less than 0.2 [s]).
[0006] The present invention has been made in consideration of the above-mentioned technical background, and its purpose is to detect, with high accuracy, a section containing quasi-stationary impact noise as an abnormal section in a time series signal obtained from an object to be inspected. [Means for solving the problem]
[0007] The above-mentioned technical problem can be solved by an anomaly detection system, device, method, or system having the following configuration.
[0008] That is, the anomaly detection system according to the present invention includes a time series signal acquisition unit that acquires a time series signal generated by placing an object to be inspected in a specific state, a feature series generation unit that generates a feature series based on the time series signal, a prediction processing unit that predicts a state series corresponding to the feature series based on the feature series and a trained hidden Markov model, and an anomaly detection unit that detects an abnormal section in the time series signal based on the predicted state series.
[0009] According to such a configuration, since the time-wise relationship of the feature quantities can be taken into consideration using a hidden Markov model, a section containing quasi-stationary impact noise can be detected as an abnormal section with high accuracy in a time-series signal obtained from the object to be inspected. Note that the specific state includes, for example, a state in which the object to be inspected is physically operated, a state in which the object to be inspected is electrically operated, a state in which an external force such as vibration is applied, etc. Also, the time-series signal generated by putting the object to be inspected in a specific state includes, for example, a time-series sound signal or a sensor signal acquired by a microphone or various sensors.
[0010] The time-series signal may include a time-series sound signal which is a time-series signal related to a sound generated from the object to be inspected.
[0011] According to this configuration, since abnormality detection is performed based on the sound generated from the object to be inspected, the inspection can be performed non-destructively.
[0012] The time series signal may include a time series sensor signal which is a time series signal relating to sensor information indicating a state of the inspection object.
[0013] With this configuration, the accuracy of anomaly detection can be improved by utilizing sensor information indicating the state of the object being inspected that may be causally related to the anomaly, such as the state of the object being inspected (including, for example, mechanical and physical states).
[0014] The time-series sensor signal may include a time-series acceleration signal indicative of an acceleration acting on the inspection object.
[0015] According to such a configuration, by utilizing sensor information indicating the acceleration acting on the inspection object, it is possible to further improve the accuracy of detecting anomalies involving displacement.
[0016] The feature sequence generation unit may further include a frequency domain signal generation unit that generates a frequency domain sound signal and a frequency domain sensor signal by converting the time series sound signal and the time series sensor signal into a frequency domain in a predetermined unit, respectively, and the feature sequence may be generated based on the frequency domain sound signal and the frequency domain sensor signal.
[0017] According to this configuration, since a feature sequence is generated from a frequency domain signal, the feature can be generated based on the energy of the signal over a predetermined frequency range.
[0018] The feature sequence may include sound data MFCC features including Mel-frequency cepstral coefficients generated based on the frequency domain sound signal, and sensor data MFCC features including Mel-frequency cepstral coefficients generated based on the frequency domain sensor signal.
[0019] According to such a configuration, the feature amount can be set to a feature amount that takes into account the human hearing characteristics.
[0020] The trained hidden Markov model may include a sound data trained hidden Markov model and a sensor data trained hidden Markov model that are generated by performing machine learning based on the sound data MFCC features and the sensor data MFCC features, respectively.
[0021] According to this configuration, it is possible to use a trained hidden Markov model based on MFCC features related to a sound signal and a trained hidden Markov model based on MFCC features related to a sensor signal, thereby enabling multifaceted and highly accurate anomaly detection.
[0022] The trained hidden Markov model may be obtained by selecting, from a plurality of trained hidden Markov models with different numbers of states, one whose information criterion satisfies a predetermined condition.
[0023] According to such a configuration, an information criterion, which is an index regarding the quality of a statistical model, is used, so that it is possible to eliminate, for example, over-trained models and identify the optimal trained hidden Markov model.
[0024] The information criterion may be the Akaike Information Criterion (AIC).
[0025] According to such a configuration, the Akaike Information Criterion, which is an effective indicator of the quality of a statistical model, is used, so that it is possible to eliminate, for example, over-trained models and identify the optimal trained hidden Markov model.
[0026] The trained hidden Markov model may be generated by unsupervised learning based on a feature sequence, and a user may define, after learning, which states of the trained hidden Markov model are to be considered abnormal.
[0027] According to this configuration, since annotations (or labels) regarding anomalies in the feature sequence to be learned are not required, anomalies can be detected without prior preparation.
[0028] The feature sequence may be generated by performing a predetermined pre-processing on the frequency domain sound signal and the frequency domain sensor signal.
[0029] According to this configuration, it is possible to perform pre-processing on the frequency domain signal and generate more appropriate features.
[0030] The pre-processing may include frequency band limiting.
[0031] According to such a configuration, the frequency range to be analyzed can be limited in advance, so that background noise and the like that is not necessary for the analysis can be eliminated, thereby improving the accuracy of abnormality detection.
[0032] The pre-processing may include a normalization process.
[0033] According to this configuration, the scale can be made uniform, so that appropriate feature quantities can be generated.
[0034] The pre-processing may include masking a predetermined frequency domain.
[0035] According to this configuration, a predetermined frequency range is masked, so that analysis of unnecessary frequency ranges can be prevented.
[0036] The pre-processing may include masking of predetermined power regions.
[0037] According to this configuration, a predetermined power region is masked, so that analysis of unnecessary frequency regions can be prevented.
[0038] Viewed from another aspect, the present invention is an anomaly detection device comprising: a time series signal acquisition unit that acquires a time series signal generated by placing an object to be inspected in a specific state; a feature series generation unit that generates a feature series based on the time series signal; a prediction processing unit that predicts a state series corresponding to the feature series based on the feature series and a learned hidden Markov model; and an anomaly detection unit that detects an abnormal section in the time series signal based on the predicted state series.
[0039] Viewed from another aspect, the present invention is an anomaly detection method comprising: a time-series signal acquisition step of acquiring a time-series signal generated by placing an object to be inspected in a specific state; a feature sequence generation step of generating a feature sequence based on the time-series signal; a prediction processing step of predicting a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; and an anomaly detection step of detecting an abnormal section in the time-series signal based on the predicted state sequence.
[0040] Viewed from another aspect, the present invention is an anomaly detection program comprising: a time series signal acquisition step of acquiring a time series signal generated by placing an object to be inspected in a specific state; a feature series generation step of generating a feature series based on the time series signal; a prediction processing step of predicting a state series corresponding to the feature series based on the feature series and a trained hidden Markov model; and an anomaly detection step of detecting an abnormal section in the time series signal based on the predicted state series.
[0041] Viewed from another aspect, the present invention is an anomaly detection system comprising: a time series signal acquisition unit that acquires a time series signal generated in a drive train; a feature sequence generation unit that generates a feature sequence based on the time series signal; a prediction processing unit that predicts a state sequence corresponding to the feature sequence based on the feature sequence and a learned hidden Markov model; and an anomaly detection unit that detects an abnormal section in the time series signal based on the predicted state sequence. Effect of the Invention
[0042] According to the present invention, a section containing quasi-stationary impact noise in a time-series signal obtained from an object to be inspected can be detected with high accuracy as an abnormal section. [Brief description of the drawings]
[0043] [Figure 1] FIG. 1 is a diagram showing the overall configuration of the system. [Diagram 2] FIG. 2 is a diagram showing the hardware configuration of the analysis device. [Diagram 3] FIG. 3 is a diagram showing the hardware configuration of the learning device. [Figure 4] FIG. 4 is a functional block diagram (part 1) of a learning device that performs machine learning processing. [Diagram 5] FIG. 5 is a functional block diagram (part 2) of a learning device that performs machine learning processing. [Figure 6] FIG. 6 is a functional block diagram of an analysis device that performs an abnormality detection process. [Figure 7] FIG. 7 is a general flowchart of the machine learning process. [Figure 8] FIG. 8 is a detailed flowchart of the learning preparation process. [Figure 9] FIG. 9 is a detailed flowchart of pre-processing related to the learning process. [Figure 10] FIG. 10 is a detailed flowchart of the model learning process. [Figure 11] FIG. 11 is a detailed flowchart of the model selection and storage process. [Figure 12] FIG. 12 is an example of a graph showing the Akaike Information Criterion (AIC) and the maximum logarithm of likelihood (score) versus the number of states. [Figure 13] FIG. 13 is a general flowchart relating to the abnormality detection process. [Figure 14] FIG. 14 is a detailed flowchart of the prediction preparation process. [Figure 15] FIG. 15 is a detailed flowchart of pre-processing related to the abnormality detection processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0044] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0045] 1. First Embodiment In the first embodiment, an example will be described in which the present invention is applied to a time series signal that is acquired from a drive train (power transmission mechanism) that transmits rotational power from an engine or motor of an automobile and may include quasi-stationary impact noise (also referred to as quasi-stationary impact noise in this embodiment). Note that, although this embodiment targets a time series signal acquired from a drive train, the present invention is not limited to such a configuration. Therefore, it goes without saying that the present invention may be applied to other time series signals.
[0046] (1.1 System Configuration) (Hardware configuration) FIG. 1 is an overall configuration diagram of a system including a data measurement system 100 for measuring time-series data generated in a drive train, which is an object 7 to be inspected, and a learning device 4.
[0047] As is clear from the figure, the data measurement system 100 comprises an inspection object 7, a control server 8, a front end 9, and an analysis device 1.
[0048] The control server 8 controls the engine or motor connected to the drive train according to an automatic measurement program. Specifically, the control server 8 performs automatic measurement processing by generating a predetermined test pattern, setting measurement conditions, etc. Furthermore, information regarding the measurement conditions, etc. is transmitted to the analysis device 1 and stored in the memory unit 13 of the analysis device 1.
[0049] The front end 9 reads out time series signals acquired from a microphone and various sensors (not shown) installed on the inspection target 7 as channel signals and outputs them to the analysis device 1. The analysis device 1 stores these time series signals in its storage unit 13. In this embodiment, the time series signals include a time series signal related to the sound emitted from the drive train and collected by the microphone, and a time series signal related to the acceleration acting on the drive train acquired from an acceleration sensor attached to the drive train.
[0050] The analysis device 1 performs measurement processing and analysis processing of data. More specifically, the analysis device 1 performs predetermined pre-processing such as setting a sampling frequency and a channel on a signal provided to the front end 9. The analysis device 1 also stores data acquired via the front end 9 and performs processing such as anomaly detection on the acquired data.
[0051] That is, by operating the data measurement system 100, time-series signals relating to sound and acceleration acquired from a microphone and various sensors (not shown) installed on the drive train, which is the inspection target 7, are stored in the storage unit 13 of the analysis device 1. The analysis device 1 performs analysis processing such as anomaly detection on this data.
[0052] The data measurement system 100 is connected to a learning device 4 via the analysis device 1. The learning device 4 performs machine learning processing to generate a trained model based on time-series data and the like provided by the analysis device 1. The generated trained model is provided to the analysis device 1 and used for various prediction processes.
[0053] 2 is a hardware configuration diagram of the analysis device 1. As is clear from the diagram, the analysis device 1 includes a control unit 11, a display output unit 12, a storage unit 13, an operation input unit 15, a voice output unit 16, a communication unit 17, and an I / O unit 18.
[0054] The control unit 11 is made up of a CPU etc., and executes various programs for the processing described below. The display output unit 12 performs image output processing for displaying on a display etc. The memory unit 13 is made up of a ROM, RAM, hard disk etc., and stores various programs and data. The operation input unit 15 processes operation signals input via a keyboard etc. The audio output unit 16 performs processing to output audio signals to an audio output device such as a speaker (not shown). The communication unit 17 is made up of a communication unit etc., and performs wired or wireless communication processing with an external device. The I / O unit 18 performs input / output processing by connecting to an external device.
[0055] Analysis device 1 may be realized as a dedicated device for measurement, analysis, etc., or may be realized by installing predetermined software in a general-purpose information processing device such as a personal computer (PC).
[0056] 3 is a hardware configuration diagram of the learning device 4. As is clear from the diagram, the learning device 4 includes a control unit 41, a display output unit 42, a storage unit 43, an operation input unit 45, an audio output unit 46, a communication unit 47, and an I / O unit 48.
[0057] The control unit 41 is made up of a CPU and a GPU, and executes various programs for the processes described below. The display output unit 42 performs image output processing for displaying on a display or the like. The storage unit 43 is made up of a ROM, a RAM, an SSD, etc., and stores various programs and data. The operation input unit 45 processes operation signals input via a keyboard or the like. The audio output unit 46 performs processing to output audio signals to an audio output device such as a speaker (not shown). The communication unit 47 is made up of a communication unit or the like, and performs wired or wireless communication processing with an external device. The I / O unit 48 performs input / output processing by connecting to an external device.
[0058] The learning device 4 may be realized as a dedicated device for machine learning, or may be realized by installing predetermined software in a general-purpose information processing device such as a personal computer (PC).
[0059] In this embodiment, as described above, the system is configured from the data measurement system 100 and the learning device 4, but the present invention is not limited to such a configuration and various known configurations can be adopted. Therefore, for example, the analysis device 1 and the learning device 4 may be configured as an integrated unit.
[0060] (Function block diagram for learning process) 4 is a functional block diagram (part 1) of a learning device 4 that performs machine learning processing, in particular, a learning preparation process (S1) and a model learning process (S3). The control unit 41 includes a time-series signal acquisition unit 411 and a learning unit 412.
[0061] The time series signal acquisition unit 411 includes a sound signal time series data acquisition unit 413 and an acceleration signal time series data acquisition unit 414. The sound signal time series data acquisition unit 413 acquires a time series signal related to a sound signal from the storage unit 43. The acceleration signal time series data acquisition unit 414 acquires a time series signal related to acceleration from the storage unit 43. The time series signal acquisition unit 411 provides the time series data acquired from the storage unit 43 to a spectrogram conversion unit 415 of the learning unit 412.
[0062] In this embodiment, a configuration for acquiring a sound signal and an acceleration signal as time-series signals is disclosed, but the present invention is not limited to such a configuration. Therefore, other time-series signals may be acquired, for example, time-series signals related to the number of rotations or torque of the object to be inspected may be acquired.
[0063] The spectrogram conversion unit 415 converts each acquired time series data into the frequency domain in a predetermined unit (spectral conversion) and generates a spectrogram for each time series data. The generated spectrogram is provided to the preprocessing unit 416.
[0064] The pre-processing unit 416 performs predetermined pre-processing on the spectrograms related to the time-series data of the sound and acceleration, and then provides the processed data to the MFCC feature generation processing unit 417. The MFCC feature generation processing unit 417 generates MFCC features based on the provided data. The generated MFCC features are provided to the standardization processing unit 418.
[0065] The standardization processing unit 418 performs standardization processing on the MFCC features, and provides the processed data to the learning processing unit 420. The learning processing unit 420 performs learning processing based on the processed data and the initial parameters set by the initial parameter setting processing unit 419, and generates trained models for the sound signal and the acceleration signal, respectively. Each generated trained model is provided to the storage unit 43 and stored therein.
[0066] In this embodiment, the trained model is a trained hidden Markov model (HMM).
[0067] 5 is a functional block diagram (part 2) of the learning device 4 that performs the machine learning process, in particular the process of selecting a trained model (S5). The control unit 41 includes a model acquisition unit 421 and a model selection unit 427.
[0068] The trained model acquisition unit 422 of the model acquisition unit 421 acquires multiple trained models related to sound and acceleration from the storage unit 43, and provides them to an information criterion calculation processing unit 423 of the model selection unit 427. The information criterion calculation processing unit 423 performs a process of calculating an information criterion for each of the multiple trained models provided, and provides the calculated information processing criterion to the model selection processing unit 424.
[0069] The model selection processing unit 424 selects one trained model each for sound and acceleration based on the provided information amount criterion, and provides it to the abnormal condition definition processing unit 425. The abnormal condition definition processing unit 425 performs a process of defining an abnormal class for each selected trained model based on an input from a user or a predetermined criterion. After this process, the abnormal condition definition processing unit 425 provides the trained models for sound and acceleration to the storage unit 43 and stores them.
[0070] (Function block diagram for abnormality detection processing) 6 is a functional block diagram of the analysis device 1 that performs the abnormality detection process. The control unit 11 includes a data acquisition unit 111, an abnormality prediction unit 112, and an output unit 113.
[0071] The data acquisition unit 111 includes a sound signal time series data acquisition unit 114, an acceleration signal time series data acquisition unit 115, and a learned model acquisition unit 116.
[0072] The sound signal time series data acquisition unit 114 acquires time series data of the sound signal, and provides it to the spectrogram conversion unit 121 of the abnormality prediction unit 112. The acceleration signal time series data acquisition unit 115 acquires time series data of the acceleration signal, and provides it to the spectrogram conversion unit 121 of the abnormality prediction unit 112. The trained model acquisition unit 116 acquires the trained model from the storage unit 13, and provides it to the prediction processing unit 125.
[0073] The spectrogram conversion unit 121 converts the time series signals obtained from the sound signal time series data acquisition unit 114 and the acceleration signal time series data acquisition unit 115 into spectrograms, which are frequency domain signals, and provides the spectrograms to the preprocessing unit 122.
[0074] The preprocessing unit 122 performs predetermined preprocessing on each spectrogram and provides the spectrograms to the MFCC feature generation processing unit 123. The MFCC feature generation processing unit 123 generates MFCC features based on the preprocessed signals related to sound and acceleration, and provides the MFCC features to the standardization processing unit 124. The standardization processing unit 124 performs standardization processing on the provided MFCC features, and provides the MFCC features to the prediction processing unit 125.
[0075] The prediction processing unit 125 performs prediction processing based on the learned model acquired from the learned model acquisition unit 116, identifies the state corresponding to each MFCC feature that has been standardized, and provides it to the anomaly detection unit 126.
[0076] The abnormality detection unit 126 performs an abnormality detection process based on each state identified by the prediction processing unit 125, and provides various data including the abnormality detection result to the abnormality output unit 128 and / or the graph output unit 129 of the output unit 113. The abnormality output unit 128 outputs the data including the abnormality detection result as a data file or the like. In addition, the graph output unit 129 displays the data including the abnormality detection result on a display.
[0077] (1.2 System Operation) Next, the operation of the system will be described in detail. In this embodiment, first, the learning device 4 performs machine learning processing on the measured time series data. The trained model thus generated is provided to the analysis device 1 (see FIGS. 7 to 12). After that, the analysis device 1 performs anomaly detection processing using the trained model (see FIGS. 13 to 15).
[0078] (Learning process) 7 is a general flowchart of the machine learning process. As is clear from the figure, when the process starts, the learning device 4 performs a predetermined learning preparation process (S1).
[0079] 8 is a detailed flowchart of the learning preparation process (S1). As is clear from the figure, when the process starts, the learning device 4 performs a process of initializing a variable n (n=1, 2, 3, . . .) (S11). In this embodiment, the variable n is initialized to 1.
[0080] After the initialization process, the learning device 4 performs a process of acquiring a first data file from a group of N data files to be learned that are stored in the storage unit 43 (S12). After that, the learning device 4 performs a process of acquiring time-series data from the first data file (S13).
[0081] In this embodiment, the sound signal time series data acquisition unit 413 acquires a time series signal related to sound, and the acceleration signal time series data acquisition unit 414 acquires a time series signal related to acceleration. These time series data are provided to the spectrogram conversion unit 415.
[0082] In this embodiment, these time-series signals may include quasi-stationary impact noise (or quasi-stationary impact noise). Quasi-stationary impact noise is an impact noise (burst) that has a nearly constant level and occurs continuously at extremely short intervals (for example, less than 0.2 [s]).
[0083] After the time series data acquisition process, the spectrogram conversion unit 415 divides each acquired time series signal into a predetermined time interval (window width), performs frequency conversion with a predetermined shift width, and converts the signal into a plurality of time series frequency domain signals, i.e., time series spectrograms (S14). In this embodiment, the spectrogram conversion unit 415 performs a process of generating time series spectrograms for each of the sound signal time series data and the acceleration signal time series data. These frequency domain signals are provided to the preprocessing unit 416.
[0084] According to this configuration, since the feature quantity is generated from the frequency domain signal, it is possible to generate the feature quantity based on the energy of the signal over a predetermined frequency range.
[0085] After the conversion process to the spectrogram, the pre-processing unit 416 performs pre-processing on the frequency domain signal (S15).
[0086] 9 is a detailed flowchart of pre-processing related to the learning process. When the process starts, the pre-processing unit 416 performs a process of limiting the frequency band for each spectrogram (S151). In this embodiment, the pre-processing unit 416 deletes signals other than the frequency band previously assumed to be analyzed for sound signals and signals other than the frequency band previously assumed to be analyzed for acceleration signals, thereby performing a process of limiting the analysis range of each frequency. The band to be deleted may be changed depending on the type of signal (sound, acceleration, etc.).
[0087] According to such a configuration, the frequency range to be analyzed can be limited in advance, so that background noise and the like that is not necessary for the analysis can be eliminated, thereby improving the accuracy of abnormality detection.
[0088] In the limiting process, instead of simply removing frequencies other than a predetermined frequency band, for example, a weighting process may be performed on the frequency band depending on the analysis range.
[0089] After this limiting process, the preprocessing unit 416 performs normalization process on each spectrogram (S152). In this embodiment, for example, the spectrograms are normalized to the range of [0, 1].
[0090] After the normalization process, the preprocessing unit 416 performs a frequency mask process (S153) and a power mask process (S154) on each of the normalized spectrograms related to the sound and acceleration. In this embodiment, the frequency mask process is a process of masking a predetermined frequency range in each spectrum, and the power mask process is a process of masking a predetermined power range in each spectrum. After the mask process, the preprocessing ends.
[0091] According to this configuration, a predetermined frequency / power range is masked, so that analysis of unnecessary ranges can be prevented.
[0092] 8, when the preprocessing is completed, the MFCC feature generation processing unit 417 performs processing to generate features in a time series based on each spectrum that has been preprocessed, and generate time-series features (or feature series) (S16). In this embodiment, the features are MFCC features.
[0093] MFCC (Mel-Frequency Cepstrum Coefficients) means Mel-frequency cepstrum coefficients, and the MFCC feature is a feature related to the cepstrum that applies a scale obtained from the human sound perception characteristics. In this embodiment, the MFCC feature is an 81-dimensional feature that includes not only the Mel-frequency cepstrum coefficients but also their differential values and their energies.
[0094] In other words, the MFCC features include not only the 26-dimensional mel-cepstral coefficients, but also ΔMFCC (26 dimensions) differentiated once between a specified number of frames before and after it, and ΔΔMFCC (26 dimensions) differentiated twice.Furthermore, the root mean squared energy (RMSE) of the corresponding time series signal, its first derivative (ΔRMSE) between a specified number of frames before and after it, and its second derivative (ΔΔRMSE) are each included in one dimension, for a total of 81-dimensional (=26×3+3) features per frame.
[0095] When the generation process of the MFCC features is completed, the standardization processing unit 418 performs a standardization process for each MFCC feature (S17). In this embodiment, the standardization process is a process of linearly converting the scale so that the mean value is 0 and the variance is 1, thereby making it possible to put the MFCC features into a format suitable for machine learning.
[0096] After this standardization process, the learning device 4 judges whether or not all data files have been processed, i.e., whether or not n=N (S18). If the result of the judgment is that the condition is not satisfied (NO in S18), the variable n is incremented by 1 (S19), and the series of processes is executed again (S12 to S18).
[0097] On the other hand, if the result of this judgment process is that the condition n=N is met, the learning device 4 performs a process of storing all data generated up to that point in the memory unit 43 as learning data (S20), and terminates the learning preparation process.
[0098] Returning to FIG. 7, when the learning preparation process is completed, the learning device 4 performs a model learning process to generate a learned model (S3).
[0099] Fig. 10 is a detailed flowchart of the model learning process. As is clear from the figure, when the process starts, a process is performed to read out learning data including time-series feature quantities (feature quantity series) related to sound and acceleration stored in the learning preparation process together with the model parameters (S30).
[0100] After the learning data is read out, the learning processing unit 420 performs a process of initializing a variable m (m=3, 4, 5,...) that represents the number of states in a hidden Markov model described below (S31). In this embodiment, the variable m is initialized to 3. After the initialization process of the variable m, the learning processing unit 420 performs an initialization process of a variable p (p=1, 2, 3,...) that relates to the number of models to be generated under the condition of the same number of states (S32). In this embodiment, the variable p is initialized to 1.
[0101] After the initialization process of the variable p, the initial parameter setting processor 419 sets the initial parameters of each model related to sound and acceleration. In this embodiment, since the model is a Hidden Markov Model (HMM), the initial parameter setting processor 419 sets, for example, transition probability between states, probability distribution (output probability) in each state, number of states (m), etc. as initial parameters. At this time, the transition probability and probability distribution may be set by random numbers.
[0102] Here, the hidden Markov model is a probability model, which is a Markov process having an unobserved (hidden) state. In this embodiment, the presence or absence of an anomaly corresponds to the hidden state. In the following, the state may be referred to as a class.
[0103] After the initial parameter setting process, the learning processing unit 420 performs a learning process of a hidden Markov model based on the learning data and on the feature amounts related to sound and acceleration (S34).
[0104] In a hidden Markov model, the likelihood of observing certain time series data is expressed as the product of the transition probability between states (state transition probability) and the probability distribution (output probability) defined in a certain state. In addition, unknown parameters including state transition probability and probability distribution can be solved by reducing the problem to a maximum likelihood estimation problem to find the parameters that maximize this likelihood.
[0105] Therefore, the learning processing unit 420 performs processing to express all possibilities for hidden states as expected values based on the state transition probability set as the initial parameters, the probability distribution (output probability) in each state, and the number of m states, and to slightly change the parameters in the direction that maximizes the likelihood. By repeating such processing, a quasi-optimal solution can be obtained. As known to those skilled in the art, statistical methods for estimating parameters of such a probability model include, for example, the EM (Expectation Maximization) algorithm and the Baum-Welch algorithm (Baum, 1972).
[0106] After the learning process, it is determined whether the variable p is equal to the maximum value P (S35). If the variable p is smaller than P (S35 NO), a process is performed to increase the variable p by 1 (S36), and the series of processes (S33 to S35) are performed again. P is, for example, 3.
[0107] On the other hand, if the variable p is equal to the maximum value P of p (YES in S35), then it is determined whether or not the variable m is equal to the maximum value M (S37). If the variable m is smaller than the maximum value M (NO in S37), a process is performed to increment the variable m by 1 (S38), and the series of processes (S31 to S37) are performed again. M is, for example, 20.
[0108] That is, in this embodiment, by repeating these processes, the learning processing unit 420 changes the number of states (number of classes) from 3 to 20 based on the feature data related to sound and acceleration, and generates three trained models trained by changing the initial value for each number of states.
[0109] On the other hand, if the variable m is equal to the maximum value M, a process is performed to store all the generated trained models (trained hidden Markov models) in the storage unit 43 (S39), and the learning process ends.
[0110] The reason why it was difficult to detect quasi-stationary impact noise in the previous configuration is presumably because quasi-stationary impact noise has high roughness, and simply clustering the features of each frame results in the features transitioning between classes, making it difficult to identify the class to which the noise belongs.
[0111] In this regard, according to the configuration of this embodiment, since a hidden Markov model is used, the time-wise relationship between feature quantities can also be taken into consideration, and therefore quasi-stationary impact noise can be detected with high accuracy.
[0112] Returning to FIG. 7, when the model learning process is completed, the learning device 4 executes model selection and storage processing (S5).
[0113] 11 is a detailed flowchart of the model selection and storage process. As is clear from the figure, when the process starts, the trained model acquisition unit 422 performs a process of reading and acquiring all trained models generated in the learning process (S50).
[0114] After the process of acquiring the trained model, the processes of initializing the variables m and p are performed (S51, S52). In this embodiment, the variables m and p are initialized to 3 and 1, respectively, as in the learning process stage.
[0115] After the initialization process, the information criterion calculation processing unit 423 performs an information criterion calculation process on the trained model that has m states and is generated p-th (S53).
[0116] Here, the information criterion is an index for evaluating the quality of a statistical model, and in this embodiment, Akaike's Information Criterion (AIC) is particularly used (hereinafter, sometimes referred to as AIC).
[0117] AIC is generally expressed by the formula AIC = -2 ln L + 2k, where L is the maximum (logarithmic) likelihood and k is the number of free parameters. In this embodiment, k is the product of the number of states (m) and the number of dimensions of the feature (81 dimensions). The smaller the AIC value, the better the model can be evaluated.
[0118] After the information amount calculation process, the learning device 4 determines whether the variable p is equal to the maximum value P of p (S54). If p is still smaller than the maximum value P (NO in S54), the variable p is increased by 1 (S55), and the series of processes are executed again (S53 to S54).
[0119] On the other hand, if the variable p is equal to the maximum value P (YES in S54), the learning device 4 performs a process of determining whether or not the variable m is equal to the maximum value M of m (S56).
[0120] If the variable m is still smaller than M (NO at S56), the learning device 4 performs a process of incrementing the variable m by 1 (S57) and executes the series of processes again (S52 to S56).
[0121] On the other hand, if the variable m is equal to M (YES in S56), the model selection processing unit 424 performs a process of selecting a model based on the information criterion (S58).
[0122] In this embodiment, among the trained models with the number of states having an AIC value smaller than the AIC when the number of states is 3 by a predetermined percentage (for example, 7%) or more, the one with the smallest information criterion is selected.
[0123] FIG. 12 is an example of a graph showing the Akaike Information Criterion (AIC) and maximum logarithmic likelihood (score) with respect to the number of states, generated by a series of information criterion generation processes (S51 to S56).
[0124] As is clear from the figure, as the number of states increases, the maximum log-likelihood (score) increases, while the AIC decreases. Furthermore, it can be seen that the smaller the number of states, the steeper the slope of the decrease in AIC becomes, and the larger the number of states, the gentler the slope becomes. These trends are generally seen in graphs related to this type of data.
[0125] Therefore, the model selection processing unit 424 selects a model with 10 states, which is a model when the AIC has decreased by about 7%, at which point the slope of the curve representing the AIC begins to become gentle.
[0126] According to such a configuration, the Akaike Information Criterion, which is an effective indicator of the quality of a statistical model, is used, so that it is possible to eliminate, for example, over-trained models and identify the optimal trained hidden Markov model.
[0127] After the model selection process, the abnormal state definition processing unit 425 performs a process of defining an abnormal state (class) for each selected trained model (S59). The abnormal state definition process is performed by the user selecting one or more states from among multiple states related to the trained model. For example, the user may define an abnormal state by observing each state and its tendency when predetermined data is input to the trained model. The definition of an abnormal state may be automatically set based on a certain criterion.
[0128] According to such a configuration, since annotations (or labels) regarding anomalies are not required for the features to be learned, anomalies can be detected without prior preparation.
[0129] After the process of defining the abnormal state, the selected trained models are stored in the storage unit 43 (S60), and the process ends. Through the above process, trained models can be generated for sound and acceleration.
[0130] Each trained model stored in the memory unit 43 is appropriately transmitted to the memory unit 13 of the analysis device 1 for prediction processing.
[0131] (Abnormality detection processing) Next, anomaly detection processing for time-series data using the analysis device 1 will be described.
[0132] 13 is a general flowchart of the anomaly detection process executed in the analysis device 1. As is clear from the figure, when the process starts, the trained model acquisition unit 116 performs a process of acquiring trained models for sound and acceleration, i.e., trained hidden Markov models, from the storage unit 13 and providing them to the prediction processing unit 125 (S71). After the trained model acquisition process, the analysis device 1 performs a prediction preparation process (S72).
[0133] 14 is a detailed flowchart of the prediction preparation process. As is clear from the figure, when the process starts, the analysis device 1 performs a process of reading data that is the basis of prediction, including time-series data related to sound and acceleration (S721).
[0134] In addition, this configuration for detecting anomalies based on sounds generated from the test object allows for non-destructive testing, and the accuracy of anomaly detection can be improved by utilizing sensor information indicating the state of the test object that may be causally related to an anomaly, such as the mechanical and physical state of the test object.
[0135] After reading out the prediction data, the analysis device 1 performs a process of acquiring a time series signal from the storage unit 13 (S722). In this embodiment, the sound signal time series data acquisition unit 114 and the acceleration signal time series data acquisition unit 115 acquire sound signal time series data and acceleration signal time series data, respectively. These time series data may include quasi-stationary impact noise. The acquired time series data is provided to the spectrogram conversion unit 121.
[0136] After the time series data acquisition process, the spectrogram conversion unit 121 divides each acquired time series signal into a predetermined time interval (window width), performs frequency conversion with a predetermined shift width, and converts the signals into a plurality of frequency domain signals, i.e., spectrograms, in chronological order (S723). In this embodiment, the spectrogram conversion unit 121 performs spectrogram generation process for each of the sound signal time series data and the acceleration signal time series data. These frequency domain signals are provided to the preprocessing unit 122.
[0137] After the conversion process to a spectrogram, pre-processing is performed on the frequency domain signal (S724).
[0138] 15 is a detailed flowchart of pre-processing related to the anomaly detection process. As is clear from the figure, when the process starts, the pre-processing unit 122 performs a process of limiting the frequency band for each spectrogram (S7241). In this embodiment, the pre-processing unit 122 deletes signals other than the frequency band previously expected for the sound signal and signals other than the frequency band previously expected for the acceleration signal, thereby performing a process of limiting the analysis range of each frequency.
[0139] In the limiting process, instead of simply removing frequencies other than a predetermined frequency band, for example, a weighting process may be performed on the frequency band according to the analysis range.
[0140] After this limiting process, the preprocessing unit 122 performs a normalization process on each spectrogram (S7242). In this embodiment, each signal is normalized to the range of [0, 1].
[0141] After the normalization process, the preprocessing unit 122 performs a frequency mask process (S7243) and a power mask process (S7244) on each normalized spectrogram. In this embodiment, the frequency mask process is a process of masking a predetermined frequency range in each spectrum, and the power mask process is a process of masking a predetermined power range in each spectrum. After the mask process, the preprocessing ends.
[0142] 14, when the preprocessing is completed, the MFCC feature generation processing unit 123 performs processing to generate features and generate time-series features (or feature series) based on each spectrum that has been subjected to the preprocessing (S725). In this embodiment, the features are MFCC features.
[0143] As described above, the MFCC features include not only the 26-dimensional Mel-Cepstral Coefficients, but also ΔMFCC (26 dimensions) differentiated once between a specified number of frames before and after the coefficient, and ΔΔMFCC (26 dimensions) differentiated twice. In addition, the MFCC features include the root mean squared energy (RMSE) of the corresponding time series signal, its first derivative (ΔRMSE) between a specified number of frames before and after the coefficient, and its second derivative (ΔΔRMSE) in one dimension each, for a total of 81-dimensional (26 × 3 + 3) features per frame.
[0144] When the generation process of the MFCC features is completed, the standardization processing unit 124 performs a standardization process for each MFCC feature (S124). In this embodiment, the standardization process is a process of linearly converting the scale so that the average value is 0 and the variance is 1. After this standardization process, the prediction preparation process ends.
[0145] Returning to FIG. 13, after the standardization process is completed, the prediction processing unit 125 performs prediction processing on the MFCC features related to sound and the MFCC features related to acceleration using the acquired trained model, i.e., the hidden Markov model (HMM) (S73).
[0146] More specifically, the prediction processing unit 125 inputs the standardized sound and acceleration MFCC feature quantities into the corresponding trained hidden Markov models for sound and acceleration, respectively. After that, the prediction processing unit 125 searches for and outputs the most likely hidden state sequence (Viterbi path) resulting from the given input time series data in each model by dynamic programming (Viterbi algorithm). This Viterbi algorithm makes it possible to obtain the state sequence that gives the approximate maximum probability in real time.
[0147] The prediction process is not limited to a method using the Viterbi algorithm, and other methods known to those skilled in the art may be used.
[0148] After the prediction process, the anomaly detection unit 126 performs an anomaly detection process based on the state series output from each model (S75). In this embodiment, since the abnormal state has already been defined (see S59), an abnormal time interval is predicted for each of the sound and acceleration based on the state series output from each model. The anomaly detection unit 126 detects a time interval (frame) determined to be abnormal in either the sound or acceleration state series as an abnormal time interval, and provides the information to the output unit 113.
[0149] According to this configuration, it is possible to use a trained hidden Markov model based on MFCC features related to a sound signal and a trained hidden Markov model based on MFCC features related to a sensor signal, thereby enabling multifaceted and highly accurate anomaly detection.
[0150] After the abnormality detection process, the output unit 113 performs a process of outputting the abnormality detection result (S76). More specifically, in this embodiment, the output mode of the output unit 113 includes output using the abnormality output unit 128 and output using the graph output unit 129.
[0151] By outputting via the abnormality output unit 128, various data obtained up to that point can be output in any data format such as CSV (Comma Separated Values).
[0152] Furthermore, by outputting via the graph output unit 129, time series data and spectrograms of each signal (sound, acceleration) that may include an abnormal section can be displayed on a display or the like via the display output unit 12. At this time, the abnormal part may be displayed with emphasis. Also, only parts that are recognized as abnormal in both sound and acceleration may be displayed as abnormal parts. Furthermore, a sound signal of a part corresponding to an abnormal signal may be played via the audio output unit 16, so that it is possible to check whether an abnormal part contains an abnormal sound or the like.
[0153] The output mode is not limited to this mode, and output may be performed using either the abnormality output unit 128 or the graph output unit 129, or output may be performed in another mode.
[0154] According to this configuration, since the abnormal part can be visually or audibly confirmed through a graph or sound, it becomes easier and more intuitive to identify the abnormal part. When the output process is completed, the prediction process ends.
[0155] According to the above configuration, a section containing quasi-stationary impact noise in a time-series signal obtained from an object to be inspected can be detected with high accuracy as an abnormal section.
[0156] (2. Modifications) In the above embodiment, learning processes are performed based on sound data and acceleration data to generate two trained models, and prediction processes are performed based on each trained model, but the present invention is not limited to such a configuration. Therefore, for example, a trained model may be generated based on sound data and acceleration data, and prediction processes may be performed based on the trained model. With such a configuration, internal states can be shared between signals.
[0157] In the above embodiment, after generating a plurality of trained models with different numbers of states by the learning process (S3), the model selection process (S5) is performed using the information criterion, but the present invention is not limited to such a configuration. Therefore, for example, each time the learning process (S34) for a certain number of states is completed (for example, between step S35 and step S37), an information criterion such as AIC is calculated for each trained model generated, and it is determined whether the information criterion has decreased by a predetermined percentage (for example, 7%) or a predetermined value or more from the information criterion when the number of states is a reference value (for example, 3). If it is determined that the information criterion has decreased, the learning process is stopped (i.e., the loop (S31 to S37) for the learning process is exited), and the trained model storage process (S39) may be performed. In this case, the model selection process (S50 to S58) is not necessary.
[0158] According to this configuration, only the minimum number of trained models are generated based on the information criterion, thereby reducing the time required for the training process.
[0159] Although the embodiments of the present invention have been described above, the above embodiments merely show some of the application examples of the present invention, and the technical scope of the present invention is not limited to the specific configurations of the above embodiments. Moreover, the above embodiments can be appropriately combined within a range where no contradiction occurs. [Industrial Applicability]
[0160] The present invention can be used in industries that manufacture anomaly detection systems and the like. [Explanation of symbols]
[0161] 1 Analysis device 4. Learning Device 7. Inspection subject 8 Control Server 9. Frontend 100 Data Measurement System
Claims
1. a time-series signal acquisition unit that acquires a time-series signal generated by placing the object under inspection in a specific state; a feature sequence generation unit that generates a feature sequence based on the time-series signal; a prediction processing unit that predicts a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; an anomaly detection unit that detects an abnormal section in the time-series signal based on the predicted state sequence.
2. The anomaly detection system according to claim 1 , wherein the time-series signal includes a time-series sound signal that is a time-series signal related to a sound generated from the object to be inspected.
3. The anomaly detection system according to claim 2 , wherein the time-series signal includes a time-series sensor signal that is a time-series signal related to sensor information indicating a state of the inspection object.
4. The anomaly detection system according to claim 3 , wherein the time-series sensor signal includes a time-series acceleration signal indicating acceleration acting on the inspection object.
5. the feature sequence generation unit further includes a frequency domain signal generation unit that generates a frequency domain sound signal and a frequency domain sensor signal by converting the time-series sound signal and the time-series sensor signal into frequency domains in predetermined units, respectively; The anomaly detection system according to claim 3 , wherein the feature sequence is generated based on the frequency domain sound signal and the frequency domain sensor signal.
6. 6. The anomaly detection system according to claim 5, wherein the feature sequence includes: sound data MFCC features including Mel-frequency cepstral coefficients generated based on the frequency-domain sound signal; and sensor data MFCC features including Mel-frequency cepstral coefficients generated based on the frequency-domain sensor signal.
7. 7. The anomaly detection system according to claim 6, wherein the trained hidden Markov models include a sound-data trained hidden Markov model and a sensor-data trained hidden Markov model that are generated by performing machine learning based on the sound data MFCC feature values and the sensor data MFCC feature values, respectively.
8. 2. The anomaly detection system according to claim 1, wherein the trained hidden Markov model is obtained by selecting, from a plurality of trained hidden Markov models with different numbers of states, one whose information criterion satisfies a predetermined condition.
9. The anomaly detection system of claim 8 , wherein the information criterion is the Akaike Information Criterion (AIC).
10. 2. The anomaly detection system according to claim 1, wherein the trained hidden Markov model is generated by unsupervised learning based on a feature sequence, and which states of the trained hidden Markov model are to be considered abnormal are defined by a user after the learning.
11. The anomaly detection system according to claim 5 , wherein the feature sequence is generated by performing predetermined preprocessing on the frequency domain sound signal and the frequency domain sensor signal.
12. The anomaly detection system of claim 11 , wherein the preprocessing includes frequency band limitation processing.
13. The anomaly detection system of claim 11 , wherein the preprocessing includes a normalization process.
14. The anomaly detection system according to claim 11 , wherein the preprocessing includes masking a predetermined frequency domain.
15. The anomaly detection system according to claim 11 , wherein the preprocessing includes masking a predetermined power region.
16. a time-series signal acquisition unit that acquires a time-series signal generated by placing the object under inspection in a specific state; a feature sequence generation unit that generates a feature sequence based on the time-series signal; a prediction processing unit that predicts a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; an abnormality detection unit that detects an abnormal section in the time-series signal based on the predicted state sequence.
17. a time-series signal acquiring step of acquiring a time-series signal generated by placing the object to be inspected in a specific state; a feature sequence generating step of generating a feature sequence based on the time series signal; a prediction processing step of predicting a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; an anomaly detection step of detecting an abnormal section in the time-series signal based on the predicted state sequence.
18. a time-series signal acquiring step of acquiring a time-series signal generated by placing the object to be inspected in a specific state; a feature sequence generating step of generating a feature sequence based on the time series signal; a prediction processing step of predicting a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; an anomaly detection step of detecting an abnormal section in the time-series signal based on the predicted state series.
19. a time series signal acquisition unit that acquires a time series signal generated in the drive train; a feature sequence generation unit that generates a feature sequence based on the time-series signal; a prediction processing unit that predicts a state sequence corresponding to the feature sequence based on the feature sequence and a trained hidden Markov model; an anomaly detection unit that detects an abnormal section in the time-series signal based on the predicted state sequence.
Citation Information
Patent Citations
Determination device, determination method, program, and processing system
JP2022145537A
System, device, method and program for detecting abnormal noises, etc.
JP6882397B2
