A combined calculation method for enhancing sound localization and detection range
Through the combined calculation method of multiple sound input devices and the use of linear regression models and trigonometric function calculations, the problems of small detection range and low accuracy of existing equipment are solved, and a wider range and high-precision sound positioning are achieved.
Patent Information
- Application Number
- CN202111315333.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-11-08
AI Technical Summary
The detection range of existing sound input devices is small, unable to meet most demand scenarios that require detection distance, and the positioning accuracy is insufficient.
A combined calculation method that enhances sound localization and detection range is adopted. Test audio is received through multi-channel sound input devices, multiple sampling and normalization are performed, a linear regression model is used to predict the distance, and the angle is calculated through trigonometric functions to adjust the equipment. Gain to expand detection range.
It achieves sound detection and positioning over a wider range and distance, improves detection range and accuracy, and avoids performance limitations of a single device.
Smart Images

Figure CN114035156B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sound positioning, and more particularly to a combined calculation method for enhancing sound positioning and detection range. Background Art
[0002] The need for sound positioning is very common in the industry. In order to achieve a wider detection range and good enough positioning accuracy, optimization solutions are usually made at the hardware level. A common problem with some existing sound input devices in the industry is that the range of sound information that can be detected is relatively small, which cannot meet most demand scenarios that require detection distance. Summary of the invention
[0003] The object of the present invention is to provide a combined calculation method for enhancing sound localization and detection range.
[0004] The technical solution adopted by the present invention is:
[0005] A combined calculation method for enhancing sound localization and detection range includes the following steps:
[0006] Step 1, play a test audio;
[0007] Step 2, multiple sound input devices receive the test audio and perform multiple sampling to obtain corresponding sampling values;
[0008] Step 3, the sampled signals are filed separately to distinguish the sampled values of multiple groups of devices responsible for different distances;
[0009] Step 4, determine which group of devices are valid and trustworthy sampling values;
[0010] Step 5, normalizing the group of sound input device sampling values;
[0011] Step 6, predict the distance from the sound to each device based on the previously trained model of each device;
[0012] The model uses the existing linear regression model. For example: for the same set of sound input devices with the same gain, a certain number of samples are taken respectively, and the sample values are normalized and saved in files. The data in the files are divided into training sets and test sets, and then the linear regression model is used for training and the test set is used for testing. The training parameters are adjusted so that the scores in the cross-validation tend to be at a higher stage, so as to fit a relatively accurate model and save it.
[0013] Step 7: Calculate the angle between the sound and the device using trigonometric formulas to determine the sound position.
[0014] Furthermore, in step 2, a wider range of sound position detection is obtained by adjusting the sound input device combination with different gains.
[0015] Furthermore, the sound input devices in step 2 are 3 groups, each group has 3 devices, and the gain values of the three devices are adjusted to 10, 30 and 50 respectively, which are responsible for the sound position detection and judgment within 0.5m, 0.6-1.2m, and 1.3-2m.
[0016] Furthermore, in step 2, data preprocessing is performed on the values sampled by the sound input device to remove the characteristics of the device itself.
[0017] Furthermore, in step 2, the following formula is used to optimize the sampling value:
[0018]
[0019] Among them, S represents the standard deviation, S 2 represents variance, A represents mean, where x i 、x i-1 Indicates the sample value of the sample.
[0020] Furthermore, the specific judgment method of step 4 is:
[0021] When the values sampled by several groups of devices tend to be saturated, the group of devices that are not saturated is selected as the final reliable one for sound localization;
[0022] When the sampling values of several groups of devices are not saturated, the group of devices with the largest sampling value change is selected as the final sound positioning effective group. Furthermore, the linear regression function used to calculate the distance between each sound input device and the sound source in step 6 is as follows:
[0023] y=Jx 3 +Kx+L
[0024] Among them, y represents the distance of the sound source, x represents the normalized value of the sample, and J, K, and L are the parameters of model training.
[0025] Furthermore, the function formula for calculating the angular position of the sound source in step 7 is as follows:
[0026]
[0027] Among them, α and β represent the angle between one of the sound devices and the sound source, γ represents the angle between the sound source and two of the sound input devices, a and b represent the distance from the sound source to the two sound input devices, and c represents the distance between the two sound input devices.
[0028] The present invention adopts the above technical solution, uses multiple groups of sound input devices to be responsible for different detection ranges, converts the device signal strength into distance through a combination algorithm, and calculates the location of the sound. The present invention realizes sound detection and positioning over a wider range and distance by combining multiple groups of sound input devices with relatively small detection ranges and general accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments;
[0030] Figure 1 A schematic diagram of a combined calculation method for enhancing sound localization and detection range according to the present invention;
[0031] Figure 2 This is a schematic diagram of the angular position of the sound source calculated by the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0033] The specific working principle of the present invention is described in detail below:
[0034] Because the performance of each device is different, different groups of sound input devices adjust different gains to achieve a wider range of detection. The same gain cannot cover all ranges, so a combination of devices with different gains can detect and locate the sound position of a larger and more complete range. This patented technology is not limited by the performance and combination of the device and does not require the same sound input device to improve the detection range and positioning accuracy.
[0035] 1. The valid sampling value range for a single mic is as follows:
[0036] Single Mic Valid sampling value range (sound intensity) Single mic at 0.5m distance 70~120 Single mic at a distance of 0.6 to 1.2 m 20~60 Single mic at a distance of 1.3 to 2 meters Very weak Single mic at a distance of 2.1 to 2.8 meters Very weak
[0037] From the table above, we can see that when using a single device to detect at different distances, (1) the device can detect effective sound intensity values relatively stably within 1.2m. (2) beyond 1.2m, especially after 1.6m, the sound intensity values that can be detected are very weak and unstable.
[0038] 2. The sampling effects for multiple groups of mics are as follows
[0039] Mic Array Valid sampling value range (unit: sound intensity) Mic gain rate Mic array at 0.5m distance 20~70 10% Mic array distance 0.6~1.2m 80~130 30% Mic array at a distance of 1.3 to 2 meters 140~220 50% Mic array distance 2.1~2.8m 230~330 70% Mic array distance 2.9~4m 350~470 90%
[0040] As can be seen from the table above, for example, two groups of equipment are used, one group is responsible for detection within 0.5m, and the other group is responsible for detection within 0.6-1.2m. When a sound is heard, the sampling value of the group of equipment responsible for the long distance is easy to reach saturation when the sound is relatively close to it. Then choose another group of equipment responsible for 0.5m as an effective and trustworthy judgment group. When a sound source is heard, if the sampling values of the two groups of equipment are not saturated, then use the group of equipment with a larger sampling value change. Conclusion: Using different combinations of equipment can achieve good results in increasing the detection range of sound.
[0041] like Figure 1 or Figure 2 As shown, the present invention discloses a combined calculation method for enhancing sound localization and detection range, which includes the following steps:
[0042] Step 1, play a test audio;
[0043] Step 2, multiple sound input devices receive the test audio and perform multiple sampling to obtain corresponding sampling values;
[0044] Step 3, the sampled signals are filed separately to distinguish the sampled values of multiple groups of devices responsible for different distances;
[0045] Step 4: Determine which group of devices has valid and trustworthy sampling values
[0046] Step 5: Normalize the sampling values of the group of sound input devices
[0047] Step 6, predict the distance from the sound to each device based on the previously trained model of each device;
[0048] The model uses the existing linear regression model. For example: for the same set of sound input devices with the same gain, a certain number of samples are taken respectively, and the sample values are normalized and saved in files. The data in the files are divided into training sets and test sets, and then the linear regression model is used for training and the test set is used for testing. The training parameters are adjusted so that the scores in the cross-validation tend to be at a higher stage, so as to fit a relatively accurate model and save it.
[0049] Step 7: Calculate the angle between the sound and the device using trigonometric formulas to determine the sound position.
[0050] Furthermore, in step 2, a wider range of sound position detection is obtained by adjusting the sound input device combination with different gains.
[0051] Furthermore, the sound input devices in step 2 are 3 groups, each group has 3 devices, and the gain values of the three devices are adjusted to 10, 30 and 50 respectively, which are responsible for the sound position detection and judgment within 0.5m, 0.6-1.2m, and 1.3-2m.
[0052] Furthermore, in step 2, data preprocessing is performed on the values sampled by the sound input device to remove the characteristics of the device itself.
[0053] Furthermore, in step 2, the following formula is used to optimize the sampling value:
[0054]
[0055] Among them, S represents the standard deviation, S 2 represents variance, A represents mean, where x i 、x i-1 Indicates the sample value of the sample.
[0056] Furthermore, the specific judgment method of step 4 is:
[0057] When the values sampled by several groups of devices tend to be saturated, the group of devices that are not saturated is selected as the final reliable one for sound localization;
[0058] When the sampling values of several groups of devices are not saturated, the group of devices with the largest sampling value change is selected as the final sound positioning effective group. Furthermore, the linear regression function used to calculate the distance between each sound input device and the sound source in step 6 is as follows:
[0059] y=Jx 3 +Kx+L
[0060] Among them, y represents the distance of the sound source, x represents the normalized value of the sample, and J, K, and L are the parameters of model training.
[0061] Furthermore, the function formula for calculating the angular position of the sound source in step 7 is as follows:
[0062]
[0063]
[0064] Among them, α and β represent the angle between one of the sound devices and the sound source, γ represents the angle between the sound source and two of the sound input devices, a and b represent the distance from the sound source to the sound input device, and c represents the distance between the two sound input devices.
[0065] The present invention adopts the above technical scheme, through a combination of multiple groups of sound input devices, different groups of sound input devices are responsible for different detection ranges, the collected signal strength is judged by the device group algorithm to select the appropriate device group, and the sound location information is calculated through the conversion algorithm of the sampled signal strength and distance information.
[0066] Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians of the art without making creative work are within the scope of protection of the present application.
Claims
1. A combined calculation method for enhancing sound localization and detection range, characterized in that: It includes the following steps: Step 1, play a test audio; Step 2, multiple sound input devices receive the test audio and perform multiple sampling to obtain corresponding sampling values; Step 3, the sampled signals are filed separately to distinguish the sampled values of multiple groups of devices responsible for different distances; Step 4: Determine which group of devices are valid and trustworthy sampling values; the specific method for determining whether they are valid and trustworthy is as follows: When the values sampled by several groups of devices tend to be saturated, the group of devices that are not saturated is selected as the final reliable one for sound localization; When the sampling values of several groups of devices are not saturated, the group of devices with the largest sampling value change is selected as the final sound positioning effective group; Step 5, normalizing the group of sound input device sampling values; Step 6, predict the distance from the sound to each device based on the previously trained model of each device; that is, use a model with a linear regression function to calculate the distance between each sound input device and the sound source: y=Jx 3 +Kx+L Among them, y represents the distance of the sound source, x represents the value after sampling normalization, and J, K, and L are the parameters of model training; Step 7: Calculate the angle between the sound and the device using trigonometric formulas to determine the sound position.
2. The combined calculation method for enhancing sound localization and detection range according to claim 1, characterized in that: In step 2, a wider range of sound position detection is obtained by adjusting the sound input device combination with different gains.
3. The combined calculation method for enhancing sound localization and detection range according to claim 2, characterized in that: The sound input devices in step 2 are 3 groups, each with 3 devices. The gain values of the three devices are adjusted to 10, 30 and 50 respectively, and are used to detect and judge the sound positions within 0.5m, 0.6-1.2m, and 1.3-2m.
4. The combined calculation method for enhancing sound localization and detection range according to claim 1, characterized in that: In step 2, data preprocessing is performed on the values sampled by the sound input device to remove the characteristics of the device itself.
5. The combined calculation method for enhancing sound localization and detection range according to claim 1, characterized in that: In step 2, the following formula is used to optimize the sampling value: Among them, S represents the standard deviation, S 2 represents variance, A represents mean, where x i 、x i-1 Indicates the sample value of the sample.
6. The combined calculation method for enhancing sound localization and detection range according to claim 1, characterized in that: The function formula for calculating the angular position of the sound source in step 7 is as follows: Among them, α and β respectively represent the angle between one of the sound devices and the sound source, γ represents the angle between the sound source and two of the sound input devices; a and b respectively represent the distance from the sound source to the two sound input devices, and c represents the distance between the two sound input devices.
