Learning device, learning method, and program

The CNN-SAN-Transformer model improves acoustic event detection by combining CNN and SAN layers to enhance feature extraction and prediction accuracy, overcoming limitations of existing DNN architectures.

JP7574937B2Active Publication Date: 2024-10-29NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023536257
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-20
Publication Date
2024-10-29
Estimated Expiration
2041-07-20

AI Technical Summary

Technical Problem

Existing DNN architectures for acoustic event detection, such as CNN-Transformer, face challenges in efficiently representing acoustic event detection data, limiting prediction accuracy and the number of classes that can be classified due to low parameter efficiency and differences in data properties between image and acoustic signal representations.

Method used

A new DNN model architecture combining CNN for shallow intermediate layers and SAN for deep intermediate to output layers, known as CNN-SAN-Transformer, is employed to enhance generalization performance by efficiently extracting high-level features from acoustic signals.

Benefits of technology

The CNN-SAN-Transformer model achieves prediction accuracy equal to or higher than conventional CNN-Transformer models with a smaller number of parameters, effectively addressing the limitations of existing architectures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574937000001
    Figure 0007574937000001
  • Figure 0007574937000002
    Figure 0007574937000002
  • Figure 0007574937000003
    Figure 0007574937000003
Patent Text Reader

Abstract

This invention includes a learning unit that acquires learning data consisting of data and correct-answer labels attached to the data, and thereby learns a weight of a DNN model which predicts an acoustic event from the learning data. The DNN model includes: a feature extraction layer in which the structure from an input layer to a prescribed intermediate layer is the same as the structure from an input layer to an intermediate layer of a CNN, and in which the structure from the prescribed intermediate layer to an output layer is the same as the structure from an intermediate layer to an output layer of a SAN; and a prediction layer that predicts an event from the output of the feature extraction layer.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device, a learning method, and a program for learning a model used in acoustic event detection. [Background technology]

[0002] Non-Patent Document 1 discloses a conventional technique for acoustic event detection based on weakly supervised learning. Non-Patent Document 2 discloses a conventional technique for image recognition based on self-attention networks (SAN). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Q. Kong et al., “Sound event detection of weakly labeled data with CNN-transformer and automatic threshold optimization”, IEEE / ACM TASLP (28), 2020, pp. 2450-2460. [Non-Patent Document 2] H. Zhao et al., “Exploring Self-Attention for Image Recognition”, CVPR, 2020, pp. 10076-10085. Summary of the Invention [Problem to be solved by the invention]

[0004] In order to improve the prediction accuracy of acoustic event detection or to increase the number of classes that can be classified, a mechanism that efficiently uses various data is required. Specifically, the improvement of generalization performance by the sophistication of DNN architecture can be mentioned. As a DNN architecture for weakly supervised acoustic event detection, Non-Patent Document 1 uses CNN-Transformer, which combines CNN, which is the standard in the image field, and Transformer, which has overwhelming performance in the language field. In CNN-Transformer, the time-frequency representation of the acoustic signal is regarded as image data, high-level features are extracted, and then aggregated in the frequency bin direction, and the aggregated features are regarded as time-series signals to capture the dependency in the time direction, and the existence probability of an event in the time direction is expressed by the features after conversion / interpolation. In existing architectures, CNNs with low parameter efficiency are used in most cases, making it difficult to efficiently represent acoustic event detection data, and there are limitations to the prediction accuracy and number of classes that can be classified that can be realized. Therefore, a new DNN architecture with higher generalization performance than CNN-Transformer is needed.

[0005] In addition, in the field of image recognition, Non-Patent Document 2 proposes replacing CNN, which is the standard in the image field, with Self-attention Network (SAN), which has high parameter efficiency. CNN can be applied only to the channel direction, and Scalar attention (Transformer etc.) can be applied only to the spatial direction, but SAN, which is vector attention, can be applied to both the channel direction and the spatial direction, so a model with high parameter efficiency can be constructed. In a preliminary study, it was found that it is difficult to construct a model that exceeds the generalization performance of CNN-Transformer by simply replacing the CNN of the CNN-Transformer used in Non-Patent Document 1 with SAN. This is assumed to be because the nature of the data is different between the time-frequency representation of image data and the acoustic signal. Therefore, it is necessary to construct a model with high generalization performance while well capturing the nature of the acoustic signal.

[0006] Therefore, an object of the present invention is to provide a learning device that can construct a new DNN model with high generalization performance. [Means for solving the problem]

[0007] The learning device of the present invention includes a learning unit that acquires learning data consisting of data and correct labels assigned to the data, and learns weights of a DNN model that predicts acoustic events from the learning data. The DNN model includes a feature extraction layer that has a structure similar to that of the input layer to the intermediate layer of a CNN from the input layer to a predetermined intermediate layer, and a structure similar to that of the intermediate layer to the output layer of a SAN from the predetermined intermediate layer to the output layer, and a prediction layer that predicts events from the output of the feature extraction layer. Effect of the Invention

[0008] According to the learning device of the present invention, it is possible to construct a new DNN model with high generalization performance. [Brief description of the drawings]

[0009] [Figure 1] 4A and 4B are diagrams showing a comparison between a conventional model and a model learned by the learning device of the first embodiment. [Diagram 2] FIG. 2 is a block diagram showing the functional configuration of the learning device according to the first embodiment. [Diagram 3] 4 is a flowchart showing the operation of a learning unit of the learning device according to the first embodiment. [Figure 4] 4 is a flowchart showing the operation of an estimation unit of the learning device according to the first embodiment. [Diagram 5] FIG. 1 shows experimental results of acoustic tagging and acoustic event detection by the conventional method and the method of Example 1. [Figure 6] FIG. 2 is a diagram showing an example of the functional configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described in detail. Note that components having the same functions are given the same reference numbers and duplicated explanations will be omitted. EXAMPLES

[0011] The learning device of the following Example 1 is a device related to acoustic event detection, and is characterized in that it is configured with CNN for shallow intermediate layers and SAN for deep (other) intermediate layers to the output layer, in order to express acoustic features that could not be fully expressed by CNN in the conventional technology of combining CNN and a transformer, while avoiding the state of overfitting that occurs in the conventional technology of replacing CNN with a SAN.

[0012] As shown in FIG. 1, the DNN model learned by the learning device of the first embodiment has a structure similar to that of the input layer to the intermediate layer of CNN from the input layer to a predetermined intermediate layer (blocks 1 and 2 in the example of the figure), and a structure similar to that of the intermediate layer to the output layer of SAN from the predetermined intermediate layer to the output layer (blocks 2 to N in the example of the figure), and includes a prediction layer (Transformer) that predicts events from the output of the feature extraction layer. As a result, an intermediate representation that does not depend on the nature of the data is obtained from low-level features specific to the acoustic signal, and high-level features are efficiently extracted from the intermediate representation with a higher level of abstraction than the data, so that a DNN model with a new DNN architecture (CNN-SAN-Transformer) has been realized in which all remaining layers (for example, N=4, 3 blocks, 6 layers from block 2 to block 4) that account for the majority of the number of parameters are replaced with a SAN with high parameter efficiency. As a result, a SAN with high parameter efficiency can be incorporated into the model, and prediction accuracy equivalent to or higher than that of the CNN-Transformer can be achieved with a small number of parameters.

[0013] <Learning device 1> The functional configuration of the learning device 1 of this embodiment will be described below with reference to Fig. 2. As shown in Fig. 2, the learning device 1 of this embodiment includes a learning unit 11 and an estimation unit 12.

[0014] <Study Section 11> The learning unit 11 acquires learning data consisting of data (time-frequency representation of an acoustic signal, i.e., a spectrogram) and a correct label (one or more classes) assigned to the data, and learns weights of a DNN model (the above-mentioned CNN-SAN-Transformer) that predicts acoustic events from the learning data so as to minimize the classification risk of correct label learning. More specifically, the learning unit 11 includes a batch extraction unit 111, a risk calculation unit 112, and a gradient / weight calculation unit 113, and each component performs the following operations (see FIG. 3).

[0015] <Batch extraction unit 111> The batch extraction unit 111 extracts a part of the learning data as a batch (S111).

[0016] <Risk calculation unit 112> The risk calculation unit obtains a batch and uses a DNN model (CNN-SAN-Transformer) and a Binary Cross Entropy loss function to calculate the risk of correct label learning for the purpose of multi-label classification (S112).

[0017] <Gradient / weight calculation unit 113> The gradient / weight calculation unit 113 obtains the risk and updates the weights of the DNN model (CNN-SAN-Transformer) so as to minimize the classification risk of learning the correct label (S113). The operations (steps S111, S112, S113) of the batch extraction unit 111, the risk calculation unit 112, and the gradient / weight calculation unit 113 are repeatedly executed, and finally the weights (learned) of the DNN model (CNN-SAN-Transformer) are obtained.

[0018] <Estimation part 12> The estimation unit 12 acquires new data used for class estimation and weights of a trained DNN model (CNN-SAN-Transformer), and estimates one or more correct classes and intervals in which the correct classes exist. More specifically, the estimation unit 12 includes a model output calculation unit 121 and a correct class / interval calculation unit 122, and each component performs the following operations (see FIG. 4).

[0019] <Model output calculation unit 121> The model output calculation unit 121 calculates the output and intermediate output of the DNN model (CNN-SAN-Transformer) (S121).

[0020] <Correct class / interval calculation unit 122> The correct class / interval calculation unit 122 acquires the output and intermediate output of the DNN model (CNN-SAN-Transformer), and calculates one or more correct classes and intervals in which the correct classes exist (S122).

[0021] About SAN In the above embodiment, SAN is used, but this can be replaced with an attention mechanism (including mechanisms other than self attention and multi head).

[0022] About CNN Although CNN is used in the above embodiment, CNN can be replaced with a convolutional NN.

[0023] <Experimental results of acoustic tagging and acoustic event detection using the conventional method and the method of this embodiment> Figure 5 shows the experimental results of acoustic tagging and acoustic event detection by the conventional method and the method of this embodiment. As shown in the figure, the DNN model trained by the method of this embodiment was able to achieve prediction accuracy equal to or higher than that of conventional technology in both acoustic tagging and acoustic event detection. In the DNN architecture of this embodiment, the CNN is placed at the top of the feature extraction layer because it was able to successfully extract features from the low-dimensional data of the acoustic signal.

[0024] <Additional Notes> The device of the present invention has, as a single hardware entity, an input section to which a keyboard or the like can be connected, an output section to which a liquid crystal display or the like can be connected, a communication section to which a communication device (e.g., a communication cable) capable of communicating with the outside of the hardware entity can be connected, a CPU (which may also have a central processing unit, cache memory, registers, etc.), memories such as RAM and ROM, an external storage device such as a hard disk, and buses connecting the input section, output section, communication section, CPU, RAM, ROM, and external storage device so that data can be exchanged between them. If necessary, the hardware entity may also be provided with a device (drive) capable of reading and writing a recording medium such as a CD-ROM. A physical entity equipped with such hardware resources is, for example, a general-purpose computer.

[0025] The external storage device of the hardware entity stores the programs required to realize the above-mentioned functions and the data required in the processing of these programs (not limited to the external storage device, but for example the programs may be stored in a ROM, which is a read-only storage device). Data obtained by the processing of these programs is stored appropriately in the RAM, the external storage device, etc.

[0026] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required to process each program are loaded into memory as necessary, and interpreted, executed, and processed by the CPU as appropriate, so that the CPU realizes a predetermined function (each of the components represented as the above, "units," "means," etc.).

[0027] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention. In addition, the processes described in the above-described embodiment are not limited to being executed in chronological order according to the order described, but may be executed in parallel or individually depending on the processing capacity of the device that executes the processes or as necessary.

[0028] As described above, when the processing functions of the hardware entities (the devices of the present invention) described in the above embodiments are realized by a computer, the processing contents of the functions that the hardware entities should have are described by a program. Then, by executing this program on a computer, the processing functions of the hardware entities are realized on the computer.

[0029] The various processes described above can be implemented by loading a program for executing each step of the above method into the recording unit 10020 of the computer 10000 shown in FIG. 6, and operating the control unit 10010, input unit 10030, output unit 10040, etc.

[0030] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium may be, for example, a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, or any other suitable medium. Specifically, for example, a hard disk drive, a flexible disk, a magnetic tape, or the like can be used as the magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), or the like can be used as the optical disk, an MO (Magneto-Optical disc), or the like can be used as the magneto-optical recording medium, and an EEP-ROM (Electrically Erasable and Programmable-Read Only Memory) or the like can be used as the semiconductor memory.

[0031] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.

[0032] A computer that executes such a program, for example, first stores the program recorded on a portable recording medium or the program transferred from a server computer in its own storage device. Then, when executing a process, the computer reads the program stored in its own recording medium and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. The above-mentioned process may be executed by a so-called ASP (Application Service Provider) type service that realizes a processing function only by issuing an execution instruction and obtaining a result, without transferring a program from the server computer to the computer. Note that the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (data that is not a direct command to the computer but has a nature that specifies the processing of the computer, etc.).

[0033] In addition, in this embodiment, a hardware entity is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.

Claims

1. a learning unit that acquires training data including data and a correct label assigned to the data, and learns weights of a DNN model that predicts an acoustic event from the training data; The DNN model is The input layer to a predetermined intermediate layer is configured with a structure similar to that of the input layer to intermediate layer of a CNN, and the predetermined intermediate layer to the output layer includes a feature extraction layer configured with a structure similar to that of the intermediate layer to the output layer of a SAN, and a prediction layer that predicts events from the output of the feature extraction layer. Learning device.

2. The learning device according to claim 1 , The learning unit is a batch extraction unit that extracts a portion of the learning data as a batch; A risk calculation unit that acquires the batch and calculates a risk of correct label learning for the purpose of multi-label classification using the DNN model and a binary cross entropy loss function; A gradient / weight calculator for obtaining the risk and updating weights of the DNN model to minimize the risk. Learning device.

3. A learning method executed by a learning device, comprising: A learning step of acquiring training data including data and a correct label assigned to the data, and learning weights of a DNN model for predicting an acoustic event from the training data, The DNN model is The input layer to a predetermined intermediate layer is configured with a structure similar to that of the input layer to intermediate layer of a CNN, and the predetermined intermediate layer to the output layer includes a feature extraction layer configured with a structure similar to that of the intermediate layer to the output layer of a SAN, and a prediction layer that predicts events from the output of the feature extraction layer. How to learn.

4. A program for causing a computer to function as the learning device according to claim 1 or 2.