Learning processing device, learning processing method, and learning processing program, as well as classification processing device, classification processing method, and classification processing program
The system autonomously generates classification models by setting learning completion conditions and preprocessing data, addressing the need for user intervention in existing learning and classification processes, thereby reducing time and effort.
Patent Information
- Application Number
- JP2020033321
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-02-28
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-02-28
AI Technical Summary
Existing learning processing systems require user intervention to determine the completion of learning and classification processes, making them time-consuming.
A system that automatically sets learning completion conditions, acquires data, preprocesses it, and generates classification models based on statistical conditions, allowing for autonomous completion of learning and classification processes.
Enables the generation of appropriate classification models without user intervention, reducing time and effort by automatically determining when to complete learning and classification processes.
Smart Images

Figure 0007532808000015 
Figure 0007532808000021 
Figure 0007532808000013
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning processing device, a learning processing method, and a learning processing program, as well as a classification processing device, a classification processing method, and a classification processing program, and is suitable for use, for example, in determining the time to replace consumable parts in a machine tool based on an acoustic signal obtained from the machine tool. [Background technology]
[0002] Conventionally, there is known a technique for classifying continuously generated time-series data, such as an acoustic signal obtained from a machine tool, into a plurality of classes. For example, Patent Document 1 proposes an information processing device that performs learning and classification processes based on an acoustic signal obtained by collecting hitting sounds generated when a measuring object, such as concrete, is struck with a hitting tool, such as a hammer, to classify (discriminate) the data into two classes.
[0003] In this information processing device, a part of the time-series data is used as teacher data to perform a learning process to generate classification model parameters, and the remaining data is used as evaluation data to perform classification processing using the classification model parameters. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-151872 A (Fig. 16, etc.) Summary of the Invention [Problem to be solved by the invention]
[0005] In the above-mentioned information processing device, the user is required to confirm values of teacher data, classification model parameters, etc., and the learning process is completed according to the user's operation. In other words, the information processing device requires the user's judgment and operation in the learning process and classification process, which is troublesome.
[0006] The present invention has been made in consideration of the above points, and aims to propose a learning processing device, a learning processing method, and a learning processing program, as well as a classification processing device, a classification processing method, and a classification processing program, which are capable of generating an appropriate classification model through learning processing using a portion of data. [Means for solving the problem]
[0007] In order to solve such problems, in the learning processing device, the learning processing method, and the learning processing program of the present invention, a condition setting unit sets a learning completion condition, a data acquisition unit acquires a plurality of data, a preprocessing unit performs preprocessing on the data, a learning completion determination unit determines whether or not the learning completion condition is satisfied, and if the learning completion condition is satisfied, a learning processing unit performs learning processing based on the acquired data to generate a classification model. a classification processing unit performs classification processing on the remaining part of the data using a classification model, a reproduction judgment processing unit judges whether or not the result of the classification processing satisfies a predetermined regeneration condition, and if the regeneration condition is satisfied, the learning processing unit performs the learning processing again based on the part of the data from the time the learning completion condition is updated until the learning completion condition is satisfied, and then the model regeneration control unit causes the classification model generation unit to regenerate the classification model. The condition for completing the learning is that the statistical values of the values obtained by the preprocessing satisfy a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition.
[0008] In the classification processing device, classification processing method, and classification processing program of the present invention, a condition setting unit sets a learning completion condition, a data acquisition unit acquires a plurality of data, a preprocessing unit performs preprocessing on the data, a learning completion determination unit determines whether or not the learning completion condition is satisfied, and if the learning completion condition is satisfied, a learning processing unit performs learning processing based on the acquired data to generate a classification model, and a classification processing unit uses the classification model to classify the data. home rest Part of Classification process is performed on The regeneration determination processing unit determines whether or not the result of the classification process satisfies a predetermined regeneration condition, and if the regeneration condition is satisfied, the learning processing unit performs the learning process again based on a part of the data from the time the learning completion condition is updated until the learning completion condition is satisfied, and then the model regeneration control unit causes the classification model generation unit to regenerate the classification model. The condition for completing the learning is that the statistical values of the values obtained by the preprocessing satisfy a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition.
[0009] The present invention can complete the learning process and generate a classification model after it is determined that, after initiation of a learning process using preprocessed data, the learning completion condition is met by the statistical values of the values obtained by the preprocessing satisfying predetermined statistical conditions, or by the distribution of the values satisfying predetermined distribution conditions. Furthermore, in the present invention, when the result of performing classification processing using a generated classification model satisfies a regeneration condition, the learning completion condition can be updated and the learning processing can be performed again to regenerate the classification model. Therefore, in the present invention, the user does not need to complete the learning process at an appropriate time while checking the state of the data, and an appropriate classification model can be generated without causing the user any trouble. Effect of the Invention
[0010] According to the present invention, it is possible to realize a learning processing device, a learning processing method, and a learning processing program, as well as a classification processing device, a classification processing method, and a classification processing program, which are capable of generating an appropriate classification model by learning processing using a portion of data. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a schematic block diagram showing a basic configuration of a learning and classification device. [Diagram 2] 1 is a schematic block diagram showing a functional configuration of a learning and classification device according to a first embodiment. [Diagram 3] 11 is a schematic diagram illustrating identification of a target section by a section identification unit; [Figure 4] FIG. 1 is a schematic diagram showing matrix decomposition by NMF. [Diagram 5] 11 is a schematic diagram showing a reduction in the amount of processing by reducing dimensions; [Figure 6] FIG. 2 is a schematic diagram showing division of domains with respect to frequency and time. [Figure 7] 1 is a flowchart showing a learning classification processing procedure according to the first exemplary embodiment. [Figure 8] 4 is a flowchart showing a learning process procedure according to the first embodiment. [Figure 9] 1 is a flowchart showing a classification processing procedure according to the first embodiment. [Figure 10]FIG. 11 is a schematic block diagram showing a functional configuration of a learning and classification device according to a second embodiment. [Figure 11] 13 is a flowchart showing a learning process procedure according to the second embodiment. [Figure 12] FIG. 13 is a schematic block diagram showing a functional configuration of a learning and classification device according to a third embodiment. [Figure 13] 13 is a flowchart showing a learning classification processing procedure according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, modes for carrying out the invention (hereinafter referred to as embodiments) will be described with reference to the drawings.
[0013] 1. First embodiment [1-1. Basic configuration of learning classification device] As shown in Figure 1, the learning classification device 1 according to the first embodiment is an information processing device similar to a general computer device, and is configured to include a control unit 2, a memory unit 3, a communication unit 4, a display unit 5 and an operation unit 6 interconnected via a bus 8.
[0014] The control unit 2 has a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory), which are not shown. The control unit 2 can perform various processes by using the CPU to execute programs read from the ROM, the storage unit 3, etc. while using the RAM as a work area. The storage unit 3 is a non-volatile storage medium, such as an SSD (Solid State Drive) or a hard disk drive, and stores various programs and various information.
[0015] The communication unit 4 is an interface for a wired LAN (Local Area Network) conforming to standards such as IEEE (Institute of Electrical and Electronics Engineers) 802.3u / ab / an / ae, or a wireless LAN conforming to standards such as IEEE 802.11a / b / g / n / ac / ax, etc. This communication unit 4 can transmit and receive various information to and from a server device (not shown) and the like.
[0016] The display unit 5 has a display device such as a liquid crystal or an organic EL (Electro Luminescence) display device, and displays a display screen that appropriately combines characters and figures that represent various information. The operation unit 6 is, for example, a keyboard, a mouse, or a touch panel, and receives operation instructions from a user.
[0017] This learning and classification device 1 is intended to be used, for example, to determine when to replace consumable parts in a machine tool by sequentially acquiring continuously generated time-series data, such as acoustic signals obtained from the machine tool, and performing the learning and classification processes described below.
[0018] [1-2. Functional configuration of the learning classification device] The control unit 2 forms various functional blocks as shown in FIG. 2 by, for example, reading out various programs from the storage unit 3 and executing them.
[0019] The data acquiring unit 11 acquires time-series data and supplies it to the section identifying unit 12. For example, the data acquiring unit 11 measures a cutting tool attached to a machine tool, collects sounds generated when the cutting tool is in use using a microphone or the like, and acquires the digitalized acoustic signals as time-series data. Hereinafter, the data acquired at this time will be referred to as time-series data.
[0020] The interval specification unit 12 specifies, as a target interval, a time interval to be processed in the generation process of classification model parameters and classification process described later, from the time series data, and supplies this to the preprocessing unit 13 together with the time series data.
[0021] 3A and 3B, the section determination unit 12 uses a predetermined reference signal D2 prepared in advance in addition to time-series data D1 whose amplitude changes over time. The reference signal D2 is a signal whose amplitude changes in a rectangular shape, and has an amplitude value P in a section T that is relatively larger than in other sections. Based on the time-series data D1 and the reference signal D2, the section determination unit 12 determines, as a target section, a section of the time-series data D1 corresponding to the section T in which the amplitude of the reference signal D2 becomes the amplitude value P.
[0022] The preprocessing unit 13 (FIG. 2) performs a calculation process called preprocessing on the part of the time series data supplied from the interval specification unit 12 that corresponds to the target interval, and generates a non-negative observation vector converted into the frequency domain, or an observation matrix in which multiple observation vectors are arranged (described in detail later).The preprocessing unit 13 then supplies this observation matrix to the teacher data processing unit 21 as teacher data, or to the feature extraction unit 25 as evaluation data.
[0023] The teacher data is time-series data to be used in a later learning process in which classification model parameters are generated based on the teacher data, while the evaluation data is time-series data to be used in a later classification process in which the evaluation data is classified into one of a plurality of classes using the classification model parameters.
[0024] Meanwhile, the condition setting unit 15 sets a learning completion condition, which is a condition for completing the learning process in the learning and classification device 1 and moving on to the classification process, in the learning completion determination unit 16. In this first embodiment, the learning completion condition is set in the learning completion determination unit 16 as "100 pieces of time-series data have been acquired", that is, "100 pieces of time-series data have been preprocessed and supplied to the teacher data processing unit 21 as teacher data".
[0025] The learning completion determination unit 16 determines whether or not to complete the learning process and move to the classification process, and controls the pre-processing unit 13 based on the determination result. Specifically, the learning completion determination unit 16 determines whether or not a learning completion condition is satisfied based on the observation matrix generated by the pre-processing unit 13. Then, the learning completion determination unit 16 controls the processing content in the pre-processing unit 13 and the supply destination of the observation matrix so as to continue the learning process if the learning completion condition is not satisfied, and to transition to the classification process if the learning completion condition is satisfied.
[0026] The teacher data processing unit 21 generates a teacher basis matrix and a teacher coefficient matrix by performing non-negative matrix factorization (hereinafter referred to as NMF) on teacher data, which is an observation matrix supplied from the pre-processing unit 13 (hereinafter referred to as a teacher observation matrix).
[0027] NMF is explained below. NMF is an algorithm that decomposes one non-negative matrix Y into the product (e.g., WH) of two non-negative matrices W and H. In general, since it is difficult to analytically determine the two non-negative matrices W and H, a method is known 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 the local optimum solution changes depending on the initial value.
[0028] Fig. 4 is a schematic diagram showing an example of the NMF process according to the present embodiment. As shown in Fig. 4, by NMF, for example, a non-negative observation matrix Y (teacher observation matrix or evaluation observation matrix) is decomposed into the product of a non-negative coefficient matrix W and a non-negative basis matrix H.
[0029] For example, the observation matrix Y is an n-row, m-column matrix in which the m-dimensional observation vector y becomes a row vector and the number of rows is equal to n, the number of target intervals in the time series data. On the other hand, the basis matrix H is, for example, a k-row, m-column matrix in which the m-dimensional basis vector h decomposed by applying NMF to the observation matrix Y becomes a row vector and the number of rows is equal to k, the number of basis vectors.
[0030] The coefficient matrix W is an n-by-k matrix, with k-dimensional coefficient vector w as a row vector, and n as many rows as the number of observation vectors. Here, the coefficient vector w is a row vector indicating the weighting value of how many components of each basis vector included in the basis matrix H are included in a certain observation vector.
[0031] As shown in FIG. 4, the following relationships exist between the above matrices:
[0032]
number
[0033] In the following, the teacher observation matrix Y L The basis matrix and coefficient matrix obtained by decomposing are called teacher basis matrix H L and teacher coefficient matrix W L It is called.
[0034] The teacher data processing unit 21 calculates the teacher observation matrix Y L Apply NMF to obtain the teacher basis matrix H L and teacher coefficient matrix W L Specifically, the teacher data processing unit 21 first obtains the teacher observation matrix Y L Next, the teacher data processing unit 21 calculates a teacher basis matrix H by using a vector or matrix H obtained by decomposing the data set. L Generate.
[0035] Teacher basis matrix H L Based on the teacher observation matrix Y LThe coefficient matrix generated from is the teacher coefficient matrix W L Then, from Equation (1), the teacher observation matrix Y L the teacher coefficient matrix W L and the teacher basis matrix H L are related as expressed by the following Equation (2).
[0036]
Equation
[0037] According to the above Equation (2), to obtain the teacher coefficient matrix W L 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 21 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. For this reason, the pseudo-inverse matrix H L + is obtained by the following Equation (3).
[0038]
Equation
[0039] Using the pseudo-inverse matrix H L + obtained from the above Equation (3), the teacher coefficient matrix W L is expressed as the following Equation (4).
[0040]
Equation
[0041] The teacher data processing unit 21 generates the teacher basis matrix H LThe teacher data processing unit 21 stores the generated teacher coefficient matrix W L is supplied to the parameter generating unit 23.
[0042] The parameter generating unit 23 generates the teacher coefficient matrix W L Based on this, the parameter generating unit 23 generates classification model parameters for classifying the time series data. The classification model parameters generated by the parameter generating unit 23 can be parameters according to a classification model in the classification unit 26 described later. For example, when the classification unit 26 performs threshold discrimination, the classification model parameters may be thresholds. When the classification unit 26 performs linear discrimination, the classification model parameters may be coefficients of a linear discriminant function that determines class boundaries. When the classification unit 26 performs quadratic discrimination, the classification model parameters may be coefficients of a quadratic discriminant function that determines class boundaries.
[0043] The parameter generating unit 23 stores the classification model parameters thus generated in the parameter storage unit 24.
[0044] The feature extraction unit 25 extracts the teacher basis matrix H L Based on this, an evaluation coefficient matrix is generated from the evaluation data (hereinafter, referred to as an evaluation observation matrix) supplied from the preprocessing unit 13. A specific example of generation of the evaluation coefficient matrix by the feature extraction unit 25 will be described below.
[0045] 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 the above equation (1), the evaluation observation matrix Y T , evaluation coefficient matrix W T and the teacher basis matrix H L The relationship is expressed as the following equation (5).
[0046]
number
[0047] In addition, the pseudo-inverse matrix H obtained in the same manner as in (3) above L + Using the above, the evaluation coefficient matrix W T is expressed as the following equation (6).
[0048]
number
[0049] The feature extraction unit 25 extracts the evaluation coefficient matrix W T is supplied to the classification unit 26.
[0050] The classification unit 26 as a classification processing unit calculates an evaluation coefficient matrix W T The classification unit 26 classifies the evaluation coefficient matrix W T The coefficient vector included in is used as a feature vector, and for example, a threshold discrimination is used as a classification model, and classification is performed based on the classification model parameters according to the classification model. The classification result by the classification unit 26 is expressed as an 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.
[0051] In the learning classification device 1, by using the coefficient vector indicating the weight for the basis matrix as a feature vector as described above, it is possible to improve classification accuracy compared to, for example, classification based on the magnitude of the power of a specific frequency.
[0052] In addition, in the learning classification device 1, the evaluation coefficient matrix W generated from the evaluation data is smaller than when the classification process is performed using the evaluation data itself. T By performing classification processing using the above formula, the dimension of the feature vector in the classification processing can be reduced, so that the amount of processing in the classification processing can be reduced.
[0053] FIG. 5 is a schematic diagram for explaining the reduction of dimensions. As shown in FIG. 5, the evaluation data D10, which is a power spectrum, is expressed as the sum of the product of the basis vector D11 and the coefficient w1 and the product of the basis vector D12 and the coefficient w2 by the processing of the NMF or the feature extraction unit 25. In the example of FIG. 5, when the evaluation data D10 is classified as a feature vector, processing in a dimension according to the frequency resolution of the evaluation data D10 is required. On the other hand, in the example of FIG. 5, 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 D10, the dimension of the feature vector in the classification process is reduced by performing the classification process using the evaluation coefficient matrix WT, and the processing amount of the classification process can be suppressed.
[0054] The output unit 27 (FIG. 2) outputs the classification result by the classification unit 26. The output unit 27 displays the classification result by, for example, forming a predetermined display screen and displaying it on the display unit 5 (FIG. 1), and notifies the user of the result.
[0055] Next, a description will be given of the configuration of the preprocessing unit 13. The preprocessing unit 13 has a plurality of function blocks therein, such as a conversion unit 31, a data division unit 32, and a separation degree evaluation unit 33.
[0056] The conversion unit 31 converts the portion of the time series data included in the target section from a time representation to a frequency representation. For example, the conversion unit 31 performs conversion processing such as Fourier transform processing, fast Fourier transform processing, and wavelet transform processing on the portion of the acquired data included in the target section to generate a non-negative observation vector. The conversion unit 31 also generates a non-negative observation matrix by arranging a plurality of these non-negative observation vectors.
[0057] In the following, data that represents the relationship between time, frequency, and amplitude, such as power spectra and spectrograms obtained from time-series data by Fourier transform, and scalograms obtained by wavelet transform, are collectively referred to as time-frequency-amplitude data. Time-frequency-amplitude data may be expressed as data that indicates amplitude values in the frequency domain and the time domain, for example.
[0058] The data division unit 32 divides the time-frequency-amplitude data (i.e., non-negative observation vectors or non-negative observation matrices) converted by the conversion unit 31 in the frequency domain and the time domain, respectively. The separability evaluation unit 33 evaluates each domain by applying non-negative matrix factorization (NMF) to each of the divided data, and selects data of the domain with a good evaluation result. That is, if the learning process is being executed, the separability evaluation unit 33 selects the data of the domain to use as teacher data, and if the separation process is being executed, the separability evaluation unit 33 selects the data of the domain to use as evaluation data.
[0059] Here, the division of the time-frequency-amplitude data by the data division unit 32 and the selection (identification) of the regions by the separability evaluation unit 33 will be described with reference to Fig. 6. In Fig. 6, the horizontal axis represents time and the vertical axis represents frequency, and the region A0 representing the whole is divided into two regions in terms of time and frequency, thereby being divided into four regions A1, A2, A3, and A4. The separability evaluation unit 33 applies NMF to each of the divided data, and obtains 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.
[0060] In the following, it is assumed that a preliminary experiment has been conducted in advance and two classes, class C1 and class C2, have been set by so-called supervised learning. First, the data division unit 32 divides the basis matrix H C1,A1 , H C1,A2 , H C1,A3 , H C1,A4 and the coefficient matrix W C1,A1 , WC1,A2 , W C1,A3 , W C1,A4 Next, the data division unit 32 similarly generates a 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 where rank, which indicates the number of bases to be decomposed, ranges from 1 to the number of dimensions of the original data.
[0061] Next, the separation degree evaluation unit 33 identifies the separation degree indicating the classification ability in each divided time domain and frequency domain. As an index indicating the separation degree, for example, the accuracy rate of class classification (discrimination) may be used.
[0062] 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 33 evaluates the basis matrices H C1,A1 , H C2,A1 The common basis matrix 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 + By multiplying by C1,A0 , W C2,A0 is obtained as shown in the following equations (7) and (8).
[0063]
number
[0064]
number
[0065] The separation evaluation unit 33 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 33 may be the same as the classification method of the classifier 26 described with reference to FIG.
[0066] As another index of the degree of separation, the ratio of within-class variance to between-class variance may be used. w 2 and between-class variance σ B 2 is expressed as the following equations (9) and (10).
[0067]
number
[0068]
number
[0069] 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 i is 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 between-class variance σ B 2 Using this, the within-class to between-class variance ratio J is expressed as follows (11).
[0070]
number
[0071] 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.
[0072] As described above, the separation evaluation unit 33 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 the time domain / frequency domain data combining these regions. For example, if the separation in regions A1 and A3 is equal to or greater than the threshold L, the separation evaluation unit 33 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.
[0073] In the learning process, the separation degree evaluation unit 33 identifies the time domain / frequency domain data with the highest separation degree, and sets it as teacher data (teacher observation matrix). The separation degree evaluation unit 33 also sets the time domain / frequency domain data identified as teacher data as evaluation data (evaluation observation matrix). Hereinafter, the region identified at this time will be referred to as a specific region.
[0074] [1-3. Learning and classification process] Next, a learning and classification process will be described in which the learning and classification device 1 (FIGS. 1 and 2) performs a learning process using time-series data and then performs classification. Note that it is assumed that the learning and classification device 1 is set up for appropriate classes, an appropriate specific region is identified, and an appropriate number of divisions and division positions (time and frequency) in the time domain and frequency domain are selected by performing experiments before operation.
[0075] Prior to the start of the learning and classification process, when a predetermined operation is performed by the user via the operation unit 6, the control unit 2 of the learning and classification device 1 stores a learning completion condition in the storage unit 3. This learning completion condition is a condition set in advance by the user for completing the learning process, and here, for example, it is assumed that "100 pieces of time-series data have been acquired" is set.
[0076] Thereafter, when the control unit 2 receives an instruction from the user to start the learning classification process, it reads out a learning classification program from the memory unit 3 and executes it to form each functional block shown in FIG. 2, and also starts the learning classification process procedure RT1 shown in FIG. 7, proceeding to the first step SP1.
[0077] In step SP1, the control unit 2 causes the condition setting unit 15 to read out the learning completion condition "100 pieces of time-series data have been acquired" from the storage unit 3, and sets this in the learning completion determination unit 16, and then proceeds to the next step SP2.
[0078] In step SP2, the control unit 2 performs a learning process as a subroutine as described later, and proceeds to the next step SP3. At this time, the control unit 2 repeatedly performs a process of acquiring time series data in this learning process until a learning completion condition is satisfied. Then, the control unit 2 generates a teacher basis matrix HL and a teacher coefficient matrix WL based on this time series data, stores the teacher basis matrix HL as teacher data in the teacher data storage unit 22 (FIG. 2), and generates classification model parameters based on the teacher coefficient matrix WL and stores them in the parameter storage unit 24.
[0079] In step SP3, the control unit 2 performs classification processing as a subroutine as described below, and proceeds to the next step SP4. At this time, the control unit 2 obtains one item of time series data in one classification processing, obtains and outputs a classification result for evaluation data obtained by performing preprocessing on this time series data.
[0080] In step SP4, the control unit 2 judges whether or not the classification process has been completed for all the time series data that was not used in the learning process. If a negative result is obtained here, this indicates that there is still time series data to be classified. In this case, the control unit 2 returns to step SP3 again to perform classification process for the remaining time series data. On the other hand, if a positive result is obtained in step SP4, the control unit 2 proceeds to the next step SP5 and ends the learning classification process procedure RT1.
[0081] [1-4. Learning process] Next, the learning process will be described. In step SP2 of the learning and classification process procedure RT1 (FIG. 7), the control unit 2 of the learning and classification device 1 executes the learning process procedure RT2 shown in FIG. 8 as a subroutine, and proceeds to the first step SP11.
[0082] In step SP11, the control unit 2 acquires one piece of time series data using the data acquisition unit 11 (FIG. 2), and proceeds to the next step SP12. In step SP12, the control unit 2 identifies a part of the time series data as a target section using the section identification unit 12 (FIG. 2), and proceeds to the next step SP13.
[0083] In step SP13, the control unit 2 determines, by the learning completion determination unit 16, whether or not the learning completion condition set in the condition setting unit 15 is satisfied, i.e., whether or not 100 pieces of time-series data have been acquired. If a negative result is obtained here, the control unit 2 returns to step SP11 again, and repeats the acquisition of time-series data and the identification of the target section.
[0084] On the other hand, if a positive result is obtained in step SP13, this indicates that a sufficient amount of training data has already been acquired, and training data and classification model parameters should be generated based on this. In this case, the control unit 2 proceeds to the next step SP14.
[0085] In step SP14, the control unit 2 generates a non-negative observation matrix by performing Fourier transform processing on the time series data using the conversion unit 31 (FIG. 2) of the pre-processing unit 13, and proceeds to the next step SP15. In step SP15, the control unit 2 divides the data converted by the conversion unit 31 into the time domain and the frequency domain using the data division unit 32 (FIG. 2) of the pre-processing unit 13, and proceeds to the next step SP16.
[0086] In step SP16, the control unit 2 supplies the data of the specific region as teacher data to the teacher data processing unit 21 by the separation degree evaluation unit 33 of the pre-processing unit 13, and then proceeds to the next step SP17.
[0087] In step SP17, the control unit 2 applies NMF to the teacher data by the teacher data processing unit 21 (FIG. 2) to obtain the teacher basis matrix H L is generated and stored in the teacher data storage unit 22, and the teacher coefficient matrix W L and supplies it to the parameter generating unit 23, and then the process moves to the next step SP18.
[0088] In step SP18, the control unit 2 generates the teacher coefficient matrix W by the parameter generating unit 23 (FIG. 2). L Based on this, the control unit 2 generates classification model parameters for classifying the time series data, stores these in the parameter storage unit 24, and proceeds to the next step SP19. In step SP19, the control unit 2 ends the learning procedure RT2, and returns to step SP2 of the original learning classification procedure RT1 (FIG. 7).
[0089] [1-5. Classification process] Next, the classification process will be described. In step SP3 of the learning and classification process procedure RT1 (FIG. 7), the control unit 2 of the learning and classification device 1 executes a classification process procedure RT3 shown in FIG. 9 as a subroutine, and proceeds to the first step SP31.
[0090] In steps SP31, SP32, SP33, and SP34, the control unit 2 performs the same processes as steps SP21, SP22, SP24, and SP25 of the learning procedure RT2 (FIG. 8) on the time series data. That is, the control unit 2 acquires the time series data, identifies the target section, performs Fourier transform processing, divides it into the time domain and the frequency domain, and proceeds to the next step SP35.
[0091] In step SP35, the control unit 2 supplies the data of the specific region as evaluation data to the feature extraction unit 25 by the separation degree evaluation unit 33 of the preprocessing unit 13, and proceeds to the next step SP36. In step SP36, the control unit 2 supplies the teacher basis matrix H L Based on the evaluation coefficient matrix W T Then, the process moves to the next step SP37.
[0092] In step SP37, the control unit 2 uses the classification unit 26 (FIG. 2) to calculate the evaluation coefficient matrix W T The coefficient vectors included in the above are used as feature vectors to carry out classification processing, thereby obtaining classification results, and the process proceeds to the next step SP38.
[0093] In step SP38, the control unit 2 generates a display screen according to the classification result by the output unit 27 (FIG. 2), outputs it by displaying it on the display unit 5 (FIG. 1), and then proceeds to the next step SP39. In step SP39, the control unit 2 ends the classification processing procedure RT3, and returns to step SP3 of the original learning classification processing procedure RT1 (FIG. 7).
[0094] [1-6. Operation and Effects] In the above configuration, the learning and classification device 1 according to the first embodiment starts a learning and classification processing procedure RT1 (FIG. 7) using time-series data after a learning completion condition is set in advance. After that, when the learning and classification device 1 meets the learning completion condition in the previous learning processing procedure RT2 (FIG. 8), the learning and classification device 1 generates classification model parameters and ends the learning processing, and then starts a subsequent classification processing procedure RT3 (FIG. 9) to perform classification processing using the classification parameters.
[0095] Therefore, by appropriately setting the learning completion conditions, the learning and classification device 1 can terminate the previous learning process at an appropriate stage when a necessary and sufficient number of time-series data has been acquired, that is, at a stage when an appropriate number of teacher data can be generated, and generate classification model parameters suitable for classification processing.
[0096] Therefore, the learning and classification device 1 can automatically switch from the learning process to the separation process as long as it can sequentially acquire time-series data, so there is no need for a user to be present during the learning process and perform cumbersome tasks such as checking the teacher data and classification model parameters while judging the timing to complete the learning process.
[0097] For example, when the learning and classification device 1 is installed near a machine tool, it sequentially acquires sounds generated from the machine tool as time-series data, and generates classification model parameters using time-series data based on sounds generated during normal operation as teacher data until a learning completion condition set appropriately is satisfied in the previous learning process. After that, the learning and classification device 1 performs classification processing using the time-series data based on the generated sounds as evaluation data, and if the evaluation data is in the same class as the teacher data, it determines that the machine tool is operating normally, and if the evaluation data is in a different class, it determines that an abnormality has occurred in the machine tool, such as wear or deterioration of consumable parts. As a result, the learning and classification device 1 can appropriately determine the replacement time of consumable parts in the machine tool without requiring human labor, and notify the user. Furthermore, for example, when the life of a consumable part can be predicted to some extent, erroneous classification can be reliably prevented by setting the number of time-series data corresponding to a time sufficiently shorter than this life as the learning completion condition.
[0098] Furthermore, in the learning and classification device 1, the data is divided into a plurality of regions in frequency and time by the data division unit 32 and the separation degree evaluation unit 33 (Fig. 2) of the preprocessing unit 13 (Fig. 6), and data in a specific region where a high degree of separation is obtained is used as teacher data or evaluation data. Therefore, compared to a case where all regions are used as teacher data or evaluation data without division, the learning and classification device 1 can perform highly accurate separation processing because the features of the data are well expressed. Furthermore, in the learning and classification device 1, the amount of calculation can be reduced as the number of regions is reduced, and the processing load can also be reduced.
[0099] Furthermore, in the learning and classification device 1, the teacher data processing unit 21 calculates the teacher observation matrix Y L By applying NMF to L and teacher coefficient matrix W L Of these, the teacher basis matrix H L is stored as training data, and the training coefficient matrix W LThe classification model parameters are generated based on the above. This allows the learning and classification device 1 to improve classification accuracy compared to the case where classification is based on the power of a specific frequency, for example.
[0100] According to the above configuration, when the learning and classification device 1 according to the first embodiment executes a learning and classification process using time-series data, once a predetermined number of time-series data has been acquired in the learning process and a learning completion condition has been satisfied, the learning and classification device 1 generates teacher data and classification model parameters, terminates the learning process, and then performs classification using the classification parameters. Therefore, the learning and classification device 1 can generate classification model parameters suitable for classification when a necessary and sufficient number of time-series data has been acquired under appropriate learning completion conditions. Thus, the learning and classification device 1 can perform appropriate classification through the learning process simply by sequentially acquiring time-series data after appropriately setting the learning completion condition.
[0101] 2. Second embodiment [2-1. Configuration of the learning classification processing device] A learning classification device 201 (FIG. 1) according to the second embodiment differs from the learning classification device 1 according to the first embodiment in that it has a control unit 202 and a memory unit 203 instead of the control unit 2 and the memory unit 3, but is otherwise configured in the same way.
[0102] The control unit 202, like the control unit 2 according to the first embodiment, has a CPU, ROM, RAM, etc. (not shown) and executes various programs to perform various processes. The storage unit 203, like the storage unit 3 according to the first embodiment, is a non-volatile storage medium and stores various programs and various information, but the contents are partially different from those in the first embodiment.
[0103] The control unit 202 reads out various programs from the storage unit 203 and executes them to form various functional blocks as shown in Fig. 10, which corresponds to Fig. 2. The second embodiment differs from the first embodiment in that it has a pre-processing unit 213 and a learning completion determination unit 216 instead of the pre-processing unit 13 and the learning completion determination unit 16, but is otherwise configured in the same way.
[0104] The preprocessing unit 213 has a preprocessing data storage unit 241 in addition to the conversion unit 31 and the like similar to those in the first embodiment. The preprocessing data storage unit 241 stores the teacher data generated through each arithmetic process by the preprocessing unit 213.
[0105] Unlike the first embodiment, the learning completion determination unit 216 performs a determination process using, as the learning completion condition, not the number of time series data, but conditions related to the statistical trends and distribution of the teacher data generated by the pre-processing unit 13, specifically, for example, a threshold value TH of the variance of the teacher data.
[0106] [2-2. Learning and classification process] Prior to starting the learning and classification process, the control unit 202 of the learning and classification device 201 stores in the memory unit 203, in response to a user operation, a learning completion condition, for example, that “the variance of the training data is equal to or less than a threshold value TH” and the value of the threshold value TH.
[0107] Thereafter, the control unit 202 executes the learning classification processing procedure RT1 (FIG. 7) in the same manner as in the first embodiment. However, in this case, the control unit 202 executes the learning processing procedure RT22 shown in FIG. 11 corresponding to FIG. 8 in step SP2, and proceeds to the first step SP221.
[0108] In steps SP211 to SP215, the control unit 202 performs the processes of steps SP11 and SP12, and steps SP14 to SP16 of the learning procedure RT2 (FIG. 8), respectively, and proceeds to the next step SP216. As a result, the control unit 202 acquires one time-series data, specifies a target section, performs Fourier transform processing, divides the section into the time domain and the frequency domain, and then adopts the data of the specific domain specified in the previous experiment as teacher data.
[0109] In step SP216, the control section 202 stores the teacher data in the preprocessing data storage section 241, and then proceeds to the next step SP217.
[0110] In step SP217, the control unit 202 determines whether the learning completion condition is satisfied, i.e., whether the variance of the teacher data is equal to or less than the threshold value TH, by the learning completion determination unit 216. Specifically, the learning completion determination unit 216 calculates the variance of all the teacher data stored in the preprocessing data storage unit 241, and determines whether the variance is equal to or less than the threshold value TH stored in the storage unit 203.
[0111] If a negative result is obtained here, this indicates that the variance of the teacher data generated in the learning process up to this point is relatively large, and the values are somewhat scattered. In other words, this indicates that even if the parameter generating unit 23 generates classification model parameters at this stage, the accuracy of the classification process in the classifying unit 26 may be low. In this case, the control unit 202 returns to step SP211 again to generate teacher data based on the next time-series data and increase the number of teacher data.
[0112] On the other hand, if a positive result is obtained in step SP217, this indicates that the variance of the teacher data generated in the learning process up to this point is relatively small and the values are in a state of being somewhat uniform. In other words, this indicates that if the parameter generating unit 23 generates classification model parameters at this stage, the accuracy of the classification process in the classifying unit 26 can be improved. In this case, the control unit 202 proceeds to the next step SP218.
[0113] In steps SP218 and SP219, the control unit 202 performs the same processes as steps SP17 and SP18 of the learning procedure RT2 (FIG. 8), respectively. That is, the control unit 202 applies NMF to the training data to obtain the training basis matrix H L is generated and stored in the teacher data storage unit 22, and the teacher coefficient matrix W L is generated and supplied to the parameter generating unit 23, and the teacher coefficient matrix W L and stores the classification model parameters in the parameter storage unit 24. Thereafter, the control unit 202 proceeds to the next step SP220 to end the learning procedure RT22, and returns to step SP2 of the original learning classification procedure RT1 (FIG. 7).
[0114] [2-3. Effects, etc.] In the above configuration, the learning and classification device 201 according to the second embodiment starts a learning and classification processing procedure RT1 (FIG. 7) using time-series data after a learning completion condition is set in advance, as in the first embodiment. After that, when the learning and classification device 201 meets the learning completion condition in the previous learning processing procedure RT22 (FIG. 11), it generates teacher data and classification model parameters, ends the learning processing, and then starts a subsequent classification processing procedure RT3 (FIG. 9) to perform classification processing using the classification parameters.
[0115] Therefore, as in the first embodiment, the learning and classification device 201 can appropriately set the learning completion conditions to terminate the previous learning process at an appropriate stage when a necessary and sufficient number of time-series data have been acquired, and generate classification model parameters suitable for classification processing.
[0116] In particular, the learning and classification device 201 allows the user to set a threshold value TH for the variance of the teacher data, and sets the learning completion condition that the variance of the teacher data generated in the learning process is equal to or less than the threshold value TH. Therefore, even if the number of time-series data required to generate appropriate classification model parameters is unknown, the learning and classification device 201 can appropriately generate classification model parameters and execute appropriate classification processing at the stage when the variance of the teacher data becomes equal to or less than the threshold value by appropriately setting the variance threshold value TH. In other words, the learning and classification device 201 can prevent, for example, deterioration of classification accuracy due to an insufficient number of teacher data, or the use of data that should be classified as abnormal as the teacher data due to an excessive number of teacher data.
[0117] Regarding other points as well, learning and classifying device 201 according to the second embodiment can achieve the same operational effects as those of the first embodiment.
[0118] According to the above configuration, when the learning and classification device 201 according to the second embodiment executes a learning and classification process using time-series data, if the variance of the teacher data falls below the threshold TH in the learning process and the learning completion condition is satisfied, the learning and classification device 201 generates classification model parameters, terminates the learning process, and then performs classification using the classification parameters. Therefore, the learning and classification device 201 can generate classification model parameters suitable for classification under appropriate learning completion conditions, at a stage when the teacher data has a certain degree of coherence. Thus, the learning and classification device 201 can perform appropriate classification through the learning process simply by sequentially acquiring time-series data after appropriately setting the learning completion condition.
[0119] 3. Third embodiment [3-1. Configuration of the learning classification processing device] A learning classification device 301 (FIG. 1) according to the third embodiment differs from the learning classification device 1 according to the first embodiment in that it has a control unit 302 and a memory unit 303 instead of the control unit 2 and the memory unit 3, but is otherwise configured in the same way.
[0120] The control unit 302, like the control unit 2 according to the first embodiment, has a CPU, ROM, RAM, etc. (not shown) and executes various programs to perform various processes. The storage unit 303, like the storage unit 3 according to the first embodiment, is a non-volatile storage medium and stores various programs and various information, but the contents are partially different from those in the first embodiment.
[0121] The control unit 302 reads out various programs from the storage unit 303 and executes them to form various functional blocks as shown in Fig. 12, which corresponds to Fig. 2 and Fig. 10. The third embodiment differs from the first embodiment in that it has a pre-processing unit 313 and a condition setting unit 315 instead of the pre-processing unit 13 and the condition setting unit 15, and in that it has a parameter regeneration determination unit 317, but is otherwise configured in the same way.
[0122] The preprocessing unit 313, like the preprocessing unit 213 in the second embodiment (FIG. 10), has a preprocessing data storage unit 241 in addition to the conversion unit 31 etc. The preprocessing data storage unit 241 stores the teacher data generated through each calculation process by the preprocessing unit 313, like the second embodiment.
[0123] Like the condition setting unit 15 according to the first embodiment, the condition setting unit 315 reads out the learning completion condition from the storage unit 303 and sets it in the learning completion determination unit 16. In addition, the condition setting unit 315 changes the learning completion condition by setting a new learning completion condition based on the immediately previous learning completion condition in accordance with an instruction from the parameter regeneration determination unit 317 (this will be described in detail later). For this reason, the user presets in the condition setting unit 315 the change content when changing the learning completion condition, such as "increase the number of time-series data to be imported by 50".
[0124] The parameter regeneration determination unit 317 determines whether or not a parameter regeneration condition is satisfied based on the classification result by the classification unit 26, and instructs regeneration of the classification model parameters if it determines that the parameter regeneration condition is not satisfied. This parameter regeneration condition is a condition for determining whether or not the classification model parameters generated by the parameter generation unit 23 are inappropriate, and is set by the user before the start of the learning and classification process.
[0125] As the parameter regeneration condition, for example, "the proportion of results classified as normal is less than 80%" is set based on a plurality of classification results by the classification unit 26. If this parameter regeneration condition is satisfied, it is possible that the set learning completion condition was inappropriate, and therefore appropriate classification model parameters were not generated, and as a result, good classification results were not obtained.
[0126] Therefore, when the parameter regeneration condition is satisfied, the parameter regeneration determination unit 317 controls the condition setting unit 315 based on a preset learning completion condition change value, causes the learning completion determination unit 16 to set a learning completion condition different from that immediately before, and then causes the learning process to be executed again to regenerate the classification model parameters. For this reason, hereinafter, the parameter regeneration determination unit 317 is also referred to as a model regeneration control unit.
[0127] [3-2. Learning and classification process] In this third embodiment, when performing learning classification processing, the control unit 302 of the learning classification device 301 is configured to execute the learning classification processing procedure RT31 shown in FIG. 13 which corresponds to FIG. 7, unlike the first embodiment.
[0128] When a predetermined operation is performed by the user via the operation unit 6 prior to the start of the learning classification process, the control unit 302 stores the learning completion condition, the parameter regeneration condition, and the learning completion condition change value in the storage unit 303. As in the first embodiment, the learning completion condition is set to, for example, "100 pieces of time series data have been acquired." The parameter regeneration condition is set to, for example, "the proportion of evaluation data classified as normal is less than 80%." The learning completion condition change value is set to, for example, "+50 pieces."
[0129] Thereafter, when the control unit 302 receives an instruction from the user to start the learning classification process, it reads out a learning classification program from the memory unit 303 and executes it to form each functional block shown in FIG. 12, and also starts the learning classification process procedure RT31 shown in FIG. 13, proceeding to the first step SP301.
[0130] In step SP301, the control unit 302 reads out the parameter regeneration condition stored in the memory unit 303, which is "the proportion classified as normal is less than 80[%]", and sets it in the parameter regeneration determination unit 317, and then proceeds to the next step SP302.
[0131] In step SP302, the control unit 302 reads out the learning completion condition, which is "supply 100 pieces of acquired data to the teacher data processing unit 21 as teacher data", from the memory unit 303 using the condition setting unit 15 and sets it in the learning completion determination unit 16, and then proceeds to the next step SP303.
[0132] In step SP303, the control section 302 reads out the learning completion condition change value "+50" stored in the memory section 303, sets it in the condition setting section 315, and then proceeds to the next step SP304.
[0133] In step SP304, the control unit 302 executes the learning procedure RT2 (FIG. 8) as a subroutine, similar to step SP2 (FIG. 7) in the first embodiment, and proceeds to the next step SP305. As a result, the control unit 302, similar to the first embodiment, acquires time-series data in this learning process until the learning completion condition is satisfied, and calculates the teacher basis matrix H L and teacher coefficient matrix W L Then, the control unit 302 repeats the process of generating each teacher data (teacher basis matrix H L ) is stored in the teacher data storage unit 22 (FIG. 12), and the teacher coefficient matrix W L The classification model parameters generated based on the above are stored in the parameter storage unit 24.
[0134] In step SP305, the control unit 302 initializes the value of the number of classified items, which is a variable (i.e., counter) for counting the number of time-series data (i.e., evaluation data) that have been subjected to the classification process, to "0", and proceeds to the next step SP306. In step SP306, the control unit 302 executes the classification process procedure RT3 (FIG. 9) as a subroutine, similar to step SP3 (FIG. 7) in the first embodiment, and proceeds to the next step SP307. At this time, the control unit 302 obtains one item of time-series data in one classification process, obtains and outputs the classification result for the evaluation data obtained by performing preprocessing on this time-series data.
[0135] In step SP307, the control unit 302 updates the value of the number of classified items by adding "1" and proceeds to the next step SP308. In step SP308, the control unit 302 judges whether the number of classified items is a predetermined judgment number (e.g., 20 items). If a negative result is obtained here, this indicates that the judgment process of whether the parameter regeneration condition is satisfied should not be performed at this point. In this case, the control unit 302 proceeds to the next step SP309.
[0136] In step SP309, the control unit 302 judges whether or not the classification process has been completed for all the time series data that have not been used in the learning process, as in step SP4 of the learning classification process procedure RT1 (FIG. 7). If a negative result is obtained here, this indicates that there is still time series data to be classified. In this case, the control unit 302 returns to step SP306 again to perform the classification process for the remaining time series data.
[0137] On the other hand, if a positive result is obtained in step SP308, this indicates that the number of evaluation data items that have been subjected to the classification process has reached the number of judgment cases, and therefore it is now possible to judge the validity of the classification model parameters based on the obtained classification results. In this case, the control unit 302 proceeds to the next step SP310.
[0138] In step SP310, the control unit 302 determines whether the parameter regeneration condition is satisfied, i.e., whether the proportion classified as normal is less than 80% by the parameter regeneration determination unit 317 (FIG. 12). If a positive result is obtained here, this indicates that there is a high possibility that evaluation data that should have been determined as normal has been determined as abnormal, that is, that there is a high possibility that appropriate classification model parameters could not be generated because the learning completion condition is inappropriate. In this case, the control unit 302 proceeds to the next step SP311.
[0139] In step SP311, the control unit 302 changes the learning completion condition set in the learning completion determination unit 16 by the condition setting unit 315, and sets the new learning completion condition to, for example, "150 pieces of time series data have been acquired," and then returns to step SP304 to perform the learning process again, and then performs the classification process again.
[0140] On the other hand, if a negative result is obtained in step SP310, this indicates that a generally reasonable classification result has been obtained using the current classification model parameters, and therefore these classification model parameters should be continued to be used. In this case, the control unit 302 proceeds to step SP309 to continue the classification process for the remaining time series data.
[0141] Moreover, if a positive result is obtained in step SP309, the control section 302 ends the learning classification processing procedure RT31.
[0142] [3-3. Effects, etc.] In the above configuration, the learning and classification device 301 according to the third embodiment starts a learning and classification processing procedure RT31 (FIG. 13) using time-series data after a parameter regeneration condition and a learning condition change value are set in advance in addition to a learning completion condition. After that, when the learning completion condition is satisfied in the previous learning process, the learning and classification device 301 generates classification model parameters and ends the learning process, then starts a subsequent classification process and performs the classification process using the classification parameters.
[0143] Therefore, as in the first embodiment, by appropriately setting the learning completion condition, the learning and classification device 301 can terminate the previous learning process at an appropriate stage when a necessary and sufficient number of time-series data have been acquired, and generate classification model parameters suitable for classification processing.
[0144] In addition, when the learning and classification device 301 has performed classification processing on the number of classified evaluation data items, if the parameter regeneration condition is satisfied, it changes the learning completion condition by the learning completion change value and then performs the learning processing again to regenerate the classification model parameters, and then performs classification processing on the evaluation data again.
[0145] Therefore, if the initial learning completion conditions were inappropriate and the number of training data was insufficient, the learning and classification device 301 was unable to generate appropriate classification model parameters and the proportion of evaluation data classified as abnormal was relatively high, the learning and classification device 301 can change the learning completion conditions and start over from the learning process. This allows the learning and classification device 301 to perform the learning process based on the number of time-series data based on the new learning completion conditions after the change, regenerate new classification model parameters, and reclassify the evaluation data.
[0146] In other words, the learning and classification device 301 can determine the validity of the classification model parameters based on the classification results actually obtained by classification processing on the evaluation data, and if it determines that these are invalid, it can change the learning completion conditions and re-generate the classification model parameters.
[0147] As a result, even if the learning and classification device 301 has not yet determined an appropriate learning completion condition, by starting the learning and classification process with the learning completion condition set to a relatively small value, the learning and classification device 301 can repeatedly change the learning completion condition and the classification model parameters, and eventually arrive at an appropriate learning completion condition and obtain an appropriate classification result.
[0148] Furthermore, even if it proves difficult to identify the learning completion condition in a preliminary experiment or the like, the learning classification device 301 will eventually be able to perform appropriate classification processing based on appropriate classification model parameters by repeatedly changing the learning completion condition and repeatedly regenerating the classification model parameters.
[0149] In the case of learning and classifying device 301, when regenerating classification model parameters, the processing load increases, and therefore the time required for calculation processing is expected to increase. However, since learning and classifying device 301 performs matrix decomposition processing using NMF as preprocessing in preprocessing unit 313, it is possible to speed up classification processing and shorten the required time.
[0150] Regarding other points as well, learning and classification device 301 according to the third embodiment can achieve the same operational effects as those of the first embodiment.
[0151] According to the above configuration, when the learning and classification device 301 according to the third embodiment executes a learning and classification process using time-series data, if a learning completion condition is satisfied in the learning process, the learning and classification device 301 generates classification model parameters, terminates the learning process, and then performs classification processing using the classification parameters. Furthermore, the learning and classification device 301 determines whether a parameter regeneration condition is satisfied after the start of the classification process, and if the condition is satisfied, changes the learning completion condition and performs the learning process again, thereby regenerating the classification model parameters and performing the classification process on the evaluation data again. In this way, the learning and classification device 301 can ultimately generate appropriate classification model parameters while searching for an appropriate learning completion condition, and can perform a highly accurate classification process on the evaluation data.
[0152] [4. Other embodiments] In the above-described first embodiment, the classification process is performed after the learning process is completed. However, the present invention is not limited to this. For example, after the learning process is completed, the classification process is not performed and the generated teacher basis matrix H L (teacher data) and teacher coefficient matrix W L , or the teacher coefficient matrix W L The classification model parameters generated based on the training data may be stored in the storage unit 3 or transmitted to a predetermined server for storage. The training data may be stored in a predetermined separation device, for example, and separation processing may be performed based on the training data. The same applies to the second embodiment.
[0153] In the above-mentioned first embodiment, the learning completion condition is described as "acquiring 100 pieces of time series data". However, the present invention is not limited to this, and any number of pieces of time series data may be acquired, or time series data over a predetermined time range (e.g., one minute) may be acquired. The same applies to the third embodiment.
[0154] Furthermore, in the above-mentioned second embodiment, the learning completion condition is described as "the variance of the teacher data is equal to or less than the threshold value TH". However, the present invention is not limited to this, and the learning completion condition may be various conditions (hereinafter also referred to as statistical conditions) using various statistical values related to the teacher data, such as the average value or standard deviation of the teacher data (i.e., the teacher basis matrix HL) being equal to or greater than a predetermined threshold. Alternatively, it may be various conditions (hereinafter also referred to as distribution conditions) using the distribution of the teacher data, such as the top 10[%] in the distribution of the teacher data being within a predetermined range and the bottom 10[%] being within a predetermined range. Moreover, instead of the teacher basis matrix HL, it may be various conditions using the statistical values or distribution of the teacher coefficient matrix WL. Furthermore, these may be appropriately combined.
[0155] Furthermore, in the above-mentioned third embodiment, the parameter regeneration condition is described as "the proportion classified as normal is less than 80[%]". However, the present invention is not limited to this, and the condition may be a condition using various other proportions, such as the proportion classified as normal being less than 95[%], or a condition using various values calculated in the calculation process in the classification unit 26 (FIG. 12), or a condition using statistics of these values (average value, variance, etc.), or further a suitable combination of these may be used.
[0156] Furthermore, in the above-mentioned third embodiment, the case where the learning completion condition change value is set to "+50 pieces" has been described. However, the present invention is not limited to this, and the learning completion condition change value may be set to various other values or changes, such as "+100 pieces" or "1.5 times". In addition, for example, the learning completion condition change value may be set to a negative value or a coefficient less than 1, thereby reducing the number of time-series data to be taken in the learning process.
[0157] Furthermore, in the above-mentioned third embodiment, a case has been described in which it is determined whether or not the parameter regeneration condition is satisfied when the number of classified items reaches 20 after the start of the classification process. However, the present invention is not limited to this, and it may be determined whether or not the parameter regeneration condition is satisfied at various other stages, for example, when the number of classified items reaches 10 or 50, or after a predetermined time has elapsed since the start of the classification process. In addition, it may be determined whether or not the parameter regeneration condition is satisfied multiple times after the start of the classification process, for example, when the number of classified items reaches 20, 60, and 100.
[0158] Furthermore, in the above-mentioned first embodiment, the case has been described where the section identification unit 12 (FIG. 2) identifies the section of the time series data D1 corresponding to the section T in which the amplitude in the reference signal D2 (FIG. 3) is the amplitude value P as the target section. However, the present invention is not limited to this, and for example, the section identification unit 12 may identify the target section based on the magnitude of the amplitude in the time series data D1. Specifically, the section in the time series data D1 in which the magnitude of the amplitude exceeds a predetermined threshold may be identified as the target section, 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. The same applies to the second and third embodiments.
[0159] Furthermore, in the above-mentioned first embodiment, the data division unit 32 of the pre-processing unit 13 divides the time-frequency-amplitude data converted by the conversion unit 31 into two in each of the frequency domain and the time domain (FIG. 6). However, the present invention is not limited to this, and at least one of the frequency domain and the time domain may be divided into an arbitrary number of domains. In this case, the number of divisions in the frequency domain and the time domain may be different from each other, or may be the same. Furthermore, the division points in the frequency domain and the time domain can be set appropriately. The same applies to the second and third embodiments.
[0160] Furthermore, in the above-mentioned first embodiment, the data division unit 32 of the preprocessing unit 13 performs the process of dividing the time-frequency-amplitude data into two in the frequency domain and the time domain only once (FIG. 6). However, the present invention is not limited to this, and for example, as shown in FIG. 6, data may be further divided recursively in each of the four domains A1, A2, A3, and A4. Specifically, for example, the domain A1 may be further divided into four domains A11, A12, A13, and A14. In this case, the separation degree evaluation unit 33 may obtain the separation degree for each of the divided data and data obtained by combining the divided data. Such 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. The same applies to the second and third embodiments.
[0161] Furthermore, in the above-mentioned first embodiment, the separation degree evaluation unit 33 of the preprocessing unit 13 calculates the separation degree using the class classification (discrimination) accuracy rate as an index for data of each region divided in terms of time and frequency, and a region where the separation degree is equal to or greater than a predetermined threshold value L is set as a specific region. However, the present invention is not limited to this, and the separation degree may be evaluated by various other methods. Also, the separation degree may be evaluated not only for all regions divided in terms of time and frequency, but only for some regions. Furthermore, the separation degree evaluation unit 33 may calculate the basis matrix and the coefficient matrix by various other methods without using NMF. The same applies to the second and third embodiments.
[0162] Furthermore, in the above-mentioned first embodiment, a case has been described in which in the pre-processing unit 13, the data dividing unit 32 divides regions in terms of time and frequency, and the separation degree evaluation unit 33 evaluates the separation degree for each region to select a specific region. However, the present invention is not limited to this, and for example, the data dividing unit 32 and the separation degree evaluation unit 33 may be omitted from the pre-processing unit 13. The same applies to the second and third embodiments.
[0163] Furthermore, in the first embodiment described above, the teacher data processing unit 21 (FIG. 2) calculates the teacher observation matrix Y L In the above, NMF is applied to each class of the correct label associated with the teacher observation matrix Y L The same applies to the second and third embodiments.
[0164] Furthermore, in the above-mentioned first embodiment, the case where NMF is applied to all data sets collectively in the teacher data processing unit 21 has been described. However, the present invention is not limited to this, and for example, teacher data may be classified into a plurality of classes, and NMF may be applied to each of the classes. This makes it easier to generate bases having characteristics corresponding to data with small amplitudes or data that occurs infrequently, and can further improve classification accuracy.
[0165] Furthermore, in the above-mentioned first embodiment, a case has been described in which the teacher data processing unit 21 generates a teacher basis matrix and a teacher coefficient matrix by NMF based on the observation vector or observation matrix in the frequency domain converted from the time series data. However, the present invention is not limited to this, and the teacher basis matrix and the teacher coefficient matrix may be generated by performing various other arithmetic processing on the observation vector or observation matrix in the frequency domain. The same applies to the second and third embodiments.
[0166] Furthermore, in the above-mentioned first embodiment, a case has been described in which threshold discrimination is used as a classification model in the classification unit 26. However, the present invention is not limited to this, and classification may be performed using various classification models, such as a classification model based on linear discrimination, quadratic discrimination, or SVM (Support Vector Machine). The same applies to the second and third embodiments.
[0167] Furthermore, in the above-mentioned embodiment, a case has been described in which a predetermined display screen is constructed based on the classification results by the output unit 27 (FIG. 2) and displayed on the display unit 5 (FIG. 1). However, the present invention is not limited to this, and the classification results may be output by various methods, such as outputting the classification results by voice from a speaker (not shown), or transmitting data representing the classification results from the communication unit 4 (FIG. 1) to a predetermined terminal device (not shown), etc. Alternatively, the classification results may be stored in the storage unit 3. The same applies to the second and third embodiments.
[0168] Furthermore, in the above-mentioned first embodiment, a case has been described in which various programs are executed in the control unit 2 (FIG. 1) of the learning and classification device 1 to configure each block such as the data acquisition unit 11 shown in FIG. 2 as a software functional block. However, the present invention is not limited to this, and the data acquisition unit 11 etc. may be configured as hardware, or may be realized by a combination of hardware and software. The same applies to the second and third embodiments.
[0169] Furthermore, in the above-mentioned first embodiment, the case has been described where the learning and classification device 1 (FIG. 1) reads and executes various programs pre-stored in the storage unit 3. However, the present invention is not limited to this, and the learning and classification device 1 may acquire and execute various programs, for example, by acquiring them from a predetermined server device (not shown) connected to a network, or by reading them from a removable storage medium such as a USB (Universal Serial Bus) memory. The same applies to the second and third embodiments.
[0170] Furthermore, the present invention is not limited to the above-described embodiments and other embodiments. That is, the scope of application of the present invention extends to embodiments in which the above-described embodiments and the other embodiments are combined in part or in whole in any manner, or to embodiments in which parts are extracted.
[0171] Furthermore, in the above-mentioned embodiment, the learning classification device 1 as a learning processing device is configured by the condition setting unit 15 as a condition setting unit, the data acquiring unit 11 as a data acquiring unit, the learning completion determining unit 16 as a learning completion determining unit, and the teacher data processing unit 21 and the parameter generating unit 23 as a learning processing unit. However, the present invention is not limited to this, and the learning processing device may be configured by a condition setting unit, a data acquiring unit, a learning completion determining unit, and a learning processing unit having various other configurations. [Industrial Applicability]
[0172] The present invention can be used, for example, in cases where time-series data is acquired, a learning process is performed, and then a classification process is performed. [Explanation of symbols]
[0173] 1, 201, 301...learning classification device, 2, 202, 302...control unit, 3, 203, 303...storage unit, 11...data acquisition unit, 12...interval identification unit, 13, 213, 313...preprocessing unit, 15, 315...condition setting unit, 16, 216...learning completion determination unit, 21...teacher data processing unit, 22...teacher data storage unit, 23...parameter generation unit, 24...parameter storage unit, 25...feature extraction unit, 26...classification unit, 27...output unit, 31...conversion unit, 32...data division unit, 33...separation degree evaluation unit, 241...preprocessing data storage unit, 317...parameter regeneration determination unit, H...basis matrix, H L …teacher basis matrix, W…coefficient matrix, W L … Teacher coefficient matrix, W T …Evaluation coefficient matrix, Y …Observation matrix, Y L …Teacher observation matrix, Y T …Evaluation observation matrix, σ B 2 …Inter-class variance, σ w 2 ...within-class variance, J...between-class variance ratio.
Claims
1. A condition setting unit that sets a learning completion condition; A data acquisition unit that acquires a plurality of data; A pre-processing unit that performs pre-processing on the data; a learning completion determination unit that determines whether the learning completion condition is satisfied; a learning processing unit that performs a learning process based on the acquired data and generates a classification model when the learning completion condition is satisfied; a classification processing unit that performs classification processing on the remaining part of the data using the classification model; a regeneration determination unit that determines whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control unit that, when the regeneration condition is satisfied, causes the learning processing unit to perform the learning process again based on a part of the data during the period from when the learning completion condition is updated until the learning completion condition is satisfied, and then causes a classification model generation unit to generate the classification model again; Equipped with The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A learning processing device comprising:
2. The learning completion condition is that a predetermined number of pieces of the data have been acquired.
2. The learning processing device according to claim 1 .
3. The data is time-correlated; The learning completion condition is that all of the data included in the time range is acquired.
2. The learning processing device according to claim 1 .
4. A classification model generation unit that generates the classification model based on the data that has been preprocessed. Further comprising: The learning processing unit performs the learning process based on the data that has been preprocessed.
2. The learning processing device according to claim 1 .
5. The preprocessing unit converts the data from a time domain to a frequency domain as the preprocessing.
5. The learning processing device according to claim 4.
6. The preprocessing unit divides at least one of time and frequency into a plurality of regions as the preprocessing, and extracts the data of a specific region selected based on an evaluation value for each of the regions.
6. The learning processing device according to claim 5,
7. the preprocessing unit generates a non-negative observation matrix by arranging a plurality of non-negative observation vectors obtained by transforming the data into the frequency domain; The learning processing unit decomposes the observation matrix into a basis matrix and a coefficient matrix by non-negative matrix factorization.
6. The learning processing device according to claim 5,
8. A condition setting step for setting a learning completion condition; A data acquisition step of acquiring a plurality of data; A pre-processing step of pre-processing the data; a learning completion determination step of determining whether or not the learning completion condition is satisfied; a learning process step of performing a learning process based on the acquired data and generating a classification model when the learning completion condition is satisfied; a classification processing step of performing classification processing on a remaining portion of the data using the classification model; a regeneration determination step for determining whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control step of causing the learning processing step to perform the learning processing again based on a part of the data during the period from when the regeneration condition is satisfied after the learning completion condition is updated until the learning completion condition is satisfied, and then causing the classification model to be generated again by a classification model generation step; having The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A learning processing method comprising:
9. For the information processing device, A condition setting step for setting a learning completion condition; A data acquisition step of acquiring a plurality of data; A pre-processing step of pre-processing the data; a learning completion determination step of determining whether or not the learning completion condition is satisfied; a learning step of performing a learning process based on the acquired data to generate a classification model if the learning completion condition is satisfied; a classification processing step of performing classification processing on a remaining portion of the data using the classification model; a regeneration determination step for determining whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control step of causing the learning processing step to perform the learning processing again based on a part of the data during the period from when the regeneration condition is satisfied after the learning completion condition is updated until the learning completion condition is satisfied, and then causing the classification model to be generated again by a classification model generation step; Run the command, The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A learning processing program comprising:
10. A condition setting unit that sets a learning completion condition; A data acquisition unit that acquires a plurality of data; A pre-processing unit that performs pre-processing on the data; a learning completion determination unit that determines whether the learning completion condition is satisfied; a learning processing unit that performs a learning process based on the acquired data and generates a classification model when the learning completion condition is satisfied; a classification processing unit that performs classification processing on the remaining part of the data using the classification model; a regeneration determination unit that determines whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control unit that, when the regeneration condition is satisfied, causes the learning processing unit to perform the learning process again based on a part of the data during the period from when the learning completion condition is updated until the learning completion condition is satisfied, and then causes a classification model generation unit to generate the classification model again; Equipped with The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A classification processing device comprising:
11. A condition setting step for setting a learning completion condition; A data acquisition step of acquiring a plurality of data; A pre-processing step of pre-processing the data; a learning completion determination step of determining whether or not the learning completion condition is satisfied; a learning step of performing a learning process based on the acquired data to generate a classification model if the learning completion condition is satisfied; a classification step of performing a classification process on a remaining portion of the data using the classification model; a regeneration determination step for determining whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control step of causing the learning processing step to perform the learning processing again based on a part of the data during the period from when the regeneration condition is satisfied after the learning completion condition is updated until the learning completion condition is satisfied, and then causing the classification model to be generated again by a classification model generation step; having The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A classification processing method comprising:
12. For the information processing device, A condition setting step for setting a learning completion condition; A data acquisition step of acquiring a plurality of data; A pre-processing step of pre-processing the data; a learning completion determination step of determining whether or not the learning completion condition is satisfied; a learning step of performing a learning process based on the acquired data to generate a classification model if the learning completion condition is satisfied; a classification step of performing a classification process on a remaining portion of the data using the classification model; a regeneration determination step for determining whether or not a result of the classification process satisfies a predetermined regeneration condition; a model regeneration control step of causing the learning processing step to perform the learning processing again based on a part of the data during the period from when the regeneration condition is satisfied after the learning completion condition is updated until the learning completion condition is satisfied, and then causing the classification model to be generated again by a classification model generation step; Run the command, The learning completion condition is that the statistical value of the values obtained by the preprocessing satisfies a predetermined statistical condition, or that the distribution of the values satisfies a predetermined distribution condition. A classification processing program comprising:
Citation Information
Patent Citations
Pattern sorting method / device using neural network
JP1993035707A
Machine learning device, machine learning method and program
JP2015001968A
Classification device, classification method, program and parameter creation device
JP2017151872A
Information processing device, control method of information processing device and program
JP2019087229A
State prediction device and state prediction control method
WO2019163141A1
