Environmental sound signal identification method based on time sequence characteristics
By extracting the temporal feature representation of environmental sound signals, the problem of poor recognition performance caused by existing methods not considering temporal characteristics is solved, achieving more efficient environmental sound signal recognition and reducing resource requirements.
Patent Information
- Application Number
- CN202410878184.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing environmental sound signal recognition methods do not consider temporal characteristics, resulting in poor recognition performance.
By obtaining the environmental sound signal data set for preprocessing, framing and segmentation processing, frame-level features and segment-level semantic features are extracted, and support vector machine training is used to extract signal-level timing feature representation, which is ultimately used to identify environmental sound signals.
It significantly improves the performance and efficiency of environmental sound signal recognition, while simplifying the model structure and reducing the demand for software and hardware resources.
Smart Images

Figure CN118645098A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of environmental sound signal recognition, and in particular relates to an environmental sound signal recognition method based on temporal characteristics. Background Art
[0002] Environmental sound recognition aims to accurately determine the specific type of key events in the acoustic environment with the help of machine learning strategies. It is an effective means for machines to perceive the environment in which they are located. It can be widely used in many practical application fields such as environmental safety monitoring, multimedia retrieval, and smart home. In recent years, with the rapid development of deep learning technology, research works on identifying environmental sounds with the help of this technology have emerged continuously, and most of them can achieve good recognition performance. However, the effectiveness of these works often comes from the complex deep model architecture and the precise adjustment of large-scale parameters, which leads to the difficulties of large demand for training data and storage resources and difficult parameter adjustment in environmental sound recognition strategies based on deep learning. To this end, in recent years, some research works have tried to use traditional machine learning methods to identify environmental sound signals by building shallow simple models and using a small number of learnable model parameters. On the basis of ensuring recognition performance, the recognition efficiency has been greatly improved. However, in these studies, only the essential semantic content of the environmental sound signal is usually considered, and the natural temporal characteristics of the signal are not considered, so it is impossible to obtain temporal feature representation, which is very critical to improving the performance of environmental sound recognition.
[0003] In summary, since the existing methods do not take the temporal characteristics of ambient sound signals into consideration, the performance of the existing methods in identifying ambient sound signals is still poor. Therefore, it is very necessary to propose a new ambient sound signal recognition method to solve the above problems. Summary of the invention
[0004] The purpose of the present invention is to solve the problem that the existing methods do not consider the temporal characteristics of ambient sound signals, resulting in poor performance of ambient sound signal recognition, and propose an ambient sound signal recognition method based on temporal characteristics.
[0005] The technical solution adopted by the present invention to solve the above technical problems is:
[0006] A method for identifying an environmental sound signal based on temporal characteristics, the method specifically comprising the following steps:
[0007] Step 1: obtaining a data set consisting of environmental sound signals of various categories, and preprocessing each environmental sound signal in the data set to obtain each preprocessed environmental sound signal;
[0008] Step 2: Perform frame processing on each pre-processed ambient sound signal, and then extract features from each audio frame to obtain a frame-level feature representation sequence of each pre-processed ambient sound signal;
[0009] Step 3: segment the audio frames of each preprocessed ambient sound signal, and then extract features from each audio segment to obtain a segment-level semantic feature representation sequence of each preprocessed ambient sound signal;
[0010] Step 4: Processing the segment-level semantic feature representation sequence of each pre-processed ambient sound signal to obtain a processed segment-level semantic feature representation sequence;
[0011] Step 5: extracting the signal-level temporal feature representation of each pre-processed ambient sound signal according to the processed segment-level semantic feature representation sequence;
[0012] Step 6: Train the support vector machine using the environmental sound signal data set obtained in step 1 and the signal-level temporal feature representation extracted in step 5;
[0013] Step 7: After extracting the signal-level time series feature representation of the ambient sound signal to be identified, the extracted signal-level time series feature representation is used as the input of the trained support vector machine, and the recognition result of the ambient sound signal to be identified is output.
[0014] Furthermore, the preprocessing adopts a sampling rate of 44100 Hz and 16-bit quantization.
[0015] Furthermore, the specific process of step 2 is as follows:
[0016] For any preprocessed ambient sound signal, when the preprocessed ambient sound signal is subjected to frame processing, the following conditions are met: the length of each audio frame is T milliseconds, and the overlapping length between adjacent audio frames is T / 2 milliseconds;
[0017] After the frame processing, a plurality of audio frames corresponding to the pre-processed ambient sound signal are obtained;
[0018] After extracting features from each of the obtained audio frames, the features of each audio frame are used to form a frame-level feature representation sequence of the preprocessed ambient sound signal;
[0019] Similarly, a frame-level feature representation sequence of each preprocessed ambient sound signal is obtained.
[0020] Furthermore, the features of each audio frame are Mel-spectrogram coefficient features.
[0021] Furthermore, the specific process of step three is:
[0022] For any preprocessed ambient sound signal, the audio frame of the preprocessed ambient sound signal is segmented, and the segmented processing satisfies: each audio segment includes P audio frames, and the overlapping length between adjacent audio segments is P1 audio frames;
[0023] After segmentation processing, multiple audio segments corresponding to the pre-processed ambient sound signal are obtained;
[0024] After extracting features from each of the obtained audio segments, the features of each audio segment are used to form a segment-level semantic feature representation sequence of the preprocessed ambient sound signal;
[0025] Similarly, a segment-level semantic feature representation sequence of each preprocessed ambient sound signal is obtained.
[0026] Furthermore, the feature extraction for each obtained audio segment adopts a deep learning model.
[0027] Furthermore, the specific process of step 4 is as follows:
[0028] Take the i-th preprocessed ambient sound signal as an example:
[0029] The segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal is recorded as yes The feature of the nth audio segment in , N is the number of audio segments, The dimension of is d, and R is a real number;
[0030] Update the features of the nth audio segment to
[0031]
[0032] Again To process:
[0033]
[0034] Among them, ‖·‖ is the 2-norm;
[0035] Then the processed segment-level semantic features represent the features of the nth audio segment in the sequence as follows:
[0036]
[0037] in, is the processed segment-level semantic feature representing the feature of the nth audio segment in the sequence, sign(·) is the sign function, and |·| represents the absolute value;
[0038] That is, the processed segment-level semantic feature representation sequence Indicated by The sequence composed of.
[0039] Furthermore, the specific process of step five is as follows:
[0040] Take the i-th preprocessed ambient sound signal as an example:
[0041] The signal-level temporal feature representation of the i-th preprocessed ambient sound signal is extracted by minimizing the reconstruction error. Right now
[0042]
[0043] Among them, D i ∈R d×p is the basis matrix of the subspace with dimension p, rank(D i ) represents the basis matrix D i rank, A i represents the processed segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal, (D i T D i ) -1 D i T A i is the processed segment-level semantic feature representation sequence A i Projection coefficients in the subspace, the superscript -1 represents the inverse of the matrix, the superscript T represents the transpose of the matrix, ‖·‖ F represents the F-norm.
[0044] Furthermore, the signal level time series feature of the i-th preprocessed ambient sound signal is represented by The calculation method is:
[0045] The processed segment-level semantic feature representation sequence A i Perform singular value decomposition:
[0046]
[0047] Among them, M i is a left singular matrix, N i is a right singular matrix, S i A i The singular values of are diagonal matrices of diagonal elements;
[0048] From the matrix N i Extract the singular vectors corresponding to the first p largest singular values, and then use the extracted singular vectors to form a matrix but
[0049] Solve to obtain the signal-level temporal feature representation of the i-th preprocessed ambient sound signal
[0050]
[0051] Furthermore, when extracting the Mel spectrum coefficient features, the number of Mel spectrum bands is set to 128.
[0052] The beneficial effects of the present invention are:
[0053] The present invention sequentially extracts the frame-level feature representation sequence, segment-level semantic feature representation sequence, and signal-level temporal feature representation of the ambient sound signal, and finally uses the obtained signal-level temporal feature representation as the input of the support vector machine to obtain the final recognition result. The present invention can significantly improve the recognition efficiency while improving the performance of ambient sound signal recognition. The performance of the method of the present invention was verified on a mainstream ambient sound recognition data set, and the experimental results show that the method of the present invention can effectively improve the performance of ambient sound signal recognition.
[0054] At the same time, the environmental sound signal recognition model adopted by the present invention has a simple structure and has the advantage of low demand for software and hardware resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flow chart of a method for identifying an environmental sound signal based on temporal characteristics of the present invention;
[0056] Figure 2 It is a performance comparison chart of the method of the present invention and other methods on the ESC-10 data set. DETAILED DESCRIPTION
[0057] Specific implementation method 1: Combination Figure 1 The present embodiment describes a method for identifying an environmental sound signal based on temporal characteristics, and the method specifically comprises the following steps:
[0058] Step 1: obtaining a data set consisting of environmental sound signals of various categories, and preprocessing each environmental sound signal in the data set to obtain each preprocessed environmental sound signal;
[0059] Step 2: Perform frame processing on each pre-processed ambient sound signal, and then extract features from each audio frame to obtain a frame-level feature representation sequence of each pre-processed ambient sound signal;
[0060] Step 3: segment the audio frames of each preprocessed ambient sound signal, and then extract features from each audio segment to obtain a segment-level semantic feature representation sequence of each preprocessed ambient sound signal;
[0061] Step 4: Processing the segment-level semantic feature representation sequence of each pre-processed ambient sound signal to obtain a processed segment-level semantic feature representation sequence;
[0062] Step 5: extracting the signal-level temporal feature representation of each pre-processed ambient sound signal according to the processed segment-level semantic feature representation sequence;
[0063] Step 6: Train the support vector machine using the environmental sound signal data set obtained in step 1 and the signal-level temporal feature representation extracted in step 5;
[0064] Step 7: After extracting the signal-level time series feature representation of the ambient sound signal to be identified, the extracted signal-level time series feature representation is used as the input of the trained support vector machine, and the recognition result of the ambient sound signal to be identified is output.
[0065] Specific implementation method 2: This implementation method is different from specific implementation method 1 in that the preprocessing adopts a sampling rate of 44100 Hz and 16-bit quantization.
[0066] The other steps and parameters are the same as those in the first embodiment.
[0067] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that the specific process of step two is as follows:
[0068] For any preprocessed ambient sound signal, when the preprocessed ambient sound signal is subjected to frame processing, the following conditions are met: the length of each audio frame is T milliseconds, and the overlapping length between adjacent audio frames is T / 2 milliseconds;
[0069] After the frame processing, a plurality of audio frames corresponding to the pre-processed ambient sound signal are obtained;
[0070] After extracting features from each of the obtained audio frames, the features of each audio frame are used to form a frame-level feature representation sequence of the preprocessed ambient sound signal;
[0071] Similarly, a frame-level feature representation sequence of each preprocessed ambient sound signal is obtained.
[0072] The other steps and parameters are the same as those in the first or second embodiment.
[0073] Specific implementation method 4: This implementation method is different from any one of specific implementation methods 1 to 3 in that the features of each audio frame are Mel-spectrogram coefficient features.
[0074] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.
[0075] Specific implementation method 5: This implementation method is different from the specific implementation methods 1 to 4 in that the specific process of step 3 is as follows:
[0076] For any preprocessed ambient sound signal, the audio frame of the preprocessed ambient sound signal is segmented, and the segmented processing satisfies: each audio segment includes P audio frames, and the overlapping length between adjacent audio segments is P1 audio frames;
[0077] After segmentation processing, multiple audio segments corresponding to the pre-processed ambient sound signal are obtained;
[0078] After extracting features from each of the obtained audio segments, the features of each audio segment are used to form a segment-level semantic feature representation sequence of the preprocessed ambient sound signal;
[0079] Similarly, a segment-level semantic feature representation sequence of each preprocessed ambient sound signal is obtained.
[0080] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.
[0081] Specific implementation method six: This implementation method is different from any one of specific implementation methods one to five in that a deep learning model is used to extract features from each of the obtained audio segments.
[0082] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.
[0083] Specific implementation method 7: This implementation method is different from the specific implementation methods 1 to 6 in that the specific process of step 4 is as follows:
[0084] Take the i-th preprocessed ambient sound signal as an example:
[0085] The segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal is recorded as yes The feature of the nth audio segment in , N is the number of audio segments, The dimension of is d, and R is a real number;
[0086] Update the features of the nth audio segment to
[0087]
[0088] Again To process:
[0089]
[0090] Among them, ‖·‖ is the 2-norm;
[0091] Then the processed segment-level semantic features represent the features of the nth audio segment in the sequence as follows:
[0092]
[0093] in, is the processed segment-level semantic feature representing the feature of the nth audio segment in the sequence, sign(·) is the sign function, and |·| represents the absolute value;
[0094] That is, the processed segment-level semantic feature representation sequence Indicated by The sequence composed of.
[0095] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.
[0096] Specific implementation eight: This implementation differs from specific implementations one to seven in that the specific process of step five is as follows:
[0097] Take the i-th preprocessed ambient sound signal as an example:
[0098] The signal-level temporal feature representation of the i-th preprocessed ambient sound signal is extracted by minimizing the reconstruction error. Right now
[0099]
[0100] Among them, D i ∈R d×p is the basis matrix of a subspace of dimension p, where the subspace dimension p is pre-specified and is generally set to a constant much smaller than d to ensure that a low-dimensional subspace is learned; rank(D i ) represents the basis matrix D i The rank of is used to ensure that the matrix is a full-rank matrix and meets the basic requirements of the subspace basis; A i represents the processed segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal, (D i T D i ) -1 D i T A i is the processed segment-level semantic feature representation sequence A i Projection coefficients in the subspace, the superscript -1 represents the inverse of the matrix, the superscript T represents the transpose of the matrix, ‖·‖ F represents the F-norm.
[0101] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.
[0102] The present invention can significantly improve the accuracy of environmental sound signal recognition by extracting the temporal feature representation of the environmental sound signal, and the extracted temporal feature representation contains semantic features.
[0103] Specific embodiment 9: This embodiment is different from any one of specific embodiments 1 to 8 in that the signal level time series characteristic representation of the i-th pre-processed ambient sound signal is The calculation method is:
[0104] The processed segment-level semantic feature representation sequence A i Perform singular value decomposition:
[0105]
[0106] Among them, M i is a left singular matrix, N i is a right singular matrix, S i A i The singular values of are diagonal matrices of diagonal elements;
[0107] From the matrix N i Extract the singular vectors corresponding to the first p largest singular values, and then use the extracted singular vectors to form a matrix but
[0108] Solve to obtain the signal-level temporal feature representation of the i-th preprocessed ambient sound signal
[0109]
[0110] The other steps and parameters are the same as those in Specific Embodiments 1 to 8.
[0111] Specific implementation method ten: This implementation method is different from any one of specific implementation methods one to nine in that, when extracting the Mel spectrum coefficient features, the number of Mel spectrum bands is set to 128.
[0112] The other steps and parameters are the same as those in Specific Embodiments 1 to 9.
[0113] Example
[0114] like Figure 1As shown, this embodiment proposes a temporal feature learning method for environmental sound signals in a low-dimensional semantic space. Specifically, in the training phase, this embodiment uses the training environmental sound signal as input, and sequentially performs frame-level acoustic feature extraction, segment-level semantic feature extraction and post-processing, and temporal feature representation extraction; on this basis, the obtained set is used to train the classifier to obtain a classification model. In the testing phase, the test environmental sound signal is used as input, and similarly undergoes four steps of frame-level and segment-level semantic feature extraction, segment-level semantic feature post-processing, and temporal feature representation to obtain a corresponding temporal feature representation set; on this basis, the classification model obtained in the training phase is used to perform pattern matching on the test features, and finally obtain a prediction result.
[0115] Step 1: obtain a training data set and a test data set consisting of environmental sound signals of various categories, and use a unified preprocessing method with a sampling rate of 44100 Hz and 16-bit quantization to preprocess each environmental sound signal in the data set to obtain each preprocessed environmental sound signal, that is, to obtain a preprocessed training and test environmental sound sample set;
[0116] Step 2: Perform frame processing on each pre-processed ambient sound signal: specify the length of the audio frame to be 23 milliseconds, the inter-frame overlap length to be 11.5 milliseconds, and divide the sample into multiple adjacent and overlapping audio frames according to this length;
[0117] Then, the Mel spectrum coefficient feature is extracted for each audio frame. The number of Mel spectrum bands is set to 128, and other parameters use the default values to describe the acoustic characteristics in the frame. For a pre-processed ambient sound signal, the features of all its audio frames constitute a frame-level feature representation sequence.
[0118] Step 3: Segment the audio frames of each pre-processed ambient sound signal: specify the length of the audio segment to be 84 frames (about 2 seconds), the overlap length between segments to be 20 frames (about 0.5 seconds), and divide the frame-level sequence into multiple adjacent and overlapping audio segments according to this length;
[0119] The pre-trained deep learning model is then used to extract the semantic features of each segment. The model parameters are pre-trained on a large-scale data set and remain fixed when extracting segment-level semantic features. No additional learning is required, and no corresponding learning cost is incurred. For a pre-processed ambient sound signal, the features of all its audio segments constitute a segment-level semantic feature representation sequence;
[0120] Step 4: Processing the segment-level semantic feature representation sequence of each pre-processed ambient sound signal to obtain a processed segment-level semantic feature representation sequence;
[0121] Take the i-th preprocessed ambient sound signal as an example:
[0122] The segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal obtained in step 3 is recorded as yes The feature of the nth audio segment in , N is the number of audio segments, The dimension of is d, and R is a real number;
[0123] Then, the segment-level semantic feature representation sequence Three post-processings are performed to obtain a processed segment-level semantic feature representation sequence A. The processed segment-level semantic feature representation sequence A can be used to better extract the temporal information of the i-th pre-processed ambient sound signal.
[0124] The specific process of post-processing is:
[0125] The feature representation of the current audio segment is replaced by the average of the feature representation of the current audio segment and the previous audio segment, that is, the feature of the nth audio segment is updated to
[0126]
[0127] The length of the vector representing each audio segment feature is uniformly regularized to 1, that is, To process:
[0128]
[0129] Among them, ‖·‖ is the 2-norm;
[0130] The feature representation of the current audio segment is replaced by the product of its sign and its square root result, that is, the feature of the nth audio segment in the processed segment-level semantic feature representation sequence is:
[0131]
[0132] in, is the processed segment-level semantic feature representing the feature of the nth audio segment in the sequence, sign(·) is the sign function, and |·| represents the absolute value;
[0133] That is, after the above three post-processing operations, the processed segment-level semantic feature representation sequence is obtained Indicated by The sequence composed of.
[0134] Step 5: extract the signal-level temporal feature representation of each pre-processed ambient sound signal according to the processed segment-level semantic feature representation sequence; specifically:
[0135] Take the i-th preprocessed ambient sound signal as an example:
[0136] The reconstruction error is minimized to learn i The corresponding low-dimensional semantic representation subspace is used to characterize the semantic content of the sequence, that is, the signal-level temporal feature representation of the i-th preprocessed ambient sound signal is extracted by minimizing the reconstruction error.
[0137]
[0138] Among them, D i ∈R d×p is the basis matrix of a subspace of dimension p, where the subspace dimension p is pre-specified and is generally set to a constant much smaller than d to ensure that a low-dimensional subspace is learned; rank(D i ) represents the basis matrix D i rank, to ensure that the matrix is a full-rank matrix and meets the basic requirements of the subspace basis; (D i T D i ) -1 D i T A i is the processed segment-level semantic feature representation sequence A i Projection coefficients in the subspace, the superscript -1 represents the inverse of the matrix, the superscript T represents the transpose of the matrix, ‖·‖ F represents the F-norm.
[0139] In order to introduce timing information when learning low-dimensional semantic space, the present invention depicts the timing information between audio segments by maintaining the order of appearance of each audio segment. Specifically, a label reflecting the order of appearance of each audio segment is introduced, and the order of each audio segment is maintained by the correspondence between the processed segment-level semantic feature representation and the order label, so as to depict the corresponding timing information. The present invention proposes to use the singular value matrix of the segment-level semantic representation sequence as its order label, and the acquisition method of the matrix can be specifically expressed as:
[0140]
[0141] Among them, M i is a left singular matrix, N i is a right singular matrix, S i A i The singular values of the matrix are diagonal elements, and the matrix M i This is equivalent to the covariance matrix The matrix composed of the eigenvectors of i It is equivalent to the covariance matrix is a matrix composed of the eigenvectors of , and E(·) represents the expectation.
[0142] In actual tasks, since the feature dimension is often greater than the number of audio segments, the covariance matrix It is often impossible to accurately estimate the data, resulting in the corresponding matrix M i It is not possible to effectively consider timing information as a sequence label. It reflects the correlation between different audio segments along the time direction. Therefore, the covariance matrix The corresponding matrix N i As the order label. On this basis, the corresponding relationship between the segment-level semantic feature representation and the order label in the subspace can be constructed, which is specifically expressed as:
[0143]
[0144] in, From the matrix N i The matrix composed of the singular vectors corresponding to the first p largest singular values extracted is then used to form a matrix to capture more significant time series information. According to the above formula, the basis matrix D of the semantic representation space considering time series information can be solved in closed form: i :
[0145]
[0146] Furthermore, due to D i ∈R d×p , and p is much smaller than d, so rank(D i )≤p. According to the above formula, since A i ∈R d×n , And D i is the matrix A i and Therefore, the matrix D i The rank also satisfies Considering rank(A i )'s previous term is n, Fixed to p, we know that there is rank (D i )≥p holds. In summary, it can be proved that rank(D i )=p, indicating that the matrix D learned by the method of the present invention i It can be used as the basis matrix of the low-dimensional semantic space, and can then be effectively used as the signal-level temporal feature representation of the sequence.
[0147] In addition, in actual use, the dimension p is often set to 1 to ensure that the dimension of the subspace is low enough and that the most significant temporal feature representation can be extracted, thereby greatly improving the recognition accuracy while improving learning efficiency.
[0148] Step 6: Use the training data set and the signal-level timing feature representation corresponding to the training data set to train the support vector machine. The parameters required for training all use the default values in the Libsvm toolkit to obtain the weight matrix of the support vector machine and the corresponding classification model.
[0149] Step 7: Use the test data set and the signal-level time series feature representation corresponding to the test data set to test the trained support vector machine, select the label corresponding to the maximum matching score as the prediction result, and calculate the recognition accuracy based on the similarities and differences between the predicted type and the actual type.
[0150] Finally, the support vector machine trained by the present invention can be used to obtain the recognition result of the environmental sound signal to be recognized.
[0151] The performance comparison of the proposed method and other related mainstream methods on the ESC-10 dataset is shown in Figure 2. Figure 2 The present invention selects the mainstream deep learning model in the current field of environmental sound recognition, selects the recognition performance that has been published in the corresponding papers, and then compares it with the performance achieved by the method of the present invention. Figure 2 It can be seen that compared with the five comparison methods, the method of the present invention can achieve higher recognition performance. It is worth noting that although the performance of the method of the present invention is relatively close to that of the comparison method of end-to-end multi-scale convolutional neural network, the method proposed in the present invention is much lower than the comparison method in terms of model scale, training difficulty, data volume and storage resource requirements. Therefore, it can still be considered that the method of the present invention has a more obvious performance advantage.
[0152] The recognition performance comparison of different post-processing strategies and their combinations used in the present invention on the ESC-10 dataset is shown in Table 1. As can be seen from Table 1, using the three post-processing strategies proposed in the present invention at the same time can achieve higher recognition performance than other post-processing strategy combinations.
[0153] Table 1 Comparison of recognition performance of different post-processing strategies and their combinations on the ESC-10 dataset
[0154]
[0155]
[0156] The above calculation examples of the present invention are only used to explain the calculation model and calculation process of the present invention in detail, and are not intended to limit the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. A method for identifying environmental sound signals based on temporal characteristics, characterized in that: The method specifically comprises the following steps: Step 1: obtaining a data set consisting of environmental sound signals of various categories, and preprocessing each environmental sound signal in the data set to obtain each preprocessed environmental sound signal; Step 2: Perform frame processing on each pre-processed ambient sound signal, and then extract features from each audio frame to obtain a frame-level feature representation sequence of each pre-processed ambient sound signal; Step 3: segment the audio frames of each preprocessed ambient sound signal, and then extract features from each audio segment to obtain a segment-level semantic feature representation sequence of each preprocessed ambient sound signal; Step 4: Processing the segment-level semantic feature representation sequence of each pre-processed ambient sound signal to obtain a processed segment-level semantic feature representation sequence; Step 5: extracting the signal-level temporal feature representation of each pre-processed ambient sound signal according to the processed segment-level semantic feature representation sequence; Step 6: Train the support vector machine using the environmental sound signal data set obtained in step 1 and the signal-level temporal feature representation extracted in step 5; Step 7: After extracting the signal-level time series feature representation of the ambient sound signal to be identified, the extracted signal-level time series feature representation is used as the input of the trained support vector machine, and the recognition result of the ambient sound signal to be identified is output.
2. The method for identifying environmental sound signals based on temporal characteristics according to claim 1, characterized in that: The preprocessing adopts 44100 Hz sampling rate and 16-bit quantization.
3. The method for identifying environmental sound signals based on temporal characteristics according to claim 1, characterized in that: The specific process of step 2 is as follows: For any preprocessed ambient sound signal, when the preprocessed ambient sound signal is subjected to frame processing, the following conditions are met: the length of each audio frame is T milliseconds, and the overlapping length between adjacent audio frames is T / 2 milliseconds; After the frame processing, a plurality of audio frames corresponding to the pre-processed ambient sound signal are obtained; After extracting features from each of the obtained audio frames, the features of each audio frame are used to form a frame-level feature representation sequence of the preprocessed ambient sound signal; Similarly, a frame-level feature representation sequence of each preprocessed ambient sound signal is obtained.
4. The method for identifying environmental sound signals based on temporal characteristics according to claim 3, characterized in that: The features of each audio frame are Mel-spectrogram coefficient features.
5. The method for identifying environmental sound signals based on temporal characteristics according to claim 3, characterized in that: The specific process of step three is: For any preprocessed ambient sound signal, the audio frame of the preprocessed ambient sound signal is segmented, and the segmented processing satisfies: each audio segment includes P audio frames, and the overlapping length between adjacent audio segments is P1 audio frames; After segmentation processing, multiple audio segments corresponding to the pre-processed ambient sound signal are obtained; After extracting features from each of the obtained audio segments, the features of each audio segment are used to form a segment-level semantic feature representation sequence of the preprocessed ambient sound signal; Similarly, a segment-level semantic feature representation sequence of each preprocessed ambient sound signal is obtained.
6. The method for identifying environmental sound signals based on temporal characteristics according to claim 5, characterized in that: The feature extraction for each obtained audio segment adopts a deep learning model.
7. The method for identifying environmental sound signals based on temporal characteristics according to claim 5, characterized in that: The specific process of step 4 is as follows: Take the i-th preprocessed ambient sound signal as an example: The segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal is recorded as yes The feature of the nth audio segment in , N is the number of audio segments, The dimension of is d, and R is a real number; Update the features of the nth audio segment to Again To process: Among them, ||·|| is the 2-norm; Then the processed segment-level semantic features represent the features of the nth audio segment in the sequence as follows: in, is the processed segment-level semantic feature representing the feature of the nth audio segment in the sequence, sign(·) is the sign function, and |·| represents the absolute value; That is, the processed segment-level semantic feature representation sequence Indicated by The sequence composed of.
8. The method for identifying environmental sound signals based on temporal characteristics according to claim 7, characterized in that: The specific process of step five is as follows: Take the i-th preprocessed ambient sound signal as an example: The signal-level temporal feature representation of the i-th preprocessed ambient sound signal is extracted by minimizing the reconstruction error. Right now Among them, D i ∈R d×p is the basis matrix of the subspace with dimension p, rank(D i ) represents the basis matrix D i rank, A i represents the processed segment-level semantic feature representation sequence of the i-th preprocessed ambient sound signal, (D i T D i ) -1 D i T A i is the processed segment-level semantic feature representation sequence A i The projection coefficients in the subspace, the superscript -1 represents the inverse of the matrix, the superscript T represents the transpose of the matrix, ||·|| F represents the F-norm.
9. The method for identifying environmental sound signals based on temporal characteristics according to claim 8, characterized in that: The signal level time series feature of the i-th preprocessed ambient sound signal is represented by The calculation method is: The processed segment-level semantic feature representation sequence A i Perform singular value decomposition: Among them, M i is a left singular matrix, N i is a right singular matrix, S i A i The singular values of are diagonal matrices of diagonal elements; From the matrix N i Extract the singular vectors corresponding to the first p largest singular values, and then use the extracted singular vectors to form a matrix but Solve to obtain the signal-level temporal feature representation of the i-th preprocessed ambient sound signal 10. The method for identifying environmental sound signals based on temporal characteristics according to claim 4, characterized in that: When extracting the Mel spectrum coefficient features, the number of Mel spectrum bands is set to 128.
Citation Information
Patent Citations
Acoustic event recognition method based on subspace representation learning
CN110148428A
Acoustic event identification method based on common subspace representation learning
CN113361592A
Music rhythm information detection method and device, equipment, medium and product
CN115938332A
Multi-modal emotion recognition method and device
CN117763446A
