Data enhancement method based on indoor sound source localization
The data set is enhanced through coordinate transformation and random node selection algorithms to generate a hybrid data set, which solves the over-fitting problem of deep neural networks in indoor sound source localization, significantly reduces positioning errors, and improves the adaptability of the model.
Patent Information
- Application Number
- CN202410634878.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-23
AI Technical Summary
Deep neural networks are prone to overfitting when based on indoor sound source localization. Especially when training on real-world data sets, sample imbalance leads to serious overfitting problems.
The coordinate transformation algorithm and random node selection algorithm are used to enhance the simulated data set and the real data set, generate the enhanced simulated data set and real data set, perform pre-training and fine-tuning, and form a mixed data set to reduce overfitting.
Significantly reduces overfitting of the sound source localization model, reduces positioning errors, improves the generalization ability of the model, and adapts to the characteristics of indoor sound source localization.
Smart Images

Figure CN118535856A
Abstract
Description
Background Art
[0002] Sound source localization technology is a technology used to determine the location of a sound source. Sound source localization technology can help us track the location of the sound source so that we can better understand the environment, take appropriate actions or communicate effectively.
[0003] A key obstacle facing indoor sound source localization based on deep neural network (DNN) is severe overfitting. Generally speaking, the less data, the easier it is to overfit, and sample imbalance is also prone to overfitting. However, recording data from self-organizing microphone arrays faces many practical difficulties: from the perspective of sound source localization, it is ideal to have voice samples recorded at different locations in the room, so that the data set is sample balanced. However, it is impractical to change the room, microphone array formation, and sound source position every time a voice is recorded, which will consume a lot of manpower and material resources. From the perspective of sound source localization, this inevitably leads to severe sample imbalance. Therefore, severe overfitting is likely to occur when training with real-world datasets. In fact, even if only simulated datasets are used for training, overfitting is still obvious, but the degree of overfitting is less than that of real datasets. Summary of the invention
[0004] In order to avoid the shortcomings of the prior art, the present application provides a data enhancement method based on indoor sound source localization to solve the problem in the prior art that serious overfitting will occur when training with real-world data sets, and even if only simulated data sets are used for training, overfitting is still obvious.
[0005] According to a first aspect of an embodiment of the present disclosure, a data enhancement method based on indoor sound source localization is provided, the method comprising: The simulated data set and the real data set are enhanced respectively by using the coordinate transformation algorithm and the random node selection algorithm to obtain an enhanced simulated data set and an enhanced real data set; Use the enhanced simulated data set for pre-training to obtain a pre-trained model; Combining the enhanced simulated dataset with the enhanced real dataset to obtain a hybrid dataset; The pre-trained model is fine-tuned using the mixed dataset to obtain the final model.
[0006] Furthermore, the coordinate transformation algorithm includes: Determine a first constraint condition and a second constraint condition, and establish a coordinate system according to the first constraint condition and the second constraint condition; According to the first constraint, select any corner of the room as the coordinate origin; Based on the coordinate origin, the coordinate axis is selected according to the second constraint.
[0007] Furthermore, the first constraint condition includes: The coordinate origin is located in a corner of the room.
[0008] Furthermore, the second constraint condition includes: The coordinate axes are aligned with the corresponding edges of the room's walls.
[0009] Furthermore, the random node selection algorithm includes: Some nodes are randomly selected from a number of nodes to form a new self-organizing microphone array to construct a variety of different array configurations.
[0010] Further, the step of combining the enhanced simulated dataset and the enhanced real dataset to obtain a mixed dataset includes: The enhanced simulated dataset is used to fill and mix the enhanced real dataset to obtain a mixed dataset with balanced samples.
[0011] According to a second aspect of an embodiment of the present disclosure, a data enhancement device based on indoor sound source localization is provided, the device comprising: A data enhancement module is used to enhance the simulated data set and the real data set respectively by using a coordinate transformation algorithm and a random node selection algorithm to obtain an enhanced simulated data set and an enhanced real data set; A pre-training module, used for pre-training using the enhanced simulated data set to obtain a pre-training model; A data mixing module, used to combine the enhanced simulated data set with the enhanced real data set to obtain a mixed data set; The fine-tuning module is used to fine-tune the pre-trained model using the mixed dataset to obtain the final model.
[0012] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of any of the above-mentioned data enhancement methods based on indoor sound source localization are implemented.
[0013] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including: Processor; and A memory, configured to store executable instructions of the processor; The processor is configured to execute the steps of any one of the above-mentioned data enhancement methods based on indoor sound source localization by executing the executable instructions.
[0014] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: In the embodiment of the present disclosure, through the above-mentioned data enhancement method based on indoor sound source localization, on the one hand, the coordinate transformation algorithm and the random node selection algorithm are used to enhance the simulated data set and the real data set respectively to pre-train the model; and then the mixed data set is used to enhance the real data set to fine-tune the pre-trained pre-trained model. On the other hand, the overfitting of the sound source localization model can be greatly reduced, and the error can be further reduced to adapt to the characteristics of indoor sound source localization. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0016] Figure 1 A step diagram showing a data enhancement method based on indoor sound source localization in an exemplary embodiment of the present disclosure; Figure 2 A schematic diagram showing coordinate system transformation and random node selection in an exemplary embodiment of the present disclosure; Figure 3 A schematic diagram of a data enhancement device based on indoor sound source localization in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0017] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0018] In addition, the accompanying drawings are only schematic illustrations of the embodiments of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0019] This example implementation first provides a data enhancement method based on indoor sound source localization. Figure 1 As shown in , the data enhancement method based on indoor sound source localization may include: step S101 to step S104.
[0020] Step S101: using a coordinate transformation algorithm and a random node selection algorithm to enhance the simulated data set and the real data set respectively, so as to obtain an enhanced simulated data set and an enhanced real data set; Step S102: pre-training using the enhanced simulated data set to obtain a pre-training model; Step S103: combining the enhanced simulated data set and the enhanced real data set to obtain a mixed data set; Step S104: fine-tune the pre-trained model using the mixed data set to obtain the final model.
[0021] Through the above data enhancement method based on indoor sound source localization, on the one hand, the coordinate transformation algorithm and the random node selection algorithm are used to enhance the simulated data set and the real data set respectively to pre-train the model; and then the mixed data set is used to enhance the real data set to fine-tune the pre-trained model. On the other hand, it can greatly reduce the overfitting of the sound source localization model and further reduce the error to adapt to the characteristics of indoor sound source localization.
[0022] Next, we will refer to Figure 1 to Figure 2 Each step of the above-mentioned data enhancement method based on indoor sound source localization in this example implementation is described in more detail.
[0023] In step S101 and step S102, the coordinate transformation algorithm specifically includes: 1.1 Determine the constraints and formulate available coordinate transformations based on these constraints and symmetries. The following are the constraints for establishing the coordinate system for existing indoor sound source localization: (1) The origin of the coordinate system is required to be located in a corner of the room; (2) The coordinate axes are aligned with the corresponding sides of the wall.
[0024] 1.2 According to constraint (1) (i.e. the first constraint), any corner of the room can be selected as the coordinate origin. In a two-dimensional scene, the room is a rectangle with four corners, so there are four possible choices for the coordinate origin. In a three-dimensional scene, the room is a cuboid with eight corners, so there are eight possible choices for the coordinate origin. 1.3 According to constraint (2) (i.e. the second constraint), after selecting the origin, the combination of coordinate axes can be different. For two-dimensional positioning, there are two axes, x and y, and there are two possible combinations, such as For example, in Figure 2 In the example, the lower left corner is selected as the origin of the coordinate system, and the combination of the coordinate axes is Instead of the default For 3D positioning, there are three axes: x, y and z, with 6 possible combinations, such as .
[0025] In short, for a single speech sample, in a two-dimensional scene, based on these coordinate transformations, there are 8 possible deformations. The 8 deformations here refer to the 4 coordinate origins that can be selected, and each coordinate origin has 2 coordinate axis combinations, so there are 8 combinations that can expand 1 speech sample into 8 speech samples. Similarly, in a three-dimensional scene, there are 8×6=48 possible deformations.
[0026] The random node selection algorithm includes: A self-organizing microphone array is a distributed microphone array consisting of a number of randomly placed nodes with an unlimited number of nodes, which exhibits a high degree of flexibility. One of the manifestations of flexibility is that a part of the nodes can be randomly selected to form a new self-organizing microphone array. Figure 2 As shown, a portion of nodes are randomly selected to form a new array. We randomly selected nodes, then there may be There are different array configurations. For example . This method can construct a large number of different array configurations. We emphasize here that changing the microphone array configuration means changing the spatial features, and rich spatial features are particularly important for sound source localization. Even in the training phase of simulated datasets with rich microphone array configurations, random node selection can provide significant performance improvements. This is a simple and easy-to-implement technique that provides three main advantages: (i) In each training epoch, only a portion of the nodes are selected for each sentence to train the DNN, which obviously reduces computing resources and time. (ii) It allows the DNN to see as many different array configurations as possible, enhancing generalization ability. (iii) It can also be viewed as a dropout method applied to microphone nodes, as it forces the model to use fewer nodes to perform sound source localization, further improving the generalization ability of the model.
[0027] In step S103 and step S104, the two data augmentation techniques mentioned above (i.e., the coordinate transformation algorithm and the random node selection algorithm) are indeed very beneficial for training on simulated datasets. However, they may still not be enough when processing real-world datasets. Taking Libri-adhoc40 as an example, the array configuration of this dataset can perform two-dimensional sound source localization, the training set contains 9 sound source positions, and the validation set contains 4 sound source positions. Even with the coordinate axis transformation, there are still only 72 and 32 positions respectively, and the problem of sample imbalance is still serious. Many existing self-organizing microphone array speech processing technologies follow a common workflow: they initially pre-train the model on a simulated dataset and then fine-tune it on a real dataset. In fact, when this method is applied to sound source localization, severe overfitting is observed. This leads to a significant drop in performance.
[0028] This application uses simulated data to fill and mix the real training set to achieve a mixed data set with balanced samples. First, a pre-trained model is pre-trained using the simulated data set. Then, this mixed data set is used to fine-tune the pre-trained model to obtain the final model.
[0029] It is also recommended to create a large mixed validation set with the real validation set to avoid potential bias towards the minority sound source locations present in the real validation set when selecting the model with the validation set.
[0030] It is understandable that the data enhancement solution used by this application to solve the problem includes three independent methods, which can be used in combination. The recommended way of use is to use method 1 (i.e., data enhancement algorithm) and method 2 (i.e., random node selection algorithm) to enhance the simulation training set to pre-train the model. Then use method 1, method 2, and method 3 (i.e., mixed training) to enhance the real data set to fine-tune the pre-trained model.
[0031] The present application is further described below with reference to the accompanying drawings and examples.
[0032] This application uses the Pyroomacoustics library to generate a simulated dataset, and uses Libri-adhoc40 to divide the real dataset. It is used to conduct sound source localization experiments in a two-dimensional plane. All source speech comes from the LibriSpeech corpus, and all source noise comes from a large-scale noise set. For 2D experiments, the height of all rooms is fixed at 4.2 meters, the height of the microphone is fixed at 0.9 meters, and the height of the sound source is fixed at 0.95 meters. For each speech in the dataset, a room with a random length and width range of [4, 10]m is generated. Microphone nodes or sound sources are placed at randomly selected locations in the room.
[0033] The reverberation time T60 of the simulation dataset is randomly selected between [0.2, 1.2]s. In the training set, the signal-to-noise ratio is randomly selected between [0, 50]dB, while in the validation and test sets, the SNR is selected between [10, 20]dB. The T60 of the real dataset is about 0.9s, with almost no additive noise. For each speech, there are 20 microphone nodes in the room, and each node has only one microphone. Each speech lasts 2 seconds. The training, validation, and test sets of each dataset contain 18,000, 1,800, and 1,800 speeches, respectively.
[0034] The E2ESL classification model based on deep learning proposed by Gong et.al. is used for sound source localization. In the simulation set pre-training experiment, the AdamW optimizer is used, and the maximum training cycle is 50. The batch size setting is set to 32. The initial value of the learning rate is 0.001. If the validation loss does not decrease within 3 epochs, the learning rate will be reduced to 0.0001. When fine-tuning, a learning rate of 0.0001 is used for 10 epochs.
[0035] Since all experiments are based on classification models, the most common and intuitive metric is classification accuracy (ACC) (%). For sound source localization, the most intuitive metric is the mean absolute error (MAE) of the straight-line distance between the predicted position and the true position, in meters.
[0036] Here are the experimental results: Table 1 Experimental results on the simulated dataset.
[0037]
[0038] Table 2 Test results on real datasets.
[0039]
[0040] Table 1 shows that coordinate system transformation and random node selection can effectively improve classification accuracy and reduce positioning error when used alone. When they are used in combination, the positioning error is further reduced, and the positioning error is reduced by 33.03% compared with the baseline.
[0041] As can be seen from Table 2, the results of directly testing the model pre-trained on the simulation set on the real test set are not ideal, and the results of fine-tuning using only the real data set are not much improved. However, when fine-tuning using the mixed data set, the performance of the model is significantly improved in both classification accuracy and positioning error. Compared with the pre-trained model, the positioning error is reduced by 68.98%.
[0042] The above-mentioned specific implementation methods of the present application are only used to illustrate or explain the principles of the present application, and do not constitute a limitation on the present application. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present application should be equivalent replacement methods and are included in the protection scope of the present application.
[0043] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.
[0044] This example implementation also provides a data enhancement device based on indoor sound source localization. Figure 3 As shown in , the data enhancement device 100 based on indoor sound source localization includes: a data enhancement module 110, a pre-training module 120, a data mixing module 130 and a fine-tuning module 140. Among them, A data enhancement module 110 is used to enhance the simulated data set and the real data set respectively by using a coordinate transformation algorithm and a random node selection algorithm to obtain an enhanced simulated data set and an enhanced real data set; A pre-training module 120 is used to perform pre-training using the enhanced simulated data set to obtain a pre-training model; A data mixing module 130, for combining the enhanced simulated data set with the enhanced real data set to obtain a mixed data set; The fine-tuning module 140 is used to fine-tune the pre-trained model using the mixed data set to obtain a final model.
[0045] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0046] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or 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 can be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0047] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, and when the program is included in a processor and executed, the steps of the data enhancement method based on indoor sound source localization described in any of the above embodiments can be implemented. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the data enhancement method based on indoor sound source localization section of the specification.
[0048] In an exemplary embodiment of the present disclosure, an electronic device is further provided, which may include a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to execute the steps of the data enhancement method based on indoor sound source localization in any of the above embodiments by executing the executable instructions.
[0049] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0050] Through the above data enhancement method based on indoor sound source localization, on the one hand, the coordinate transformation algorithm and the random node selection algorithm are used to enhance the simulated data set and the real data set respectively to pre-train the model; and then the mixed data set is used to enhance the real data set to fine-tune the pre-trained model. On the other hand, it can greatly reduce the overfitting of the sound source localization model and further reduce the error to adapt to the characteristics of indoor sound source localization.
[0051] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0052] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0053] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A data enhancement method based on indoor sound source localization, characterized in that: The method includes: The simulated data set and the real data set are enhanced respectively by using the coordinate transformation algorithm and the random node selection algorithm to obtain an enhanced simulated data set and an enhanced real data set; Use the enhanced simulated data set for pre-training to obtain a pre-trained model; Combining the enhanced simulated dataset with the enhanced real dataset to obtain a hybrid dataset; The pre-trained model is fine-tuned using the mixed dataset to obtain the final model.
2. According to claim 1, the data enhancement method based on indoor sound source localization is characterized in that: The coordinate transformation algorithms include: Determine a first constraint condition and a second constraint condition, and establish a coordinate system according to the first constraint condition and the second constraint condition; According to the first constraint, select any corner of the room as the coordinate origin; Based on the coordinate origin, the coordinate axis is selected according to the second constraint.
3. The data enhancement method based on indoor sound source localization according to claim 1, characterized in that: The first constraint condition includes: The coordinate origin is located in a corner of the room.
4. The data enhancement method based on indoor sound source localization according to claim 1, characterized in that: The second constraint condition includes: The coordinate axes are aligned with the corresponding edges of the room's walls.
5. The data enhancement method based on indoor sound source localization according to claim 1, characterized in that: The random node selection algorithm includes: Some nodes are randomly selected from a number of nodes to form a new self-organizing microphone array to construct a variety of different array configurations.
6. The data enhancement method based on indoor sound source localization according to claim 1, characterized in that: The step of combining the enhanced simulated dataset and the enhanced real dataset to obtain a mixed dataset includes: The enhanced simulated dataset is used to fill and mix the enhanced real dataset to obtain a mixed dataset with balanced samples.
7. A data enhancement device based on indoor sound source localization, characterized in that: The method includes: A data enhancement module is used to enhance the simulated data set and the real data set respectively by using a coordinate transformation algorithm and a random node selection algorithm to obtain an enhanced simulated data set and an enhanced real data set; A pre-training module, used for pre-training using the enhanced simulated data set to obtain a pre-training model; A data mixing module, used to combine the enhanced simulated data set with the enhanced real data set to obtain a mixed data set; The fine-tuning module is used to fine-tune the pre-trained model using the mixed dataset to obtain the final model.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the data enhancement method based on indoor sound source localization according to any one of claims 1 to 6 are implemented.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the steps of the data enhancement method based on indoor sound source localization according to any one of claims 1 to 6 by executing the executable instructions.
