Coder Social home page Coder Social logo

Comments (9)

tphakala avatar tphakala commented on June 30, 2024 1

It seems that I messed up default settings for human privacy and dog bark filters, please add confidence setting for dogbark filter with value of 0.1 or lower and fix a typo for confidence on privacyfilter.

  privacyfilter:          # Privacy filter prevents audio clip saving if human voice 
    enabled: true         # is detected durin audio capture
    confidence: 0.05      # threshold for human voice detection

  dogbarkfilter:
    enabled: true
    confidence: 0.1       # confidence threshold for dog bark detection
    remember: 5           # number of minutes to remember dog barks

from birdnet-go.

tphakala avatar tphakala commented on June 30, 2024 1

Huh you have really bad AC hum on your audio, I guess that is causing false detections. Make sure that mic cable is routed as far of AC leads as possible and maybe check if you can improve your mic EMI shielding. What mic are you using?

But yeah, there are few human detections in that clip you sent.

 ./bin/birdnet-go file /home/thakala/test.wav -t 0.000001 --overlap 1.5 | grep -i human
10      Spectrogram 1   1       /home/thakala/test.wav  00:00:00        00:00:00        0       15000   humvoc  Human vocal     0.0029
33      Spectrogram 1   1       /home/thakala/test.wav  00:00:00        00:00:00        0       15000   humvoc  Human vocal     0.0077

And boy I am not thinking straight today, I replied earlier that setting confidence level lower would fix false detections, that is ofcourse otherway around, you need to set it higher as it raises confidence level which is required for human to be detected. Try setting privacy filter confidence value to 0.1 or so.

That dog bark filter log message is always logged, even though dog bark filter action itself is not enabled, I will fix it to avoid confusion.

from birdnet-go.

tphakala avatar tphakala commented on June 30, 2024

I added sensitivity threshold setting for v0.5.4 release

  privacyfilter:          # Privacy filter prevents audio clip saving if human voice 
    enabled: true         # is detected durin audio capture
    threshold: 0.05       # threshold for human voice detection

Default value is 0.05, if it is too sensitive set it to higher value, 0.1 or higher.

from birdnet-go.

tomlut avatar tomlut commented on June 30, 2024

Hmm.

I tried as low as 0.00001 and it was still constantly detecting phantom humans.

The dog filter is going off with no dog barking too.

I have disabled both.

Even with the dog bark filter disabled I am seeing constant dog detections:

  privacyfilter:          # Privacy filter prevents audio clip saving if human voice 
    enabled: false         # is detected durin audio capture
    threshold: 0.00001       # threshold for human voice detection

  dogbarkfilter:
    enabled: false
    condidence: 0.5       # confidence threshold for dog bark detection
    remember: 5           # number of minutes to remember dog barks
tom@raspberrypi:~ $ journalctl -t birdnet-go -f
Jun 01 19:53:45 raspberrypi birdnet-go[596773]: 2024/06/01 19:53:45 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:53:47 raspberrypi birdnet-go[596773]: 2024/06/01 19:53:47 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:12 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:12 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:14 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:14 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:15 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:15 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:17 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:17 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:18 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:18 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:20 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:20 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:51 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:51 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 19:54:57 raspberrypi birdnet-go[596773]: 2024/06/01 19:54:57 Dog detected, updating last detection timestamp for potential owl false positives

from birdnet-go.

tphakala avatar tphakala commented on June 30, 2024

What is your audio source, is it a RTSP from security camera or a microphone on a sound card?

from birdnet-go.

tomlut avatar tomlut commented on June 30, 2024

Microphone plugged into a sound card.

I tried changing back to default in case the high pass filter was creating artefacts. No change.

Also does not explain why dogs were still being detected when the filter was disabled. (Yes I did save the config and restart birdnet).

from birdnet-go.

tomlut avatar tomlut commented on June 30, 2024

Ha! I should have noticed that.

Seems to have fixed both issues. Thank you.

from birdnet-go.

tomlut avatar tomlut commented on June 30, 2024

Spoke too soon. It started up again.

Jun 01 21:41:52 raspberrypi birdnet-go[7041]: 2024/06/01 21:41:52 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:42:14 raspberrypi birdnet-go[7041]: 2024/06/01 21:42:14 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:46:09 raspberrypi birdnet-go[7041]: 2024/06/01 21:46:09 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:47:45 raspberrypi birdnet-go[7041]: 2024/06/01 21:47:45 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:48:57 raspberrypi birdnet-go[7041]: 2024/06/01 21:48:57 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:48:58 raspberrypi birdnet-go[7041]: 2024/06/01 21:48:58 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:52:12 raspberrypi birdnet-go[7041]: 2024/06/01 21:52:12 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:54:30 raspberrypi birdnet-go[7041]: 2024/06/01 21:54:30 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:54:46 raspberrypi birdnet-go[7041]: 2024/06/01 21:54:46 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 21:55:39 raspberrypi birdnet-go[7041]: 2024/06/01 21:55:39 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:57:07 raspberrypi birdnet-go[7041]: 2024/06/01 21:57:07 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:57:07 raspberrypi birdnet-go[7041]: 2024/06/01 21:57:07 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 21:57:09 raspberrypi birdnet-go[7041]: 2024/06/01 21:57:09 Human detected, updating last detection timestamp for privacy filtering
Jun 01 21:57:09 raspberrypi birdnet-go[7041]: 2024/06/01 21:57:09 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 21:58:19 raspberrypi birdnet-go[7041]: 2024/06/01 21:58:19 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 21:58:19 raspberrypi birdnet-go[7041]: 2024/06/01 21:58:19 Human detected, updating last detection timestamp for privacy filtering
Jun 01 22:01:57 raspberrypi birdnet-go[7041]: 2024/06/01 22:01:57 Human detected, updating last detection timestamp for privacy filtering
Jun 01 22:02:49 raspberrypi birdnet-go[7041]: 2024/06/01 22:02:49 Human detected, updating last detection timestamp for privacy filtering
Jun 01 22:05:09 raspberrypi birdnet-go[7041]: 2024/06/01 22:05:09 Human detected, updating last detection timestamp for privacy filtering
Jun 01 22:07:40 raspberrypi birdnet-go[7041]: 2024/06/01 22:07:40 Human detected, updating last detection timestamp for privacy filtering

I have disabled both again. This time I think it has stopped.

I recorded a short audio clip and do not hear any noise that could be causing this. Attached

test.zip

EDIT: Nope. Even with the dog filter disabled I am still getting these events:

Jun 01 22:22:24 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:24 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:25 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:25 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:26 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:26 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:28 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:28 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:30 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:30 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:37 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:37 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:38 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:38 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:44 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:44 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:50 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:50 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:52 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:52 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:53 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:53 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:55 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:55 Dog detected, updating last detection timestamp for potential owl false positives
Jun 01 22:22:56 raspberrypi birdnet-go[15554]: 2024/06/01 22:22:56 Dog detected, updating last detection timestamp for potential owl false positives

from birdnet-go.

tomlut avatar tomlut commented on June 30, 2024

I use this microphone: https://micbooster.com/clippy-and-pluggy-microphones/65-clippy-em272-microphone.html

I have just moved the Pi's power plug-pack out of the waterproof enclosure I house the Pi in. The 50Hz AC hum is now below the noise floor - at least during the day when there is a lot of traffic noise, I will have to test again tonight when it is quieter. See (hear) attached. Note that this file has been normalised to a peak amplitude of -1dB in Audacity to hear as much as possible.

test_norm.zip

This does appear to have solved the issue. The only dog detections I see now are when there are actually dogs barking and the human detections are likewise operating correctly.

from birdnet-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.