| CPC A01K 15/022 (2013.01) [A01K 27/001 (2013.01); A01K 27/009 (2013.01); G10K 11/17823 (2018.01); G10K 11/17873 (2018.01); G10K 2210/3027 (2013.01); G10K 2210/3028 (2013.01); G10K 2210/3044 (2013.01); G10K 2210/3045 (2013.01)] | 7 Claims |

|
1. An apparatus for controlling an anti-barking device with noise reduction, comprising a fixing device wearable on a neck of a pet dog, a housing, an anti-barking device, a main microphone sound collection module, an auxiliary microphone sound collection module, a differential amplifier module and a microprocessor, the housing being arranged on the fixing device and located at a vocal position of a throat at the neck of the pet dog, and the anti-barking device being arranged on the housing, wherein the apparatus further comprises a sound-based detection start module and a motion sensor; the main microphone sound collection module is mounted in the housing, and a pickup hole of a main microphone of the main microphone sound collection module is located at a bottom of the housing close to the vocal position of the throat of the pet dog; the auxiliary microphone sound collection module is mounted in the housing, and a pickup hole of an auxiliary microphone of the auxiliary microphone sound collection module is located at a top of the housing away from the vocal position of the throat of the pet dog; the main microphone of the main microphone sound collection module and the auxiliary microphone of the auxiliary microphone sound collection module have a same sensitivity and frequency response, and the main microphone of the main microphone sound collection module and the auxiliary microphone of the auxiliary microphone sound collection module have a same pickup hole and internal space; the main microphone sound collection module and the auxiliary microphone sound collection module respectively collect and amplify barking sound to yield an amplified barking sound, and send the amplified barking sound into the differential amplifier module for filtering out environmental noise; the differential amplifier module filters out the environmental noise by using an inverted sound wave based on phase cancellation, and outputs a noiseless barking sound signal to the microprocessor; the microprocessor performs fast Fourier transform to calculate frequency-domain characteristics, and determines whether the frequency-domain characteristics conform to frequency characteristics of barking sound of pet dogs stored in the microprocessor; the sound-based detection start module is connected with an output of the main microphone sound collection module, an output of the sound-based detection start module is connected with an input of the microprocessor, and the sound-based detection start module compares a signal collected by the main microphone sound collection module with a preset threshold, and awakens the microprocessor when the signal collected by the main microphone sound collection module is greater than the preset threshold; the motion sensor is arranged on the fixing device, and the motion sensor is connected to the sound-based detection start module; an output of the motion sensor is connected with the input of the microprocessor; when collecting sound, the sound-based detection start module triggers the motion sensor to start detecting a motion increment of the pet dog and send the motion increment to the microprocessor; the microprocessor calculates differences between two adjacent increments of X-axis, Y-axis and Z-axis sampled at a fixed cycle; the microprocessor calculates a root mean square (RMS) of the differences of X-axis, Y-axis and Z-axis, compares the RMS with a second preset threshold and records the RMS to yield recorded RMSs; collection of the motion sensor and collection of the sound are stopped synchronously; the microprocessor calculates an average (AVG) of the recorded RMSs, and determines, when the AVG exceeds a preset increment, that the pet dog currently wearing the anti-barking device is barking; and upon determining that the pet dog is barking, the microprocessor controls the anti-barking device to stimulate the pet dog to stop barking.
|
|
5. A method for controlling an anti-barking device with noise reduction, comprising using a fixing device wearable on a neck of a pet dog, a housing and an anti-barking device, the housing being arranged on the fixing device and located at a vocal position of a throat at the neck of the pet dog, and the anti-barking device being arranged on the housing and configured to stop the pet dog from barking, wherein the method further comprising using a motion sensor and a sound-based detection start module; and the method comprises:
detecting sound of the pet dog: microphones of a main microphone sound collection module and an auxiliary microphone sound collection module are set to have a sensitivity and frequency response, and the microphones of the main microphone sound collection module and the auxiliary microphone sound collection module have a same pickup hole and internal space, the main microphone sound collection module close to a vocal position of the throat of the pet dog collects sound, and the auxiliary microphone sound collection module mounted at a top of the housing away from the vocal position of the throat of the pet dog collects sound;
performing noise reduction on the sound: the main microphone sound collection module and the auxiliary microphone sound collection module respectively collect and amplify barking sound to yield amplified barking sound, and send the amplified barking sound into a differential amplifier module for filtering out environmental noise, and the differential amplifier module filters out the environmental noise by using an inverted sound wave based on phase cancellation and outputs a noiseless barking sound signal to a microprocessor; and
determining whether the noiseless barking sound signal conforms to a frequency of barking sound: the microprocessor performs fast Fourier transform on the noiseless barking sound signal to calculate frequency-domain characteristics and determines whether the frequency-domain characteristics conform to frequency characteristics of barking sound of pet dogs stored in the microprocessor; the sound-based detection start module compares a signal collected by the main microphone sound collection module with a preset threshold, and awakens the microprocessor when the signal is greater than the preset threshold; when collecting sound, the sound-based detection start module triggers the motion sensor to start detecting a motion increment of the pet dog and send the motion increment to the microprocessor; the microprocessor calculates differences between two adjacent increments of X-axis, Y-axis and Z-axis sampled at a fixed cycle; the microprocessor calculates a root mean square (RMS) of the differences of X-axis, Y-axis and Z-axis, compares the RMS with a second preset threshold and records the RMS to yield recorded RMSs; collection of the motion sensor and collection of the sound are stopped synchronously; the microprocessor calculates an average (AVG) of the recorded RMSs, and determines, when the AVG exceeds a preset increment, that the pet dog currently wearing the anti-barking device is barking; and upon determining that the pet dog is barking, the microprocessor controls the anti-barking device to stimulate the pet dog to stop barking.
|