Method and apparatus for detecting sound event using artificial intelligence

The proposed data preprocessing method with varying augmentation techniques and consistency learning improves sound event detection in artificial intelligence systems by addressing the challenges of labeled data requirements and axis inconsistencies, enhancing detection accuracy.

US20260378458A1Pending Publication Date: 2026-11-26INDUSTRY UNIVERSITY COOPERATION FOUNDATION HANYANG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/480959
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2023-05-03
Filing Date
2024-04-22
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing sound event detection technologies using artificial intelligence require labeled audio data for training, which is time-consuming and costly, and applying semi-supervised learning methods from image data to audio data leads to inconsistencies due to differences in the meaning of axes, necessitating a method to maintain consistency.

Method used

A data preprocessing method that sets different augmentation degrees for unlabeled audio data by varying sampling rates and window sizes, using a consistency learning approach with knowledge distillation between a student and teacher network to improve sound event detection.

Benefits of technology

This method alleviates overfitting and enhances sound event detection by deriving various resolutions, improving accuracy in detecting specific audio events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260378458A1-D00000_ABST
    Figure US20260378458A1-D00000_ABST
Patent Text Reader

Abstract

In a method performed by an electronic device using artificial intelligence according to an embodiment of the present disclosure, the method comprises a step of receiving audio data; a step of determining a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data; and a step of outputting second data from a pre-trained first artificial intelligence network using the plurality of first data as input information, wherein the pre-trained first artificial intelligence network may be trained based on the plurality of first data and third data output from a second artificial intelligence network.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application is a National Stage of International Application No. PCT / KR2024 / 005434, filed Apr. 22, 2024, claiming priority from Korean patent application No. 10-2023-0057609 filed May 3, 2023, the contents of which are incorporated herein by reference in their entireties.BACKGROUND1. Field

[0002] The present disclosure relates to a method and an apparatus for detecting a sound event (or event) using artificial intelligence. Specifically, the present disclosure relates to a method for detecting a point where a specific sound source has occurred by utilizing a sound event detection technology by training an artificial intelligence.2. Description of the Related Art

[0003] The present disclosure relates to an apparatus and a method for detecting a specific sound source (or sound event) for an audio signal. A sound event detection technology is a technology for detecting a specific sound (e.g., a bell sound, a dog sound) for each hour. In particular, it has an advantage of being able to detect and utilize only a specific sound according to a user's selection among various sounds occurring in real life. In a sound event detection technology using artificial intelligence, preprocessing is performed on general audio data, features of each sound event are extracted from the preprocessed audio data, and the corresponding features are trained on an algorithm model.

[0004] However, in a sound event detection technology based on artificial intelligence, audio data in which a correct answer is labeled for each hour is required to build a system. In order to perform labeling of the audio data used for training, a person who performs the training has to directly label each of the audio data, which has a disadvantage of a large time and cost. Accordingly, a method capable of effectively training data even in a situation where there is no labeling information or in a situation where the labeling information is insufficient is required.

[0005] In particular, a semi-supervised learning method has been mainly used in the sound event detection technology. The semi-supervised learning method is a learning method mainly used in image data, and methods such as a mean teacher and a FixMatch method are used. Semi-supervised learning is proposed based on a data augmentation technique and uses a method of training so that a training result value of a neural network comes out to be the same as a result value of an original image even if a slight modification or disturbance is given to an image. However, in the case of image data, x and y axes are respectively defined as positions, whereas in an audio spectrogram, x and y axes are respectively defined as time and frequency. A problem occurs due to this difference, in that the meanings of the x-axis and the y-axis are different, and that a corresponding correct answer value is changed when a disturbance is generated for a time axis of data. That is, when a training method used in image data is applied to audio data, a correct answer value may be changed when a disturbance is generated in a time domain, so a method for maintaining consistency is needed. Accordingly, a consistency learning method using a data augmentation technique in a semi-supervised learning method may be used, and hereinafter, a method of using a consistency learning method based on resolution is proposed.SUMMARY

[0006] An object of the present disclosure is to provide a method and an apparatus for improving a sound event detection function by deriving various resolutions through a data preprocessing method.

[0007] An object of the present disclosure is to provide a method for improving a sound event detection function by differently setting an augmentation degree for unlabeled data.

[0008] In a method performed by an electronic device using artificial intelligence according to an embodiment of the present disclosure, the method comprises: receiving audio data; determining a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data; and outputting second data from a pre-trained first artificial intelligence network using the plurality of first data as input information, and the pre-trained first artificial intelligence network may be trained based on the plurality of first data and third data output from a second artificial intelligence network.

[0009] In an embodiment, the method may further comprise determining a loss between the second data and the third data; and determining a parameter that minimizes the loss.

[0010] In an embodiment, when the audio data includes a label, the method may further comprise determining a loss between the label and the second data by the first artificial intelligence network.

[0011] In an embodiment, when the audio data does not include a label, the method may further comprise determining a plurality of fourth data representing a plurality of resolutions based on a sampling rate of the audio data, and determining a loss between fifth data output from a third artificial intelligence network with the plurality of fourth data as an input and the second data.

[0012] In an embodiment, the determining the plurality of first data representing the plurality of resolutions based on at least one of the sampling rate and the window size of the audio data comprises: extracting at least one of the sampling rate and the window size based on a log-Gaussian distribution; and determining the plurality of first data by applying at least one of the extracted sampling rate and window size to the audio data.

[0013] In an embodiment, the method may further comprise detecting specific audio data from the audio data based on the second data.

[0014] In an embodiment, the first artificial intelligence network is trained through a knowledge distillation process from the second artificial intelligence network, the first artificial intelligence network may be a student network, and the second artificial intelligence network may be a teacher network.

[0015] In an electronic device according to an embodiment of the present disclosure, the electronic device comprises: a memory; a modem; and a processor connected to the modem and the memory, and the processor is configured to: receive audio data, determine a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data, and output second data from a pre-trained first artificial intelligence network using the plurality of first data as input information, and the pre-trained first artificial intelligence network is trained based on the plurality of first data and third data output from a second artificial intelligence network.

[0016] As a program stored in a medium for performing a direction estimation method through an artificial intelligence algorithm executable by a processor according to an embodiment of the present disclosure, the program performs a step of receiving audio data; a step of determining a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data; and a step of outputting second data from a pre-trained first artificial intelligence network using the plurality of first data as input information, and the pre-trained first artificial intelligence network is trained based on the plurality of first data and third data output from a second artificial intelligence network.

[0017] According to an embodiment of the present disclosure, an overfitting problem may be alleviated and a sound event detection function may be improved by deriving various resolutions through a data preprocessing method.BRIEF DESCRIPTION OF FIGURES

[0018] A brief description of each drawing is provided to more sufficiently understand the drawings cited in the detailed description of the present disclosure.

[0019] FIG. 1 is a conceptual diagram illustrating a basic principle of an artificial intelligence structure according to an embodiment of the present disclosure.

[0020] FIG. 2 is a diagram illustrating a structure of an artificial intelligence network according to an embodiment of the present disclosure.

[0021] FIG. 3 is a diagram illustrating a structure of an artificial intelligence network according to another embodiment of the present disclosure.

[0022] FIG. 4 is a diagram illustrating a spectrogram generated according to a data augmentation method according to an embodiment of the present disclosure.

[0023] FIG. 5 is a diagram illustrating a spectrum analysis according to a window size according to an embodiment of the present disclosure.

[0024] FIG. 6 is a diagram illustrating a probability distribution usable for data augmentation according to an embodiment of the present disclosure.

[0025] FIG. 7 is a diagram illustrating a structure of an artificial neural network according to an embodiment of the present disclosure.

[0026] FIG. 8 is a diagram illustrating a verification loss according to a type of an algorithm according to various embodiments of the present disclosure.

[0027] FIG. 9 is a table illustrating a structure of a data set according to an embodiment of the present disclosure.

[0028] FIG. 10 is a table illustrating performance according to various algorithm methods according to various embodiments of the present disclosure.

[0029] FIG. 11 is a block diagram of an electronic device for detecting a sound event according to an embodiment of the present disclosure.

[0030] FIG. 12 is a flowchart for explaining a sound event detection method according to an embodiment of the present disclosure.DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

[0031] The technical concept of the present disclosure may be subject to various modifications and may have various embodiments. Specific embodiments are illustrated in the drawings and described in detail herein. However, this is not intended to limit the technical concept of the present disclosure to specific forms, and it should be understood to include all modifications, equivalents, and alternatives within the scope of the technical concept of the present disclosure.

[0032] In describing the technical concept of the present disclosure, detailed descriptions of related known technologies may be omitted if they are deemed to obscure the gist of the present disclosure. In addition, numerical labels (e.g., first, second, etc.) used in the description are merely for distinguishing one component from another.

[0033] As used herein, when one component is described as being “connected to” or “coupled to” another component, it should be understood that the component may be directly connected or coupled to the other component, or may be indirectly connected or coupled through another component, unless otherwise stated.

[0034] The terms such as “~unit,”“~mechanism,” and “~er” described herein refer to a unit that processes at least one function or operation, and may be implemented with hardware such as a Processor, a Micro Processor, a Micro Controller, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), an Accelerate Processor Unit (APU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like, software, or a combination of hardware and software.

[0035] And it is intended to clarify that the division of components in the present application is merely based on the main function performed by each component. That is, two or more components to be described below may be combined into one component, or one component may be provided by being divided into two or more parts according to more subdivided functions. Additionally, the classification of the components described herein is merely based on their respective main functions. Accordingly, two or more components may be combined into one, or a single component may be subdivided into two or more subcomponents by function. Each component may perform not only its main function but also part or all of the functions performed by other components. Conversely, part of the main function of a component may be dedicated to and performed by another component.

[0036] In describing embodiments of the present disclosure, detailed descriptions of related functions or configurations will be omitted when it is determined that they may unnecessarily obscure the gist of the present disclosure. The terms to be described later are terms defined in consideration of functions in the present disclosure, and may vary according to the intention or custom of the user or operator, and the like. Therefore, the definition should be made based on the entire content of the present specification.

[0037] For the same reason, some components in the attached drawings may be exaggerated, omitted, or schematically illustrated. In addition, the size of each component does not fully reflect the actual size. In each drawing, the same reference numerals are assigned to the same or corresponding components.

[0038] The advantages and features of the present disclosure and the method of achieving them will become clear by referring to the embodiments described in detail below with the attached drawings. However, the present disclosure is not limited to the embodiments disclosed below, but may be implemented in various different forms; rather, the embodiments are provided so that the description of the present disclosure is complete and to fully convey the scope of the invention to those skilled in the art to which the embodiments of the present disclosure pertain, and the scope to be claimed in the present disclosure is defined only by the scope of the claims.

[0039] At this time, it will be understood that each block of the flow chart illustrations, and combinations of the blocks in the flow chart illustrations, may be executed by computer program instructions. These computer program instructions may be mounted on a processor of a general purpose computer, a special purpose computer, or other programmable data processing equipment, so the instructions performed through the processor of the computer or other programmable data processing equipment create means for performing the functions described in the flowchart block(s). These computer program instructions may also be stored in a computer-usable or computer-readable memory that can direct a computer or other programmable data processing equipment to implement the functions in a particular manner, so the instructions stored in the computer-usable or computer-readable memory are capable of producing an article of manufacture including instruction means for performing the functions described in the flowchart block(s). The computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable data processing equipment to produce a computer implemented process such that the instructions that execute on the computer or other programmable data processing equipment provide steps for implementing the functions described in the flowchart block(s).

[0040] Also, each block may represent a module, segment, or portion of code that includes one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks may occur out of the order noted. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

[0041] The term ‘unit or part’ used in the present disclosure refers to a hardware component such as software or a Field-Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), and the ‘unit’ may be configured to perform specific roles. However, a ‘unit’ is not limited to software or hardware. A ‘unit’ may be configured to reside on an addressable storage medium and configured to execute one or more processors. Thus, by way of example, a ‘unit’ may include components such as software components, object-oriented software components, class components, and task components, as well as processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. The functionality provided by the components and ‘units’ may be combined into a smaller number of components and ‘units’ or further separated into additional components and ‘units’. Furthermore, the components and ‘units’ may be implemented to reproduce one or more CPUs within a device or a secure multimedia card. In an embodiment, a ‘unit’ may include one or more processors and / or devices. Hereinafter, embodiments according to the technical idea of the present disclosure will be described in detail in order.

[0042] Hereinafter, various embodiments according to the technical concept of the present disclosure will be described in detail.

[0043] FIG. 1 is a conceptual diagram illustrating a basic principle of an artificial intelligence structure according to an embodiment of the present disclosure.

[0044] Referring to FIG. 1, a basic principle in which training is performed in an artificial intelligence structure is illustrated.

[0045] An artificial intelligence technology refers to a technology for solving a cognitive problem mainly associated with human intelligence, such as learning, problem solving, and recognition. The artificial intelligence may be trained through a machine learning (ML) method, which is called a machine learning method, and a deep learning (DL) method, which is called deep learning. Machine learning is a technique mainly used in a technique used for pattern recognition and learning, and represents an algorithm that learns recorded data and predicts subsequent data based on this. It represents a technology that learns by itself from data without being based on a pre-defined rule or pattern. On the other hand, deep learning is a field of machine learning and has a difference in processing data based on an Artificial Neural Network (ANN). Since deep learning uses an artificial neural network, it may process more complex and sophisticated operations than machine learning. Types of algorithms for deep learning may include a Convolution neural network (CNN), a DNN (deep neural network), an artificial neural network (ANN), a Recurrent Neural Network (RNN), and the like.

[0046] Referring to FIG. 1, an artificial intelligence structure may be represented by an artificial intelligence module 110. The artificial intelligence module 110 receives certain input data 105, performs training through a predetermined method in the module, and outputs output data 115 for a training result. According to an embodiment, the input data 105 may include certain data (ex. a picture, a sound, etc.), an audio signal, and an input sequence. The output data 115 may include an output sequence, an enhanced audio signal, sound event information (e.g., a specific sound), and the like.

[0047] FIG. 2 is a diagram illustrating a structure of an artificial intelligence network according to an embodiment of the present disclosure.

[0048] An artificial intelligence algorithm used in FIG. 2 may be one of the types of the artificial intelligence module 110 of FIG. 1. FIG. 2 may be a diagram illustrating an artificial intelligence algorithm in a case where input audio data includes a label.

[0049] Referring to FIG. 2, a structure of an artificial intelligence system may include an audio data and an artificial intelligence algorithm structure.

[0050] According to an embodiment, the audio data may refer to audio data including a label or audio data not including a label.

[0051] According to an embodiment, the artificial intelligence algorithm structure may be divided into data preprocessing, artificial intelligence training, and output data confirmation. Data preprocessing in the present disclosure may use an augment technique. A data augmentation technique is a method of augmenting data by making a sampling rate of an audio signal and a window size, which is a manipulation variable of short-time Fourier transform, different. A data augmentation technique may include a strong augment technique and a weak augment technique. The strong augment technique may be applied by randomly extracting a sampling rate and a window size from a log-Gaussian distribution. For example, an average of the log-Gaussian distribution becomes a sampling rate and a window size value of a reference spectrogram (that is, a spectrogram that is not augmented), and a standarddeviation may be set to 1.25. A value randomly extracted from the log-Gaussian distribution may be used by being limited to ½ times and 2 times so that distortion is not applied too severely. The weak augment technique means a method of using the same window size as a reference spectrogram, but extracting and using only a sampling rate in the same manner as the strong augment technique. For example, in a reference spectrogram, 16 kHz is used as a sampling rate, and 128 ms is used as a window size.

[0052] Here, a spectrogram is a two-dimensional graph that visually represents frequency components and is used to analyze an audio signal. In particular, a log-mel spectrogram is obtained by log-processing a spectrogram by converting the spectrogram into a mel scale in a time-frequency domain.

[0053] The artificial intelligence system of FIG. 2 may be configured with a student network 220 and a teacher network 225 composed of an Exponential Moving Average (EMA) of student network parameters updated at each training step. A technique used here is a knowledge Distillation technique, which is a format for transmitting information from a teacher network, which is a large and complex model in deep learning, to a student network, which is a small and simple model. A goal of knowledge distillation is to lower a model size and computational complexity while maintaining the performance of the teacher network as much as possible in a student model. In the knowledge distillation technique, the teacher network is first trained, and the student network is trained based on result data from the teacher network to compare the performance of the student network.

[0054] Referring to FIG. 2, a strong augment technique 215 may be applied to audio data 210 including a label 240. According to the strong augment technique, data having various resolutions may be extracted by changing at least one of a sampling rate and a window size.

[0055] The data 215 augmented based on the strong augment technique is respectively used as input information to a student network 220 and a teacher network 225, and a consistency loss 230 may be calculated between result data according to the student network 220 and result data according to the teacher network 225. The calculated consistency loss 230 may be used to optimize the student network 220 again. The consistency loss may be calculated by a mean square error.

[0056] In addition, a supervised loss 235 based on supervised learning may be calculated between a label 240 and result data obtained from a student network 220 in audio data 210 including the label 240. The calculated supervised loss 235 may also be used to optimize the student network 220 together with the consistency loss 230. The Supervised loss may be calculated by a binary cross entropy.

[0057] According to an embodiment of the present disclosure, the student network 220 may be trained as an artificial intelligence network having a similar performance to the teacher network 225 with a light model. Through an artificial intelligence algorithm according to the present disclosure, specific audio data (or a sound event) may be detected from audio data.

[0058] FIG. 3 is a diagram illustrating a structure of an artificial intelligence network according to another embodiment of the present disclosure.

[0059] An artificial intelligence algorithm used in FIG. 3 may be one of the types of the artificial intelligence module 110 of FIG. 1. FIG. 3 may be a diagram illustrating an artificial intelligence algorithm in a case where input audio data does not include a label.

[0060] Referring to FIG. 3, a structure of an artificial intelligence system may include an audio data and an artificial intelligence algorithm structure.

[0061] According to an embodiment, the audio data may refer to audio data including a label or audio data not including a label.

[0062] The artificial intelligence system of FIG. 3 may be configured with a student network 320 and a teacher network 325 composed of an Exponential Moving Average (EMA) of student network parameters updated at each training step.

[0063] Referring to FIG. 3, a strong augment technique 315 may be applied to audio data 310 not including a label.

[0064] The data 315 augmented based on the strong augment technique is respectively used as input information to a student network 320 and a teacher network 325, and a consistency loss 330 may be calculated between result data according to the student network 320 and result data according to the teacher network 325. The calculated consistency loss 330 may be used to optimize the student network 320 again.

[0065] In addition, in the audio data 310 not including the label, a role similar to that of the label may be performed by using a value of the student network 320. A fixed student network 345 is set by determining a value in the student network 320, and output data may be extracted by using data 340 augmented through a weak augment technique on the audio data 310 as input information. According to the weak augment technique, data having various resolutions may be extracted by fixing a window size and changing a sampling rate. Here, the meaning of the fixed network is a network of a method that does not calculate a gradient for input augmented data.

[0066] A supervised loss 335 based on supervised learning may be calculated between output data of a Fixed student network 345 and result data obtained from a student network 320. The calculated supervised loss 335 may also be used to optimize the student network 320 together with the consistency loss 330.

[0067] According to an embodiment of the present disclosure, the student network 320 may be trained as an artificial intelligence network having a similar performance to the teacher network 325 with a light model.

[0068] FIG. 4 is a diagram illustrating a spectrogram generated according to a data augmentation method according to an embodiment of the present disclosure.

[0069] FIG. 4 may illustrate an example of augmented data according to the data augmentation method of FIG. 2 and FIG. 3.

[0070] Referring to FIG. 4, a case 410 where a resolution of a log-mel spectrogram is adjusted by changing a sampling rate when a window size is the same, and a case 420 where a resolution of a log-mel spectrogram is adjusted by changing only a window size while fixing a sampling rate are illustrated.

[0071] In the case 410 where the resolution of the log-mel spectrogram is adjusted by changing the sampling rate when the window size is the same, after fixing the window size to 64 ms, a reference log-mel spectrogram 410b is set to 16 kHz, and downsampling 410a and upsampling 410c are performed. It may be confirmed that there is a difference in a maximum frequency limit depending on the sampling rate.

[0072] In the case 420 where the resolution of the log-mel spectrogram is adjusted by changing only the window size while fixing the sampling rate, after fixing the sampling rate to 16 kHz, a reference log-mel spectrogram 420b is set to 64 ms, and downsampling 420a and upsampling 420c are performed. A difference in a frequency resolution or a time resolution occurred depending on the window size.

[0073] FIG. 5 is a diagram illustrating a spectrum analysis according to a window size according to an embodiment of the present disclosure.

[0074] Referring to FIG. 5, an analysis of an output spectrogram when data is augmented by changing a window size differently according to an embodiment of the present disclosure is illustrated. A case 510 where a fluctuation range of a window size is reduced, and a case 530 where a fluctuation range of a window size is increased are illustrated with respect to a reference case 520. It is possible to check where a sound generation point (onset) is by checking at which point a difference between spectrograms becomes severe for a case of dividing and multiplying an r value by a window size. In the case 510 where the fluctuation range of the window size is reduced, as a result of setting the r value to 1.25, a difference between the spectrograms in one frame is severe, so it may be recognized that a sound has occurred in the corresponding part. In the reference case 520, the r value was set to 1.5, and a difference was severe in two frames, so it may be recognized that a sound occurred during the two frames. In the case 530 where the fluctuation range of the window size is increased, the r value is set to 2, so a frame in which the difference is severe is represented as three frames, and it is possible to confirm for three frames when the sound has occurred.

[0075] Looking at the results, an onset and an offset of a sound source can be accurately detected through the embodiment of the present disclosure. A pattern different from that of the spectrograms is shown at a point where the sound source occurs, and a similar pattern is shown in a section other than the point where the sound source occurs. That is, the data augmentation technique is effective in detecting an onset and an offset by causing a disturbance at the onset and the offset of the sound source.

[0076] FIG. 6 is a diagram illustrating a probability distribution usable for data augmentation according to an embodiment of the present disclosure.

[0077] Referring to FIG. 6, various probability distributions may be used to extract a sampling rate and a window size. Types of the probability distribution include a log-uniform distribution 610, a log-Gaussian distribution 620, and a log-beta distribution 630. The log-uniform distribution 610 shows the same probability regardless of a change in a sampling rate and a window size, and the log-Gaussian distribution 620 has a tendency that a probability gradually decreases toward the end with the highest probability in the case of a reference spectrogram of 16 kHz and 128 ms. The log-beta distribution 630 has a tendency that a probability gradually increases toward the end with the lowest probability in the case of a reference spectrogram of 16 kHz and 128 ms, contrary to the log-Gaussian distribution 620.

[0078] FIG. 7 is a diagram illustrating a structure of an artificial neural network according to an embodiment of the present disclosure.

[0079] A structure of the artificial neural network of FIG. 7 may be the same as the structure of the student network and the teacher network of FIGS. 2 to 5.

[0080] Referring to FIG. 7, data 710 augmented by using a data augmentation technique according to an embodiment of the present disclosure may be input to a CNN 720. For example, the CNN 720 may be a ResNet (the number of blocks={3, 3, 3, 1}, a stack={2, 2, 2, 2}, a CNN channel={8, 16, 32, 64}), a BCResNet (the number of initial channels=50), and a FUSE (the number of initial channels=32, the number of blocks=3). The CNN 720 may be replaced with an EfficientNetv2 and used. Data output from the CNN 720 may be input to an RNN 730. For example, the RNN 730 may be one-sided gated recurrent units (GRU, the number of layers=2, a hidden size=10).

[0081] FIG. 8 is a diagram illustrating a verification loss according to a type of an algorithm according to various embodiments of the present disclosure.

[0082] In FIG. 8, a change in a verification loss according to the number of executions of an epoch is illustrated by using a total of six artificial intelligence algorithm methods. In FIG. 8, an x-axis represents the number of executions of an epoch, and a y-axis represents a verification loss.

[0083] Referring to FIG. 8, it can be confirmed that a FixMatch 860 method and an Unsupervised Data Augmentation (UDA) 850 method, which are frequently used in semi-supervised learning, show a pattern of decreasing up to 50 times and then gradually increasing again, which is not a trend in which a loss steadily decreases as an epoch increases.

[0084] Next, it can be confirmed that an increase in a loss of an ICT 840 and a SCT 830 is smaller than that of the FixMatch 860 or the UDA 850, but still shows a pattern of decreasing and then increasing again as an epoch increases.

[0085] Next, it can be confirmed that an MT 820, which is one of semi-supervised learning methods, has a relatively small increase and is maintained after a loss decreases up to a certain epoch.

[0086] Finally, in the case of an RCT (Resolution Consistency Training) 810 method, which is one of the methods proposed in the present disclosure, it can be confirmed that a loss is maintained without increasing again after a loss has steadily decreased up to a certain section as an epoch increases, so a pattern with a very small loss width is shown.

[0087] Accordingly, the results confirm that learning is best performed in an order from the FixMatch 860 to the RCT 810, and performance is relatively excellent.

[0088] FIG. 9 is a table illustrating a structure of a data set according to an embodiment of the present disclosure. FIG. 10 is a table illustrating performance according to various algorithm methods according to various embodiments of the present disclosure.

[0089] FIG. 9 is about a data set used for training and experimenting of models according to an embodiment of the present disclosure. A data set used for model building is a DESED database frequently used in a sound event detection experiment. The DESED database is composed of audio clips of 10-second length, and may be composed of 44.1 kHz or 16 KHz.

[0090] Referring to FIG. 9, audio data may be classified into three types. It is composed of frame-level or strongly labeled data 905 in which a label exists in units of frames, clip-level or weaky labeled data 910 in which a label exists in units of clips, and unlabeled data 915 in which no label exists. In addition, it may be composed of actually recorded data and data obtained by synthesizing a sound source with a background sound.

[0091] Referring to FIG. 9, the frame-level 905 data may include 3,470 train areas and 1,168 Eval. areas with actually recorded sounds, and may include 10,000 theoretical sounds. In the case of Clip-level 910, 1,578 may be included in a train area with actually recorded sounds. The Unlabeled 915 may include 14,412 in a train area with actually recorded sounds.

[0092] FIG. 10 illustrates result values for an experiment for confirming the performance of sound event detection according to various embodiments of the present disclosure.

[0093] For the six algorithm methods shown in FIG. 8, performance evaluation methods of an event-f1 1040 method, an intersection-f1 1050 method, a PSDS1 1060 method, and a PSDS2 1070 method were respectively evaluated. Here, the event-f1 1040 method and the PSDS1 1060 method are mainly used to test the performance of detecting an onset and an offset, and the intersection-f1 1050 and PSDS2 1070 methods are mainly used to test the performance of detecting the presence or absence of a sound.

[0094] Referring to FIG. 10, the MT 1005 showed the best performance in a PSDS2 1070, but was not effective in an EVENT-F1 1040 or a PSDS1 1060. Additionally, the RCT 1030 method shows the most effective performance in tests of all methods except for the PSDS2 1070. In particular, it can be confirmed that it shows superior performance to other algorithm methods in event-f1 1040 and PSDS1 1060, which are indices representing sound event detection performance for detecting an onset and an offset.

[0095] FIG. 11 is a block diagram of an electronic device for detecting a sound event according to an embodiment of the present disclosure.

[0096] Referring to FIG. 11, an electronic device 1110 may include a MODEM 1120, a MEMORY 1140, and a PROCESSOR 1130.

[0097] A modem 1120 may be a communication modem that is electrically connected to other electronic devices to allow mutual communication. In particular, the modem 1120 may receive data input and transmit the data to a processor 1130, and the processor 130 may store the input data value in a memory 1140. In addition, a data value output by an artificial intelligence algorithm trained in a system may be transmitted to another electronic device.

[0098] A memory 1140 is a component in which various information and program commands for an operation of an electronic device 1110 are stored, and may be a storage device such as a Hard Disk and a Solid State Drive (SSD). In particular, the memory 1140 may store one or more data input values input from a modem 1120 under the control of a processor 1130. In addition, the memory 1140 may store program commands such as an artificial intelligence algorithm for direction estimation executable by the processor 1130. In addition, the memory 1140 may store a program (or a program command) such as an artificial intelligence algorithm trained through a curriculum learning method, a deep supervision method, and deeply supervised curriculum learning described in the present disclosure.

[0099] A processor 1130 is configured with at least one processor, and may train an artificial intelligence algorithm related to sound event detection using data and program commands stored in a memory 1140 and calculate data using the same. The processor 1130 may control and calculate all artificial intelligence algorithms described in FIGS. 1 to 7. The processor 1130 may perform an operation for the method described in FIG. 12 below.

[0100] FIG. 12 is a flowchart for explaining a sound event detection method according to an embodiment of the present disclosure.

[0101] Hereinafter, a training operation and a sound event detection method of an artificial intelligence algorithm of an electronic device described with reference to FIGS. 1 to 11 will be summarized and described with reference to FIG. 12. Each operation is not an operation that must be included in a series of processes, and only a part of the operations may be configured to operate depending on a situation.

[0102] In step S1210, audio data may be received to estimate a sound event through artificial intelligence. The audio data may be used as input information to train an artificial intelligence. The audio data may include a label that may be interpreted as a correct answer in artificial intelligence training. The artificial intelligence may be trained in different ways for a case of including a label and a case of not including a label.

[0103] In step S1220, a plurality of first data representing a plurality of resolutions may be determined based on at least one of a sampling rate and a window size of the received audio data. When a strong augment technique among data augmentation techniques is applied, data may be augmented by changing both a sampling rate and a window size, and when a weak augment technique is applied, data augmentation may be performed based on at least one of a sampling rate and a window size. The sampling rate and the window size may be extracted based on a log-Gaussian distribution.

[0104] In step S1230, second data may be output from a pre-trained first artificial intelligence network using a plurality of first data as input information. The second data may include information about an onset and an offset. Specific audio data may be detected from the received audio data based on the second data.

[0105] In step S1240, the pre-trained first artificial intelligence network may be trained based on the plurality of first data and third data output from a second artificial intelligence network. The first artificial intelligence network is not trained only by the above method, and it is natural that the first artificial intelligence network may be trained through various methods described in FIGS. 2 to 3. Here, the first artificial intelligence network is a student network used in a knowledge distillation technique, and the second artificial intelligence network may be a teacher network.

[0106] The technical idea of the present disclosure has been described in detail with various embodiments as above, but the technical idea of the present disclosure is not limited to the above embodiments, and various modifications and changes are possible by those skilled in the art within the scope of the technical idea of the present disclosure.

Claims

1. A method performed by an electronic device using artificial intelligence, the method comprising:receiving audio data;determining a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data; andoutputting second data from a pre-trained first artificial intelligence network using the plurality of first data as input information,wherein the pre-trained first artificial intelligence network is trained based on the plurality of first data and third data output from a second artificial intelligence network.

2. The method of claim 1, further comprising:determining a loss between the second data and the third data; anddetermining a parameter that minimizes the loss.

3. The method of claim 1, wherein when the audio data includes a label,the method further comprises determining a loss between the label and the second data by the first artificial intelligence network.

4. The method of claim 1, wherein when the audio data does not include a label,the method further comprises determining a plurality of fourth data representing a plurality of resolutions based on a sampling rate of the audio data, anddetermining a loss between fifth data output from a third artificial intelligence network with the plurality of fourth data as an input and the second data.

5. The method of claim 1, wherein the determining of the plurality of first data representing the plurality of resolutions based on at least one of the sampling rate and the window size of the audio data comprises:extracting at least one of the sampling rate and the window size based on a log-Gaussian distribution; anddetermining the plurality of first data by applying at least one of the extracted sampling rate and window size to the audio data.

6. The method of claim 1, further comprising detecting specific audio data from the audio data based on the second data.

7. The method of claim 1, wherein the first artificial intelligence network is trained through a knowledge distillation process from the second artificial intelligence network,the first artificial intelligence network is a student network, andthe second artificial intelligence network is a teacher network.

8. An electronic device comprising:a memory;a modem; anda processor connected to the modem and the memory,wherein the processor is configured to:receive audio data, determine a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data, andoutput second data from a pre-trained first artificial intelligence network using the plurality of first data as input information,wherein the pre-trained first artificial intelligence network is trained based on the plurality of first data and third data output from a second artificial intelligence network.

9. The electronic device of claim 8, wherein the processor is further configured to:determine a loss between the second data and the third data, anddetermine a parameter that minimizes the loss.

10. The electronic device of claim 8, wherein when the audio data includes a label,the processor is further configured to determine a loss between the label and the second data by the first artificial intelligence network.

11. The electronic device of claim 8, wherein when the audio data does not include a label,the processor is further configured to determine a plurality of fourth data representing a plurality of resolutions based on a sampling rate of the audio data, and determine a loss between fifth data output from a third artificial intelligence network with the plurality of fourth data as an input and the second data.

12. The electronic device of claim 8, wherein the processor is further configured to:extract at least one of the sampling rate and the window size based on a log-Gaussian distribution, anddetermine the plurality of first data by applying at least one of the extracted sampling rate and window size to the audio data.

13. The electronic device of claim 8, wherein the processor is further configured to detect specific audio data from the audio data based on the second data.

14. The electronic device of claim 8, wherein the first artificial intelligence network is trained through a knowledge distillation process from the second artificial intelligence network,the first artificial intelligence network is a student network, andthe second artificial intelligence network is a teacher network.

15. A program stored in a medium for performing a direction estimation method through an artificial intelligence algorithm executable by a processor, the program for performing the steps of:receiving audio data;determining a plurality of first data representing a plurality of resolutions based on at least one of a sampling rate and a window size of the audio data; andoutputting second data from a pre-trained first artificial intelligence network using the plurality of first data as input information,wherein the pre-trained first artificial intelligence network is trained based on the plurality of first data and third data output from a second artificial intelligence network.