CN104795076B - A kind of audio method for detecting - Google Patents
A kind of audio method for detecting Download PDFInfo
- Publication number
- CN104795076B CN104795076B CN201410028528.XA CN201410028528A CN104795076B CN 104795076 B CN104795076 B CN 104795076B CN 201410028528 A CN201410028528 A CN 201410028528A CN 104795076 B CN104795076 B CN 104795076B
- Authority
- CN
- China
- Prior art keywords
- alarm
- sampling time
- sampling
- time length
- reference threshold
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Emergency Alarm Devices (AREA)
Abstract
本发明公开了一种音频侦测方法,包括下列步骤:音频监控开启后,对环境背景噪声进行采样并计算出每一个采样点对应的能量值,通过比对采样时间20~40秒中的所有采样点对应的能量值,得到最大值和最小值;然后以1/64~1/2秒的采样时间间隔Δt对监控区域的声音进行采样并计算出每一个采样点对应的能量值,在采样时间长度S2内得到的每一个采样点对应的能量值均与报警参考阈值进行比较,大于报警参考阈值的采样点个数超过数值N/2时触发报警,大于报警参考阈值的采样点个数小于数值N/2时不触发报警,N为采样时间长度S2内的采样点个数S2/Δt。该方法可以排除周围存在规律性的噪音或突发性的噪声或干扰对异常声音进行检测。
The invention discloses an audio detection method, comprising the following steps: after the audio monitoring is turned on, sampling the environmental background noise and calculating the energy value corresponding to each sampling point, and comparing all the energy values in the sampling time of 20 to 40 seconds The energy value corresponding to the sampling point is obtained to obtain the maximum value and the minimum value; then the sound in the monitoring area is sampled with a sampling time interval Δt of 1/64 to 1/2 second and the energy value corresponding to each sampling point is calculated. The energy value corresponding to each sampling point obtained in the time length S2 is compared with the alarm reference threshold, and the alarm is triggered when the number of sampling points greater than the alarm reference threshold exceeds the value N/2, and the number of sampling points greater than the alarm reference threshold is less than An alarm will not be triggered when the value is N/2, and N is the number of sampling points S2/Δt within the sampling time length S2. The method can exclude regular noise or sudden noise or interference in the surroundings to detect abnormal sounds.
Description
技术领域technical field
本发明属于监视设备领域,特别涉及一种音频侦测方法。The invention belongs to the field of monitoring equipment, in particular to an audio detection method.
背景技术Background technique
对于单纯的视频监控方式,夜晚和阴天情况下效果不佳,而声音信号则不受光线和天气的影响。音频监控产品有拾音器、播放器、语音信箱系统、录音卡等,而核心是拾音器。对于音视频一体化监控来说,摄像机是眼睛,拾音器是耳朵。但是单纯的以声音大小为根据来检测是否报警,如雷声、车子鸣笛声、一声鞭炮声等自然声也会触发报警,引发误报。同时,其在嘈杂的环境下也不能使用,非常容易漏报和误报。For pure video monitoring, the effect is not good at night and in cloudy conditions, while the sound signal is not affected by light and weather. Audio monitoring products include pickups, players, voice mail systems, recording cards, etc., and the core is the pickup. For audio and video integrated monitoring, the camera is the eyes, and the pickup is the ear. However, it is purely based on the sound level to detect whether to alarm, such as thunder, car whistle, firecrackers and other natural sounds will also trigger the alarm, causing false alarms. At the same time, it cannot be used in noisy environments, and it is very easy to miss and false positives.
发明内容Contents of the invention
为了克服现有技术的不足,本发明提供了一种音频侦测方法,以音频来判定是否存在非法入侵,进行异常声音的检测,该方法可以排除周围存在规律性的噪音或突发性的噪声影响或是干扰,不会因为附近的一个雷声、一个车鸣笛声等的自然声音而触发报警,更不会在背景噪音复杂的闹市区附近而失去作用,所以该方法主要用于较为复杂环境下安防监控系统的声音检测。In order to overcome the deficiencies of the prior art, the present invention provides an audio detection method, which uses audio to determine whether there is an illegal intrusion, and detects abnormal sounds. This method can eliminate the presence of regular noise or sudden noise around Influence or interference, the alarm will not be triggered by the natural sound of a nearby thunder, a car whistle, etc., and it will not lose its effect near the downtown area with complex background noise, so this method is mainly used for more complex Sound detection of security monitoring system in environment.
本发明提供的技术方案为:The technical scheme provided by the invention is:
一种音频侦测方法,包括下列步骤:A method for audio detection, comprising the steps of:
步骤一、音频监控开启后,以8k~44.1kHz的采样率对监控区域的环境背景噪声进行采样并计算出每一个采样点对应的能量值,采样时间长度S1为20~40秒,通过比对该时间段中的所有采样点对应的能量值,得到最大值Emax和最小值Emin;Step 1. After the audio monitoring is turned on, sample the environmental background noise in the monitoring area at a sampling rate of 8k-44.1kHz and calculate the energy value corresponding to each sampling point. The sampling time length S1 is 20-40 seconds. By comparing The energy values corresponding to all sampling points in this time period are obtained to obtain the maximum value E max and the minimum value E min ;
步骤二、在步骤一中所述的对监控区域的环境背景噪声进行20~40秒采样之后,然后以1/64~1/2秒的采样时间间隔Δt对监控区域的声音进行采样并计算出每一个采样点对应的能量值,采样时间长度S2为用户设定的期待监听到的异常声音存在的时间长度5~60秒,在采样时间长度S2内得到的每一个采样点对应的能量值均与一报警参考阈值进行比较,所述报警参考阈值的计算方法为Emax+(Emax-Emin)*x,其中,x为用户设置的噪声敏感度,如果大于所述报警参考阈值的采样点个数超过数值N/2时,则触发报警,如果大于所述报警参考阈值的采样点个数小于数值N/2时,则不触发报警,N为采样时间长度S2内的采样点个数S2/Δt;Step 2. After sampling the ambient background noise in the monitoring area for 20 to 40 seconds as described in step 1, then sample the sound of the monitoring area with a sampling time interval Δt of 1/64 to 1/2 second and calculate The energy value corresponding to each sampling point, the sampling time length S2 is the time length of the abnormal sound expected to be monitored by the user, which is 5 to 60 seconds, and the energy value corresponding to each sampling point obtained within the sampling time length S2 is equal to Compared with an alarm reference threshold, the calculation method of the alarm reference threshold is E max +(E max -E min )*x, wherein, x is the noise sensitivity set by the user, if it is greater than the sampling of the alarm reference threshold When the number of points exceeds the value N/2, an alarm is triggered. If the number of sampling points greater than the alarm reference threshold is less than the value N/2, the alarm is not triggered. N is the number of sampling points in the sampling time length S2 S2/Δt;
步骤三、步骤二中所述采样时间长度S2内大于所述报警参考阈值的采样点个数小于数值N/2时,重复步骤二中的步骤;Step 3, when the number of sampling points greater than the alarm reference threshold in the sampling time length S2 described in step 2 is less than the value N/2, repeat the steps in step 2;
步骤四、每隔10-60分钟,重复步骤一、步骤二和步骤三的执行过程。Step 4: Repeat steps 1, 2 and 3 every 10-60 minutes.
优选的是,所述的音频侦测方法,步骤一中,以44.1kHz的采样率对监控区域的环境背景噪声进行采样,采样时间长度S1为30秒。Preferably, in the audio detection method, in step 1, the ambient background noise in the monitoring area is sampled at a sampling rate of 44.1 kHz, and the sampling time length S1 is 30 seconds.
优选的是,所述的音频侦测方法,步骤二中所述的采样时间间隔Δt为1/16。Preferably, in the audio detection method, the sampling time interval Δt in step 2 is 1/16.
优选的是,所述的音频侦测方法,步骤二中所述的用户设置的噪声敏感度x数值为0.1~10.0。Preferably, in the audio detection method, the value of noise sensitivity x set by the user in step 2 is 0.1-10.0.
优选的是,所述的音频侦测方法,步骤二中所述采样时间长度S2内大于所述报警参考阈值的采样点个数大于数值N/2触发报警后,重复步骤一和步骤二中的执行过程。Preferably, in the audio detection method described in step 2, after the number of sampling points greater than the alarm reference threshold within the sampling time length S2 in step 2 is greater than the value N/2 to trigger the alarm, repeat steps 1 and 2 Implementation process.
其中,步骤一中和步骤二中所述的在采样时间长度S1或者采样时间长度S2内计算采样点对应的能量值时使用积分的方式对声波面积进行累加得到能量值。Wherein, when calculating the energy value corresponding to the sampling point in the sampling time length S1 or the sampling time length S2 described in step 1 and step 2, the energy value is obtained by accumulating the sound wave area in an integral manner.
本发明所述的音频侦测方法,与现有技术相比,一是能在比较恒定的噪音环境下运行,防止漏报警情,该方法可以排除周围存在规律性的噪音,例如空调、电机等长时间运转的声音,闹市区附近的嘈杂声、车声,工厂环境的机床运作的声音等。二是能排除雷声,车鸣笛声等自然因素的干扰,防止虚报警情。三是采用积分的方式,进行异常声音的检测,比单纯性的比较阈值更可靠。Compared with the prior art, the audio detection method of the present invention can operate in a relatively constant noise environment to prevent missing alarms. The method can eliminate regular noises around, such as air conditioners, motors, etc. Such as the sound of long-term operation, the noise near the downtown area, the sound of cars, the sound of machine tools in the factory environment, etc. The second is to eliminate the interference of natural factors such as thunder, car whistle, etc., and prevent false alarms. The third is to use the integration method to detect abnormal sounds, which is more reliable than simple comparison thresholds.
附图说明Description of drawings
图1为本发明所述的音频侦测方法的流程图。FIG. 1 is a flow chart of the audio detection method of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明做进一步的详细说明,以令本领域技术人员参照说明书文字能够据以实施。The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.
如图1所示,本发明提供一种音频侦测方法,包括:As shown in Figure 1, the present invention provides an audio detection method, comprising:
步骤一、音频监控开启后,以44.1kHz的采样率,8/16bit的采样深度对监控区域的环境背景噪声进行采样并计算出每一个采样点对应的能量值,采样时间长度S1为30秒,计算采样点对应的能量值时采用积分的方式对声波面积进行累加得到声音的能量值,这样得到一组能量值,通过比对该组中的能量值,得到最大值Emax和最小值Emin;Step 1. After the audio monitoring is turned on, sample the environmental background noise in the monitoring area with a sampling rate of 44.1kHz and a sampling depth of 8/16bit and calculate the energy value corresponding to each sampling point. The sampling time length S1 is 30 seconds. When calculating the energy value corresponding to the sampling point, the integral method is used to accumulate the sound wave area to obtain the energy value of the sound. In this way, a set of energy values is obtained. By comparing the energy values in the group, the maximum value E max and the minimum value E min are obtained. ;
步骤二、在步骤一中所述的对监控区域的环境背景噪声进行30秒采样之后,然后以1/16秒的采样时间间隔Δt对监控区域的声音进行采样并计算出每一个采样点对应的能量值,采样时间长度S2为用户设定的期待监听到的异常声音存在的时间长度5~60秒,在采样时间长度S2内得到的每一个采样点对应的能量值均与一报警参考阈值进行比较,所述报警参考阈值的计算方法为Emax+(Emax-Emin)*x,其中,x为用户设置的噪声敏感度,如果大于所述报警参考阈值的采样点个数超过数值N/2时,则触发报警,如果大于所述报警参考阈值的采样点个数小于数值N/2时,则不触发报警,N为采样时间长度S2内的采样点个数S2/Δt;Step 2. After sampling the ambient background noise in the monitoring area for 30 seconds as described in step 1, then sample the sound of the monitoring area with a sampling time interval Δt of 1/16 second and calculate the corresponding Energy value, the sampling time length S2 is the time length of the abnormal sound expected to be monitored by the user, which is 5 to 60 seconds, and the energy value corresponding to each sampling point obtained within the sampling time length S2 is compared with an alarm reference threshold In comparison, the calculation method of the alarm reference threshold is E max +(E max -E min )*x, where x is the noise sensitivity set by the user, if the number of sampling points greater than the alarm reference threshold exceeds the value N /2, then trigger an alarm, if the number of sampling points greater than the alarm reference threshold is less than the value N/2, then do not trigger an alarm, N is the number of sampling points S2/Δt in the sampling time length S2;
步骤三、步骤二中所述采样时间长度S2内大于所述报警参考阈值的采样点个数小于数值N/2时,重复步骤二中的步骤;Step 3, when the number of sampling points greater than the alarm reference threshold in the sampling time length S2 described in step 2 is less than the value N/2, repeat the steps in step 2;
步骤四、Emax和Emin报警参考阈值可以根据用户的实际需要,每隔10-60分钟更新一次,以适应背景噪声环境的变化,防止警情的漏报和虚报,所以每隔10-60分钟,重复步骤一、步骤二和步骤三的执行过程。Step 4, E max and E min alarm reference thresholds can be updated every 10-60 minutes according to the actual needs of users, in order to adapt to changes in the background noise environment and prevent false alarms and false alarms, so every 10-60 minutes Minutes, repeat the execution process of step 1, step 2 and step 3.
所述的音频侦测方法,步骤二中所述的用户设置的噪声敏感度x数值为0.1~10.0。In the audio detection method, the value of noise sensitivity x set by the user in step 2 is 0.1-10.0.
所述的音频侦测方法,步骤二中所述采样时间长度S2内大于所述报警参考阈值的采样点个数大于数值N/2触发报警后,重复步骤一和步骤二中的执行过程。In the audio detection method described in step 2, after the number of sampling points greater than the alarm reference threshold within the sampling time length S2 in step 2 is greater than the value N/2 to trigger an alarm, the execution process in step 1 and step 2 is repeated.
尽管本发明的实施方案已公开如上,但其并不仅仅限于说明书和实施方式中所列运用,它完全可以被适用于各种适合本发明的领域,对于熟悉本领域的人员而言,可容易地实现另外的修改,因此在不背离权利要求及等同范围所限定的一般概念下,本发明并不限于特定的细节和这里示出与描述的图例。Although the embodiment of the present invention has been disclosed as above, it is not limited to the use listed in the specification and implementation, it can be applied to various fields suitable for the present invention, and it can be easily understood by those skilled in the art Therefore, the invention is not limited to the specific details and examples shown and described herein without departing from the general concept defined by the claims and their equivalents.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410028528.XA CN104795076B (en) | 2014-01-21 | 2014-01-21 | A kind of audio method for detecting |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410028528.XA CN104795076B (en) | 2014-01-21 | 2014-01-21 | A kind of audio method for detecting |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104795076A CN104795076A (en) | 2015-07-22 |
| CN104795076B true CN104795076B (en) | 2018-08-14 |
Family
ID=53559834
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410028528.XA Expired - Fee Related CN104795076B (en) | 2014-01-21 | 2014-01-21 | A kind of audio method for detecting |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104795076B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105261368B (en) * | 2015-08-31 | 2019-05-21 | 华为技术有限公司 | A kind of voice wake-up method and device |
| KR20170051856A (en) * | 2015-11-02 | 2017-05-12 | 주식회사 아이티매직 | Method for extracting diagnostic signal from sound signal, and apparatus using the same |
| CN107767880B (en) * | 2016-08-16 | 2021-04-16 | 杭州萤石网络有限公司 | Voice detection method, camera and intelligent home nursing system |
| CN106448700B (en) * | 2016-10-31 | 2019-09-17 | 济南中维世纪科技有限公司 | A kind of piping detection method and system |
| CN106531193B (en) * | 2016-10-31 | 2019-09-17 | 济南中维世纪科技有限公司 | A kind of abnormal sound detection method that ambient noise is adaptive and system |
| CN107493376A (en) * | 2017-07-05 | 2017-12-19 | 宇龙计算机通信科技(深圳)有限公司 | A kind of ringing volume adjusting method and device |
| CN107343160B (en) * | 2017-08-30 | 2018-04-24 | 胡佳威 | Night motorcycle caution system |
| CN120558555B (en) * | 2025-07-30 | 2025-09-30 | 深圳市华成工业控制股份有限公司 | Abnormal vibration detection method, device, electronic equipment and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4101839A (en) * | 1974-11-27 | 1978-07-18 | The United States Of America As Represented By The Secretary Of The Navy | Analog-digital ratio detector |
| GB2103406A (en) * | 1981-05-28 | 1983-02-16 | Bedford Printed Circuits Limit | Improvements in or relating to microprocessor alarm systems |
| US7623028B2 (en) * | 2004-05-27 | 2009-11-24 | Lawrence Kates | System and method for high-sensitivity sensor |
| CN101930649B (en) * | 2010-08-20 | 2012-05-30 | 宁波诺可电子科技发展有限公司 | Method for preventing false alarm under severe weather conditions for fiber fence alarm system |
-
2014
- 2014-01-21 CN CN201410028528.XA patent/CN104795076B/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN104795076A (en) | 2015-07-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104795076B (en) | A kind of audio method for detecting | |
| JP2011517799A (en) | Illegal intrusion detection system with signal recognition | |
| CN106251572A (en) | Smart Home based on vibration detection monitoring method and system | |
| CN104796822B (en) | Audio squealing detection method, video monitoring method and system using this method | |
| KR101384781B1 (en) | Apparatus and method for detecting unusual sound | |
| US11335359B2 (en) | Methods and devices for obtaining an event designation based on audio data | |
| US20200170234A1 (en) | Monitoring disease vectors | |
| CN110634506A (en) | Voice data processing method and device | |
| Zieger et al. | Acoustic based surveillance system for intrusion detection | |
| CN108597164B (en) | Anti-theft method, anti-theft device, anti-theft terminal and computer readable medium | |
| CN110536213A (en) | System and method for monitoring | |
| CN103345807B (en) | A kind of safety defense monitoring system based on acceleration transducer and method | |
| CN108806702A (en) | For the detection method and device of Ultrasonic Voice hiding attack | |
| WO2009013549A1 (en) | Infrasonic intruder alarm | |
| CN104036623B (en) | The method that data message wrong report is corrected | |
| EP2884473A1 (en) | Internet protocol addressable public address devices and systems | |
| WO2017156895A1 (en) | Multimedia playing method and device | |
| CN106531193B (en) | A kind of abnormal sound detection method that ambient noise is adaptive and system | |
| CN105205728B (en) | An audio and video fusion detection method for power room monitoring | |
| KR101681188B1 (en) | Device and method for tracking sound source location by removing wind noise | |
| US11533577B2 (en) | Method and system for detecting sound event liveness using a microphone array | |
| US20250218265A1 (en) | Generating overlayed sounds to deter perpetration of an event | |
| CN107204106B (en) | An alarm method and system for filtering out false alarms in a security system | |
| CN204833568U (en) | Broken detection device of glass and LED lighting device | |
| US9697700B2 (en) | Ambient condition detector with processing of incoming audible commands followed by speech recognition |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20180704 Address after: 315012 room 1025, Liyuan North Road, Haishu District, Ningbo, Zhejiang, China, 755 Applicant after: Ningbo yuanzhicube Energy Technology Co.,Ltd. Address before: 100080 Zhichun Road, Haidian District, Haidian District, Beijing, seven layers Applicant before: HONGBANDENG SCIENCE & TECHNOLOGY CO.,LTD. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP02 | Change in the address of a patent holder |
Address after: 546100 standard workshop area B, Xingbin District, Laiwu second level road, Xingbin District, Laibin City, Guangxi Zhuang Autonomous Region Patentee after: Ningbo yuanzhicube Energy Technology Co.,Ltd. Address before: 315012 Zhejiang Province, Ningbo city Haishu District Liyuan Road No. 755 room 1025 Patentee before: Ningbo yuanzhicube Energy Technology Co.,Ltd. |
|
| CP02 | Change in the address of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180814 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |