You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/best-practices/segment-review.rst
+76-42Lines changed: 76 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
Segment Review
2
-
=================================
2
+
==============
3
3
4
-
Get started by listening to this AI-generated summary of segments review:
4
+
This document provides a quick overview of the segment review process in BirdNET-Analyzer, which is essential for validating species detection results.
5
+
You can also listen to an AI-generated summary of this guide in the audio player below.
5
6
6
7
.. raw:: html
7
8
@@ -13,64 +14,97 @@ Get started by listening to this AI-generated summary of segments review:
13
14
|
14
15
|`Source: Google NotebookLM`
15
16
16
-
1. Prepare Audio and Result Files
17
-
---------------------------------
17
+
Prepare Audio and Result Files
18
+
------------------------------
18
19
19
-
- | **Collect Audio Recordings and Corresponding BirdNET Result Files**: Organize them into separate folders.
20
-
- | **Result File Formats**: BirdNET-Analyzer typically produces result files with extensions ".BirdNET.txt" or ".BirdNET.csv". It can process various result file formats, including "table", "kaleidoscope", "csv", and "audacity".
21
-
- | **Understanding Confidence Values**: Note that BirdNET confidence values are not probabilities and are not directly transferable between different species or recording conditions.
20
+
The BirdNET Analyzer uses the batch analysis result tables, such as the output formats "table", "kaleidoscope" or "csv".
21
+
To obtain batch analysis result tables, run the analysis via the GUI or the :ref:`command line <cli-docs>`, which automatically generates the result files.
22
22
23
-
2. Using the "Segments" Function in the GUI or Command Line
- | **Segments Function**: BirdNET provides the "segments" function to create a collection of species-specific predictions that exceed a user-defined confidence value. This function is available in the graphical user interface (GUI) under the "segments" tab or via the "segments.py" script in the command line.
27
-
- | **GUI Usage**: In the GUI, you can select audio, result, and output directories. You can also set additional parameters such as the minimum confidence value, the maximum number of segments per species, the audio speed, and the segment length.
25
+
The output format "audacity" is not supported for the segments tool since it is missing certain columns. Use "table", "kaleidoscope", or "csv" formats instead.
28
26
29
-
3. Setting Parameters
30
-
---------------------
27
+
Using the "Segments" Tool in the GUI or Command Line
- | **Minimum Confidence (min_conf)**: Set a minimum confidence value for predictions to be considered. Note that this value may vary by species. It is recommended to determine the threshold by reviewing precision and recall.
33
-
- | **Maximum Number of Segments (num_seq)**: Specify how many segments per species should be extracted.
34
-
- | **Audio Speed (audio_speed)**: Adjust the playback speed. Extracted segments will be saved with the adjusted speed (e.g., to listen to ultrsonic calls).
35
-
- | **Segment Length (seq_length)**: Define how long the extracted audio segments should be. If you set to more than 3 seconds, each segment will be padded with audio from the source recording. For example, for 5-second segment length, 1 second of audio before and after each extracted segment will be included. For 7 seconds, 2 seconds will be included, and so on. The first and last segment of each audio file might be shorter than the specified length.
30
+
The BirdNET Analyzer provides the "segments" tool to extract short audio segments from the result files and place them into separate species-specific folders.
31
+
This tool is available in the graphical user interface (GUI) under the "segments" tab or via the :ref:`birdnet_analyzer.segments <cli-segments>` script in the command line.
36
32
37
-
4. Extracting Segments
38
-
----------------------
33
+
Setting Parameters
34
+
------------------
35
+
36
+
The GUI and command line tool allow you to set various parameters to customize the segment extraction process:
37
+
38
+
* **Minimum Confidence** (``min_conf``): Set a minimum confidence value for predictions to be considered. It is recommended to determine the threshold by reviewing precision and recall.
39
+
* **Maximum Number of Segments** (``num_seq``): Specify how many segments per species should be extracted.
40
+
* **Audio Speed** (``audio_speed``): Adjust the playback speed. Extracted segments will be saved with the adjusted speed (e.g., to listen to ultrasonic calls).
41
+
* **Segment Length** (``seq_length``): Define how long the extracted audio segments should be. If you set to more than 3 seconds, each segment will be padded with audio from the source recording. For example, for 5-second segment length, 1 second of audio before and after each extracted segment will be included. For 7 seconds, 2 seconds will be included, and so on. The first and last segment of each audio file might be shorter than the specified length.
42
+
43
+
.. note::
44
+
45
+
The desired minimum confidence value can be different for each species.
46
+
47
+
Extracting Segments
48
+
-------------------
49
+
50
+
After setting all parameters, start the extraction process. BirdNET will create subfolders for each identified species and save audio clips of the corresponding recordings.
51
+
The progress of the process will be displayed.
52
+
The resulting audio segments will be saved in the following format:
53
+
54
+
.. code-block::
55
+
56
+
{c}_{i}_{fname}_{start}s_{end}s.wav
39
57
40
-
- | **Start the Extraction Process**: After setting all parameters, start the extraction process. BirdNET will create subfolders for each identified species and save audio clips of the corresponding recordings.
41
-
- | **Progress Display**: The progress of the process will be displayed.
58
+
where:
42
59
43
-
5. Reviewing Results
44
-
--------------------
60
+
* ``{c}``: confidence value of the prediction (e.g., 0.835)
61
+
* ``{i}``: index of the segment inside the file
62
+
* ``{fname}``: name of the original audio file without the extension
63
+
* ``{start}``: start time of the segment inside the file in seconds
64
+
* ``{end}``: end time of the segment inside the file in seconds
45
65
46
-
- | **Manual Review of Audio Segments**: The resulting audio segments can be manually reviewed to assess the accuracy of the predictions. It is important to note that BirdNET confidence values are not probabilities but a measure of the algorithm's prediction reliability.
47
-
- | **Systematic Review**: It is recommended to start with the highest confidence scores and work down to the lower scores.
48
-
- | **File Naming**: Files are named with confidence values, allowing for sorting by values.
49
66
50
-
6. Using the Review Tab in the GUI
67
+
Using the Review Tab in the GUI
51
68
----------------------------------
52
69
53
-
- | **Review Tab Overview**: The review tab in the GUI allows you to systematically review and label the extracted segments. It provides tools for visualizing spectrograms, listening to audio segments, and categorizing them as positive or negative detections.
54
-
- | **Collect Segments**: Use the review tab to collect segments from the specified directory. You can shuffle the segments for a randomized review process.
55
-
- | **Create Log Plot**: The review tab can generate a logistic regression plot to visualize the relationship between confidence values and the likelihood of correct detections.
56
-
- **Review Process**:
70
+
The resulting audio segments can be manually reviewed to assess the accuracy of the predictions.
71
+
It is important to note that BirdNET *confidence values are not probabilities* but a measure of the algorithm's prediction reliability.
72
+
We recommended to start with the highest confidence scores and work down to the lower scores.
57
73
58
-
- | **Select Directory**: Choose the directory containing the segments to be reviewed.
59
-
- | **Species Dropdown**: Select the species to review from the dropdown menu.
60
-
- | **File Count Matrix**: View the count of files to be reviewed, positive detections, and negative detections.
61
-
- | **Spectrogram and Audio**: Visualize the spectrogram and listen to the audio segment.
62
-
- | **Label Segments**: Use the buttons to label segments as positive or negative detections. You can also use the left and right arrow keys to assign labels.
63
-
- | **Undo**: Undo the last action if needed.
64
-
- | **Download Plots**: Download the spectrogram and regression plots for further analysis.
74
+
The review tab in the GUI allows you to systematically review and label the extracted segments.
75
+
It provides tools for visualizing spectrograms, listening to audio segments, and categorizing them as positive or negative detections.
76
+
The review tab can generate a logistic regression plot to visualize the relationship between confidence values and the likelihood of correct detections.
65
77
66
-
7. Alternative Approaches
67
-
-------------------------
78
+
In the GUI select the "Review" tab and select the segments directory you want to review.
79
+
You can now either select the parent directory containing all the different species subfolders or a specific species subfolder to review.
80
+
If you select the parent directory, the GUI will automatically select the first species subfolder, but you can switch between species via a dropdown menu.
81
+
82
+
Depending on your selection the segments will be shuffled or sorted by confidence value.
83
+
Each segment will be displayed with an audio player and its spectrogram.
84
+
After listening to a segment, you can either mark it as a positive detection (if you hear the species) or a negative detection (if you do not hear the species).
85
+
The BirdNET Analyzer will create two directories: one for positive detections and one for negative detections, and move the marked segments accordingly.
86
+
The "Undo" button allows you to revert the last action if needed.
87
+
88
+
.. note::
89
+
90
+
You can also use the up (positive) and down (negative) arrow keys to assign labels. The left arrow key will undo the last action and the right arrow key will skip to the next segment without labeling it.
91
+
92
+
With the number of segments reviewed, the GUI will also display a logistic regression plot.
93
+
This plot shows the relationship between the confidence values and the likelihood of correct detections.
94
+
All of the plots including the spectrogram can be downloaded as PNG files for further analysis or documentation.
95
+
96
+
.. note::
97
+
98
+
The review tab can be used on any directory containing audio files, not just those created by the segments tool. This allows you to review any set of audio files, including those from other sources.
99
+
100
+
Alternative Approaches
101
+
----------------------
68
102
69
103
- | **Raven Pro**: BirdNET result tables can be imported into Raven Pro and reviewed using the selection review function.
70
104
- | **Converting Confidence Values to Probabilities**: Another approach is converting confidence values to probabilities using logistic regression in R. However, this still requires manual evaluation of predictions.
71
105
72
-
8. Important Notes
73
-
------------------
106
+
Important Notes
107
+
---------------
74
108
75
109
- | **Non-Transferability of Confidence Values**: BirdNET confidence values are not easily transferable between species.
76
110
- | **Audio Quality**: The accuracy of results heavily depends on the quality of audio recordings, such as sample rate and microphone quality.
Copy file name to clipboardExpand all lines: docs/best-practices/species-lists.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ You can find label files in the checkpoints folder, e.g., `checkpoints/V2.4/Bird
7
7
8
8
Species names need to consist of `scientific name_common name` to be valid.
9
9
10
-
You can generate a species list for a given location using :ref:`species.py<cli-species>`.
10
+
You can generate a species list for a given location using :ref:`birdnet_analyzer.species<cli-species>`.
11
11
12
12
Practical Information and Considerations
13
13
----------------------------------------
@@ -29,7 +29,7 @@ In cases where eBird does not have enough observations (i.e., checklists), the d
29
29
If you know which species to expect in your area, it is recommended to compile your own species list. This can help improve the accuracy of BirdNET-Analyzer for your specific use case.
30
30
31
31
1. **Collect Species Names**: Use the labels file from the model checkpoints to get the correct species names. Ensure the names are in the format `scientific name_common name`.
32
-
2. **Generate Species List**: Use the `species.py` script to generate a species list for a given location and time. This script uses the GeoModel to predict species occurrence based on latitude, longitude, and week of the year.
32
+
2. **Generate Species List**: Use the `birdnet_analyzer.species` script to generate a species list for a given location and time. This script uses the GeoModel to predict species occurrence based on latitude, longitude, and week of the year.
0 commit comments