Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspiciously few detections #159

Open
farski opened this issue May 10, 2024 · 3 comments
Open

Suspiciously few detections #159

farski opened this issue May 10, 2024 · 3 comments

Comments

@farski
Copy link
Contributor

farski commented May 10, 2024

As I've been working more closely on Birdnet-Go, I've had some opportunities to be looking at the app while it's running during the day. I've noticed there are times where I'm hearing birds very close to my desk and the microphone I have connected to Birdnet-Go, which should be very clear and easy to detect, but there will be zero detections for a long time. Sometimes 10 minutes will pass with no detections, but there was constant bird activity during that time.

I know it's not apples-to-apples but, just for reference, I ran Merlin for about 45 seconds on my phone, and it had multiple detections of 9 different species. During that same time, Birdnet-Go reported 0 detections. The microphone for Birdnet-Go is in my backyard, and I was just holding Merlin up to the window, so I wouldn't expect it to get better results.

Interestingly, if I play back the clips that are captured for detection from Birdnet-Go and I hold Merlin up to my computer, it will also detect more birds than Birdnet-Go detected for the same clip, so it doesn't seem to be an audio fidelity issue or something like that.

Is there any way I can dig more into what's happening during analysis of chunks, even when it doesn't result in a detection? I see in the code there is some logging that may help with this, but I'm not sure where to see those log statements. They don't show up in the terminal, even when running with the -d flag, and I don't actually have a birdnet.log file in my Birdnet-Go folder, even though it's enabled in the config file.

@tphakala
Copy link
Owner

If you run birdnet-go as a system service log goes to systemd's journal, you see log messages with journalctl -t birdnet-go command (this lists full history of birdnet-go log messages).

If you wish to see logs as they come in run journalctl -t birdnet-go -f

@farski
Copy link
Contributor Author

farski commented May 10, 2024

I got it running as a service based on your advice (thanks for that). I'm not seeing a lot of logging related to analysis in the journal output, though

ay 10 10:31:01 birdnet birdnet-go[1095]: BirdNET-Go build date: 2024-05-01T17:10:00Z, using config file: /home/birdnet/.config/birdnet-go/config.yaml
May 10 10:31:02 birdnet birdnet-go[1095]: BirdNET GLOBAL 6K V2.4 FP32 model initialized, using 4 threads of available 4 CPUs
May 10 10:31:02 birdnet birdnet-go[1095]: System details: linux raspbian 12.5 on Raspberry Pi 4 Model B Rev 1.5
May 10 10:31:02 birdnet birdnet-go[1095]:  hardware
May 10 10:31:02 birdnet birdnet-go[1095]: Starting analyzer in realtime mode. Threshold: 0.8, sensitivity: 1, interval: 15
May 10 10:31:03 birdnet birdnet-go[1095]: Logging disabled
May 10 10:31:03 birdnet birdnet-go[1095]: ⇨ http server started on [::]:8080
May 10 10:31:03 birdnet birdnet-go[1095]: Capture Devices
May 10 10:31:03 birdnet birdnet-go[1095]:     0: Discard all samples (playback) or generate zero samples (capture), 6e756c6c,
May 10 10:31:03 birdnet birdnet-go[1095]:     1: Default Audio Device, 64656661756c74, [default]
May 10 10:31:03 birdnet birdnet-go[1095]:     2: Default Audio Device, 73797364656661756c74,
May 10 10:31:03 birdnet birdnet-go[1095]:     3: Rate Converter Plugin Using Libav/FFmpeg Library, 6c617672617465,
May 10 10:31:03 birdnet birdnet-go[1095]:     4: Rate Converter Plugin Using Samplerate Library, 73616d706c6572617465,
May 10 10:31:03 birdnet birdnet-go[1095]:     5: Rate Converter Plugin Using Speex Resampler, 737065657872617465,
May 10 10:31:03 birdnet birdnet-go[1095]:     6: JACK Audio Connection Kit, 6a61636b,
May 10 10:31:03 birdnet birdnet-go[1095]:     7: Open Sound System, 6f7373,
May 10 10:31:03 birdnet birdnet-go[1095]:     8: PulseAudio Sound Server, 70756c7365,
May 10 10:31:03 birdnet birdnet-go[1095]:     9: Plugin using Speex DSP (resample, agc, denoise, echo, dereverb), 7370656578,
May 10 10:31:03 birdnet birdnet-go[1095]:     10: Plugin for channel upmix (4,6,8), 75706d6978,
May 10 10:31:03 birdnet birdnet-go[1095]:     11: Plugin for channel downmix (stereo) with a simple spacialization, 76646f776e6d6978,
May 10 10:31:03 birdnet birdnet-go[1095]:     12: USB Audio Device, USB Audio, 3a302c30,
May 10 10:31:03 birdnet birdnet-go[1095]: Listening on device: Default Audio Device (device ID 64656661756c74)
May 10 10:32:17 birdnet birdnet-go[1169]: BirdNET-Go build date: 2024-05-01T17:10:00Z, using config file: /home/birdnet/.config/birdnet-go/config.yaml
May 10 10:32:17 birdnet birdnet-go[1169]: BirdNET GLOBAL 6K V2.4 FP32 model initialized, using 4 threads of available 4 CPUs
May 10 10:32:17 birdnet birdnet-go[1169]: System details: linux raspbian 12.5 on Raspberry Pi 4 Model B Rev 1.5
May 10 10:32:17 birdnet birdnet-go[1169]:  hardware
May 10 10:32:17 birdnet birdnet-go[1169]: Starting analyzer in realtime mode. Threshold: 0.8, sensitivity: 1, interval: 15
May 10 10:32:17 birdnet birdnet-go[1169]: 2024/05/10 10:32:17 SQLite database connection initialized: birdnet.db
May 10 10:32:17 birdnet birdnet-go[1169]: Logging disabled
May 10 10:32:17 birdnet birdnet-go[1169]: Initializing context
May 10 10:32:17 birdnet birdnet-go[1169]: Attempting to initialize ALSA backend...
May 10 10:32:17 birdnet birdnet-go[1169]: Loading library: libasound.so.2
May 10 10:32:17 birdnet birdnet-go[1169]: ⇨ http server started on [::]:8080
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_open
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_close
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_sizeof
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_any
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_format
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_format_first
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_format_mask
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_channels
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_channels_near
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_channels_minmax
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_rate_resample
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_rate
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_rate_near
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_buffer_size_near
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_periods_near
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_set_access
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_format
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_channels
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_channels_min
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_channels_max
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_rate
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_rate_min
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_rate_max
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_buffer_size
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_periods
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_get_access
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_test_format
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_test_channels
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params_test_rate
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_hw_params
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_sizeof
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_current
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_get_boundary
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_set_avail_min
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_set_start_threshold
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params_set_stop_threshold
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_sw_params
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_format_mask_sizeof
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_format_mask_test
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_get_chmap
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_state
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_prepare
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_start
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_drop
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_drain
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_reset
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_device_name_hint
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_device_name_get_hint
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_card_get_index
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_device_name_free_hint
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_mmap_begin
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_mmap_commit
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_recover
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_readi
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_writei
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_avail
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_avail_update
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_wait
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_nonblock
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_info
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_info_sizeof
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_info_get_name
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_poll_descriptors
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_poll_descriptors_count
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_pcm_poll_descriptors_revents
May 10 10:32:17 birdnet birdnet-go[1169]: Loading symbol: snd_config_update_free_global
May 10 10:32:17 birdnet birdnet-go[1169]: System Architecture:
May 10 10:32:17 birdnet birdnet-go[1169]:   Endian: LE
May 10 10:32:17 birdnet birdnet-go[1169]:   SSE2:   NO
May 10 10:32:17 birdnet birdnet-go[1169]:   AVX2:   NO
May 10 10:32:17 birdnet birdnet-go[1169]:   NEON:   YES
May 10 10:32:17 birdnet birdnet-go[1169]: Capture Devices
May 10 10:32:17 birdnet birdnet-go[1169]:     0: Discard all samples (playback) or generate zero samples (capture), 6e756c6c,
May 10 10:32:17 birdnet birdnet-go[1169]:     1: Default Audio Device, 64656661756c74, [default]
May 10 10:32:17 birdnet birdnet-go[1169]:     2: Default Audio Device, 73797364656661756c74,
May 10 10:32:17 birdnet birdnet-go[1169]:     3: Rate Converter Plugin Using Libav/FFmpeg Library, 6c617672617465,
May 10 10:32:17 birdnet birdnet-go[1169]:     4: Rate Converter Plugin Using Samplerate Library, 73616d706c6572617465,
May 10 10:32:17 birdnet birdnet-go[1169]:     5: Rate Converter Plugin Using Speex Resampler, 737065657872617465,
May 10 10:32:17 birdnet birdnet-go[1169]:     6: JACK Audio Connection Kit, 6a61636b,
May 10 10:32:17 birdnet birdnet-go[1169]:     7: Open Sound System, 6f7373,
May 10 10:32:17 birdnet birdnet-go[1169]:     8: PulseAudio Sound Server, 70756c7365,
May 10 10:32:17 birdnet birdnet-go[1169]:     9: Plugin using Speex DSP (resample, agc, denoise, echo, dereverb), 7370656578,
May 10 10:32:17 birdnet birdnet-go[1169]:     10: Plugin for channel upmix (4,6,8), 75706d6978,
May 10 10:32:17 birdnet birdnet-go[1169]:     11: Plugin for channel downmix (stereo) with a simple spacialization, 76646f776e6d6978,
May 10 10:32:17 birdnet birdnet-go[1169]:     12: USB Audio Device, USB Audio, 3a302c30,
May 10 10:32:17 birdnet birdnet-go[1169]: [ALSA]
May 10 10:32:17 birdnet birdnet-go[1169]:   Default Audio Device (Capture)
May 10 10:32:17 birdnet birdnet-go[1169]:     Format:      16-bit Signed Integer -> 16-bit Signed Integer
May 10 10:32:17 birdnet birdnet-go[1169]:     Channels:    1 -> 1
May 10 10:32:17 birdnet birdnet-go[1169]:     Sample Rate: 48000 -> 48000
May 10 10:32:17 birdnet birdnet-go[1169]:     Buffer Size: 1024*3 (3072)
May 10 10:32:17 birdnet birdnet-go[1169]:     Conversion:
May 10 10:32:17 birdnet birdnet-go[1169]:       Pre Format Conversion:  NO
May 10 10:32:17 birdnet birdnet-go[1169]:       Post Format Conversion: NO
May 10 10:32:17 birdnet birdnet-go[1169]:       Channel Routing:        NO
May 10 10:32:17 birdnet birdnet-go[1169]:       Resampling:             NO
May 10 10:32:17 birdnet birdnet-go[1169]:       Passthrough:            YES
May 10 10:32:17 birdnet birdnet-go[1169]:       Channel Map In:         {CHANNEL_MONO}
May 10 10:32:17 birdnet birdnet-go[1169]:       Channel Map Out:        {CHANNEL_MONO}
May 10 10:32:17 birdnet birdnet-go[1169]: Starting device
May 10 10:32:17 birdnet birdnet-go[1169]: Device started
May 10 10:32:17 birdnet birdnet-go[1169]: Listening on device: Default Audio Device (device ID 64656661756c74)
May 10 10:32:19 birdnet birdnet-go[1169]: [ALSA] poll() failed.
May 10 10:32:19 birdnet birdnet-go[1169]: [ALSA] Dropping capture device...
May 10 10:32:19 birdnet birdnet-go[1169]: [ALSA] Dropping capture device successful.
May 10 10:32:19 birdnet birdnet-go[1169]: [ALSA] Preparing capture device...
May 10 10:32:19 birdnet birdnet-go[1169]: [ALSA] Preparing capture device successful.
May 10 10:32:19 birdnet birdnet-go[1169]: Attempting to restart audio device.
May 10 10:32:19 birdnet birdnet-go[1169]: Audio device restarted successfully.
May 10 10:33:19 birdnet birdnet-go[1169]: 
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:33:19 birdnet birdnet-go[1169]: [2146.385ms] [rows:8] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Found 8 clips to remove
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_84p_20240509T221300Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_81p_20240509T221312Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_86p_20240509T221554Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_87p_20240509T221650Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_89p_20240509T221808Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_81p_20240509T221857Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_83p_20240509T222345Z.wav
May 10 10:33:19 birdnet birdnet-go[1169]: 2024/05/10 10:33:19 Removed clips/2024/05/pandion_haliaetus_84p_20240509T222527Z.wav
May 10 10:33:20 birdnet birdnet-go[1169]: 2024/05/10 10:33:20 New detection: Black-capped Chickadee with confidence: 0.834400
May 10 10:33:28 birdnet birdnet-go[1169]: 2024/05/10 10:33:28 No species config found, using default actions for black-capped chickadee
May 10 10:33:29 birdnet birdnet-go[1169]: 2024/05/10 10:33:29 Uploaded clips/2024/05/poecile_atricapillus_83p_20240510T103320Z.wav to Birdweather
May 10 10:33:29 birdnet birdnet-go[1169]: 2024/05/10 10:33:29 Saved audio clip to clips/2024/05/poecile_atricapillus_83p_20240510T103320Z.wav
May 10 10:33:29 birdnet birdnet-go[1169]: 2024/05/10 10:33:29 detection time 10:33:18, begin time 2024-05-10 10:33:15.826479598 -0400 EDT m=+58.682525558, end time 2024-05-10 10:33:29.533617096 -0400 EDT m=+72.389663000
May 10 10:33:38 birdnet birdnet-go[1169]: 2024/05/10 10:33:38 Species not on included list: Chestnut-backed Chickadee
May 10 10:33:39 birdnet birdnet-go[1169]: 2024/05/10 10:33:39 Species not on included list: Chestnut-backed Chickadee
May 10 10:34:17 birdnet birdnet-go[1169]: 
May 10 10:34:17 birdnet birdnet-go[1169]: 2024/05/10 10:34:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:34:17 birdnet birdnet-go[1169]: [293.391ms] [rows:0] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:34:17 birdnet birdnet-go[1169]: 2024/05/10 10:34:17 Found 0 clips to remove
May 10 10:35:03 birdnet birdnet-go[1169]: 2024/05/10 10:35:03 New detection: Black-capped Chickadee with confidence: 0.914271
May 10 10:35:12 birdnet birdnet-go[1169]: 2024/05/10 10:35:12 No species config found, using default actions for black-capped chickadee
May 10 10:35:13 birdnet birdnet-go[1169]: 2024/05/10 10:35:13 Saved audio clip to clips/2024/05/poecile_atricapillus_91p_20240510T103503Z.wav
May 10 10:35:13 birdnet birdnet-go[1169]: 2024/05/10 10:35:13 detection time 10:35:01, begin time 2024-05-10 10:34:59.326219859 -0400 EDT m=+162.182265875, end time 2024-05-10 10:35:13.651744041 -0400 EDT m=+176.507789927
May 10 10:35:14 birdnet birdnet-go[1169]: 2024/05/10 10:35:14 Uploaded clips/2024/05/poecile_atricapillus_91p_20240510T103503Z.wav to Birdweather
May 10 10:35:17 birdnet birdnet-go[1169]: 
May 10 10:35:17 birdnet birdnet-go[1169]: 2024/05/10 10:35:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:35:17 birdnet birdnet-go[1169]: [296.005ms] [rows:0] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:35:17 birdnet birdnet-go[1169]: 2024/05/10 10:35:17 Found 0 clips to remove
May 10 10:36:17 birdnet birdnet-go[1169]: 
May 10 10:36:17 birdnet birdnet-go[1169]: 2024/05/10 10:36:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:36:17 birdnet birdnet-go[1169]: [296.074ms] [rows:1] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:36:17 birdnet birdnet-go[1169]: 2024/05/10 10:36:17 Found 1 clips to remove
May 10 10:36:17 birdnet birdnet-go[1169]: 2024/05/10 10:36:17 Removed clips/2024/05/pandion_haliaetus_87p_20240509T223558Z.wav
May 10 10:37:17 birdnet birdnet-go[1169]: 
May 10 10:37:17 birdnet birdnet-go[1169]: 2024/05/10 10:37:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:37:17 birdnet birdnet-go[1169]: [293.608ms] [rows:0] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:37:17 birdnet birdnet-go[1169]: 2024/05/10 10:37:17 Found 0 clips to remove
May 10 10:37:32 birdnet birdnet-go[1169]: 2024/05/10 10:37:32 Species not on included list: Engine
May 10 10:38:17 birdnet birdnet-go[1169]: 
May 10 10:38:17 birdnet birdnet-go[1169]: 2024/05/10 10:38:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:38:17 birdnet birdnet-go[1169]: [297.986ms] [rows:1] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:38:17 birdnet birdnet-go[1169]: 2024/05/10 10:38:17 Found 1 clips to remove
May 10 10:38:17 birdnet birdnet-go[1169]: 2024/05/10 10:38:17 Removed clips/2024/05/pandion_haliaetus_81p_20240509T223746Z.wav
May 10 10:39:17 birdnet birdnet-go[1169]: 
May 10 10:39:17 birdnet birdnet-go[1169]: 2024/05/10 10:39:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:39:17 birdnet birdnet-go[1169]: [294.928ms] [rows:0] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:39:17 birdnet birdnet-go[1169]: 2024/05/10 10:39:17 Found 0 clips to remove
May 10 10:40:17 birdnet birdnet-go[1169]: 
May 10 10:40:17 birdnet birdnet-go[1169]: 2024/05/10 10:40:17 /github/workspace/internal/datastore/interfaces.go:222 SLOW SQL >= 200ms
May 10 10:40:17 birdnet birdnet-go[1169]: [305.908ms] [rows:1] SELECT n.ID, n.scientific_name, n.clip_name, sub.num_recordings FROM (SELECT * FROM `notes`) AS n INNER JOIN (SELECT ID, scientific_name, ROW_NUMBER() OVER (PARTITION BY scientific_name) as num_recordings FROM `notes` WHERE clip_name != '') AS sub ON n.ID = sub.ID WHERE strftime('%s', 'now') - strftime('%s', begin_time) > 43200 AND sub.num_recordings > 5
May 10 10:40:17 birdnet birdnet-go[1169]: 2024/05/10 10:40:17 Found 1 clips to remove
May 10 10:40:17 birdnet birdnet-go[1169]: 2024/05/10 10:40:17 Removed clips/2024/05/pandion_haliaetus_88p_20240509T223928Z.wav

@matthew73210
Copy link

I've sometimes had the analysis part of birdnet-go hang, could this be related? I was getting the same logs as you. Randomly does it just after mid night but restarts after a restart.
Is there a checking mechanism that checks if the recordings are being analysed? Could through an error / restart the container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants