Processing device, processing method, and program
By selectively updating classification models with non-negative matrix factorization and focusing on high-scoring data, the technique addresses accuracy and resource constraints in edge AI and industrial robots, ensuring effective classification with reduced data storage.
Patent Information
- Application Number
- JP2021027709
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-02-24
AI Technical Summary
Existing classification models face challenges in maintaining accuracy while managing limited data storage and processing resources, particularly in edge AI and industrial robot environments.
A technique that involves selecting specific learning data for updating classification models using non-negative matrix factorization, reducing data accumulation by thinning out unnecessary data and focusing on data with higher classification scores, and applying NMF to specific domains for improved classification accuracy.
This approach maintains classification accuracy while minimizing data storage needs, allowing for continuous model updates in resource-constrained environments.
Smart Images

Figure 0007571614000010 
Figure 0007571614000011 
Figure 0007571614000012
Abstract
Description
[Technical field]
[0001] The present invention relates to a processing device, a processing method, and a program. [Background technology]
[0002] Conventionally, there are techniques for classifying continuously occurring time series data, such as signals obtained by sensing, into multiple classes. For example, a technique is known for classifying (discriminating) whether a bottle is defective or not, based on the magnitude of power of a specific frequency in the power spectrum of an acoustic signal obtained by recording the sound of striking a bottle. In addition, techniques using non-negative matrix factorization have also been researched for analyzing data such as acoustic signals (see, for example, Patent Documents 1 to 3). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-133780 A [Patent Document 2] JP 2014-137389 A [Patent Document 3] JP 2015-079110 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, it is desirable to provide a technique that can suppress the deterioration of classification accuracy while suppressing the amount of accumulated data. [Means for solving the problem]
[0005] In order to solve the above problem, according to one aspect of the present invention, there is provided a processing device including: a data selection unit that selects, as selected learning data, a portion of learning data from learning data corresponding to an operating model that has been used to generate parameters of the operating model; a data processing unit that generates a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time series data and the selected learning data; and a parameter generation unit that generates first parameters based on the first teacher coefficient matrix and updates parameters of the operating model based on the first parameters.
[0006] In addition, in order to solve the above problem, according to another aspect of the present invention, there is provided a processing method for a processing device, comprising the steps of: selecting, as selected learning data, a portion of learning data from learning data corresponding to an operating model used for generating parameters of the operating model; generating a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time series data and the selected learning data; generating first parameters based on the first teacher coefficient matrix; and updating parameters of the operating model based on the first parameters.
[0007] In order to solve the above problem, according to another aspect of the present invention, there is provided a program that causes a computer to function as a data selection unit that selects, as selected learning data, a portion of learning data from learning data corresponding to an operating model that has been used to generate parameters of the operating model; a data processing unit that generates a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time-series data and the selected learning data; and a parameter generation unit that generates first parameters based on the first teacher coefficient matrix and updates parameters of the operating model based on the first parameters. Effect of the Invention
[0008] As described above, according to the present invention, it is possible to suppress the deterioration of classification accuracy while suppressing the amount of accumulated data. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram illustrating an example of the configuration of an information processing device 1 according to a first embodiment of the present invention. [Diagram 2] 10 is an explanatory diagram showing an example of specifying a target section based on a reference signal by the section specifying unit 104 according to the embodiment. FIG. [Diagram 3] FIG. 1 is a diagram for explaining the concept of additional learning. [Figure 4] FIG. 13 is a diagram illustrating an example of a range of learning data of a normal system corresponding to an initial model. [Diagram 5] FIG. 13 is a diagram showing an example of the range of normal system data after additional data is added to normal system learning data corresponding to an initial model. [Figure 6] FIG. 11 is a diagram for explaining data thinning. [Figure 7] FIG. 11 is an explanatory diagram illustrating a processing example of NMF according to the embodiment. [Figure 8] 10 is a diagram for explaining an example of learning data selection by the learning data selection unit 125. FIG. [Figure 9] 10 is a diagram for explaining an example of learning data selection by the learning data selection unit 125. FIG. [Figure 10] 10 is a diagram for explaining an example of learning data selection by the learning data selection unit 125. FIG. [Figure 11] FIG. 1 is a schematic diagram for explaining dimensionality reduction by NMF. [Figure 12] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a learning phase. [Figure 13] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a learning phase. [Figure 14] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a classification phase. [Figure 15]FIG. 11 is an explanatory diagram illustrating an example of the configuration of an information processing device according to a second embodiment of the present invention. [Figure 16] FIG. 13 is a diagram for explaining an example of a comparison between two classification models. [Figure 17] FIG. 11 is a diagram for explaining an example of a method for determining similarity. [Figure 18] FIG. 13 is a graph showing examples of both scores corresponding to the respective training data of the β model. [Figure 19] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a learning phase. [Figure 20] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a learning phase. [Figure 21] FIG. 13 is a schematic diagram showing an example of applying NMF to the entire time-frequency-amplitude data. [Figure 22] FIG. 13 is a schematic diagram showing an example in which NMF is applied partially to a limited area. [Figure 23] FIG. 13 is an explanatory diagram illustrating an example of the configuration of an information processing device according to a third embodiment of the present invention. [Figure 24] 11 is an explanatory diagram showing an example of data division by the data division unit 312 according to the embodiment, and acquisition of teacher data and evaluation data by the separation degree evaluation unit 313. FIG. [Diagram 25] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a learning phase. [Figure 26] FIG. 11 is a flowchart illustrating an example of the operation of the embodiment in a classification phase. [Figure 27] FIG. 2 is an explanatory diagram illustrating an example of a hardware configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are designated by the same reference numerals, and duplicated explanations will be omitted.
[0011] <<0.Background>> First, the background of the embodiment of the present invention will be described.
[0012] A classification device according to existing technology generates parameters (hereinafter also referred to as "classification model parameters") of a model (hereinafter also referred to as "classification model") based on measurement data of a normal state and measurement data of an abnormal state (e.g., a faulty state) measured from a measurement object (e.g., a grinding wheel in a grinding machine or a drill bit in a drilling machine).
[0013] However, in reality, the condition of the object being measured changes due to aging, temperature changes, and the like, so it is necessary to continue acquiring new measurement data and update the classification model based on the new measurement data.
[0014] To achieve this, an environment capable of storing and processing various patterns of measurement data under normal conditions (for example, an environment with ample resources such as a cloud server or parallel computers) is required.
[0015] On the other hand, in recent years, classification models are increasingly being used in environments with limited hardware resources, such as edge AI (Artificial Intelligence) or industrial robots. In such situations, there is a problem that the classification model cannot be updated appropriately due to a lack of resources.
[0016] For example, let us consider a case where a sensor is attached to an object to be measured, measurements are taken by the sensor, and the measurement data is stored. In this case, if we assume that the sampling frequency of the sensor is 5 kHz (float type) and the memory capacity in which the measurement data is stored is 100 GB, the amount of measurement data that can be stored will be one month's worth. In a situation where the amount of data storage is limited in this way, it is not possible to store measurement data in memory that reflects temperature changes due to seasonal changes over 12 months.
[0017] Therefore, in the embodiment of the present invention, a technique is mainly proposed that can suppress the deterioration of classification accuracy while suppressing the amount of accumulated data.
[0018] The background of the embodiment of the present invention has been described above.
[0019] <<1. First embodiment>> <1-1. Configuration Example of First Embodiment> Next, with reference to FIG. 1, an example of the configuration of an information processing device according to the first embodiment of the present invention will be described.
[0020] Fig. 1 is a block diagram for explaining an example of the configuration of an information processing device 1 according to a first embodiment of the present invention. As shown in Fig. 1, the information processing device 1 according to this embodiment includes a data acquisition unit 102, a section identification unit 104, a preprocessing unit 106, an operation unit 112, a teacher data processing unit 114, a parameter generation unit 116, a storage unit 118, a feature extraction unit 120, a classification unit 122, an output unit 124, and a learning data selection unit 125.
[0021] The information processing device 1 has a function as a parameter generating device that generates classification model parameters for classifying continuously generated time series data such as signals obtained by sensing into a plurality of classes, and a function as a classifying device that classifies the time series data into a plurality of classes. In this embodiment, for example, the time series data may be an acoustic signal obtained by collecting a striking sound when a measuring object (e.g., concrete, etc.) is struck with a striking tool such as a hammer. In the following, as an example, an example will be described in which the information processing device 1 has a function of classifying (discriminating) the measuring object into two classes indicating whether the measuring object is normal or abnormal based on the acoustic signal, but the present embodiment is not limited to such an example.
[0022] The data acquisition unit 102 acquires time-series data. For example, the data acquisition unit 102 may be a sensor that acquires (senses) the state of an observation target as time-series data such as a signal. The data acquisition unit 102 according to the present embodiment may be a microphone that acquires surrounding sounds as acoustic signals (an example of time-series data).
[0023] Note that the present embodiment is not limited to the above example. For example, the data acquisition unit 102 may be an acceleration sensor that acquires acceleration data, or a temperature sensor that acquires temperature data. The data acquisition unit 102 may also acquire time-series data from a sensor (not shown) that is external to the information processing device 1.
[0024] The interval specification unit 104 specifies, from the time-series data acquired by the data acquisition unit 102, a target interval (time interval) to be subjected to the classification model parameter generation process or classification process.
[0025] With this configuration, in the generation process of classification model parameters and the classification process described below, it is not necessary to process sections including unnecessary data, so that the amount of processing can be reduced. In addition, since the above processing including unnecessary data may reduce the classification accuracy, this configuration makes it possible to further improve the classification accuracy.
[0026] For example, the section determination unit 104 may determine the target section based on a reference signal indicating at least a predetermined time included in the target section. For example, the reference signal may indicate the time of the moment of impact (when the impact sound occurs), or may indicate a predetermined section including the time of the moment of impact (when the impact sound occurs). The reference signal may be output from a sensor such as an acceleration sensor or impact sensor attached to the hitting tool and acquired by the data acquisition unit 102, or may be output from a control device that controls the impact and acquired by the data acquisition unit 102.
[0027] FIG. 2 is an explanatory diagram showing an example of the determination of a target section based on a reference signal by the section determination unit 104. The section determination unit 104 determines the target section based on the reference signal G12 from the time series data G11 shown in FIG. 2. In FIG. 2, the reference signal G12 indicates a section in which the amplitude value is a predetermined value P as a section including the time of the moment of impact. In this case, for example, the section determination unit 104 may determine, as the target section, a section D10 in the time series data G12 corresponding to a section in the reference signal G12 in which the amplitude value is the value P. The section determination unit 104 may determine, as the target section, a section in the time series data G12 corresponding to a section in which the amplitude value is equal to or greater than a predetermined threshold value in the reference signal G12.
[0028] With this configuration, the section identification unit 104 can identify the target section with high accuracy.
[0029] The section identification unit 104 may also identify the target section based on the magnitude of the amplitude in the time series data. For example, the section in which the magnitude of the amplitude exceeds a predetermined threshold may be identified as the target section in the time series data, or the section from a predetermined time before the time when the magnitude of the amplitude exceeds the predetermined threshold to a predetermined time after the time may be identified as the target section.
[0030] With this configuration, it is possible to identify the target section even if there is no sensor or control device that outputs a reference signal.
[0031] 1 acquires teacher data for the classification model parameter generation process or evaluation data for the classification process, based on the time-series data acquired by the data acquisition unit 102 and the target section identified by the section identification unit 104. As shown in FIG. 1, the pre-processing unit 106 according to this embodiment has functions as a storage unit 107, a conversion unit 108, and an association unit 110.
[0032] The conversion unit 108 converts at least a part of the data included in the target section identified by the section identification unit 104 into a frequency domain representation. For example, the conversion unit 108 performs at least one of Fourier transform, short-time Fourier transform, and wavelet transform on at least a part of the data included in the target section identified by the section identification unit 104. The conversion unit 108 according to the present embodiment may convert the data identified by the section identification unit 104 out of the time series data into a power spectrum by Fourier transform.
[0033] Preprocessing unit 106 may acquire, as teacher data or evaluation data, a nonnegative observation matrix including a nonnegative observation vector (data converted into a frequency domain representation) obtained by the conversion by conversion unit 108. Note that the observation matrix acquired by preprocessing unit 106 is a matrix in which one or more observation vectors obtained from one target section are arranged. In addition, hereinafter, the observation matrix acquired as teacher data may be referred to as a teacher observation matrix, and the observation matrix acquired as evaluation data may be referred to as an evaluation observation matrix to distinguish between them. The observation matrix will be described later with reference to FIG. 4.
[0034] Furthermore, the observation vector obtained by the transformation in transformation unit 108 may be a power spectrum obtained by Fourier transform, a spectrogram obtained by short-time Fourier transform, or a scalogram obtained by wavelet transform.
[0035] By using data expressed in the frequency domain, such as a power spectrum, spectrogram, scalogram, etc., it becomes possible to extract the features of the class to be classified with higher accuracy in processing by the teacher data processing unit 114 or the feature extraction unit 120, which will be described later.
[0036] The preprocessing unit 106 may determine whether to acquire teacher data or evaluation data (whether the acquired observation matrix is a teacher observation matrix or an evaluation observation matrix) based on a user input via the operation unit 112. When the preprocessing unit 106 acquires teacher data, the association unit 110 associates the teacher data with a correct answer label input by the user via the operation unit 112.
[0037] The correct label is a label indicating a class to which each observation vector included in the teacher observation matrix (teacher data) belongs. For example, the user may operate the operation unit 112 to input information indicating a class corresponding to the time-series data currently acquired by the data acquisition unit 102, thereby obtaining the correct label.
[0038] The storage unit 107 accumulates information in which teacher data (teacher observation matrix) acquired based on user input is associated with a correct label. The storage unit 107 also stores past teacher data (past teacher observation matrix) used to generate classification model parameters of a classification model currently in operation (hereinafter also referred to as a "currently operating model") as learning data.
[0039] The classification model includes a classification model structure and classification model parameters corresponding to the classification model, which are set in the classification model structure. The classification model outputs a score (hereinafter, also referred to as a "classification score") indicating the likelihood of a given class corresponding to an input to the classification model. Here, a class indicating normality is mainly assumed as an example of the given class. However, the given class is not limited to a class indicating normality.
[0040] The preprocessing unit 106 provides the acquired teacher data (teacher observation matrix) to the teacher data processing unit 114 , and provides the acquired evaluation data (evaluation observation matrix) to the feature extraction unit 120 .
[0041] In addition to the above processes, the pre-processing unit 106 may perform processes such as subtracting an offset value from the data before conversion by the conversion unit 108 and frequency filtering of the converted data, as necessary.
[0042] The operation unit 112 accepts input from the user and provides it to the preprocessing unit 106. For example, the user may operate the operation unit 112 to input information indicating whether to acquire teacher data or evaluation data. The user may also operate the operation unit 112 to input information indicating a class corresponding to the time-series data currently acquired by the data acquisition unit 102. The operation unit 112 may be realized by, for example, a mouse, a keyboard, a touch panel, a button, a switch, a lever, or a dial.
[0043] In this embodiment, when teacher data (hereinafter also referred to as "additional data") is accumulated in the storage unit 107 in a predetermined amount or for a predetermined period of time, the current operation model is updated. Here, it is also conceivable that the current operation model is updated based only on the additional data.
[0044] However, there is a demand for detecting anomalies in objects that do not exhibit abnormalities for long periods of time, such as several years or even several decades. For example, when an object to be measured deteriorates over time, it is expected that the state of the object to be measured will gradually change even if no abnormality occurs in the object to be measured. In this case, if the classification model is updated only based on additional data obtained in a short period of time, the updated classification model will not be able to take into account the change in the state of the object to be measured, and will not be able to correctly detect anomalies in the object to be measured.
[0045] Therefore, in this embodiment, it is mainly assumed that the currently operating model is updated based on a part of the learning data corresponding to the currently operating model (hereinafter also referred to as "selected data") in addition to the additional data. Hereinafter, updating the classification model based on the additional data and the selected data is also referred to as "additional learning". Here, the significance of such additional learning will be explained with reference to Figs. 3 to 6.
[0046] Fig. 3 is a diagram for explaining the concept of additional learning. Referring to Fig. 3, a feature space F1 is shown. Also, in the feature space F1, a range R10 of normal learning data (e.g., learning data N10, etc.) corresponding to the initial model is shown. Furthermore, a range (outside the range R10 and inside the range R20) of normal additional data (e.g., additional data N20, etc.) is shown. The normal data is data associated with a correct answer label indicating normal.
[0047] The range of normal data after additional data is added to the normal learning data corresponding to the initial model falls within range R20. In additional learning, the range of normal data gradually expands as additional data is accumulated, as shown in Figure 3. However, repeated accumulation of additional data causes the amount of accumulated learning data to continue to increase, making it necessary to select a portion of the learning data (i.e., thin out the learning data).
[0048] This type of additional learning is considered to be particularly effective when it is difficult to obtain abnormal data (for example, when the measurement target does not break down for a long period of time), since it is difficult to set the boundary between normal data and abnormal data from the beginning.Alternatively, this type of additional learning is considered to be particularly effective when it is difficult to generate a classification model by covering all normal data patterns in advance.
[0049] FIG. 4 is a diagram showing an example of a range of normal learning data corresponding to an initial model. Referring to FIG. 4, a range R10 of normal learning data corresponding to the initial model is shown. The initial model is generated based on the teacher data acquired first. The initial model is a currently operating model in the initial stage, and the currently operating model is updated successively based on a new model. In the following description, the initial model is also referred to as an "α model" for ease of reading.
[0050] Fig. 5 is a diagram showing an example of the range of normal system data after additional data is added to normal system learning data corresponding to the initial model (α model). Referring to Fig. 5, a range R20 of normal system data after additional data is added to normal system learning data corresponding to the initial model (α model) is shown. In the following description, the classification model corresponding to the range R20 of normal system data (hereinafter also referred to as "model after data addition") is also expressed as "β model".
[0051] Fig. 6 is a diagram for explaining data thinning. Referring to Fig. 6, a range R20 of normal system data after additional data is added to normal system learning data corresponding to the initial model α is shown. In this embodiment, a predetermined amount of normal system data (e.g., learning data N17, etc.) is thinned out from the normal system data after the additional data is added to the normal system learning data corresponding to the initial model α. Then, a classification model is generated based on the normal system data after the predetermined amount of normal system data has been thinned out and the additional data.
[0052] In the following description, a predetermined amount of normal data that is thinned out from the normal data after additional data is added to the normal learning data corresponding to the initial model α is also referred to as "thinned data." In addition, the classification model corresponding to the range R20 of normal data (hereinafter also referred to as "new model") is also expressed as "β' model."
[0053] Returning to Fig. 1, the explanation will be continued. When the teacher data stored in the storage unit 107 has been accumulated for a predetermined amount or for a predetermined period of time or more, the teacher data processing unit 114 generates a teacher basis matrix and a teacher coefficient matrix by performing nonnegative matrix factorization on the learning data corresponding to the initial model α. Hereinafter, the nonnegative matrix factorization will be explained with reference to Fig. 7.
[0054] Non-negative Matrix Factorization (hereinafter referred to as NMF) is an algorithm that decomposes a non-negative matrix Y of unity into the product (e.g., WH) of two non-negative matrices W and H. Since it is difficult to analytically determine the two non-negative matrices W and H, a method has been proposed in which an initial value is given and an approximate solution is iteratively determined so that the error between Y and WH becomes a local optimum. Note that, in general, a local optimum solution changes depending on the initial value.
[0055] 7 is a diagram illustrating an example of the NMF process according to the present embodiment. As shown in FIG. 7, by NMF, for example, a non-negative observation matrix Y (teacher observation matrix or evaluation observation matrix) is decomposed into a product of a non-negative coefficient matrix W and a non-negative basis matrix H.
[0056] As shown in FIG. 7, the observation matrix Y according to this embodiment is an n-row by m-column matrix composed of rows equal to the number n of target intervals in the time series data, with, for example, m-dimensional observation vector y being a row vector.
[0057] The basis matrix H according to this embodiment is a k-row by m-column matrix composed of rows equal to the number k of basis vectors, in which m-dimensional basis vectors h decomposed by applying NMF to the observation matrix Y, for example, become row vectors.
[0058] The coefficient matrix W according to this embodiment is, for example, a matrix of n rows and k columns, with k-dimensional coefficient vector w as a row vector, and the number of rows is equal to the number n of observation vectors. Here, the coefficient vector w is a row vector indicating a weighting value indicating how many components of each basis vector included in the basis matrix H are included in a certain observation vector.
[0059] As shown in FIG. 7, the above matrices have the following relationship:
[0060]
number
[0061] In the following, the teacher observation matrix YL The basis matrix and coefficient matrix obtained by decomposing are called teacher basis matrix H L , teacher coefficient matrix W L It is called.
[0062] The teacher data processing unit 114 calculates the teacher observation matrix Y L We can apply NMF to all of them at once, or we can apply the teacher observation matrix Y L NMF may be applied to each class of the correct answer label associated with the teacher observation matrix Y L Apply NMF to each class of the correct answer label associated with L , teacher coefficient matrix W L An example of obtaining the above will be described.
[0063] The teacher data processing unit 114 first calculates the teacher observation matrix Y L The dataset (observation vector or observation matrix) Y for each class (c1, c2, . . . , cN) C1 ,Y C2 ,···,Y CN The training data processing unit 114 applies NMF to the data set Y C1 ,Y C2 ,···,Y CN The vector or matrix H obtained by decomposing each of C1 ,H C2 ,···,H CN Therefore, the teacher basis matrix H L ={H C1 ,H C2 ,···,H CN}.
[0064] Teacher basis matrix H L Based on the teacher observation matrix Y L The coefficient matrix generated from the teacher coefficient matrix W L Then, from equation (1), the teacher observation matrix Y L , teacher coefficient matrix W L , and the teacher basis matrix H L The relationship is expressed by the following formula.
[0065]
number
[0066] From the above formula (2), for the teacher coefficient matrix W L to be obtained, it is necessary to use the inverse matrix of the teacher basis matrix H L . However, since the teacher basis matrix H L is not generally a regular matrix, it may not have an inverse matrix. Therefore, the teacher data processing unit 114 may generate the teacher coefficient matrix W L based on, for example, the pseudo-inverse matrix (Moore-Penrose pseudo-inverse matrix) of the teacher basis matrix. The pseudo-inverse matrix H L of the teacher basis matrix H L + is a k×m matrix, and generally k < m, so the pseudo-inverse matrix H L + is obtained by the following formula.
[0067]
Equation
[0068] Using the pseudo-inverse matrix H L + obtained by the above formula (3), the teacher coefficient matrix W L is expressed by the following formula.
[0069]
Equation
[0070] NMF is generally prone to generate rules with characteristics corresponding to data with large amplitude and high frequency of occurrence. Therefore, when NMF is applied to all data sets at once, if some classes have data with small amplitude or data with low frequency of occurrence, it may be difficult to generate a basis with characteristics corresponding to the data of the class. Therefore, by applying NMF to each class as described above, it becomes easier to generate a basis with characteristics corresponding to data with small amplitude or data with low frequency of occurrence, and the classification accuracy is further improved. Note that NMF may be applied to data sets of multiple classes or all classes at once.
[0071] The training data selection unit 125 selects a portion of the training data as post-selection training data from the training data corresponding to the initial model α. An example of the training data selection by the training data selection unit 125 will be described below.
[0072] 8 to 10 are diagrams for explaining an example of the selection of learning data by the learning data selecting unit 125. Referring to Fig. 8, there is shown a teacher coefficient matrix G101 generated by applying NMF to learning data corresponding to the initial model α. The teacher coefficient matrix G101 is a matrix with n rows and k columns. Here, as a specific example, the case where n=15 is mainly assumed. However, the value of n is not particularly limited.
[0073] The teacher coefficient matrix G101 includes n teacher coefficient vectors (one of them, teacher coefficient vector w, is shown in FIG. 8). Here, as a specific example, the case where k=2 is mainly assumed. That is, the case where the teacher coefficient vector is a two-dimensional vector (the teacher coefficient vector w=(w1, w2), which is a two-dimensional vector, is shown in FIG. 8). However, the value of k is not particularly limited.
[0074] 8, a teacher coefficient vector sequence G102 is shown. As an example, in the teacher coefficient vector G102, one teacher coefficient vector (w1, w2) among n teacher coefficient vectors is shown as (2, 4). The learning data selection unit 125 classifies the n teacher coefficient vectors included in the teacher coefficient matrix G101 according to the same teacher coefficient vector. Then, the learning data selection unit 125 calculates the frequency of each teacher coefficient vector as the frequency of each two-dimensional coordinate (hereinafter, also referred to as "frequency distribution").
[0075] 8 shows a frequency distribution G110 generated by the learning data selection unit 125. As an example, the frequency of the teacher coefficient vector (w1, w2)=(2, 4) is shown as 2.
[0076] The learning data selection unit 125 selects learning data based on the frequency distribution G110. In more detail, it is assumed that the selection rate of the learning data is predetermined. In such a case, the learning data selection unit 125 calculates the selection amount of the learning data based on the predetermined selection rate. Referring to FIG. 9, a case where the selection rate is 0.5 is shown as an example.
[0077] Here, it is assumed that the selection rate is 0.5, but the selection rate is not limited to a specific value. The selection rate may be changed based on a predetermined change operation input by the user to the operation unit 112. The change operation is not particularly limited. For example, the change operation may be an operation of selecting a changed selection rate from a plurality of candidates for the selection rate, or an operation of inputting a numerical value indicating the changed selection rate.
[0078] The learning data selection unit 125 multiplies each frequency for each two-dimensional coordinate by a predetermined selection rate. In this way, the learning data selection unit 125 calculates the selection amount of learning data for each two-dimensional coordinate. Referring to FIG. 9, the selection amount G112 of learning data for each two-dimensional coordinate is shown. As an example, the selection amount of (w1, w2) = (2, 4) is calculated as frequency 2 × selection rate 0.5 = 1.
[0079] In this way, by multiplying the frequency for each two-dimensional coordinate by the selection rate, the possibility that only learning data for a specific two-dimensional coordinate will be thinned out is reduced compared to when the entire teacher coefficient matrix G101 is multiplied by the selection rate. Note that it is also possible that the product of the frequency and the selection rate does not result in an integer value. In such a case, the selection amount may be calculated by rounding up the product of the frequency and the selection rate, rather than by truncating or rounding off the decimal point of the product of the frequency and the selection rate.
[0080] Then, the learning data selection unit 125 selects learning data based on the selection amount of learning data for each two-dimensional coordinate. Here, when the selection amount is smaller than the number of learning data at a certain two-dimensional coordinate, it becomes necessary to thin out some of the multiple learning data at that two-dimensional coordinate. At this time, it becomes necessary for the learning data selection unit 125 to determine which learning data of the multiple learning data should be thinned out.
[0081] Here, the training data selection unit 125 may select training data based on a classification score output from the initial model α in response to an input to the initial model α.
[0082] More specifically, the classification score corresponding to the training data becomes smaller as it approaches the discrimination boundary between normal and abnormal. In order to avoid narrowing the discrimination boundary, it is considered desirable to use training data with smaller classification scores for generating a classification model. Therefore, the training data selection unit 125 may preferentially select training data with smaller classification scores.
[0083] More specifically, the learning data selection unit 125 calculates the thinning amount for each two-dimensional coordinate by subtracting the selection amount of the learning data from the frequency distribution. If there is a two-dimensional coordinate where the thinning amount is smaller than the frequency of the learning data, the learning data selection unit 125 preferentially thins out the learning data with a larger classification score at that two-dimensional coordinate.
[0084] 10 shows the amount of thinning G113 for each two-dimensional coordinate calculated by subtracting the amount of selected learning data G112 (FIG. 9) from the frequency distribution G110 (FIG. 9). Also shown is a model after data addition (β model). For example, referring to the amount of thinning G113 for each two-dimensional coordinate, at two-dimensional coordinate (w1, w2) = (3, 1), the amount of thinning is 1, but there are two pieces of learning data (i.e., learning data N11 and learning data N12).
[0085] At this time, the learning data selection unit 125 may compare the classification score (+0.1) of the learning data N11 with the classification score (+0.2) of the learning data N12, and thin out the learning data N12 having the larger classification score. In this manner, the learning data selection unit 125 selects the learning data.
[0086] The teacher data processing unit 114 applies NMF to the teacher data stored in the storage unit 107 and the learning data selected by the learning data selection unit 125 to obtain the teacher coefficient matrix W L (First teacher coefficient matrix) and teacher basis matrix H L The teacher data processing unit 114 generates the teacher basis matrix H L In addition, the teacher data processing unit 114 stores the generated teacher coefficient matrix W L is provided to the parameter generating unit 116 in association with the correct label.
[0087] The parameter generation unit 116 uses the teacher coefficient matrix W generated by the teacher data processing unit 114. L, and a correct answer label indicating normal, a classification model parameter (first parameter) for classifying the data is generated. The classification model parameter generated by the parameter generating unit 116 may be a parameter according to a classification model in the classification unit 122 described later. For example, the classification model parameter may be a threshold value when the classification unit 122 performs threshold discrimination. Furthermore, the classification model parameter may be a coefficient of a linear discriminant function that determines class boundaries when the classification unit 122 performs linear discrimination, and the classification model parameter may be a coefficient of a quadratic discriminant function that determines class boundaries when the classification unit 122 performs quadratic discrimination.
[0088] The parameter generating unit 116 updates the classification model parameters of the initial model (α model) stored in the storage unit 118 based on the classification model parameters generated as described above. This updates the initial model (α model) to a new model (β' model). Referring to FIG. 10, a new model (β' model) generated based on the learning data after the thinned data (e.g., learning data N12) has been thinned out and the additional data is shown. In this way, the currently operating models are updated one after another based on the new models.
[0089] The storage unit 118 stores programs and parameters for the functions of each component of the information processing device 1. The storage unit 118 also stores the teacher basis matrix H L The storage unit 118 also stores the classification model. More specifically, the storage unit 118 stores the structure of the classification model and the classification model parameters generated by the parameter generation unit 116.
[0090] The memory unit 107 stores learning data corresponding to the current operation model. The parameter generating unit 116 leaves the selected learning data from the learning data corresponding to the current operation model stored in the memory unit 107. On the other hand, the parameter generating unit 116 deletes the unselected learning data from the learning data corresponding to the current operation model from the memory unit 107. This can reduce the amount of data accumulation. The teacher data stored in the memory unit 107 is used as learning data the next time the current operation model is updated.
[0091] The feature extraction unit 120 extracts the teacher basis matrix H L Based on this, an evaluation coefficient matrix is generated from the evaluation data (evaluation observation matrix) provided by the preprocessing unit 106. An example of generation of an evaluation coefficient matrix by the feature extraction unit 120 will be described below.
[0092] Teacher basis matrix H L Based on the evaluation observation matrix Y T The coefficient matrix generated from is the evaluation coefficient matrix W T Then, from equation (1), the evaluation observation matrix Y T , evaluation coefficient matrix W T , and the teacher basis matrix H L The relationship is expressed by the following formula.
[0093]
number
[0094] The pseudo-inverse matrix H obtained in the same manner as in equation (3) above L + Using the evaluation coefficient matrix W T is expressed by the following equation.
[0095]
number
[0096] The feature extraction unit 120 extracts the evaluation coefficient matrix WT to the classification unit 122.
[0097] The classification unit 122 classifies the evaluation coefficient matrix W T are classified based on the classification model parameters stored in the storage unit 118.
[0098] The classification unit 122 classifies the evaluation coefficient matrix W T The coefficient vector included in is used as a feature vector, and various classification models can be used to perform classification based on classification model parameters corresponding to the classification models. For example, the classification unit 122 may perform classification using a classification model based on threshold discrimination, linear discrimination, quadratic discrimination, SVM (Support Vector Machine), or the like. The classification result by the classification unit 122 is represented by the evaluation coefficient matrix W T It is also a classification result of the target interval in the time series data corresponding to each coefficient vector.
[0099] As described above, by using the coefficient vector indicating the weight for the basis matrix as a feature vector for classification, it is possible to improve classification accuracy compared to, for example, classification based on the magnitude of the power of a specific frequency.
[0100] In addition, compared to when classification processing is performed using the evaluation data itself, the evaluation coefficient matrix W T By performing classification processing using the above, the dimension of the feature vector in the classification processing is reduced, and the amount of processing in the classification processing can be reduced. FIG. 11 is a schematic diagram for explaining the reduction of the dimension.
[0101] As shown in Fig. 11, by NMF or processing by the feature extraction unit 120, the evaluation data G20, which is a power spectrum, is expressed as the sum of the product of the basis vector G21 and the coefficient w1 and the product of the basis vector G22 and the coefficient w2. In the example of Fig. 11, when classification processing is performed using the evaluation data G20 as a feature vector, processing in a dimension according to the frequency resolution of the evaluation data G20 is required. Meanwhile, in the example of Fig. 11, the dimension of the coefficient vector is 2. As described above, since the number of dimensions of the coefficient vector is smaller than the dimension of the evaluation data G20, the evaluation coefficient matrix W T By performing classification processing using the above, the dimension of the feature vector in the classification processing is reduced, and the amount of processing in the classification processing can be reduced.
[0102] 1 outputs the classification result by the classification unit 122. The output unit 124 may be, for example, a display device such as a display that displays the classification result, or a speaker that outputs the classification result by voice.
[0103] <1-2. Operation Example of First Embodiment> An example of the configuration of the information processing device 1 according to the first embodiment of the present invention has been described above. Next, an example of the operation of this embodiment will be described with reference to Fig. 12, Fig. 13, and Fig. 14, dividing it into a learning phase in which classification model parameters are generated and a classification phase in which classification is performed using the classification model parameters. Note that switching between the operation of the learning phase and the classification phase may be performed by a user input to the operation unit 112 described with reference to Fig. 1, for example.
[0104] (Example of learning phase operation) 12 and 13 are flow charts showing an operation example of this embodiment in the learning phase. As shown in Fig. 12, first, the data acquisition unit 102 acquires time-series data (S102), and the section identification unit 104 identifies a target section to be processed in the classification model parameter generation process from the acquired time-series data (S104).
[0105] Next, the conversion unit 108 of the preprocessing unit 106 converts the data included in the target section of the time series data into a frequency domain representation, and the observation vector, which is the converted data, is added to the teacher data (teacher observation matrix). Furthermore, the association unit 110 of the preprocessing unit 106 associates the observation vector added to the teacher data with the correct label input by the user via the operation unit 112 (S108).
[0106] If the acquisition of the teacher data has not been completed (NO in S110), the process returns to step S102. Note that the determination as to whether the acquisition of the teacher data has been completed may be performed by the pre-processing unit 106 based on an input from the operation unit 112, for example.
[0107] When the acquisition of the teacher data is completed (YES in S110), the parameter generation process S112 is executed. Details of the parameter generation process S112 are shown in Fig. 13. As shown in Fig. 13, the teacher data processing unit 114 applies NMF to the learning data corresponding to the currently operating model to acquire the teacher coefficient matrix of the currently operating model. Then, the learning data selection unit 125 generates the frequency of each teacher coefficient vector as a frequency distribution based on the teacher coefficient matrix of the currently operating model (S132).
[0108] The learning data selection unit 125 calculates the selection amount of the learning data of the currently operating model based on the frequency distribution (S134). Then, the learning data selection unit 125 selects the learning data of the currently operating model based on the calculated selection amount (S136).
[0109] The teacher data processing unit 114 applies NMF to the selected learning data of the currently operating model and the teacher data based on the time-series data to obtain a teacher basis matrix and a teacher coefficient matrix (S138). The obtained teacher basis matrix is stored in the storage unit 118. In addition, the parameter generating unit 116 generates new classification model parameters based on the teacher coefficient matrix obtained by the teacher data processing unit 114 and the correct answer label indicating normality (S140).
[0110] The parameter generating unit 116 deletes from the storage unit 107 the learning data that is not selected among the learning data corresponding to the currently operating model stored in the storage unit 107 (S142). This can suppress the amount of data accumulation. Returning to FIG. 12, the parameter generating unit 116 updates the classification model parameters of the currently operating model based on the generated new classification model parameters. This updates the currently operating model to the new model (S114).
[0111] An example of the operation of this embodiment in the learning phase has been described above. Next, an example of the operation of this embodiment in the classification phase using the classification model parameters generated in the learning phase will be described with reference to FIG.
[0112] (Example of classification phase operation) 14 is a flowchart showing an example of the operation of this embodiment in the classification phase. First, the data acquisition unit 102 acquires time-series data (S202), and the section identification unit 104 identifies a target section to be processed in the classification process from the acquired time-series data (S204).
[0113] Next, the conversion unit 108 of the pre-processing unit 106 converts the data included in the target section of the time-series data into a frequency domain representation to obtain evaluation data (evaluation observation matrix) (S206). Note that in the evaluation phase, the evaluation data (evaluation observation matrix) may include one or more observation vectors. When the evaluation data includes multiple observation vectors, the above steps S202 to S206 may be repeated.
[0114] Next, the feature extraction unit 120 generates an evaluation coefficient matrix from the evaluation data based on the teacher basis matrix acquired in the above-mentioned learning phase and stored in the storage unit 118 (S208).
[0115] Next, the classification unit 122 classifies the evaluation coefficient matrix based on the classification model parameters generated in the above-mentioned learning phase and stored in the storage unit 118 (S210). Finally, the classification result in step S210 is output by the output unit 124 (S212).
[0116] <1-3. Effects of the First Embodiment> The first embodiment of the present invention has been described above. According to this embodiment, new classification model parameters are generated based on teacher data acquired based on time-series data and a portion of learning data selected from the learning data corresponding to the currently operating model.
[0117] This can reduce the amount of accumulated data compared to when all of the learning data corresponding to the currently operating model is used to generate new classification model parameters.
[0118] Furthermore, by using training data acquired based on time-series data, it is possible to capture new features of the time-series data, and by using a portion of the learning data corresponding to the currently operating model, it is possible to generate a classification model that retains the features of the currently operating model. This makes it possible to suppress a decrease in classification accuracy by the classification model.
[0119] <<2. Second embodiment>> Next, in the following, an example of evaluating a newly generated classification model will be described as a second embodiment.
[0120] <2-1. Configuration example of the second embodiment> The information processing device according to the second embodiment of the present invention has a configuration similar to that of the information processing device 1 according to the first embodiment described with reference to Fig. 1 in part, and therefore will be described with appropriate omissions. Hereinafter, an example of the configuration of the information processing device according to the second embodiment will be described with reference to Fig. 15.
[0121] Fig. 15 is an explanatory diagram showing a configuration example of an information processing device according to this embodiment. As shown in Fig. 15, the information processing device 2 according to this embodiment includes a data acquisition unit 102, a section identification unit 104, a preprocessing unit 106, an operation unit 112, a teacher data processing unit 114, a parameter generation unit 116, a storage unit 118, a feature extraction unit 120, a classification unit 122, an output unit 124, a learning data selection unit 125, and a classification model evaluation unit 128. Among the configurations shown in Fig. 7, the configurations substantially similar to those shown in Fig. 1 are denoted by the same reference numerals, and therefore description thereof will be omitted.
[0122] As in the first embodiment, the teacher data processing unit 114 generates a first teacher coefficient matrix by applying NMF to the teacher data stored in the storage unit 107 and a part of the learning data selected from the learning data corresponding to the initial model (α model). Then, the parameter generating unit 116 generates classification model parameters (first parameters) based on the first teacher coefficient matrix generated by the teacher data processing unit 114 and the correct answer label indicating normal.
[0123] Furthermore, in the second embodiment of the present invention, the teacher data processing unit 114 generates a second teacher coefficient matrix by applying NMF to the teacher data stored in the storage unit 107 and the learning data corresponding to the initial model (α model). Then, the parameter generation unit 116 generates classification model parameters (second parameters) based on the second teacher coefficient matrix generated by the teacher data processing unit 114 and the correct answer label indicating normal.
[0124] Then, the parameter generating unit 116 generates a classification model (first model) in which the generated classification model parameters (first parameters) are set, and a classification model (second model) in which the generated classification model parameters (second parameters) are set. The classification model evaluating unit 128 compares the two classification models generated by the parameter generating unit 116. The parameter generating unit 116 updates the initial model (α model) based on the comparison result by the classification model evaluating unit 128.
[0125] Fig. 16 is a diagram for explaining an example of comparison between two classification models. Referring to Fig. 16, a model after data addition (β model) and a new model (β' model) are shown. The model after data addition (β model) corresponds to the above-mentioned second model. On the other hand, the new model (β' model) corresponds to the above-mentioned first model.
[0126] The parameter generating unit 116 calculates the similarity between the model after data addition (β model) and the new model (β' model), and if the similarity exceeds a predetermined similarity, updates the initial model (α model) with the new model (β' model). In other words, if the similarity exceeds a predetermined similarity, the parameter generating unit 116 updates the classification model parameters of the initial model (α model) with the classification model parameters of the new model (β' model).
[0127] Here, the method of determining the similarity is not limited. As an example, the classification model evaluation unit 128 may calculate the difference between a classification score (first score) output from the new model (β' model) in response to input of predetermined data to the new model (β' model) and a classification score (second score) output from the data-added model (β model) in response to input of predetermined data to the data-added model (β model). Then, the classification model evaluation unit 128 may determine that the similarity exceeds the predetermined similarity when the difference is smaller than a threshold value.
[0128] Here, the predetermined data to be input to the new model (β' model) and the model after data addition (β model) is not particularly limited.
[0129] Fig. 17 is a diagram for explaining an example of a similarity determination method. Referring to Fig. 17, a model after data addition (β model) and a new model (β' model) are shown. Here, it is assumed that learning data of the β model is used as an example of the β' model and the predetermined data input to the β model.
[0130] 17, the classification score output from the β model corresponding to the input of the training data of the β model to the β model is shown as "β model score." Meanwhile, the classification score output from the β' model corresponding to the input of the training data of the β' model to the β' model is shown as "β' model score."
[0131] The classification model evaluation unit 128 calculates the difference between the β model score and the β' model score corresponding to each of the learning data of the β model, and determines whether the maximum value of the difference is smaller than a threshold (S302). Then, when the maximum value of the difference is smaller than the threshold, the classification model evaluation unit 128 may determine that the similarity between the β model and the β' model exceeds a predetermined similarity.
[0132] Fig. 18 is a graph showing an example of both scores (β model score and β' model score) corresponding to each learning data of the β model. In the example shown in Fig. 18, the horizontal axis of the graph indicates the number of the learning data of the β model, and the vertical axis of the graph indicates the β model score and the β' model score. That is, the classification model evaluation unit 128 may determine that the similarity between the β model and the β' model exceeds a predetermined similarity when the difference between the β model score and the β' model score is smaller than a threshold value at any point on the horizontal axis of the graph.
[0133] Continuing the explanation by returning to Fig. 17. When the classification model evaluation unit 128 determines that the similarity between the β model and the β' model exceeds a predetermined similarity, that is, when the classification model evaluation unit 128 determines that the maximum value of the difference between the β model score and the β' model score is smaller than or equal to a threshold value, the parameter generation unit 116 updates the α model with the β' model (S304).
[0134] On the other hand, when the classification model evaluation unit 128 determines that the similarity between the β model and the β' model is equal to or lower than a predetermined similarity, that is, when the maximum value of the difference between the β model score and the β' model score is determined to be greater than a threshold value, the training data selection unit 125 may increase the selection rate of training data (S306) and re-select some training data from the training data.
[0135] Here, it is assumed that the increase in the selection rate is 10%, but the increase in the selection rate is not limited. Also, it is assumed that the increase in the selection rate is constant, but the increase in the selection rate may vary. Furthermore, it is assumed that the initial value of the selection rate is 10%, but the initial value of the selection rate is not limited. As the selection rate of the learning data increases, it is considered that the β' model approaches the β model, and therefore, the similarity between the β model and the β' model is more likely to exceed a predetermined similarity.
[0136] At this time, the teacher data processing unit 114 generates a third teacher coefficient matrix by applying NMF to the teacher data and the learning data reselected by the learning data selection unit 125, and the parameter generation unit 116 may generate classification model parameters (third parameters) based on the third teacher coefficient matrix, and regenerate a β' model (third model) in which the classification model parameters (third parameters) are set.
[0137] The classification model evaluation unit 128 may determine the similarity between the β model and the regenerated β' model again. When it is determined that the similarity between the β model and the regenerated β' model exceeds a predetermined similarity, that is, when it is determined that the maximum value of the difference between the β model score and the regenerated β' model score is smaller than a threshold, the parameter generation unit 116 updates the α model with the regenerated β' model (S304).
[0138] On the other hand, when the classification model evaluation unit 128 determines that the similarity between the β model and the regenerated β' model is equal to or lower than a predetermined similarity, that is, when the maximum value of the difference between the β model score and the regenerated β' model score is determined to be smaller than a threshold, the training data selection unit 125 may increase the selection rate of training data (S306) and reselect some training data from the training data. Then, the same operation is repeated until the α model is updated.
[0139] As in the first embodiment, the parameter generating unit 116 leaves the selected learning data stored in the storage unit 107 and corresponding to the currently operating model. Meanwhile, the parameter generating unit 116 deletes from the storage unit 107 the learning data that was not selected from the learning data stored in the storage unit 107 and corresponding to the currently operating model. This can reduce the amount of data accumulation. The teacher data stored in the storage unit 107 is used as learning data the next time the currently operating model is updated.
[0140] <2-2. Operation example of the second embodiment> Above, a configuration example of the information processing device 2 according to the second embodiment of the present invention has been described. Next, an operation example of this embodiment will be described. The classification phase of this embodiment is similar to the classification phase of the first embodiment. Therefore, in this embodiment, the learning phase will be described with reference to Figs. 19 and 20, and the description of the classification phase will be omitted.
[0141] (Example of learning phase operation) 19 and 20 are flow charts showing an operation example of this embodiment in the learning phase. As shown in Fig. 19, first, the processes of S102 to S110 are executed, but since these processes are similar to the processes of steps S102 to S110 described with reference to Fig. 12, the description thereof will be omitted.
[0142] When acquisition of the teacher data is completed (YES in S110), a parameter generation process S412 is executed. Details of the parameter generation process S412 are shown in Fig. 20. As shown in Fig. 20, the processes of S132 to S140 are executed, but since these processes are similar to the processes of steps S132 to S140 described with reference to Fig. 13, their description will be omitted. The parameter generation unit 116 generates a classification model after data thinning, in which the classification model parameters generated in S140 are set.
[0143] The teacher data processing unit 114 applies NMF to the learning data of the currently operating model and the teacher data based on the time-series data to obtain a teacher basis matrix and a teacher coefficient matrix. The parameter generating unit 116 generates classification model parameters based on the teacher coefficient matrix obtained by the teacher data processing unit 114 and the correct answer label indicating normality. The parameter generating unit 116 generates a classification model before data thinning in which the generated classification model parameters are set.
[0144] The classification model evaluation unit 128 calculates the difference between the scores of the classification model before and after the data culling (S414). Then, the classification model evaluation unit 128 determines whether the maximum value of the differences is smaller than a threshold value (S416). If the maximum value of the differences is equal to or greater than the threshold value (NO in S416), the operation proceeds to S134.
[0145] On the other hand, when the maximum value of the difference is smaller than the threshold value (YES in S416), the parameter generating unit 116 deletes from the storage unit 107 the learning data that was not selected among the learning data corresponding to the currently operating model stored in the storage unit 107 (S142). This can suppress the amount of data accumulation. Returning to FIG. 19, the parameter generating unit 116 updates the classification model parameters of the currently operating model based on the generated new classification model parameters. This updates the currently operating model to the new model (S414).
[0146] <2-3. Effects of the Second Embodiment> The second embodiment of the present invention has been described above. According to this embodiment, the same effects as those of the first embodiment of the present invention are achieved. Furthermore, according to this embodiment, the selection rate of the learning data required for generating a classification model that suppresses the deterioration of classification accuracy while suppressing the amount of data accumulation is automatically set. Therefore, the effect of not placing a burden on the user to set the selection rate is also enjoyed.
[0147] <<3. Third embodiment>> Next, in the following, as a third embodiment, an example in which NMF is partially applied to data in a limited range so as to obtain a coefficient matrix with a high degree of class separation will be described.
[0148] <3-1. Overview of the third embodiment> First, an overview of this embodiment will be described with reference to Fig. 21 and Fig. 22. In the following, data expressing the relationship between time, frequency, and amplitude, such as a power spectrum or spectrogram obtained by Fourier transform from time series data, or a scalogram obtained by wavelet transform, will be collectively referred to as time-frequency-amplitude data. The time-frequency-amplitude data may be expressed as data indicating amplitude values in the frequency domain and the time domain, for example.
[0149] In the first and second embodiments described above, NMF is applied to the entire time-frequency-amplitude data. However, a spectrogram or a scalogram is data having two axes, time and frequency, and applying NMF to a spectrogram or a scalogram may result in a large amount of calculation.
[0150] In addition, NMF generally tends to select amplitude values or bases with high frequency of occurrence. Therefore, if NMF is applied to the entire time-frequency-amplitude data, for example, a base with low class separation ability and large amplitude may be selected, or a base with high class separation ability and small amplitude may be selected, resulting in a decrease in separation accuracy. Figure 21 is a schematic diagram showing an example of applying NMF to the entire time-frequency-amplitude data.
[0151] Spectrograms G61 and G62 shown in Fig. 21 are spectrograms that respectively show the characteristics of class 1 and class 2. In spectrograms G61 and G62, the darkness of the black color indicates the magnitude of the amplitude.
[0152] In addition, in the example shown in FIG. 21, the magnitude of the amplitude in the large amplitude region R1 appears in common in the spectrogram G61 showing the characteristics of class 1 and the spectrogram G62 showing the characteristics of class 2, and is not a feature effective for classification (discrimination). On the other hand, in the example shown in FIG. 21, the magnitude of the amplitude in the small amplitude region R2 and region R3 is a feature effective for classifying class 1 and class 2. However, if NMF is applied to the entire data of the spectrograms G61 and G62, the basis G611 and G621 corresponding to the large amplitude region R1 will be selected, and there is a risk that a small amplitude basis showing a feature effective for classifying class 1 and class 2 will not be selected. As a result, the coefficient G613 obtained from the spectrogram G61 and the coefficient G623 obtained from the spectrogram G62 will be the same, and it will be difficult to classify (discriminate) class 1 and class 2.
[0153] Therefore, in this embodiment, NMF is applied partially to a time domain and a frequency domain that are effective for class classification, as shown in Fig. 22. Fig. 22 is a schematic diagram showing an example in which NMF is applied partially to a limited domain.
[0154] Spectrograms G71 and G72 shown in FIG. 22 are spectrograms showing the characteristics of class 1 and class 2, respectively, similar to spectrograms G61 and G62 shown in FIG. 21. As shown in FIG. 22, when NMF is applied partially to the region R4 of spectrograms G71 and G72, bases G711 and G721 corresponding to region R2 and bases G712 and G722 corresponding to region R3 are selected. As a result, coefficients G713 and G714 obtained from spectrogram G71 are significantly different from coefficients G723 and G724 obtained from spectrogram G72, and it is possible to easily classify (distinguish) class 1 and class 2. In addition, since NMF is applied only to region R4, it is also possible to suppress the amount of processing.
[0155] For example, hammering sound data is generally data from a limited time period, and it is sufficient to perform analysis according to the purpose by limiting it to a certain time period where the amplitude appears in the time-frequency-amplitude data. Also, for data such as vibration sound from a machine that outputs a sound in a specific frequency band, it is sufficient to perform analysis according to the purpose by limiting it to that frequency band.
[0156] The outline of this embodiment has been described above. Next, an example of the configuration and operation of the information processing device 3 according to this embodiment will be described in detail.
[0157] <3-2. Configuration example of the third embodiment> The information processing device according to the third embodiment of the present invention has a configuration similar to that of the information processing device 1 according to the first embodiment described with reference to Fig. 1 in part, and therefore will be described with appropriate omissions. Hereinafter, an example of the configuration of the information processing device according to the third embodiment will be described with reference to Fig. 23.
[0158] Fig. 23 is an explanatory diagram showing a configuration example of an information processing device according to this embodiment. As shown in Fig. 23, the information processing device 3 according to this embodiment includes a data acquisition unit 102, a section identification unit 104, a preprocessing unit 106, an operation unit 112, a teacher data processing unit 114, a parameter generation unit 116, a storage unit 118, a feature extraction unit 120, a classification unit 122, an output unit 124, and a learning data selection unit 125. Among the configurations shown in Fig. 23, the configurations substantially similar to those shown in Fig. 1 are denoted by the same reference numerals, and therefore description thereof will be omitted.
[0159] The pre-processing unit 106 according to this embodiment shown in Fig. 23 acquires teacher data (teacher observation matrix) for the classification model parameter generation process and evaluation data (evaluation observation matrix) for the classification process, similarly to the pre-processing unit 106 described with reference to Fig. 1. As shown in Fig. 23, the pre-processing unit 106 according to this embodiment has functions as a conversion unit 108, an association unit 110, a data division unit 312, and a separation degree evaluation unit 313.
[0160] The conversion unit 108 converts into time-frequency-amplitude data at least a part of the data included in the target section identified by the section identification unit 104. For example, the time-frequency-amplitude data obtained by the conversion by the conversion unit 108 may be a power spectrum, a spectrogram, or a scalogram.
[0161] When the preprocessing unit 106 acquires training data, the association unit 110 associates the data of the target section identified by the section identification unit 104 with the correct label input by the user via the operation unit 112.
[0162] The data division unit 312 divides the time-frequency-amplitude data acquired by the conversion unit 108 in the frequency domain or the time domain. The separation degree evaluation unit 313 applies NMF to each piece of data divided by the data division unit 312, evaluates the class separation degree, and acquires data with high separation degree as teacher data. The separation degree evaluation unit 313 also acquires evaluation data from the domain where the teacher data is acquired.
[0163] FIG. 24 is an explanatory diagram showing an example of data division by the data division unit 312 and acquisition of teacher data and evaluation data by the separation evaluation unit 313. As shown in FIG. 24, in a region A0 of time-frequency-amplitude data, the data division unit 312 divides the data into four regions A1, A2, A3, and A4. The number of divisions by the data division unit 312 may be any number equal to or greater than two. The separation evaluation unit 313 applies NMF to each of the divided data and acquires basis matrices and coefficient matrices at a certain number of ranks. Note that the time-frequency-amplitude data may be converted into a one-dimensional column vector in order to apply NMF.
[0164] In the following, an example will be described in which there are two classes, class C1 and class C2. First, a basis matrix H C1,A1 , H C1,A2 , H C1,A3 , H C1,A4 , and the coefficient matrix W C1,A1 , W C1,A2 , W C1,A3 , W C1,A4 Next, the basis matrix H C2,A1 , H C2,A2 , H C2,A3 , H C2,A4 , and the coefficient matrix W C2,A1 , W C2,A2 , W C2,A3 , W C2,A4 , respectively. The rank, which indicates the number of bases to be decomposed, ranges from 1 to the number of dimensions of the original data.
[0165] Next, the separation evaluation unit 313 identifies the separation indicating the classification ability in each divided time domain and frequency domain. As an index indicating the separation, for example, the accuracy rate of class classification (discrimination) may be used.
[0166] In the following, an example will be described in which the classification accuracy rate of class C1 or class C2 is used as an index indicating the degree of separation of class C1 or class C2 in area A0. First, the separation degree evaluation unit 313 evaluates the basis H C1,A1 , H C2,A1 The common basis H C1‐C2,A1 ={H C1,A1 ,H C2,A1} is obtained. The data Y of the original class C1 C1,A0 , Class C2 Data Y C2,A0 H C1―C2,A1 The pseudoinverse matrix H C1―C2,A1 + Multiplying by the coefficient matrix W C1,A0 , W C2,A0 is given by the following equation:
[0167]
number
[0168] The separation evaluation unit 313 evaluates the coefficient matrix W C1,A0 , W C2,A0 are classified as feature vectors of class C1 and class C2, respectively, and the classification accuracy rate is calculated. The classification method performed by the separation degree evaluation unit 313 may be the same as the classification method of the classification unit 122 described with reference to FIG.
[0169] Alternatively, the ratio of within-class variance to between-class variance may be used as an index of the degree of separation. w 2 , and the inter-class variance σ B 2 is expressed as follows:
[0170]
number
[0171] In the above formulas (9) and (10), n is the total number of data, i is the number of data in class i, x is the feature vector, m iis the mean of the feature vectors of class i, and m is the mean of all feature vectors. The above intra-class variance σ w 2 , and the inter-class variance σ B 2 Using this, the within-class to between-class variance ratio J is expressed as follows:
[0172]
number
[0173] It is considered that the larger the within-class / between-class variance ratio J is, the greater the degree of separation is, and the better the feature is. Note that the index indicating the degree of separation is not limited to the above, and for example, the Mahalanobis distance may be used.
[0174] As described above, the separation evaluation unit 313 obtains the degree of separation in each of the four regions A1, A2, A3, and A4, and if the value of the separation is equal to or greater than a preset threshold L, it similarly obtains the degree of separation using time domain / frequency domain data combining these regions. For example, if the degree of separation in regions A1 and A3 is equal to or greater than the threshold L, the separation evaluation unit 313 obtains the degree of separation using the feature quantities obtained in the time domain / frequency domain of regions A1 and A3, respectively. As described above, by using data obtained from multiple regions with high separation, it is possible to obtain feature quantities with higher separation.
[0175] The data division unit 312 may further recursively divide the data in each of the four regions A1, A2, A3, and A4 shown in Fig. 24. For example, the region A1 shown in Fig. 24 may be divided into four regions A11, A12, A13, and A14. The separation evaluation unit 313 calculates the separation for each of the divided data and data obtained by combining the divided data. The above recursive division may be repeated until the time domain and the frequency domain are divided into the smallest unit, or until the size of the divided data reaches a predetermined value.
[0176] In the above, an example of recursive division has been described in order to efficiently extract time domains and frequency domains with high separation, but the present embodiment is not limited to such an example. For example, the separation of some or all of the time domains and frequency domains may be evaluated, or time domains and frequency domains with high separation may be extracted using other methods.
[0177] In the learning phase, the separation degree evaluation unit 313 acquires data in the time domain and frequency domain where the separation degree is highest as teacher data (teacher observation matrix). In addition, the separation degree evaluation unit 313 specifies the time domain and frequency domain where the teacher data is acquired as a data domain for acquiring evaluation data, and acquires evaluation data (evaluation observation matrix) from the data domain.
[0178] <3-3. Operation Example of Third Embodiment> An example of the configuration of the information processing device 3 according to the third embodiment of the present invention has been described above. Next, an example of the operation of this embodiment will be described with reference to Figs. 25 and 26, respectively, by dividing it into a learning phase and a classification phase, similar to the explanation of the operation examples of the first and second embodiments.
[0179] (Example of learning phase operation) Fig. 25 is a flow chart showing an example of the operation of this embodiment in the learning phase. As shown in Fig. 25, first, the data acquisition unit 102 acquires time-series data (S102), and the section identification unit 104 identifies a target section to be processed in the classification model parameter generation process from the acquired time-series data (S104). Next, the association unit 110 of the pre-processing unit 106 associates the identified target section with a correct answer label input by the user via the operation unit 112 (S108). Note that the correct answer label associated with the target section in step S108 may also be associated with a teacher observation vector corresponding to the target section, which is included in the teacher data acquired in step S518 described later.
[0180] If the acquisition of the teacher data has not been completed (NO in S110), the process returns to step S102. Note that the determination as to whether the acquisition of the teacher data has been completed may be performed by the pre-processing unit 106 based on an input from the operation unit 112, for example.
[0181] When the acquisition of the teacher data is completed (YES in S110), the conversion unit 108 of the pre-processing unit 106 converts the data included in the target section of the time-series data into time-frequency-amplitude data (S110). Then, the data division unit 312 of the pre-processing unit 106 divides the time-frequency-amplitude data into the time domain and the frequency domain (S512).
[0182] Next, the separation degree evaluation unit 313 applies NMF to each piece of data divided by the data division unit 312 to evaluate the class separation degree (S514), selects data with high separation degree (S516), and obtains the selected data as training data (S518).
[0183] The subsequent processing of steps S112 to S114 is similar to the processing of steps S112 to S114 described with reference to FIG. 12, and therefore description thereof will be omitted.
[0184] An example of the operation of this embodiment in the learning phase has been described above. Next, an example of the operation of this embodiment in the classification phase using the classification model parameters generated in the learning phase will be described with reference to FIG.
[0185] (Example of classification phase operation) 26 is a flowchart showing an example of the operation of this embodiment in the classification phase. First, the data acquisition unit 102 acquires time-series data (S202), and the section identification unit 104 identifies a target section to be processed in the classification process from the acquired time-series data (S204).
[0186] Next, the conversion unit 108 of the pre-processing unit 106 converts the time-series data included in the target section into time-frequency-amplitude data (S206), and the data division unit 312 of the pre-processing unit 106 divides the time-frequency-amplitude data into the time domain and the frequency domain (S608).
[0187] Next, in the divided time-frequency-amplitude data, data in the same region as the data selected in step S516 of the learning phase described with reference to Fig. 25 is selected (S612). Furthermore, the separation evaluation unit 313 obtains evaluation data from the selected data (S614).
[0188] The subsequent processing in steps S208 to S212 is similar to the processing in steps S208 to S212 described with reference to FIG. 14, and therefore description thereof will be omitted.
[0189] <3-4. Effects of the Third Embodiment> The third embodiment of the present invention has been described above. According to this embodiment, the amount of processing can be reduced by limiting the range of the time domain and frequency domain used for classification. In addition, by acquiring training data and evaluation data from a domain with high degree of separation, it becomes easier to select a basis effective for classification, and classification accuracy is further improved.
[0190] <<4. Hardware Configuration>> The above describes each embodiment and each modified example of the present invention. The above-mentioned information processing such as section identification processing, preprocessing, teacher data processing, parameter generation processing, feature extraction processing, and classification processing is realized by cooperation between software and hardware of information processing devices 1 to 3. In the following, an example of the hardware configuration of information processing device 1000 will be described as an example of the hardware configuration of information processing devices 1 to 3 which are information processing devices according to the embodiments of the present invention.
[0191] 27 is an explanatory diagram showing an example of a hardware configuration of an information processing device 1000 according to an embodiment of the present invention. As shown in FIG. 27, the information processing device 1000 includes a CPU (Central Processing Unit) 1001, a ROM (Read Only Memory) 1002, a RAM (Random Access Memory) 1003, an input device 1004, an output device 1005, a storage device 1006, and a communication device 1007.
[0192] The CPU 1001 functions as an arithmetic processing device and a control device, and controls the overall operation of the information processing device 1000 according to various programs. The CPU 1001 may also be a microprocessor. The ROM 1002 stores programs and arithmetic parameters used by the CPU 1001. The RAM 1003 temporarily stores programs used in the execution of the CPU 1001 and parameters that change appropriately during the execution. These are connected to each other by a host bus consisting of a CPU bus or the like. Mainly, the functions of the section identification unit 104, the preprocessing unit 106, the teacher data processing unit 114, the parameter generation unit 116, the feature extraction unit 120, the classification unit 122, the learning data selection unit 125, and the classification model evaluation unit 128 are realized by cooperation between the CPU 1001, the ROM 1002, and the RAM 1003 and software.
[0193] The input device 1004 is composed of input means for a user to input information, such as a mouse, keyboard, touch panel, button, microphone, switch, and lever, and an input control circuit that generates an input signal based on the user's input and outputs it to the CPU 1001. A user of the information processing device 1000 can input various data and instruct the information processing device 1000 to perform processing operations by operating the input device 1004. The input device 1004 corresponds to the operation unit 112.
[0194] The output device 1005 includes a display device such as a liquid crystal display (LCD) device, an OLED device, and a lamp. Furthermore, the output device 1005 includes an audio output device such as a speaker and a headphone. For example, the display device displays captured images, generated images, and the like. Meanwhile, the audio output device converts audio data, etc. into audio and outputs it. The output device 1005 corresponds to the output unit 124.
[0195] The storage device 1006 is a device for storing data. The storage device 1006 may include a storage medium, a recording device for recording data in the storage medium, a reading device for reading data from the storage medium, and a deleting device for deleting data recorded in the storage medium. The storage device 1006 stores the programs executed by the CPU 1001 and various data. The storage device 1006 corresponds to the storage unit 107 and the storage unit 118.
[0196] The communication device 1007 is, for example, a communication interface configured with a communication device for connecting to a communication network, etc. The communication device 1007 may also include a wireless LAN (Local Area Network) compatible communication device, an LTE (Long Term Evolution) compatible communication device, a wired communication device for performing wired communication, or a Bluetooth (registered trademark) communication device.
[0197] <<5. Conclusion>> As described above, according to the embodiment of the present invention, it is possible to suppress a decrease in classification accuracy while suppressing the amount of accumulated data.
[0198] Although the preferred embodiment of the present invention has been described in detail above with reference to the accompanying drawings, the present invention is not limited to such an example. It is clear that a person having ordinary knowledge in the technical field to which the present invention pertains can conceive of various modified or altered examples within the scope of the technical ideas described in the claims, and it is understood that these also naturally belong to the technical scope of the present invention.
[0199] For example, in the above embodiment, an example has been described in which teacher data associated with a correct answer label is used to generate classification model parameters (i.e., an example in which supervised learning is performed). However, the correct answer label may not be associated with all of the teacher data. For example, a correct answer label may be associated with some teacher data, but a correct answer label may not be associated with other teacher data (i.e., semi-supervised learning may be performed).
[0200] In the above embodiment, the teacher data and the evaluation data are acquired by the same device (information processing devices 1 to 3), but the present embodiment is not limited to such an example. For example, the devices that acquire the teacher data and the evaluation data may be different devices, and the teacher data and the correct answer label may be stored in advance in a storage unit.
[0201] Furthermore, the configurations of the above-described embodiments may be appropriately combined and implemented. For example, in the above-described embodiment, a configuration in which the data division unit 312 and the separation degree evaluation unit 313 are added to the information processing device 1 according to the first embodiment of the present invention has been described as the information processing device 3 according to the third embodiment of the present invention. However, the data division unit 312 and the separation degree evaluation unit 313 may be added to the information processing device 2 according to the second embodiment of the present invention.
[0202] In the above embodiment, the information processing devices 1 to 3 have a function as a parameter generating device that generates classification model parameters and a function as a classifying device that classifies time-series data into a plurality of classes, but the present embodiment is not limited to such an example. For example, the parameter generating device that performs the generation process of the classification model parameters and the classifying device that performs the classification process using the classification model parameters generated by the parameter generating device may be different devices.
[0203] In the above embodiment, the data obtained based on the collected hitting sounds is classified into two classes, normal and abnormal, but the present embodiment is not limited to such an example. For example, the data to be classified in the present embodiment is not limited to the data based on the collected hitting sounds, and may be classified into three or more classes.
[0204] It is also possible to create a computer program for causing hardware such as the CPU 1001, the ROM 1002, and the RAM 1003 built into the information processing devices 1 to 3 to perform the functions of the information processing devices 1 to 3. Also provided is a storage medium having the computer program stored therein. [Explanation of symbols]
[0205] 1. Information processing device (processing device) 102 Data Acquisition Section 104 Section Identification Unit 106 Pretreatment section 107 Storage section 108 Conversion unit 110 Mapping section 112 Operation section 114 Teacher data processing section 116 Parameter Generation Unit 118 Storage section 120 Feature Extraction Unit 122 Classification Department 124 Output section 125 Learning Data Selection Unit 128 Classification Model Evaluation Unit 312 Data division section 313 Separation Evaluation Unit
Claims
1. a data selection unit that selects, from the learning data corresponding to the operating model used for generating parameters of the operating model, a portion of the learning data as selected learning data; a data processing unit that generates a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time-series data and the selected learning data; a parameter generating unit that generates first parameters based on the first teacher coefficient matrix and updates parameters of the operating model based on the first parameters; A processing device comprising:
2. the data selection unit classifies a plurality of teacher coefficient vectors included in a teacher coefficient matrix generated from the learning data corresponding to the operating model into the same teacher coefficient vector, calculates a frequency of each teacher coefficient vector as a frequency of each coordinate, and selects the selected learning data based on the frequency of each coordinate. The processing device of claim 1 .
3. the data selection unit calculates a selection amount of learning data for each coordinate by multiplying each of the frequencies for each coordinate by a predetermined selection rate, and selects the selected learning data based on the selection amount of learning data for each coordinate. The processing device according to claim 2 .
4. The selection rate is changed based on a predetermined change operation input by a user. The processing device according to claim 3 .
5. The running model outputs a score indicating the likelihood of a given class in response to an input to the running model. The processing device according to any one of claims 1 to 4.
6. The data selection unit selects the selected learning data based on a score output from the operating model in response to an input to the operating model. The processing device according to claim 5 .
7. the data selection unit preferentially selects learning data having a smaller score as the selected learning data. The processing device of claim 6.
8. the parameter generation unit deletes learning data other than the selected learning data from among the learning data corresponding to the operating model. The processing device according to any one of claims 1 to 7.
9. The data processing unit generates a second teacher coefficient matrix by performing non-negative matrix factorization on the teacher data and learning data corresponding to the operating model; the parameter generation unit generates second parameters based on the second teacher coefficient matrix; The processing device includes: a model evaluation unit that determines a similarity between a first model in which the first parameters are set and a second model in which the second parameters are set; The parameter generation unit updates a parameter of the operating model based on the first parameter when the similarity exceeds a predetermined similarity. The processing device according to any one of claims 1 to 8.
10. the model evaluation unit calculates a difference between a first score output from the first model in response to input of predetermined data to the first model and a second score output from the second model in response to input of the predetermined data to the second model, and determines that the similarity exceeds the predetermined similarity when the difference is smaller than a threshold value. The processing device of claim 9.
11. the model evaluation unit calculates a difference between a first score and a second score corresponding to each of a plurality of data, and determines that the similarity exceeds the predetermined similarity when a maximum value of the differences is smaller than the threshold value; The processing device of claim 10.
12. when the similarity is equal to or lower than the predetermined similarity, the data selection unit increases a selection rate and reselects a portion of the learning data from the learning data corresponding to the operating model; the data processing unit generates a third teacher coefficient matrix by performing non-negative matrix factorization on the teacher data and the reselected learning data; the parameter generation unit generates a third parameter based on the third teacher coefficient matrix; the model evaluation unit determines a similarity between a third model in which the third parameters are set and a second model in which the second parameters are set; The parameter generation unit updates a parameter of the operating model based on the third parameter when the similarity exceeds the predetermined similarity. The processing device according to any one of claims 9 to 11.
13. A processing method for a processing device, comprising: selecting a part of the learning data from the learning data corresponding to the operating model used for generating parameters of the operating model as post-selection learning data; generating a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time-series data and the selected learning data; generating first parameters based on the first teacher coefficient matrix, and updating parameters of the running model based on the first parameters; The processing method according to claim 1,
14. Computer, a data selection unit that selects a portion of learning data from the learning data corresponding to the operating model used for generating parameters of the operating model as post-selection learning data; a data processing unit that generates a first teacher coefficient matrix by performing non-negative matrix factorization on teacher data obtained based on time-series data and the selected learning data; and a parameter generating unit that generates first parameters based on the first teacher coefficient matrix and updates parameters of the operating model based on the first parameters; A program that functions as a
Citation Information
Patent Citations
Signal analyzing device, signal analyzing method and signal analyzing program
JP2011133780A
Acoustic analyzer
JP2014137389A
Acoustic analyzer
JP2015079110A
Information processing apparatus, information processing system, information processing method and program
JP2019079167A
Classification device, classification system, classification method and program
JP2020107138A
