Sound event detection method and device, computer equipment and storage medium

By applying the neural network model for sound event detection in the factory, the problem of low efficiency of manual monitoring is solved, the efficient identification and integration of sound events in factory production is achieved, and the detection accuracy and automation level are improved.

CN114252906BActive Publication Date: 2024-10-29MIDEA GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011008499.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-23
Publication Date
2024-10-29
Estimated Expiration
2040-09-23

AI Technical Summary

Technical Problem

In the existing technology, sound quality inspection in factory production relies on manual monitoring, which is inefficient and causes damage to hearing. It is difficult to effectively identify and integrate various sound events that occur in the factory.

Method used

Using methods based on endpoint detection and model prediction, the neural network model is used to automatically detect sounds in factory production, identify and integrate sound event frames, and achieve efficient identification of accident sounds, quality problem sounds and normal production sounds.

Benefits of technology

It improves the accuracy and completeness of sound event detection, lowers the detection threshold, avoids damage to hearing, and realizes automated factory production sound monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114252906B_ABST
    Figure CN114252906B_ABST
Patent Text Reader

Abstract

The present invention provides a method and apparatus for detecting sound events, a computer device and a storage medium, wherein the method for detecting sound events comprises: determining at least one endpoint detection event frame of an event in a signal to be detected; determining at least one model prediction event frame of each event in the signal to be detected; for each event, comparing at least one model prediction event frame with an endpoint detection event frame to determine a detection result of each event. The embodiment of the present invention determines the detection result of each event based on the comparison result between the endpoint detection event frame and the model prediction event frame, thereby achieving the integration of multiple model prediction event frames, solving the problem of event fragmentation, and effectively improving the accuracy and integrity of sound event detection and recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sound detection, and in particular to a method for detecting a sound event, a device for detecting a sound event, a computer device, a computer-readable storage medium and an electronic device. Background Art

[0002] In related technologies, sound quality inspection of products is an important part of factory production. Manual sound monitoring can be used to determine whether there are quality problems such as screws not being tightened or heating tubes not being stuck in the bracket. However, the manual monitoring method is inefficient and can easily cause damage to human hearing. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0004] To this end, a first aspect of the present invention provides a method for detecting a sound event.

[0005] A second aspect of the present invention provides a device for detecting a sound event.

[0006] A third aspect of the present invention provides a computer device.

[0007] A fourth aspect of the present invention provides a computer-readable storage medium.

[0008] A fifth aspect of the present invention provides an electronic device.

[0009] In view of this, the first aspect of the present invention provides a method for detecting sound events, comprising: determining at least one endpoint detection event frame of an event in a signal to be detected; determining at least one model prediction event frame for each event in the signal to be detected; for each event, comparing at least one model prediction event frame with the endpoint detection event frame to determine the detection result of each event.

[0010] In this technical solution, through the endpoint detection method, it is possible to identify the endpoint detection event frame corresponding to at least one "event" in the signal to be detected, and through artificial intelligence algorithms and other means, one or more model prediction event frames under each "event" can be predicted in the signal to be detected.

[0011] After determining the endpoint detection event frame and the model prediction event frame, the two are further compared to integrate multiple "fragmented" model prediction event frames to obtain the detection result corresponding to each event and output the detection result.

[0012] Among them, an "event" can be an accident sound event caused by a production accident, such as accident sounds such as objects falling and glass breaking, or it can be noise of quality problems in the products produced, such as screws not being tightened (when the screws are not tightened, the product may make specific noises during test operation), the heating tube not being stuck in the bracket (when the heating tube is loose, specific noises may be generated due to the movement of the heating tube), etc. It can also be other sounds occurring in normal production activities of the factory, such as conversations between personnel, noises during normal operation of machines, work bells or other alarm sounds, etc. The embodiment of the present invention does not limit the specific type of "event" in the sound signal.

[0013] The embodiment of the present invention determines the detection result of each event based on the comparison results between the endpoint detection event frame and the model prediction event frame, thereby realizing the integration of multiple model prediction event frames, solving the problem of event fragmentation, and effectively improving the accuracy and completeness of sound event detection and recognition.

[0014] In addition, the sound event detection method in the above technical solution provided by the present invention may also have the following additional technical features:

[0015] In the above technical solution, endpoint detection event frames of at least one event are respectively determined in the signal to be detected, specifically including: respectively determining endpoint detection event frames of at least one event in the signal to be detected, and determining the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame; and at least one model prediction event frame of each event is determined in the signal to be detected, specifically including: through a neural network model, at least one model prediction event frame of each event is determined in the signal to be detected, and the model prediction start frame and the model prediction end frame of each model prediction event frame of each event are determined.

[0016] In this technical solution, a pre-trained sound detection model can be used to pick up the acquired signal to be detected, such as the sound generated by a microphone or other sound pickup device during the production process of a product in a factory, to obtain an analog signal or digital signal of the sound during factory production. Through the sound detection model, the signal to be detected can be subjected to sound detection analysis to determine at least one event contained in the sound signal.

[0017] After an event is determined in the signal to be detected, at least one endpoint detection event frame and at least one model prediction event frame contained in each determined event are continuously detected. The endpoint detection event frame and the model prediction event frame can be one of a plurality of signal frames obtained by framing a segment of an audio signal through a framing method. When the sound detection model determines that an event has occurred at the time corresponding to the signal frame, or when the energy entropy ratio based on the signal frame is greater than a threshold, the signal frame is determined as an event frame.

[0018] After determining the event frame, detect the start frame and end frame of each signal frame, namely the endpoint detection start frame, endpoint detection end frame, model prediction start frame and model prediction end frame. The "start frame" and "end frame" represent the "starting point" and "end point" of an event frame, namely the initial moment when the event occurs and the final moment when the event ends. According to the start frame and the end frame, the event frame is regularized, and the "fragmented" event fragments can be effectively integrated to finally determine the complete and accurate detection results of the "event" to which each model prediction event frame belongs. For example: "A loose screw event was detected from 16:00 to 16:01".

[0019] The technical solution provided by the present invention is applied, and a neural network model based on artificial intelligence, namely a sound detection model, is used to detect sounds in factory production, so that various situations that may occur in the factory production process can be automatically and "unmanned" to efficiently and accurately monitor. At the same time, since the method does not require human intervention, sound detection is no longer dependent on experienced workers. On the one hand, the detection efficiency is improved and the detection threshold is lowered. On the other hand, it will not cause damage to human hearing. At the same time, through endpoint detection, the start frame and the end frame of the event frame are identified. Through the start frame and the end frame of each event frame, the "fragmented" multiple event frames are effectively regularized, which solves the problem of event fragmentation and effectively improves the accuracy and completeness of sound event detection and recognition.

[0020] In any of the above-mentioned technical schemes, the endpoint detection event frame of at least one event is determined in the signal to be detected, and the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame are determined, which specifically includes: framing the signal to be detected to obtain multiple signal frames; determining the energy entropy ratio of any signal frame, and determining the signal frame with an energy entropy ratio greater than the energy entropy ratio threshold as the endpoint detection event frame; and determining the earliest frame in the endpoint detection event frame as the endpoint detection start frame, and the latest frame in the endpoint detection event frame as the endpoint detection end frame.

[0021] In this technical solution, the signal to be detected is first divided into frames to obtain signal frames of a certain length, wherein each signal frame is a sound sample, and there may be partial overlap between two adjacent signal frames. Among them, the frame length (duration of the sound sample) and the overlapping length of the signal frame can be adjusted according to the specific application scenario. For example, the signal frame can be 40ms long, and the overlap between two adjacent signal frames is 20ms. It can be understood that the above frame length and overlapping frame length are only used as examples for illustration, and the embodiment of the present invention does not limit the length and overlapping length of the signal frame.

[0022] After obtaining multiple signal frames through framing, the energy entropy ratio of each signal frame is further determined. If it is determined that the energy entropy ratio of a signal frame is greater than the energy entropy ratio threshold, the current signal frame can be identified as an endpoint detection event frame, and a certain "event" has occurred in this endpoint detection event frame. Then, the "endpoint" of the endpoint detection event frame is judged. Specifically, the earliest frame in an endpoint detection event frame (the earliest time frame in the frame time) is the endpoint detection start frame of the endpoint detection event frame. Correspondingly, the latest frame in an endpoint detection event frame (the latest event frame in the frame time) is the endpoint detection end frame of the endpoint detection event frame.

[0023] Whether an "event" has occurred in a sound segment is determined by dividing the segment into frames and calculating the energy entropy ratio of each segment. Endpoint detection is further performed on the frames where the event has occurred to obtain endpoint detection event frames. This can effectively and accurately determine the start and end times of the event, which is conducive to improving the accuracy of sound event detection.

[0024] In any of the above technical solutions, at least one model prediction event frame for each event is determined in the signal to be detected, specifically including: performing feature extraction on the signal frame after windowing through a feature extraction method to obtain a corresponding two-dimensional feature map; inputting the two-dimensional feature map into the neural network model to obtain the model prediction event frame output by the neural network model, as well as the model prediction start frame and the model prediction end frame.

[0025] In this technical solution, after the signal to be detected is framed, a preset window function is used to perform windowing on the signal frame obtained after the frame division. The window function may be a rectangular window or a non-rectangular window, such as a Hamming window, a Hanning window, etc. The embodiment of the present invention does not limit the specific type of the window function.

[0026] After the windowing process, the feature extraction method is further used to extract features from the windowed signal frame to obtain a two-dimensional feature map. The two-dimensional feature map is used as the original signal and input into the trained neural network model. The neural network model can use artificial intelligence to identify whether an event has occurred in the input original signal (the processed signal to be detected) and the start and end time of the event. Finally, the model predicted event frame is output, and the model predicted start frame and model predicted end frame corresponding to the model predicted event frame.

[0027] The embodiment of the present invention utilizes a neural network model based on artificial intelligence, namely a sound detection model, to perform sound detection on sounds in factory production, thereby being able to automatically and “unmanned” perform efficient and accurate monitoring of various situations that may occur in the factory production process. At the same time, since the method does not require human intervention, sound detection no longer relies on experienced workers. On the one hand, this improves detection efficiency and lowers the detection threshold, and on the other hand, it does not cause damage to human hearing.

[0028] In any of the above technical solutions, based on the existence of at least two model prediction event frames, at least one model prediction event frame is compared with the endpoint detection event frame to determine the detection result of each event, specifically including: for each event, the corresponding moments of the start frame and the end frame of each model prediction event frame are compared with the frame moments of the start frame and the end frame of the endpoint detection event frame corresponding to the event, and the model prediction event frame that overlaps with the endpoint detection event frame in frame moment is determined as the result event frame; and the detection result is determined based on the result event frame.

[0029] In this technical solution, each event frame in multiple model prediction event frames is traversed to determine whether there are overlapping frame moments between any model prediction event frame and an endpoint detection event frame. If there are two or more model prediction event frames that have overlapping frame moments with the same endpoint detection event frame, then these two or more model prediction event frames are considered to belong to the same sound event, and then these model prediction event frames are integrated to achieve effective integration of "fragmented" events.

[0030] Specifically, for example, the endpoint detection event frame includes a total of 11 event frames from time 10 to time 20, the first model prediction event frame includes a total of 16 time frames from time 0 to time 15, and the second model prediction event frame includes a total of 16 time frames from time 14 to time 29. Since the first model predicted event frame and the endpoint detection event frame both contain time frames from time 10 to time 15, and the second model predicted event frame and the endpoint detection event frame both contain time frames from time 14 to time 20, the first model predicted event frame and the second model predicted event frame are integrated to obtain a complete third event frame from time 0 to time 29.

[0031] By effectively integrating the fragmented model prediction event frames based on whether the two event frames "overlap" with the same endpoint detection event frame, the final output detection results can be made more complete, thereby avoiding the situation of "fragmented" events and effectively improving the accuracy and completeness of sound detection.

[0032] In any of the above technical solutions, the overlap specifically includes: for each event, based on the first moment corresponding to the model prediction start frame being earlier than or equal to the second moment corresponding to the endpoint detection start frame, and the third moment corresponding to the model prediction end frame being later than or equal to the second moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or based on the first moment being later than or equal to the second moment, and the third moment being earlier than or equal to the fourth moment corresponding to the endpoint detection end frame, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or based on the first moment being earlier than or equal to the fourth moment, and the third moment being later than or equal to the fourth moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or based on the situation that the first moment is earlier than or equal to the second moment, and the third moment is later than or equal to the fourth moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame.

[0033] In this technical solution, when judging whether two event frames have at least partial overlap, a simplified judgment condition can be set based on the "endpoint" moments of different event frames, that is, the moments corresponding to the start frame and the end frame, to judge whether the first event frame and the second event frame have partial overlap.

[0034] Specifically, the moment corresponding to the start frame predicted by the model is recorded as the first moment; the moment corresponding to the start frame of endpoint detection is recorded as the second moment; the moment corresponding to the end frame predicted by the model is recorded as the third moment; and the moment corresponding to the end frame of endpoint detection is recorded as the fourth moment.

[0035] If the first moment is earlier than or equal to the second moment and the third moment is later than or equal to the second moment, it is considered that the frame moments of the model prediction event frame and the endpoint detection event frame overlap at least partially.

[0036] If the first moment is later than the second moment, but the third moment is earlier than or lower than the fourth moment, it can also be considered that the frame moments of the model prediction event frame and the endpoint detection event frame are at least partially overlapped.

[0037] If the first moment is earlier than or equal to the fourth moment, and the third moment is later than the fourth moment, it is also considered that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0038] If the first moment is earlier than or equal to the second moment, and the third moment is later than the fourth moment, it can also be determined that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0039] By judging whether there is partial overlap between two different event frames based on the endpoints of each event frame, that is, the frame times of the start frame and the end frame, the calculation process can be effectively reduced, the requirements for system computing performance can be lowered, and at the same time, the effective regularization of event frames can be ensured, thereby improving the accuracy and completeness of sound detection.

[0040] In any of the above technical solutions, determining the detection result based on the result event frame specifically includes: determining the earliest predicted event start frame among all the result event frames as the start frame of the detection result; and determining the latest predicted event end frame among all the result event frames as the end frame of the detection result.

[0041] In this technical solution, after a plurality of model prediction event frames that overlap at least part of the frame time with the endpoint detection event frame are uniformly regularized, an integrated complete result event frame is obtained, and the final detection result is determined according to the result event frame.

[0042] Specifically, firstly, the start frame and the end frame of the result event frame are obtained. Among all the event frames integrated and formed into the result event frame, the model predicted start frame with the earliest frame time is used as the result event start frame, and the model predicted end frame with the latest frame time is used as the result event end frame among all the model predicted event frames formed into the result event frame.

[0043] After determining the start frame and end frame of the result event frame, that is, the start and end time of the "sound event", determine the event type of the final output, that is, the event corresponding to the result event frame. Specifically, traverse all model prediction event frames that form the result event frame, determine the total frame length of each model prediction event frame, determine the event type (the event corresponding to it) of the model prediction event frame with the longest frame length as the event corresponding to the result event frame, and mark the event as the event type of the "event" of the final output.

[0044] Finally, the detection result is determined by the result event start frame (i.e. the start time of the event), the result event end frame (i.e. the end time of the event) and the result event corresponding to the result event frame (i.e. the final identified event type), and the detection result is output, thereby realizing automatic and "unmanned" efficient and accurate monitoring of various situations that may occur in the factory production process, which is conducive to managers to promptly grasp various events occurring in the factory.

[0045] In any of the above technical solutions, determining the energy-entropy ratio of any signal frame specifically includes: obtaining the energy and entropy corresponding to any signal frame, calculating the absolute value of the ratio of energy and entropy, and determining the energy-entropy ratio based on the absolute value.

[0046] In this technical solution, the energy entropy ratio can be calculated by the following formula:

[0047]

[0048] Among them, Efi is the energy entropy ratio, E i is the energy of the i-th frame, and E i =Σ j |Y j | 2 , H i is the entropy of the i-th frame, and H i =-∑ j p j logp j , p j =Y j / ∑ j |Y j |, Y j Represents the jth spectral line in the signal to be detected.

[0049] Calculating the energy entropy ratio of each signal frame through a formula is helpful to more accurately determine whether a signal frame is an event frame, thereby improving the detection accuracy of sound events.

[0050] In any of the above technical solutions, after determining the energy entropy ratio according to the absolute value, the sound event detection method also includes: normalizing the energy entropy ratio and performing median filtering on the normalized energy entropy ratio.

[0051] In this technical solution, after calculating the energy entropy ratio corresponding to each signal frame, the energy entropy ratios of all signal frames are normalized and subjected to multiple median filtering. This can effectively remove the influence of signal noise and make the obtained energy entropy ratio more accurate, which is conducive to more accurately judging whether a signal frame is an event frame, thereby further improving the detection accuracy of sound events.

[0052] In any of the above technical solutions, the neural network model includes: a convolutional-recurrent neural network, a convolutional neural network, a recursive neural network, a hidden Markov model, a Gaussian mixture model or a support vector machine.

[0053] In this technical solution, in order to adapt to a variety of application environments, when identifying sound events, any one of a convolutional-recurrent neural network, a convolutional neural network, a recursive neural network, a hidden Markov model, a Gaussian mixture model or a support vector machine can be used as the applied neural network model, or multiple of the above neural network models can be selected to form a "multi-level" neural network model. The embodiment of the present invention does not limit the specific form of the neural network model.

[0054] In any of the above technical solutions, the feature extraction method includes: Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, equivalent rectangular bandwidth domain (Erb, Equvivalent rectangular bandwidth) energy spectrum extraction method or gammatone cepstral coefficient extraction method.

[0055] In this technical solution, when extracting features from the signal frame after framing, any one of the feature extraction methods, such as Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, Erb domain energy spectrum extraction method or Gammatone cepstral coefficient extraction method, can be selected according to different sound environments or in particular for different types of sound events to convert the one-dimensional sound signal into a two-dimensional feature map. The embodiment of the present invention does not limit the specific type of feature extraction method.

[0056] The second aspect of the present invention provides a device for detecting sound events, comprising: a determination module, used to determine the endpoint detection event frame of at least one event in the signal to be detected; a detection module, used to determine at least one model prediction event frame for each event in the signal to be detected; the determination module is also used to compare at least one model prediction event frame with the endpoint detection event frame for each event to determine the detection result of each event.

[0057] In this technical solution, through the endpoint detection method, it is possible to identify the endpoint detection event frame corresponding to at least one "event" in the signal to be detected, and through artificial intelligence algorithms and other means, one or more model prediction event frames under each "event" can be predicted in the signal to be detected.

[0058] After determining the endpoint detection event frame and the model prediction event frame, the two are further compared to integrate multiple "fragmented" model prediction event frames to obtain the detection result corresponding to each event and output the detection result.

[0059] Among them, an "event" can be an accident sound event caused by a production accident, such as accident sounds such as objects falling and glass breaking, or it can be noise of quality problems in the products produced, such as screws not being tightened (when the screws are not tightened, the product may make specific noises during test operation), the heating tube not being stuck in the bracket (when the heating tube is loose, specific noises may be generated due to the movement of the heating tube), etc. It can also be other sounds occurring in normal production activities of the factory, such as conversations between personnel, noises during normal operation of machines, work bells or other alarm sounds, etc. The embodiment of the present invention does not limit the specific type of "event" in the sound signal.

[0060] The embodiment of the present invention determines the detection result of each event based on the comparison results between the endpoint detection event frame and the model prediction event frame, thereby realizing the integration of multiple model prediction event frames, solving the problem of event fragmentation, and effectively improving the accuracy and completeness of sound event detection and recognition.

[0061] The third aspect of the present invention provides a computer device, comprising: a memory on which a computer program is stored; a processor, configured to implement the steps of the sound event detection method provided in any of the above-mentioned technical solutions when running the computer program. Therefore, the computer device also includes all the beneficial effects of the sound event detection method provided in any of the above-mentioned technical solutions, which will not be repeated here.

[0062] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it can implement the steps of the sound event detection method provided in any of the above-mentioned technical solutions. Therefore, the computer-readable storage medium also includes all the beneficial effects of the sound event detection method provided in any of the above-mentioned technical solutions, which will not be repeated here.

[0063] A fifth aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the steps of the sound event detection method provided in any of the above-mentioned technical solutions through the computer program. Therefore, the electronic device also includes all the beneficial effects of the sound event detection method provided in any of the above-mentioned technical solutions, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0065] Figure 1 One of the flow charts of the method for detecting a sound event according to an embodiment of the present invention is shown;

[0066] Figure 2 A second flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown;

[0067] Figure 3 A third flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown;

[0068] Figure 4 A fourth flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown;

[0069] Figure 5A fifth flowchart of a method for detecting a sound event according to an embodiment of the present invention is shown;

[0070] Figure 6 A sixth flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown;

[0071] Figure 7 FIG7 shows a seventh flow chart of a method for detecting a sound event according to an embodiment of the present invention;

[0072] Figure 8 A schematic diagram of the generation logic of the sound detection model according to an embodiment of the present invention is shown;

[0073] Fig. 9 An example diagram showing the relationship between an unintegrated model prediction event frame and an endpoint detection event frame according to an embodiment of the present invention is shown;

[0074] Fig.10 An example diagram showing the relationship between the integrated model prediction event frame and the endpoint detection event frame according to an embodiment of the present invention is shown;

[0075] Fig.11 A corresponding diagram between a sound signal and a sound event detection according to an embodiment of the present invention is shown;

[0076] Fig.12 A structural block diagram of a sound event detection device according to an embodiment of the present invention is shown;

[0077] Fig.13 A structural block diagram of a computer device according to an embodiment of the present invention is shown;

[0078] Fig.14 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0079] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0080] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0081] Refer to the following Figures 1 to 14 The present invention describes a method for detecting a sound event, an apparatus for detecting a sound event, a computer device, a computer-readable storage medium, and an electronic device according to some embodiments of the present invention.

[0082] For ease of explanation, the following embodiments take the detection of one event as an example, but the technical solution of the present invention is not limited to the number of events. When there are multiple times, the processing method is similar.

[0083] Embodiment 1

[0084] Figure 1 A flowchart of a method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event includes the following steps:

[0085] Step 102, obtaining a signal to be detected, and determining an endpoint detection event frame corresponding to one or more events therein;

[0086] Step 104, determining one or more model prediction event frames under each event in the signal to be detected;

[0087] Step 106 , for each event, compare the model prediction event frame with the endpoint detection event frame to determine the detection result for each event.

[0088] In an embodiment of the present invention, through the endpoint detection method, it is possible to identify an endpoint detection event frame corresponding to at least one "event" in the signal to be detected, and through artificial intelligence algorithms and other means, one or more model prediction event frames under each "event" can be predicted in the signal to be detected.

[0089] After determining the endpoint detection event frame and the model prediction event frame, the two are further compared to integrate multiple "fragmented" model prediction event frames to obtain the detection result corresponding to each event and output the detection result.

[0090] Among them, an "event" can be an accident sound event caused by a production accident, such as accident sounds such as objects falling and glass breaking, or it can be noise of quality problems in the products produced, such as screws not being tightened (when the screws are not tightened, the product may make specific noises during test operation), the heating tube not being stuck in the bracket (when the heating tube is loose, specific noises may be generated due to the movement of the heating tube), etc. It can also be other sounds occurring in normal production activities of the factory, such as conversations between personnel, noises during normal operation of machines, work bells or other alarm sounds, etc. The embodiment of the present invention does not limit the specific type of "event" in the sound signal.

[0091] The embodiment of the present invention determines the detection result of each event based on the comparison results between the endpoint detection event frame and the model prediction event frame, thereby realizing the integration of multiple model prediction event frames, solving the problem of event fragmentation, and effectively improving the accuracy and completeness of sound event detection and recognition.

[0092] Embodiment 2

[0093] Figure 2 The second flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event comprises the following steps:

[0094] Step 202, after dividing the signal to be detected into frames and windowing, calculate the energy entropy ratio of each frame, and obtain the endpoint detection event frame of one or more events, as well as the corresponding endpoint detection start frame and endpoint detection end frame;

[0095] Step 204: predict one or more model prediction event frames under each event, as well as the corresponding model prediction start frame and model prediction end frame through the neural network model.

[0096] In the embodiment of the present invention, a pre-trained sound detection model can be used to pick up the acquired signal to be detected, such as the sound generated by a microphone or other sound pickup device during the production process of a product in a factory, to obtain an analog signal or a digital signal of the sound during factory production. Through the sound detection model, the signal to be detected can be sound detected and analyzed to determine at least one event contained in the sound signal.

[0097] After an event is determined in the signal to be detected by the sound detection model, at least one endpoint detection event frame and at least one model prediction event frame are continuously detected under each determined event. The endpoint detection event frame and the model prediction event frame can be one of a plurality of signal frames obtained by framing a segment of an audio signal by a framing method. When the sound detection model determines that an event has occurred at the time corresponding to the signal frame, or the energy entropy ratio based on the signal frame is greater than a threshold, the signal frame is determined as an event frame.

[0098] After determining the event frame, detect the start frame and end frame of each signal frame, namely the endpoint detection start frame, endpoint detection end frame, model prediction start frame and model prediction end frame. The "start frame" and "end frame" represent the "starting point" and "end point" of an event frame, namely the initial moment when the event occurs and the final moment when the event ends. According to the start frame and the end frame, the event frame is regularized, and the "fragmented" event fragments can be effectively integrated to finally determine the complete and accurate detection results of the "event" to which each model prediction event frame belongs. For example: "A loose screw event was detected from 16:00 to 16:01".

[0099] The technical solution provided by the present invention is applied, and a neural network model based on artificial intelligence, namely a sound detection model, is used to detect sounds in factory production, so that various situations that may occur in the factory production process can be automatically and "unmanned" to efficiently and accurately monitor. At the same time, since the method does not require human intervention, sound detection is no longer dependent on experienced workers. On the one hand, the detection efficiency is improved and the detection threshold is lowered. On the other hand, it will not cause damage to human hearing. At the same time, through endpoint detection, the start frame and the end frame of the event frame are identified. Through the start frame and the end frame of each event frame, the "fragmented" multiple event frames are effectively regularized, which solves the problem of event fragmentation and effectively improves the accuracy and completeness of sound event detection and recognition.

[0100] Embodiment 3

[0101] Figure 3 The third flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event comprises the following steps:

[0102] Step 302, dividing the signal to be detected into frames to obtain a number of initial signal frames after framing, and performing windowing processing to obtain a signal frame after windowing processing;

[0103] Step 304, determining the energy entropy ratio of each signal frame, and determining all signal frames whose energy entropy ratios are greater than the energy entropy ratio threshold as endpoint detection event frames;

[0104] Step 306: determine the earliest frame in the endpoint detection event frame as the endpoint detection start frame, and determine the latest frame in the endpoint detection event frame as the endpoint detection end frame.

[0105] In an embodiment of the present invention, the signal to be detected is first framed to obtain a signal frame of a certain length, wherein each signal frame is a sound sample, and there may be partial overlap between two adjacent signal frames. Among them, the frame length (duration of the sound sample) and the overlapping length of the signal frame can be adjusted according to the specific application scenario. For example, the signal frame can be 40ms long, and the overlap between two adjacent signal frames is 20ms. It can be understood that the above frame length and overlapping frame length are only used as examples for illustration, and the embodiment of the present invention does not limit the length and overlapping length of the signal frame.

[0106] After obtaining multiple signal frames through framing, the framed signal frames are windowed, and the energy entropy ratio of each signal frame is further determined based on the signal frames after the windowing process. If it is determined that the energy entropy ratio of a signal frame is greater than the energy entropy ratio threshold, the current signal frame can be identified as an endpoint detection event frame, and a certain "event" has occurred in this endpoint detection event frame. Then, the "endpoint" of the endpoint detection event frame is judged. Specifically, the earliest frame in an endpoint detection event frame (the earliest time frame in the frame time) is the endpoint detection start frame of the endpoint detection event frame, and correspondingly, the latest frame in an endpoint detection event frame (the latest event frame in the frame time) is the endpoint detection end frame of the endpoint detection event frame.

[0107] Whether an "event" has occurred in a sound segment is determined by dividing the segment into frames and calculating the energy entropy ratio of each segment. Endpoint detection is further performed on the frames where the event has occurred to obtain endpoint detection event frames. This can effectively and accurately determine the start and end times of the event, which is conducive to improving the accuracy of sound event detection.

[0108] Embodiment 4

[0109] Figure 4 The fourth flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event comprises the following steps:

[0110] Step 402, extracting features from the signal frame after windowing to obtain a corresponding two-dimensional feature map;

[0111] Step 404, input the two-dimensional feature map into the neural network model to obtain a model-predicted event frame, a model-predicted start frame, and a model-predicted end frame.

[0112] In an embodiment of the present invention, feature extraction is performed on the windowed signal frame to obtain a two-dimensional feature map, which is used as the original signal and input into a trained neural network model. The neural network model can use artificial intelligence to identify whether an event has occurred in the input original signal (the processed signal to be detected) and the start and end times of the event, and finally output a model-predicted event frame, and a model-predicted start frame and a model-predicted end frame corresponding to the model-predicted event frame.

[0113] The embodiment of the present invention utilizes a neural network model based on artificial intelligence, namely a sound detection model, to perform sound detection on sounds in factory production, thereby being able to automatically and “unmanned” perform efficient and accurate monitoring of various situations that may occur in the factory production process. At the same time, since the method does not require human intervention, sound detection no longer relies on experienced workers. On the one hand, this improves detection efficiency and lowers the detection threshold, and on the other hand, it does not cause damage to human hearing.

[0114] Embodiment 5

[0115] Figure 5 The fifth flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event comprises the following steps:

[0116] Step 502, for each event, the corresponding time of the start frame and the end frame of each model prediction event frame is compared with the frame time of the start frame and the end frame of the endpoint detection event frame corresponding to the event, and the model prediction event frame that overlaps with the endpoint detection event frame in frame time is determined as the result event frame;

[0117] Step 504: determine the detection result according to the result event frame.

[0118] In an embodiment of the present invention, each event frame in a plurality of model prediction event frames is traversed to determine whether any model prediction event frame has overlapping frame moments with an endpoint detection event frame. If there are two or more model prediction event frames that have overlapping frame moments with the same endpoint detection event frame, then it is considered that the two or more model prediction event frames belong to the same sound event, and then these model prediction event frames are integrated to achieve effective integration of "fragmented" events.

[0119] Specifically, for example, the endpoint detection event frame includes a total of 11 event frames from time 10 to time 20, the first model prediction event frame includes a total of 16 time frames from time 0 to time 15, and the second model prediction event frame includes a total of 16 time frames from time 14 to time 29. Since the first model predicted event frame and the endpoint detection event frame both contain time frames from time 10 to time 15, and the second model predicted event frame and the endpoint detection event frame both contain time frames from time 14 to time 20, the first model predicted event frame and the second model predicted event frame are integrated to obtain a complete third event frame from time 0 to time 29.

[0120] By effectively integrating the fragmented model prediction event frames based on whether the two event frames "overlap" with the same endpoint detection event frame, the final output detection results can be made more complete, thereby avoiding the situation of "fragmented" events and effectively improving the accuracy and completeness of sound detection.

[0121] Embodiment 6

[0122] In the embodiment of the present invention, for each event, when at least one of the following conditions is met, it can be determined that the frame time corresponding to the model prediction event frame overlaps with the frame time corresponding to the endpoint detection event frame. The specific conditions are as follows:

[0123] Condition 1: The first moment is earlier than or equal to the second moment, and the third moment is later than or equal to the second moment;

[0124] Condition 2: The first moment is later than or equal to the second moment, and the third moment is earlier than or equal to the fourth moment;

[0125] Condition 3: The first moment is earlier than or equal to the fourth moment, and the third moment is later than or equal to the fourth moment;

[0126] Condition 4: The first moment is earlier than or equal to the second moment, and the third moment is later than or equal to the fourth moment.

[0127] In an embodiment of the present invention, when determining whether two event frames have at least partial overlap, a simplified determination condition can be set based on the "endpoint" moments of different event frames, i.e., the moments corresponding to the start frame and the end frame, to determine whether the first event frame and the second event frame have partial overlap.

[0128] Specifically, the moment corresponding to the start frame predicted by the model is recorded as the first moment; the moment corresponding to the start frame of endpoint detection is recorded as the second moment; the moment corresponding to the end frame predicted by the model is recorded as the third moment; and the moment corresponding to the end frame of endpoint detection is recorded as the fourth moment.

[0129] If the first moment is earlier than or equal to the second moment and the third moment is later than or equal to the second moment, it is considered that the frame moments of the model prediction event frame and the endpoint detection event frame overlap at least partially.

[0130] If the first moment is later than the second moment, but the third moment is earlier than or lower than the fourth moment, it can also be considered that the frame moments of the model prediction event frame and the endpoint detection event frame are at least partially overlapped.

[0131] If the first moment is earlier than or equal to the fourth moment, and the third moment is later than the fourth moment, it is also considered that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0132] If the first moment is earlier than or equal to the second moment, and the third moment is later than the fourth moment, it can also be determined that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0133] By judging whether there is partial overlap between two different event frames based on the endpoints of each event frame, that is, the frame times of the start frame and the end frame, the calculation process can be effectively reduced, the requirements for system computing performance can be lowered, and at the same time, the effective regularization of event frames can be ensured, thereby improving the accuracy and completeness of sound detection.

[0134] Embodiment 7

[0135] Figure 6 The sixth flowchart of the method for detecting a sound event according to an embodiment of the present invention is shown. Specifically, the method for detecting a sound event comprises the following steps:

[0136] Step 602, determining the earliest prediction event start frame among all result event frames as the start frame of the detection result;

[0137] Step 604: determine the predicted event end frame with the latest time among all result event frames as the end frame of the detection result.

[0138] In the embodiment of the present invention, after a plurality of model prediction event frames having at least partial frame time overlaps with the endpoint detection event frame are uniformly regularized, an integrated complete result event frame is obtained, and the final detection result is determined according to the result event frame.

[0139] Specifically, firstly, the start frame and the end frame of the result event frame are obtained. Among all the event frames integrated and formed into the result event frame, the model predicted start frame with the earliest frame time is used as the result event start frame, and the model predicted end frame with the latest frame time is used as the result event end frame among all the model predicted event frames formed into the result event frame.

[0140] After determining the start frame and end frame of the result event frame, that is, the start and end time of the "sound event", determine the event type of the final output, that is, the event corresponding to the result event frame. Specifically, traverse all model prediction event frames that form the result event frame, determine the total frame length of each model prediction event frame, determine the event type (the event corresponding to it) of the model prediction event frame with the longest frame length as the event corresponding to the result event frame, and mark the event as the event type of the "event" of the final output.

[0141] Finally, the detection result is determined by the result event start frame (i.e. the start time of the event), the result event end frame (i.e. the end time of the event) and the result event corresponding to the result event frame (i.e. the final identified event type), and the detection result is output, thereby realizing automatic and "unmanned" efficient and accurate monitoring of various situations that may occur in the factory production process, which is conducive to managers to promptly grasp various events occurring in the factory.

[0142] Embodiment 8

[0143] Figure 7 FIG. 7 shows a flow chart of a method for detecting a sound event according to an embodiment of the present invention. Specifically, the method for detecting a sound event comprises the following steps:

[0144] Step 702, obtaining the energy and entropy corresponding to any signal frame, and calculating the energy-entropy ratio by a formula;

[0145] Step 704, normalize the calculated energy entropy ratio, and perform multiple median filtering processes on the normalized energy entropy ratio.

[0146] In the embodiment of the present invention, specifically, the energy entropy ratio can be calculated by the following formula:

[0147]

[0148] Among them, Efi is the energy entropy ratio, E i is the energy of the i-th frame, and E i =Σ j |Y j | 2 , H i is the entropy of the i-th frame, and H i =-∑ j p j logp j , p j =Y j / ∑ j |Y j |, Y j Represents the jth spectral line in the signal to be detected.

[0149] Calculating the energy entropy ratio of each signal frame through a formula is helpful to more accurately determine whether a signal frame is an event frame, thereby improving the detection accuracy of sound events.

[0150] After calculating the energy entropy ratio corresponding to each signal frame, the energy entropy ratios of all signal frames are normalized and subjected to multiple median filtering. This can effectively remove the influence of signal noise and make the obtained energy entropy ratio more accurate, which is conducive to more accurately judging whether a signal frame is an event frame, thereby further improving the detection accuracy of sound events.

[0151] In some embodiments of the present invention, the neural network model includes: a convolutional-recurrent neural network, a convolutional neural network, a recurrent neural network, a hidden Markov model, a Gaussian mixture model or a support vector machine.

[0152] In order to adapt to a variety of application environments, when identifying sound events, any one of a convolutional-recurrent neural network, a convolutional neural network, a recursive neural network, a hidden Markov model, a Gaussian mixture model or a support vector machine can be used as the applied neural network model, or multiple of the above neural network models can be selected to form a "multi-level" neural network model. The embodiment of the present invention does not limit the specific form of the neural network model.

[0153] In some embodiments of the present invention, the feature extraction method includes: Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, equivalent rectangular bandwidth domain (Erb, Equvivalent rectangular bandwidth) energy spectrum extraction method or gammatone cepstral coefficient extraction method.

[0154] When extracting features from the signal frames after framing, any one of the feature extraction methods, such as Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, Erb domain energy spectrum extraction method or Gammatone cepstral coefficient extraction method, can be selected according to different sound environments or in particular for different types of sound events to convert the one-dimensional sound signal into a two-dimensional feature map. The embodiment of the present invention does not limit the specific type of feature extraction method.

[0155] Embodiment 9

[0156] In some embodiments of the present invention, examples are given from the perspective of practical application to fully illustrate the embodiments of the present invention.

[0157] Specifically, sound event detection refers to identifying the categories of various events in sound signals and the start and end times of the events, so as to make corresponding decisions. In the actual production process of the factory, sound quality inspection of products is a very important link. For example, when workers test the washing machine by powering it on, they monitor the sound of the whole machine to determine whether the product has quality problems, such as the heating tube is not stuck in the bracket or the motor screws are not tightened. This traditional manual sound quality inspection method is inefficient and can easily cause damage to human hearing.

[0158] The embodiment of the present invention proposes to apply a sound event detection algorithm to automatically identify sound signals to determine whether a specific "event" has occurred. The sound event detection algorithm mainly has two processing steps:

[0159] 1. Use the technology in the field of signal processing to convert the one-dimensional sound signal into a two-dimensional feature map, such as the Mel energy spectrum feature;

[0160] 2. Use deep learning algorithms, such as convolutional-recurrent neural network models, to identify the event information contained in the two-dimensional sound feature map and output event categories and time labels.

[0161] The training process of the neural network mainly includes two steps: one is to use the convolutional neural network to learn the effective local information of the feature map, which is mainly used for event classification; the other is to use the recursive neural network to learn the context information between time frames, which is mainly used to determine the time label.

[0162] The embodiment of the present invention further utilizes endpoint detection technology to perform event regularization on the output results of the convolutional-recurrent neural network to solve the problem of event fragmentation.

[0163] The detection of sound events requires the application of a corresponding neural network model, which is hereinafter referred to as a sound detection model. To obtain the sound detection model, generally two steps of training and testing are required to determine whether the obtained model meets the requirements.

[0164] Figure 8 The figure shows a schematic diagram of the logic of generating a sound detection model according to an embodiment of the present invention, wherein the training process mainly includes the following steps:

[0165] 1. Collect sound signals as training sets, divide each sound sample into frames with a frame length of 40ms and an overlap of 20ms, and add a Hamming window operation;

[0166] 2. Extract features of sound signals based on Mel energy spectrum and establish a two-dimensional feature map;

[0167] 3. Build a convolutional-recursive neural network model and import the two-dimensional feature map training set for training;

[0168] 4. Training is completed and the parameters of the convolutional-recurrent neural network model are saved.

[0169] The testing process includes the following steps:

[0170] 1. Collect sound signals as test sets, divide each sound sample into frames with a frame length of 40ms and an overlap of 20ms, and add a Hamming window operation;

[0171] 2. Perform endpoint detection on the sound signal based on the energy entropy ratio to obtain endpoint information of the sound event, which specifically includes the following steps:

[0172] 1) Perform short-time Fourier transform on the framed signal to obtain the time-frequency diagram of the sound signal;

[0173] 2) Calculate the energy and entropy of each frame signal to obtain the energy-entropy ratio Efi of each frame. The calculation formula is as follows:

[0174]

[0175] Among them, Efi is the energy entropy ratio, E i is the energy of the i-th frame, and E i =∑ j |Y j | 2 , H i is the entropy of the i-th frame, and H i =-∑ j p j logp j , p j =Y j / ∑ j |Y j |, Y j Represents the jth spectral line in the signal to be detected.

[0176] 3) Normalize the energy entropy ratio of all frames and perform multiple median filtering to eliminate the influence of noise;

[0177] 4) Set a threshold a (the default value is 0.2). Frames with an energy entropy ratio greater than the threshold are considered event frames, otherwise they are considered non-event frames, and record the start and end frames of each event;

[0178] 3. Extract features of sound signals based on Mel energy spectrum and establish a two-dimensional feature map;

[0179] 4. Read the parameters of the convolutional-recurrent neural network model, import the two-dimensional feature map test set, and obtain the event results predicted by the model;

[0180] 5. Combine the event results predicted by the model with the endpoint information obtained in step 2 to perform event regularization, obtain the final prediction results and output them, which specifically includes the following steps:

[0181] 1) Based on the event frames obtained by endpoint detection, find all model prediction event frames that meet the four conditions:

[0182] Fig. 9 An example diagram showing the relationship between an unintegrated model prediction event frame and an endpoint detection event frame according to an embodiment of the present invention is shown;

[0183] m≤a and n≥a, such as Fig. 9 The model predicts event frame 1;

[0184] m≥a and n≤b, such as Fig. 9 The model predicts event frame 2;

[0185] m≤b and n≥b, such as Fig. 9 The model predicts event frame 3;

[0186] m≤a and n≥b, such as Fig. 9 The model predicts event frame 4;

[0187] Among them, m and n are the start frame and end frame of the model prediction event frame, and a and b are the start frame and end frame of the endpoint detection event frame.

[0188] 2) Fig.10 The figure shows the relationship between the integrated model prediction event frame and the endpoint detection event frame according to the embodiment of the present invention. The total frame length of all model prediction event frames of the same category is counted, and the event class with the longest total frame length is taken as the recognition result class, such as Fig.10 Medium Category 1;

[0189] Take all model prediction event frames classified as recognition result classes, the first frame is the start frame of the result, and the last frame is the end frame of the result, such as Fig.10 As shown, the frame result is converted into a time result output.

[0190] Fig.11 A corresponding diagram of sound signals and sound event detection according to an embodiment of the present invention is shown, wherein the event fragmentation problem occurring in the sound event detection algorithm is solved to a certain extent by integrating the fragmented model prediction event frames, thereby improving the accuracy of event recognition and facilitating later practical applications.

[0191] Embodiment 10

[0192] Fig.12A structural block diagram of a sound event detection device according to an embodiment of the present invention is shown, and the sound event detection device 1200 includes: a determination module 1202, used to respectively determine the endpoint detection event frame of at least one event in the signal to be detected; a detection module 1204, used to determine at least one model prediction event frame for each event in the signal to be detected; the determination module 1202 is also used to compare at least one model prediction event frame with the endpoint detection event frame for each event to determine the detection result of each event.

[0193] In an embodiment of the present invention, through the endpoint detection method, it is possible to identify an endpoint detection event frame corresponding to at least one "event" in the signal to be detected, and through artificial intelligence algorithms and other means, one or more model prediction event frames under each "event" can be predicted in the signal to be detected.

[0194] After determining the endpoint detection event frame and the model prediction event frame, the two are further compared to integrate multiple "fragmented" model prediction event frames to obtain the detection result corresponding to each event and output the detection result.

[0195] Among them, an "event" can be an accident sound event caused by a production accident, such as accident sounds such as objects falling and glass breaking, or it can be noise of quality problems in the products produced, such as screws not being tightened (when the screws are not tightened, the product may make specific noises during test operation), the heating tube not being stuck in the bracket (when the heating tube is loose, specific noises may be generated due to the movement of the heating tube), etc. It can also be other sounds occurring in normal production activities of the factory, such as conversations between personnel, noises during normal operation of machines, work bells or other alarm sounds, etc. The embodiment of the present invention does not limit the specific type of "event" in the sound signal.

[0196] The embodiment of the present invention determines the detection result of each event based on the comparison results between the endpoint detection event frame and the model prediction event frame, thereby realizing the integration of multiple model prediction event frames, solving the problem of event fragmentation, and effectively improving the accuracy and completeness of sound event detection and recognition.

[0197] In some embodiments of the present invention, the determination module 1202 is also used to respectively determine the endpoint detection event frame of at least one event in the signal to be detected, and determine the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame; through the neural network model, determine at least one model prediction event frame of each event in the signal to be detected, and the model prediction start frame and the model prediction end frame of each model prediction event frame of each event.

[0198] Among them, the pre-trained sound detection model can be used to pick up the acquired signal to be detected, such as the sound generated by the sound pickup device such as a microphone during the production process of the factory, and then obtain the analog signal or digital signal of the sound during the factory production. Through the sound detection model, the signal to be detected can be sound detected and analyzed, and then at least one event contained in the sound signal can be determined.

[0199] After an event is determined in the signal to be detected by the sound detection model, at least one endpoint detection event frame and at least one model prediction event frame are continuously detected under each determined event. The endpoint detection event frame and the model prediction event frame can be one of a plurality of signal frames obtained by framing a segment of an audio signal by a framing method. When the sound detection model determines that an event has occurred at the time corresponding to the signal frame, or the energy entropy ratio based on the signal frame is greater than a threshold, the signal frame is determined as an event frame.

[0200] After determining the event frame, detect the start frame and end frame of each signal frame, namely the endpoint detection start frame, endpoint detection end frame, model prediction start frame and model prediction end frame. The "start frame" and "end frame" represent the "starting point" and "end point" of an event frame, namely the initial moment when the event occurs and the final moment when the event ends. According to the start frame and the end frame, the event frame is regularized, and the "fragmented" event fragments can be effectively integrated to finally determine the complete and accurate detection results of the "event" to which each model prediction event frame belongs. For example: "A loose screw event was detected from 16:00 to 16:01".

[0201] The technical solution provided by the present invention is applied, and a neural network model based on artificial intelligence, namely a sound detection model, is used to detect sounds in factory production, so that various situations that may occur in the factory production process can be automatically and "unmanned" to efficiently and accurately monitor. At the same time, since the method does not require human intervention, sound detection is no longer dependent on experienced workers. On the one hand, the detection efficiency is improved and the detection threshold is lowered. On the other hand, it will not cause damage to human hearing. At the same time, through endpoint detection, the start frame and the end frame of the event frame are identified. Through the start frame and the end frame of each event frame, the "fragmented" multiple event frames are effectively regularized, which solves the problem of event fragmentation and effectively improves the accuracy and completeness of sound event detection and recognition.

[0202] In some embodiments of the present invention, the sound event detection device 1200 also includes: a framing module 1206, which is used to frame the signal to be detected to obtain multiple signal frames; the determination module 1202 is also used to determine the energy entropy ratio of any signal frame, and determine the signal frame with an energy entropy ratio greater than an energy entropy ratio threshold as an endpoint detection event frame; and determine the earliest frame in the endpoint detection event frame as the endpoint detection start frame, and the latest frame in the endpoint detection event frame as the endpoint detection end frame.

[0203] In an embodiment of the present invention, the signal to be detected is first framed to obtain a signal frame of a certain length, wherein each signal frame is a sound sample, and there may be partial overlap between two adjacent signal frames. Among them, the frame length (duration of the sound sample) and the overlapping length of the signal frame can be adjusted according to the specific application scenario. For example, the signal frame can be 40ms long, and the overlap between two adjacent signal frames is 20ms. It can be understood that the above frame length and overlapping frame length are only used as examples for illustration, and the embodiment of the present invention does not limit the length and overlapping length of the signal frame.

[0204] After obtaining multiple signal frames through framing, the energy entropy ratio of each signal frame is further determined. If it is determined that the energy entropy ratio of a signal frame is greater than the energy entropy ratio threshold, the current signal frame can be identified as an endpoint detection event frame, and a certain "event" has occurred in this endpoint detection event frame. Then, the "endpoint" of the endpoint detection event frame is judged. Specifically, the earliest frame in an endpoint detection event frame (the earliest time frame in the frame time) is the endpoint detection start frame of the endpoint detection event frame. Correspondingly, the latest frame in an endpoint detection event frame (the latest event frame in the frame time) is the endpoint detection end frame of the endpoint detection event frame.

[0205] Whether an "event" has occurred in a sound segment is determined by dividing the segment into frames and calculating the energy entropy ratio of each segment. Endpoint detection is further performed on the frames where the event has occurred to obtain endpoint detection event frames. This can effectively and accurately determine the start and end times of the event, which is conducive to improving the accuracy of sound event detection.

[0206] In some embodiments of the present invention, the sound event detection device 1200 also includes: an extraction module 1208, which is used to perform windowing processing on the signal frame through a window function, and perform feature extraction on the windowed signal frame through a feature extraction method to obtain a corresponding two-dimensional feature map; a processing module 1210, which is used to input the two-dimensional feature map into the neural network model, and obtain the model prediction event frame output by the neural network model, as well as the model prediction start frame and the model prediction end frame.

[0207] In the embodiment of the present invention, before the signal to be detected is input into the neural network model, the signal frame obtained after framing is first windowed by a preset window function. The window function may be a rectangular window or a non-rectangular window, such as a Hamming window, a Hanning window, etc. The embodiment of the present invention does not limit the specific type of the window function.

[0208] After the windowing process, the feature extraction method is further used to extract features from the windowed signal frame to obtain a two-dimensional feature map. The two-dimensional feature map is used as the original signal and input into the trained neural network model. The neural network model can use artificial intelligence to identify whether an event has occurred in the input original signal (the processed signal to be detected) and the start and end time of the event. Finally, the model predicted event frame is output, and the model predicted start frame and model predicted end frame corresponding to the model predicted event frame.

[0209] The embodiment of the present invention utilizes a neural network model based on artificial intelligence, namely a sound detection model, to perform sound detection on sounds in factory production, thereby being able to automatically and “unmanned” perform efficient and accurate monitoring of various situations that may occur in the factory production process. At the same time, since the method does not require human intervention, sound detection no longer relies on experienced workers. On the one hand, this improves detection efficiency and lowers the detection threshold, and on the other hand, it does not cause damage to human hearing.

[0210] In some embodiments of the present invention, the determination module 1202 is also used to: for each event, based on the existence of at least two model prediction event frames corresponding to frame times that at least partially overlap with the corresponding frame times in the endpoint detection event frame, integrate the at least two model prediction event frames into a result event frame, until the frame times corresponding to all model prediction event frames in at least one model prediction event frame do not overlap with the frame times of the endpoint detection event frame; and determine the detection result based on the result event frame.

[0211] In an embodiment of the present invention, each event frame in a plurality of model prediction event frames is traversed to determine whether any model prediction event frame has overlapping frame moments with an endpoint detection event frame. If there are two or more model prediction event frames that have overlapping frame moments with the same endpoint detection event frame, then it is considered that the two or more model prediction event frames belong to the same sound event, and then these model prediction event frames are integrated to achieve effective integration of "fragmented" events.

[0212] Specifically, for example, the endpoint detection event frame includes a total of 11 event frames from time 10 to time 20, the first model prediction event frame includes a total of 16 time frames from time 0 to time 15, and the second model prediction event frame includes a total of 16 time frames from time 14 to time 29. Since the first model predicted event frame and the endpoint detection event frame both contain time frames from time 10 to time 15, and the second model predicted event frame and the endpoint detection event frame both contain time frames from time 14 to time 20, the first model predicted event frame and the second model predicted event frame are integrated to obtain a complete third event frame from time 0 to time 29.

[0213] By effectively integrating the fragmented model prediction event frames based on whether the two event frames "overlap" with the same endpoint detection event frame, the final output detection results can be made more complete, thereby avoiding the situation of "fragmented" events and effectively improving the accuracy and completeness of sound detection.

[0214] In some embodiments of the present invention, at least one model prediction event frame is compared with an endpoint detection event frame, specifically including: for each event, based on the first moment corresponding to the model prediction start frame being earlier than or equal to the second moment corresponding to the endpoint detection start frame, and the third moment corresponding to the model prediction end frame being later than or equal to the second moment; or based on the first moment being later than or equal to the second moment, and the third moment being earlier than or equal to the fourth moment corresponding to the endpoint detection end frame; or based on the first moment being earlier than or equal to the fourth moment, and the third moment being later than or equal to the fourth moment; or based on the first moment being earlier than or equal to the second moment, and the third moment being later than or equal to the fourth moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame.

[0215] In an embodiment of the present invention, when determining whether two event frames have at least partial overlap, a simplified determination condition can be set based on the "endpoint" moments of different event frames, i.e., the moments corresponding to the start frame and the end frame, to determine whether the first event frame and the second event frame have partial overlap.

[0216] Specifically, the moment corresponding to the start frame predicted by the model is recorded as the first moment; the moment corresponding to the start frame of endpoint detection is recorded as the second moment; the moment corresponding to the end frame predicted by the model is recorded as the third moment; and the moment corresponding to the end frame of endpoint detection is recorded as the fourth moment.

[0217] If the first moment is earlier than or equal to the second moment and the third moment is later than or equal to the second moment, it is considered that the frame moments of the model prediction event frame and the endpoint detection event frame overlap at least partially.

[0218] If the first moment is later than the second moment, but the third moment is earlier than or lower than the fourth moment, it can also be considered that the frame moments of the model prediction event frame and the endpoint detection event frame are at least partially overlapped.

[0219] If the first moment is earlier than or equal to the fourth moment, and the third moment is later than the fourth moment, it is also considered that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0220] If the first moment is earlier than or equal to the second moment, and the third moment is later than the fourth moment, it can also be determined that the frame moments of the model prediction event frame and the endpoint detection event frame at least partially overlap with each other.

[0221] By judging whether there is partial overlap between two different event frames based on the endpoints of each event frame, that is, the frame times of the start frame and the end frame, the calculation process can be effectively reduced, the requirements for system computing performance can be lowered, and at the same time, the effective regularization of event frames can be ensured, thereby improving the accuracy and completeness of sound detection.

[0222] In some embodiments of the present invention, the determination module 1202 is also used to: determine the earliest model prediction start frame among all model prediction event frames that will become result event frames as the result event start frame of the result event frame; determine the latest model prediction end frame among all model prediction event frames that will become result event frames as the result event end frame of the result event frame; and determine the event corresponding to the model prediction event frame with the longest frame length among all model prediction event frames that will become result event frames as the result event corresponding to the result event frame; and determine the result event start frame, the result event end frame and the result event frame as the detection results.

[0223] In the embodiment of the present invention, after a plurality of model prediction event frames having at least partial frame time overlaps with the endpoint detection event frame are uniformly regularized, an integrated complete result event frame is obtained, and the final detection result is determined according to the result event frame.

[0224] Specifically, firstly, the start frame and the end frame of the result event frame are obtained. Among all the event frames integrated and formed into the result event frame, the model predicted start frame with the earliest frame time is used as the result event start frame, and the model predicted end frame with the latest frame time is used as the result event end frame among all the model predicted event frames formed into the result event frame.

[0225] After determining the start frame and end frame of the result event frame, that is, the start and end time of the "sound event", determine the event type of the final output, that is, the event corresponding to the result event frame. Specifically, traverse all model prediction event frames that form the result event frame, determine the total frame length of each model prediction event frame, determine the event type (the event corresponding to it) of the model prediction event frame with the longest frame length as the event corresponding to the result event frame, and mark the event as the event type of the "event" of the final output.

[0226] Finally, the detection result is determined by the result event start frame (i.e. the start time of the event), the result event end frame (i.e. the end time of the event) and the result event corresponding to the result event frame (i.e. the final identified event type), and the detection result is output, thereby realizing automatic and "unmanned" efficient and accurate monitoring of various situations that may occur in the factory production process, which is conducive to managers to promptly grasp various events occurring in the factory.

[0227] In some embodiments of the present invention, the energy entropy ratio may be calculated by the following formula:

[0228]

[0229] Among them, Efi is the energy entropy ratio, E i is the energy of the i-th frame, and E i =∑ j |Y j | 2 , H i is the entropy of the i-th frame, and H i =-∑ j p j logp j , p j =Y j / ∑ j |Y j |, Y j Represents the jth spectral line in the signal to be detected.

[0230] Calculating the energy entropy ratio of each signal frame through a formula is helpful to more accurately determine whether a signal frame is an event frame, thereby improving the detection accuracy of sound events.

[0231] In some embodiments of the present invention, the processing module 1210 is further used to: normalize the energy entropy ratio, and perform median filtering on the normalized energy entropy ratio.

[0232] In an embodiment of the present invention, after calculating the energy entropy ratio corresponding to each signal frame, the energy entropy ratios of all signal frames are normalized and subjected to multiple median filtering, which can effectively remove the influence of signal noise and make the obtained energy entropy ratio more accurate, which is conducive to more accurately judging whether a signal frame is an event frame, thereby further improving the detection accuracy of sound events.

[0233] In some embodiments of the present invention, the neural network model includes: convolution-recursive neural network, convolutional neural network, recursive neural network, hidden Markov model, Gaussian mixture model or support vector machine. The feature extraction method includes: Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, Erb domain energy spectrum extraction method or Gammatone cepstral coefficient extraction method.

[0234] In order to adapt to a variety of application environments, when identifying sound events, any one of a convolutional-recurrent neural network, a convolutional neural network, a recursive neural network, a hidden Markov model, a Gaussian mixture model or a support vector machine can be used as the applied neural network model, or multiple of the above neural network models can be selected to form a "multi-level" neural network model. The embodiment of the present invention does not limit the specific form of the neural network model.

[0235] When extracting features from the signal frames after framing, any one of the feature extraction methods, such as Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, Erb domain energy spectrum extraction method or Gammatone cepstral coefficient extraction method, can be selected according to different sound environments or in particular for different types of sound events to convert the one-dimensional sound signal into a two-dimensional feature map. The embodiment of the present invention does not limit the specific type of feature extraction method.

[0236] Embodiment 11

[0237] Fig.13 A structural block diagram of a computer device according to an embodiment of the present invention is shown, and the computer device 1300 includes: a memory 1302, on which a computer program is stored; a processor 1304, which is configured to implement the steps of the sound event detection method provided in any of the above embodiments when running the computer program. Therefore, the computer device 1300 also includes all the beneficial effects of the sound event detection method provided in any of the above embodiments, which will not be repeated here.

[0238] Embodiment 12

[0239] In some embodiments of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it can implement the steps of the sound event detection method provided in any of the above embodiments. Therefore, the computer-readable storage medium also includes all the beneficial effects of the sound event detection method provided in any of the above embodiments, which will not be repeated here.

[0240] Embodiment 13

[0241] Fig.14 The structure block diagram of the electronic device according to the embodiment of the present invention is shown, and the electronic device 1500 includes but is not limited to: a radio frequency unit 1502, a network module 1504, an audio output unit 1506, an input unit 1508, a sensor 1510, a display unit 1512, a user input unit 1514, an interface unit 1516, a memory 1518, a processor 1520, and a power supply 1522. Those skilled in the art can understand that Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present application, the electronic device includes but is not limited to a mobile terminal, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, and a pedometer.

[0242] At the same time, the processor 1520 can run the computer program on the memory 1518 to implement the steps of the method in any of the above embodiments. Therefore, the electronic device also includes all the beneficial effects of any of the above embodiments, which will not be repeated here.

[0243] It should be understood that in the embodiment of the present application, the radio frequency unit 1502 can be used to send and receive information or send and receive signals during a call, specifically, receive downlink data from a base station or send uplink data to a base station. The radio frequency unit 1502 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

[0244] The network module 1504 provides users with wireless broadband Internet access, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0245] The audio output unit 1506 can convert the audio data received by the RF unit 1502 or the network module 1504 or stored in the memory 1518 into an audio signal and output it as sound. In addition, the audio output unit 1506 can also provide audio output related to a specific function performed by the electronic device 1500 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1506 includes a speaker, a buzzer, a receiver, etc.

[0246] The input unit 1508 is used to receive audio or video signals. The input unit 1508 may include a graphics processing unit (GPU) 5082 and a microphone 5084. The graphics processor 5082 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1512, or stored in the memory 1518 (or other storage medium), or sent via the radio frequency unit 1502 or the network module 1504. The microphone 5084 can receive sound and can process the sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1502 in the case of a telephone call mode.

[0247] The electronic device 1500 also includes at least one sensor 1510, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and other sensors.

[0248] The display unit 1512 is used to display information input by the user or information provided to the user. The display unit 1512 may include a display panel 5122, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.

[0249] The user input unit 1514 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1514 includes a touch panel 5142 and other input devices 5144. The touch panel 5142 is also called a touch screen, which can collect the user's touch operations on or near it. The touch panel 5142 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into contact coordinates, and then sends it to the processor 1520, receives the command sent by the processor 1520 and executes it. Other input devices 5144 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

[0250] Further, the touch panel 5142 may be covered on the display panel 5122. When the touch panel 5142 detects a touch operation on or near it, it is transmitted to the processor 1520 to determine the type of the touch event, and then the processor 1520 provides a corresponding visual output on the display panel 5122 according to the type of the touch event. The touch panel 5142 and the display panel 5122 may be two independent components or integrated into one component.

[0251] The interface unit 1516 is an interface for connecting an external device to the electronic device 1500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / 0) port, a video I / 0 port, a headphone port, etc. The interface unit 1516 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1500 or may be used to transmit data between the electronic device 1500 and an external device.

[0252] The memory 1518 can be used to store software programs and various data. The memory 1518 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 1518 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0253] The processor 1520 performs various functions of the electronic device 1500 and processes data by running or executing software programs and / or modules stored in the memory 1518 and calling data stored in the memory 1518, thereby monitoring the electronic device 1500 as a whole. The processor 1520 may include one or more processing units; preferably, the processor 1520 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications.

[0254] The electronic device 1500 may further include a power supply 1522 for supplying power to various components. Preferably, the power supply 1522 may be logically connected to the processor 1520 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0255] In one embodiment of the present application, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the function switching method provided in any of the above embodiments are implemented.

[0256] In this embodiment, the readable storage medium can implement each process of the function switching method provided in the embodiment of the present application and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0257] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0258] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned function switching method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0259] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0260] In the description of the present invention, the term "plurality" refers to two or more than two. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper" and "lower" is based on the orientation or positional relationship described in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0261] In the description of the present invention, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0262] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for detecting a sound event, It is characterized in that include: Determine an endpoint detection event frame of at least one event in the signal to be detected; Determining at least one model prediction event frame for each of the events in the signal to be detected; For each of the events, comparing the at least one model prediction event frame with the endpoint detection event frame to determine a detection result of each of the events; The endpoint detection event frame for respectively determining at least one event in the signal to be detected specifically includes: Determine the endpoint detection event frame of at least one of the events in the signal to be detected, and determine the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame; and Determining at least one model prediction event frame for each of the events in the signal to be detected specifically includes: Determine, by means of a neural network model, at least one model predicted event frame of each of the events in the signal to be detected, and determine a model predicted start frame and a model predicted end frame of each of the model predicted event frames of each of the events; Based on the existence of at least two model prediction event frames, comparing the at least one model prediction event frame with the endpoint detection event frame to determine the detection result of each event specifically includes: For each of the events, the corresponding moments of the start frame and the end frame of each of the model prediction event frames are compared with the frame moments of the start frame and the end frame of the endpoint detection event frame corresponding to the event, and the model prediction event frame that overlaps with the endpoint detection event frame in frame moment is determined as the result event frame; The detection result is determined according to the result event frame.

2. The method for detecting a sound event according to claim 1, It is characterized in that The step of respectively determining the endpoint detection event frame of at least one of the events in the signal to be detected, and determining the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame, specifically includes: Framing the signal to be detected to obtain multiple signal frames, and performing windowing processing; Calculating the energy entropy ratio of any signal frame, and determining the signal frame whose energy entropy ratio is greater than the energy entropy ratio threshold as the endpoint detection event frame; and The earliest frame in the endpoint detection event frame is used as the endpoint detection start frame, and the latest frame in the endpoint detection event frame is used as the endpoint detection end frame.

3. The method for detecting a sound event according to claim 2, It is characterized in that Determining at least one model prediction event frame for each of the events in the signal to be detected specifically includes: Performing feature extraction on the signal frame after windowing by a feature extraction method to obtain a corresponding two-dimensional feature map; The two-dimensional feature map is input into the neural network model, and the model prediction event frame, the model prediction start frame and the model prediction end frame output by the neural network model are obtained.

4. The method for detecting a sound event according to claim 1, It is characterized in that The overlap specifically includes: For each of the events, based on the first moment corresponding to the model-predicted start frame being earlier than or equal to the second moment corresponding to the endpoint detection start frame, and the third moment corresponding to the model-predicted end frame being later than or equal to the second moment, it is determined that the frame moment corresponding to the model-predicted event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or Based on the fact that the first moment is later than or equal to the second moment, and the third moment is earlier than or equal to the fourth moment corresponding to the endpoint detection end frame, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or Based on the fact that the first moment is earlier than or equal to the fourth moment, and the third moment is later than or equal to the fourth moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame; or Based on the fact that the first moment is earlier than or equal to the second moment, and the third moment is later than or equal to the fourth moment, it is determined that the frame moment corresponding to the model prediction event frame overlaps with the frame moment corresponding to the endpoint detection event frame.

5. The method for detecting a sound event according to claim 1, It is characterized in that The step of determining the detection result according to the result event frame specifically includes: Determining the earliest predicted event start frame among all the result event frames as the start frame of the detection result; and The predicted event end frame with the latest time among all the result event frames is determined as the end frame of the detection result.

6. The method for detecting a sound event according to claim 2, It is characterized in that Determining the energy entropy ratio of any signal frame specifically includes: Obtain energy and entropy corresponding to any one of the signal frames, calculate an absolute value of the ratio of the energy to the entropy, and determine the energy-entropy ratio according to the absolute value.

7. The method for detecting a sound event according to claim 6, It is characterized in that After determining the energy entropy ratio according to the absolute value, the method for detecting a sound event further includes: The energy entropy ratio is normalized, and the normalized energy entropy ratio is subjected to median filtering.

8. The method for detecting a sound event according to any one of claims 1 to 3, It is characterized in that The neural network model includes: Convolutional-Recurrent Neural Network, Convolutional Neural Network, Recurrent Neural Network, Hidden Markov Model, Gaussian Mixture Model, or Support Vector Machine.

9. The method for detecting a sound event according to claim 3, It is characterized in that The feature extraction method comprises: Mel energy spectrum feature extraction method, short-time Fourier transform extraction method, Mel cepstral coefficient extraction method, Bark domain energy spectrum extraction method, equivalent rectangular bandwidth domain energy spectrum extraction method or gammatone cepstral coefficient extraction method.

10. A device for detecting a sound event, It is characterized in that include: A determination module, used to respectively determine an endpoint detection event frame of at least one event in the signal to be detected; A detection module, configured to determine at least one model prediction event frame for each of the events in the signal to be detected; The determination module is further used to compare the at least one model prediction event frame with the endpoint detection event frame for each of the events to determine a detection result of each of the events; The determination module is further used to respectively determine the endpoint detection event frame of at least one of the events in the signal to be detected, and determine the endpoint detection start frame and the endpoint detection end frame of the endpoint detection event frame; And determining at least one model prediction event frame of each of the events in the signal to be detected by a neural network model, and determining a model prediction start frame and a model prediction end frame of each of the model prediction event frames of each of the events; The determination module is specifically used to integrate at least two model prediction event frames into a result event frame for each of the events, based on the existence of frame times corresponding to at least two model prediction event frames, both of which at least partially overlap with the corresponding frame times in the endpoint detection event frame, and determine the detection result based on the result event frame.

11. A computer device, It is characterized in that include: a memory having a computer program stored thereon; A processor is configured to implement the method for detecting a sound event according to any one of claims 1 to 9 when running the computer program.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for detecting a sound event according to any one of claims 1 to 9 is implemented.

13. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the method for detecting a sound event according to any one of claims 1 to 9 through the computer program.

Citation Information

Patent Citations

  • End point detection method and system of voice identification system

    CN105118502A

  • Video semantic scene segmentation method based on convolutional neural network

    CN107590442A