Sound event detection and positioning method, device, equipment, medium and program product
By extracting video and audio features and performing fusion processing, combined with the Mixup data enhancement method and multi-modal network, the problem of low accuracy of sound event detection and positioning in the existing technology is solved, and higher accuracy and precision are achieved.
Patent Information
- Application Number
- CN202410669554.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-17
AI Technical Summary
In scenes with high noise, strong reverberation, and high aliasing rates, the existing technology has low accuracy in detecting and locating sound events. In particular, the detection and positioning performance of multiple moving sound sources is insufficient, and audio and video modalities are combined. The solution has accuracy and error problems.
By acquiring video data and audio data, extracting visual features and audio features, and performing fusion processing, the sound event detection and localization model trained using Mixup data enhancement method, combined with residual neural network, Conformer network and gated multi-modal unit, Improve the generalization and robustness of the model.
It improves the accuracy and precision of sound event detection and positioning, can handle multiple categories of sound events more effectively, and enhances the model's ability to process multi-modal data.
Smart Images

Figure CN118656778A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a sound event detection and positioning method, device, equipment, medium and program product. Background Art
[0002] Sound Event Localization and Detection (SELD) is to detect the onset and offset of a specific sound event over time, while tracking its spatial position or direction of arrival (DOA) during the active period. The acquired spatiotemporal information can be widely used in different machine cognitive tasks, such as self-localization, smart home applications, and audio monitoring. SELD consists of two subtasks: Sound Event Detection (SED) and Sound Source Localization (SSL). There are currently a variety of modeling schemes for such tasks. The audio is input into the modeling scheme to perform the two subtasks, and then the corresponding sound events and sound source localization are obtained. However, these existing modeling schemes only use audio to detect and locate multiple moving sound sources when facing scenes with high noise, strong reverberation, and high aliasing rates. There is a lack of performance, resulting in low accuracy in the detection and positioning of sound events.
[0003] With the rapid development of multimodal technology, there are solutions that combine audio and video modalities to better deal with the problem of sound source detection and localization, but most audio-visual detection and localization tasks are currently focused on localizing sound sources within the video screen. For example, in a typical public large-scale audio-visual event localization (AVE) dataset and corresponding research, there are audio-visual event localization tasks that aim to classify each video clip, and cross-modal localization tasks that locate event positions based on given visual or auditory queries, where audio-visual events refer to events that are both audible and visible in video clips. However, the combination of audio and video modalities still has precision and error problems, resulting in low accuracy in the detection and localization of sound events. Summary of the invention
[0004] The present invention provides a sound event detection and positioning method, device, equipment, medium and program product, which are used to solve the defect of low accuracy in the detection and positioning of sound events in the prior art, and improve the accuracy of the detection and positioning of sound events.
[0005] The present invention provides a method for detecting and locating a sound event, comprising:
[0006] Acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0007] extracting visual features based on the video data, and extracting audio features based on the audio data;
[0008] fusing the visual features and the audio features to obtain target features;
[0009] The target features are input into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
[0010] According to a sound event detection and positioning method provided by the present invention, the extracting of visual features based on the video data comprises:
[0011] Based on the video data, extract a plurality of target video frames, and detect target portraits in the plurality of target video frames;
[0012] A mouth region of the target person portrait in the target video frame is determined, and the visual feature is determined based on the mouth region.
[0013] According to a sound event detection and positioning method provided by the present invention, the determining of the visual feature based on the mouth area comprises:
[0014] Determine a first vector for a first coordinate axis and a second vector for a second coordinate axis based on the pixel coordinates of the mouth region;
[0015] The visual feature is determined based on the first vector and the second vector.
[0016] According to a sound event detection and positioning method provided by the present invention, the fusion processing of the visual features and the audio features to obtain the target features includes:
[0017] Processing the visual feature based on the time dimension of the audio feature so that the processed visual feature has the same time dimension as the audio feature;
[0018] The audio feature and the processed visual feature are fused through a gated multimodal unit to obtain the target feature.
[0019] According to a sound event detection and positioning method provided by the present invention, the sound event detection and positioning model includes a residual neural network, a Conformer network, a sound event detection module and a sound event positioning module, and the residual neural network, the sound event detection module and the sound event positioning module are respectively connected to the Conformer network.
[0020] According to a sound event detection and positioning method provided by the present invention, the training process of the sound event detection and positioning model includes:
[0021] During the training process, determining at least one group of sample data from the multiple groups of sample data as target sample data;
[0022] Determine one of the multiple network layers of the residual neural network as a target network layer, and send the target sample data to the residual neural network, and process it in turn through each of the network layers until it reaches the target network layer, and obtain output data processed by the target network layer;
[0023] Performing data enhancement processing on the output data by using the Mixup data enhancement method to obtain enhanced sample data;
[0024] The enhanced sample data is input to the network layer after the target network layer for processing.
[0025] The present invention also provides a sound event detection and positioning device, comprising:
[0026] An acquisition module, configured to acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0027] an extraction module configured to extract visual features based on the video data and extract audio features based on the audio data;
[0028] A fusion processing module, configured to perform fusion processing on the visual feature and the audio feature to obtain a target feature;
[0029] A processing module is configured to input the target features into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method. It includes:
[0030] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned sound event detection and positioning methods is implemented.
[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the sound event detection and positioning method as described in any one of the above is implemented.
[0032] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the sound event detection and positioning method as described above is implemented.
[0033] The sound event detection and positioning method, device, equipment, medium and program product provided by the present invention extract visual features from video data and audio features from audio data, and then fuse the visual features and audio features to obtain target features. The target features obtained after fusion learn the contributions of the audio modality and the video modality to the sound event detection and positioning tasks respectively, and the fused target features are input into the sound event detection and positioning model for processing. The sound event detection and positioning model is based on the Mixup data enhancement method. The Mixup data enhancement method is used to enrich the spatiotemporal diversity of sample data in the sound event detection and positioning model training process, which can improve the generalization and robustness of the sound event detection and positioning model, and effectively provide the sound event detection and positioning model with detection and positioning accuracy and precision for various categories of sound events. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 It is a flow chart of the sound event detection and positioning method provided by the present invention;
[0036] Figure 2 It is a schematic diagram of the process architecture of the sound event detection and positioning method provided by the present invention;
[0037] Figure 3 It is a structural schematic diagram of the sound event detection and positioning device provided by the present invention;
[0038] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] There are many existing modeling schemes for sound event detection (SED) and sound source localization (SSL), such as Cartesian sound source localization with joint activity probability (ACCDOA), Cartesian sound source localization with joint multi-activity probability (multi-ACCDOA), joint sound event detection and localization (SED-DOA), etc. At the same time, some studies have proposed to model the two subtasks of SED and DOA separately to solve the SELD problem. The SED task usually uses various classification methods, such as Gaussian mixture model (GMM), hidden Markov model (HMM), recurrent neural network (RNN) and convolutional neural network (CNN) to identify the time occurrence of each sound event; the DOA estimation task is usually based on parameter-based methods and deep learning-based methods. Traditional parameter-based methods include subspace-based methods, arrival time difference methods, signal synchronization-based methods, etc. Deep learning-based methods usually use neural networks such as CNN and RNN for classification or regression learning to predict DOA. However, in complex multi-source scenarios, traditional signal processing technology is limited and has low positioning accuracy due to strict ideal environments, such as background white noise and high signal-to-noise ratio that are difficult to maintain in real scenarios. In the case of multiple sources, the single-modal SELD method based on deep learning has label arrangement problems between the multiple predicted angles output by the network and the actual multiple sound sources, which causes the network to introduce errors. Therefore, in the face of high noise, strong reverberation and high aliasing rate scenarios, the performance of using only audio to detect and locate multiple moving sound sources is insufficient.
[0041] In the existing schemes that combine audio and video modalities, the exact location of sound events in space cannot be given, which requires the audio-visual model to accurately track multiple categories of sound. Therefore, it is still a challenging task to detect and locate sound events in time and space at the same time. This is because audio is mainly studied in three-dimensional space, while video is studied on a two-dimensional image plane. Some studies have proposed using calibrated sensors to achieve the conversion between the spatial sound source direction and the target image pixel position, but there are still problems with accuracy and error.
[0042] The SELD solutions that integrate audio and video information in existing technologies are very limited. First, the amount of audio and video data is much smaller than the existing audio data, resulting in poor generalization performance of the model. Second, the large amount of information redundancy brought by the video and the information difference between the modalities make the model detection and positioning accuracy low. In addition, the existing audio-visual technology can often only give the location of the sound event in the video screen, but cannot locate its spatial position.
[0043] Combine the following Figure 1-Figure 2 A sound event detection and localization method of the present invention is described.
[0044] Figure 1 FIG. 1 is a flow chart of a method for detecting and locating a sound event according to an exemplary embodiment. Figure 1 As shown, the sound event detection and positioning method includes steps 110 to 140, which are described in detail as follows:
[0045] Step 110: Acquire data to be processed, wherein the data to be processed includes video data and audio data.
[0046] In the embodiment of the present invention, data to be processed is obtained, and the data to be processed is audio and video data.
[0047] Step 120: extracting visual features based on the video data, and extracting audio features based on the audio data.
[0048] In the embodiment of the present invention, visual features are extracted from video data. The visual features are key position information related to the speech source mined from the video frame sequence.
[0049] Audio features are extracted from the audio data. Specifically, a 4-channel Log-Mel spectrogram and a 3-channel acoustic intensity vector are extracted, and the two are concatenated to form audio features.
[0050] Step 130: fusing the visual features and the audio features to obtain target features.
[0051] In an embodiment of the present invention, visual features and audio features are fused to obtain target features, and the target features obtained after fusion learn the contributions of the audio modality and the video modality to the sound event detection and positioning tasks respectively.
[0052] Step 140, input the target features into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
[0053] In an embodiment of the present invention, the fused target features are input into a sound event detection and localization model for processing. The sound event detection and localization model is based on a Mixup data enhancement method. The Mixup data enhancement method is used to enrich the spatiotemporal diversity of sample data in the sound event detection and localization model training process, thereby improving the generalization and robustness of the sound event detection and localization model, and effectively providing the sound event detection and localization model with detection and localization accuracy and precision for various categories of sound events.
[0054] In an exemplary embodiment of the present invention, the sound event detection and localization model includes a residual neural network, a Conformer network, a sound event detection module and a sound event localization module, and the residual neural network, the sound event detection module and the sound event localization module are respectively connected to the Conformer network.
[0055] In the embodiment of the present invention, please refer to Figure 2 , Figure 2 This is a flow chart of the sound event detection and positioning method proposed in the present invention. The framework uses a limited multimodal audio and video data set to perform multi-objective learning for sound event detection and sound event positioning. In order to obtain effective performance on low-resource data sets, a visual feature extraction based on human key points is proposed to mine key position information related to the speech source from the video frame sequence as an auxiliary input of the audio. Secondly, for the audio mode, a 4-channel Log-Mel spectrogram and a 3-channel acoustic intensity vector are extracted and spliced as audio feature input. For the video mode, multi-channel visual features matching the audio features are obtained, and a gated multimodal unit based on bimodal input is designed. The gated fusion module is composed of the gated multimodal unit to allow the network to adaptively learn the contributions of different modalities to the sound event detection and positioning tasks. Thirdly, in order to improve the diversity of low-resource data and the generalizability of the model, a data enhancement mode based on the network layer level is designed. By implementing Mixup on different network layers to mix the inter-layer features, the network can learn more diverse feature representations and improve the robustness of the model.
[0056] In the sound event detection and localization model, the residual neural network (ResNet), the sound event detection module and the sound event localization module are respectively connected to the Conformer network, and corresponding linear layers and activation functions are set in the sound event detection module and the sound event.
[0057] In an exemplary embodiment of the present invention, extracting visual features based on the video data in step 120 includes the following steps, which are described in detail as follows:
[0058] Based on the video data, extract a plurality of target video frames, and detect target portraits in the plurality of target video frames;
[0059] A mouth region of the target person portrait in the target video frame is determined, and the visual feature is determined based on the mouth region.
[0060] In the visual modality, facial information is blurred for privacy reasons, so voice activity cannot be extracted from the video. Moreover, the information embedded in the video frames is often redundant, which may lead to multiple repetitions of sound event targets. At the same time, the real audio and video training dataset only contains 3.83 hours, which further increases the obstacles to effectively using video modality information to solve the SELD problem.
[0061] In an embodiment of the present invention, for a video data, 10 video frames are uniformly selected in the data per second as the target video frames. When selecting, the video frames are extracted at equal intervals, and then the Faster-RCNN model is used for target detection. The corresponding human category detected is used as the target portrait based on the category of each object in the video frame. When detecting, the target portrait is selected in the video frame by the target box. Then, the HRNet key point detection model trained based on the COCO-WholeBody data set is used to predict the five key points of the target portrait in the video frame, which are the lips, left hand, right hand, left foot and right foot of the target portrait. The mouth area is determined from the five key points, and then the visual features are determined based on the mouth area. In an embodiment of the present invention, the visual feature extraction based on the key points of the human body can extract the key clues contained in the video image.
[0062] In an exemplary embodiment of the present invention, determining the visual feature based on the mouth area includes the following steps, which are described in detail as follows:
[0063] Determine a first vector for a first coordinate axis and a second vector for a second coordinate axis based on the pixel coordinates of the mouth region;
[0064] The visual feature is determined based on the first vector and the second vector.
[0065] In the embodiment of the present invention, two Gaussian-like vectors are generated based on the pixel coordinates of the mouth area, which respectively represent the possibility of the target portrait appearing on the first coordinate axis and the second coordinate axis, where the first coordinate axis is the horizontal axis and the second coordinate axis is the vertical axis. The centers of the two Gaussian-like vectors are at the same position as the mouth area, and the standard deviation is proportional to the predefined width and height. The visual features of each target portrait are extracted. If the number of people appearing in the video at the same time is less than a fixed number, zero padding is used, so that T can be obtained for each fixed length of video data. v×N×2×D Gaussian vector features. v is the time dimension of each fixed-length time segment of the visual feature, N is the maximum number of portraits appearing in each video segment, and D is the dimension size of the extracted visual feature.
[0066] In an embodiment of the present invention, visual features are extracted based on key points of the human body, and the position information of the speech source can be extracted from the redundant visual information as an aid to the audio features, so as to reduce the estimated angle error, make the sound event positioning result more accurate, and at the same time obtain spatial positioning.
[0067] In an exemplary embodiment of the present invention, the fusion processing of the visual features and the audio features to obtain the target features includes the following steps, which are described in detail as follows:
[0068] Processing the visual feature based on the time dimension of the audio feature so that the processed visual feature has the same time dimension as the audio feature;
[0069] The audio feature and the processed visual feature are fused through a gated multimodal unit to obtain the target feature.
[0070] In the embodiment of the present invention, the visual features are replicated multiple times along the time dimension to align with the size of the audio features in the time dimension and reshaped into T a ×2N×D, and then fused with audio features to form a multimodal spatiotemporal representation, where T a The time dimension for each fixed-length time segment of the audio feature.
[0071] Currently, the common methods based on audio and video feature fusion are:
[0072] 1) Direct concatenation: By aligning the frame rates of audio and video and concatenating different features in the channel or dimension direction, the dimension of the features can be increased, providing more information for the model to learn;
[0073] 2) Element-by-element addition or multiplication: By adding or multiplying different features element by element, the information of different features can be superimposed to enhance the feature representation capability;
[0074] 3) Attention mechanism and multimodal network fusion, etc.
[0075] The audio features and visual features can be fused through the aforementioned fusion methods. In order to efficiently capture the deep correlation between modalities, this embodiment uses a gated multimodal unit (GMU) to fuse the audio features and visual features. At the same time, the gated multimodal unit can also focus on the information of the video modality and the audio modality in characterizing the spatiotemporal features, focusing on the different contributions of the video modality and the audio modality to the detection and positioning of sound events. The relevant expressions of the gated multimodal unit are as follows:
[0076]
[0077] in, represents the target feature after the fusion of audio features and visual features, and D is the time dimension of the fused target feature. Represent the audio features and visual features at time t, E a and E v Respectively represent the feature sets corresponding to audio features and visual features, Θ={W z ,W g} represents the model parameters to be learned by the gated multimodal unit, [·,·,·] represents the concatenation operator, σ represents the Sigmoid function, and z t Represents the corresponding weight value. The gated multimodal unit receives audio features and visual features as input, and each e i Corresponding to the features of mode i, by gating neurons σ, the DOA network can control the i The computed feature pair is the output of the gated multimodal unit e g In addition, to address the temporal alignment problem of audio and video features, the visual features are repeated multiple times before fusion to be united with the audio dimension.
[0078] In an embodiment of the present invention, the powerful learning ability of the gated multimodal unit is utilized to adaptively learn the contribution of features of different modalities to sound event detection and sound event localization, so as to obtain deep correlations between multiple representations, thereby achieving effective coupling between multimodal features and improving the SELD performance of the model.
[0079] In an exemplary embodiment of the present invention, the training process of the sound event detection and localization model includes:
[0080] During the training process, determining at least one group of sample data from the multiple groups of sample data as target sample data;
[0081] Determine one of the multiple network layers of the residual neural network as a target network layer, and send the target sample data to the residual neural network, and process it in turn through each of the network layers until it reaches the target network layer, and obtain output data processed by the target network layer;
[0082] Performing data enhancement processing on the output data by using the Mixup data enhancement method to obtain enhanced sample data;
[0083] The enhanced sample data is input to the network layer after the target network layer for processing.
[0084] In the embodiments of the present invention, there are many common audio data enhancement methods, including:
[0085] 1) The SpecAugment method uses a transformation strategy on the Log-mel spectrogram of the input audio to enhance the audio features. Classic transformation strategies include time distortion, time masking, and frequency domain masking;
[0086] 2) The FilterAugment method uses acoustic conditions such as the relative positions between different microphones and the sound source to apply a specific type of frequency domain filtering operation to the Mel spectrogram to describe randomly distributed acoustic conditions;
[0087] 3) Add random noise;
[0088] 4) Random changes in pitch and speed of sound, etc.
[0089] These methods can better perform data enhancement on the audio spectrum, thereby expanding the original training data. However, since the present invention combines multimodal information, the effect of enhancing the visual features of the video modality through the above methods is not effective enough. Therefore, the present invention implements a multi-level Mixup data enhancement method on the network layer. Without affecting the authenticity and continuity of the recorded video pixel information and the reverberation conditions and overlapping segments in the multi-channel audio, the diversity of the temporal and spatial features of the input between network layers is enhanced, thereby improving the generalization performance and robustness of the model. Specifically, the sound event detection and localization model is regarded as the following function:
[0090] f(x)=f k (g k (x)
[0091] Among them, g k represents the part of the model that maps the input data to the representation of the kth network layer, f kRepresents the part that maps the representation to the output f(x). Randomly select a network layer k from the qualified network layers S in the multi-layer network layer of the residual neural network as the target network layer, and then randomly determine two groups of random small batch sample data (x i ,y i ) and (x j ,y j ), each set of sample data may include multiple training samples. The two sets of sample data are input into the residual neural network, and processed by each network layer in turn until they reach the target network layer k, and the output data (g k (x i ),y i ) and (g k (x j ),y j ). Then, these two output data are input into the Mixup data enhancement method to generate enhanced sample data The specific expression is as follows:
[0092]
[0093] Mix λ (a,b)=λ·a+(1-λ)·b
[0094] λ~Beta(α,α)
[0095] After the model completes the forward propagation process from the target network layer, we can use the enhanced sample data The mixed model output is as follows:
[0096]
[0097] At the same time, when the above operations are performed at the input layer of the ResNet-Conformer network, Mixup degenerates into a random Mixup between the input data, which expands the training distribution by combining the prior knowledge that the linear interpolation of the feature vectors should lead to the linear interpolation of the related labels.
[0098] In an embodiment of the present invention, in a low-resource real audio and video data scenario, the temporal and spatial diversity of sample data is enriched by utilizing visual feature extraction based on human key points, fusion of audio features and visual features based on gated multimodal units, and a network layer-based Mixup data enhancement method, thereby improving the generalization and robustness of the sound event detection and localization model, and effectively providing the sound event detection and localization model with detection and localization accuracy and precision for various categories of sound events.
[0099] The sound event detection and positioning method provided by the embodiment of the present invention provides an innovative solution for multimodal audio and video sound event detection and positioning, especially in low-resource data environments. By combining the visual feature extraction based on human key points, the feature fusion of gated multimodal units, and the Mixup data enhancement method at the network layer, the accuracy and robustness of sound event detection and positioning can be effectively improved. This technical solution helps to improve the performance and reliability of automated monitoring, smart home systems, audio analysis and other related fields, while also enhancing the competitiveness of enterprises in the field of intelligent audio and video processing technology, and has potential market advantages and broad commercial application prospects.
[0100] The sound event detection and positioning device provided by the present invention is described below. The sound event detection and positioning device described below and the sound event detection and positioning method described above can be referenced to each other. It should be noted that the device provided in the following embodiment and the method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here.
[0101] In an exemplary embodiment of the present invention, see Figure 3 , Figure 3 A sound event detection and positioning device according to an exemplary embodiment includes:
[0102] The acquisition module 310 is configured to acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0103] an extraction module 320 configured to extract visual features based on the video data and to extract audio features based on the audio data;
[0104] A fusion processing module 330 is configured to perform fusion processing on the visual feature and the audio feature to obtain a target feature;
[0105] The processing module 340 is configured to input the target features into the sound event detection and positioning model for processing to obtain the sound event detection results and the sound event positioning results; wherein the sound event detection and positioning model is trained based on the Mixup data enhancement method.
[0106] In an exemplary embodiment of the present invention, the extraction module 320 includes:
[0107] An extraction submodule, configured to extract a plurality of target video frames based on the video data, and detect a target person portrait in the plurality of target video frames;
[0108] The determination submodule is configured to determine the mouth area of the target portrait in the target video frame, and determine the visual feature based on the mouth area.
[0109] In an exemplary embodiment of the present invention, determining a submodule includes:
[0110] a first determining unit configured to determine a first vector for a first coordinate axis and a second vector for a second coordinate axis based on the pixel coordinates of the mouth region;
[0111] The second determining unit is configured to determine the visual feature based on the first vector and the second vector.
[0112] In an exemplary embodiment of the present invention, the fusion processing module 330 includes:
[0113] a processing submodule, configured to process the visual feature based on the time dimension of the audio feature so that the processed visual feature has the same time dimension as the audio feature;
[0114] The fusion processing submodule is configured to fuse the audio feature and the processed visual feature through a gated multimodal unit to obtain the target feature.
[0115] In an exemplary embodiment of the present invention, the sound event detection and localization model includes a residual neural network, a Conformer network, a sound event detection module and a sound event localization module, and the residual neural network, the sound event detection module and the sound event localization module are respectively connected to the Conformer network.
[0116] In an exemplary embodiment of the present invention, the sound event detection and positioning device further includes:
[0117] A first determination module is configured to determine at least one group of sample data from multiple groups of sample data as target sample data during training;
[0118] A second determination module is configured to determine one of the plurality of network layers of the residual neural network as a target network layer, and send the target sample data to the residual neural network, and sequentially process the target sample data through each of the network layers until the target network layer is reached, thereby obtaining output data processed by the target network layer;
[0119] A data enhancement processing module, configured to perform data enhancement processing on the output data by using the Mixup data enhancement method to obtain enhanced sample data;
[0120] An input module is configured to input the enhanced sample data into the network layer after the target network layer for processing.
[0121] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the sound event detection and positioning method, which includes:
[0122] Acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0123] extracting visual features based on the video data, and extracting audio features based on the audio data;
[0124] fusing the visual features and the audio features to obtain target features;
[0125] The target features are input into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
[0126] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0127] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can perform the sound event detection and positioning method provided by the above methods, the method includes:
[0128] Acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0129] extracting visual features based on the video data, and extracting audio features based on the audio data;
[0130] fusing the visual features and the audio features to obtain target features;
[0131] The target features are input into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
[0132] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the sound event detection and positioning method provided by the above methods, the method comprising:
[0133] Acquire data to be processed, wherein the data to be processed includes video data and audio data;
[0134] extracting visual features based on the video data, and extracting audio features based on the audio data;
[0135] fusing the visual features and the audio features to obtain target features;
[0136] The target features are input into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
[0137] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting and locating a sound event, characterized in that: include: Acquire data to be processed, wherein the data to be processed includes video data and audio data; extracting visual features based on the video data, and extracting audio features based on the audio data; fusing the visual features and the audio features to obtain target features; The target features are input into a sound event detection and positioning model for processing to obtain a sound event detection result and a sound event positioning result; wherein the sound event detection and positioning model is trained based on a Mixup data enhancement method.
2. The sound event detection and positioning method according to claim 1, characterized in that: The extracting visual features based on the video data comprises: Based on the video data, extract a plurality of target video frames, and detect target portraits in the plurality of target video frames; A mouth region of the target person portrait in the target video frame is determined, and the visual feature is determined based on the mouth region.
3. The sound event detection and positioning method according to claim 2, characterized in that: The determining the visual feature based on the mouth area comprises: Determine a first vector for a first coordinate axis and a second vector for a second coordinate axis based on the pixel coordinates of the mouth region; The visual feature is determined based on the first vector and the second vector.
4. The sound event detection and positioning method according to claim 1, characterized in that: The fusing the visual features and the audio features to obtain target features includes: Processing the visual feature based on the time dimension of the audio feature so that the processed visual feature has the same time dimension as the audio feature; The audio feature and the processed visual feature are fused through a gated multimodal unit to obtain the target feature.
5. The sound event detection and positioning method according to any one of claims 1 to 4, characterized in that: The sound event detection and positioning model includes a residual neural network, a Conformer network, a sound event detection module and a sound event positioning module, and the residual neural network, the sound event detection module and the sound event positioning module are respectively connected to the Conformer network.
6. The sound event detection and positioning method according to claim 5, characterized in that: The training process of the sound event detection and positioning model includes: During the training process, determining at least one group of sample data from the multiple groups of sample data as target sample data; Determine one of the multiple network layers of the residual neural network as a target network layer, and send the target sample data to the residual neural network, and process it in turn through each of the network layers until it reaches the target network layer, and obtain output data processed by the target network layer; Performing data enhancement processing on the output data by using the Mixup data enhancement method to obtain enhanced sample data; The enhanced sample data is input to the network layer after the target network layer for processing.
7. A sound event detection and positioning device, characterized in that: include: An acquisition module, configured to acquire data to be processed, wherein the data to be processed includes video data and audio data; an extraction module configured to extract visual features based on the video data and extract audio features based on the audio data; A fusion processing module, configured to perform fusion processing on the visual feature and the audio feature to obtain a target feature; The processing module is configured to input the target features into the sound event detection and positioning model for processing to obtain the sound event detection result and the sound event positioning result; wherein the sound event detection and positioning model is trained based on the Mixup data enhancement method.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the sound event detection and positioning method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the sound event detection and positioning method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the sound event detection and positioning method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Video event positioning and identification method and device and storage medium
CN115620110A
Cited By
Audio scene data analysis method and system, electronic equipment and storage medium
CN120412642A
Audio scene data analysis method and system, electronic device, storage medium
CN120412642B
