abdellatif-laghjaj commited on
Commit
3d01235
Β·
verified Β·
1 Parent(s): eae5e7b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +122 -1
README.md CHANGED
@@ -1,3 +1,4 @@
 
1
  title: BirdCLEF 2024
2
  emoji: πŸ‘
3
  colorFrom: yellow
@@ -6,4 +7,124 @@ sdk: gradio
6
  sdk_version: 4.36.0
7
  app_file: app.py
8
  pinned: false
9
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
  title: BirdCLEF 2024
3
  emoji: πŸ‘
4
  colorFrom: yellow
 
7
  sdk_version: 4.36.0
8
  app_file: app.py
9
  pinned: false
10
+ ---
11
+
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+
14
+ [![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-24ddc0f5d75046c5622901739e7c5dd533143b0c8e959d652212380cedb1ea36.svg)](https://classroom.github.com/a/rzFn0ERT)
15
+
16
+ # BirdCLEF 2024: Bird Species Identification from Audio
17
+
18
+ ## Overview
19
+
20
+ This project is part of the BirdCLEF 2024 competition, focusing on identifying bird species from audio recordings. The
21
+ target region is the Western Ghats, a significant biodiversity hotspot in India. The goal is to develop a machine
22
+ learning model capable of accurately predicting bird species from audio recordings, with a particular emphasis on
23
+ under-studied species.
24
+
25
+ ## Author
26
+
27
+ This project was created by:
28
+
29
+ - **Name**: LAGHJAJ ABDELLATIF
30
+ - **Email**: abdelatiflaghjaj@gmail.com
31
+
32
+ ## Screenshots
33
+
34
+ | **Sketch** | **Main App** | **Result** |
35
+ |:----------------------------:|:-------------------------:|:-----------------------:|
36
+ | ![Sketch](images/sketch.png) | ![Main App](images/1.png) | ![Result](images/2.png) |
37
+
38
+ ## Project Components
39
+
40
+ 1. **Data Collection**
41
+ 2. **Preprocessing**
42
+ 3. **Model Training**
43
+ 4. **Prediction and Visualization**
44
+ 5. **User Interface**
45
+
46
+ ## Setup Instructions
47
+
48
+ ### Prerequisites
49
+
50
+ Ensure you have the following installed:
51
+
52
+ - Python 3.8 or higher
53
+ - Required Python packages (specified below)
54
+
55
+ ### Installation
56
+
57
+ 1. Clone the repository:
58
+ ```bash
59
+ git clone https://github.com/ISEF-soft/introduction-to-machine-learning-challenge-abdellatif-laghjaj
60
+ cd introduction-to-machine-learning-challenge-abdellatif-laghjaj
61
+ ```
62
+
63
+ 2. Create and activate a virtual environment:
64
+ ```bash
65
+ python -m venv venv
66
+ source venv/bin/activate # On Windows use `venv\Scripts\activate`
67
+ ```
68
+
69
+ 3. Install the required packages:
70
+ ```bash
71
+ pip install -r requirements.txt
72
+ ```
73
+
74
+ ### Directory Structure
75
+
76
+ Ensure your project directory is structured as follows:
77
+
78
+ ```
79
+ birdclef2024/
80
+ β”‚
81
+ β”œβ”€β”€ sounds/
82
+ β”‚ β”œβ”€β”€ asbfly.ogg
83
+ β”‚ β”œβ”€β”€ bkwsti.ogg
84
+ β”‚ └── comros.ogg
85
+ β”‚
86
+ |── .gitignore
87
+ β”œβ”€β”€ model.joblib
88
+ β”œβ”€β”€ data.csv
89
+ β”œβ”€β”€ app.py
90
+ |── main.ipynb
91
+ β”œβ”€β”€ README.md
92
+ └── requirements.txt
93
+ ```
94
+
95
+ ### Files Description
96
+
97
+ - `sounds/`: Directory containing sample audio files.
98
+ - `model.joblib`: Pre-trained machine learning model.
99
+ - `data.csv`: CSV file containing bird species metadata.
100
+ - `app.py`: Main Python script to run the project.
101
+ - `main.ipynb`: Jupyter notebook containing the project code.
102
+ - `README.md`: This readme file.
103
+ - `requirements.txt`: List of Python packages required.
104
+
105
+ ### Running the Project
106
+
107
+ 1. Ensure you have the correct directory structure and all necessary files.
108
+ 2. Run the `app.py` script to start the Gradio interface:
109
+ ```bash
110
+ python apy.py
111
+ ```
112
+
113
+ ### Usage
114
+
115
+ Once the Gradio interface is launched, you can:
116
+
117
+ - **Upload an audio recording** of a bird to identify the species.
118
+ - **Select a sample** from the provided audio files.
119
+
120
+ The interface will display:
121
+
122
+ - The **predicted bird species**.
123
+ - The **prediction confidence**.
124
+ - A **map** showing the location of the recording.
125
+ - A **spectrogram** of the audio recording.
126
+
127
+ ## Acknowledgements
128
+
129
+ This project is based on the BirdCLEF 2024 competition. Special thanks to the organizers and contributors who provided
130
+ the dataset and resources.