{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"Published on 07 March, 2023 by Marília Prata, mpwolke","metadata":{}},{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport plotly.express as px\nimport plotly.graph_objs as go\n\nimport plotly\nplotly.offline.init_notebook_mode(connected=True)\n\n#Ignore warnings\nimport warnings\nwarnings.filterwarnings('ignore')\n\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_kg_hide-input":true,"_kg_hide-output":true,"execution":{"iopub.status.busy":"2023-03-08T14:24:01.009690Z","iopub.execute_input":"2023-03-08T14:24:01.010496Z","iopub.status.idle":"2023-03-08T14:24:06.593752Z","shell.execute_reply.started":"2023-03-08T14:24:01.010444Z","shell.execute_reply":"2023-03-08T14:24:06.592529Z"},"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"<center style=\"font-family:verdana;\"><h1 style=\"font-size:200%; padding: 10px; background: #DC143C;\"><b style=\"color:white;\">Dedicated to All Bird Sound Recordists/Researchers</b></h1></center>\n\n\nWithout them, this competition would not be possible. No records. No comps.","metadata":{}},{"cell_type":"markdown","source":"#Competition Citation \n\n@misc{birdclef-2023,\n\n    author = {Holger Klinck, Sohier Dane, Stefan Kahl, Tom Denton},\n    \n    title = {BirdCLEF 2023},\n    \n    publisher = {Kaggle},\n    \n    year = {2023},\n    \n    url = {https://kaggle.com/competitions/birdclef-2023}\n}","metadata":{}},{"cell_type":"markdown","source":"#Meet the Largest Vultures in Africa\n\n<iframe width=\"942\" height=\"530\" src=\"https://www.youtube.com/embed/0guqWhCP6jA\" title=\"Meet the Largest Vultures in Africa\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen></iframe>\n\nhttps://www.youtube.com/watch?v=0guqWhCP6jA","metadata":{}},{"cell_type":"code","source":"# Other  \nimport librosa\nimport librosa.display\nimport json\nimport matplotlib.pyplot as plt\nimport tensorflow as tf\nfrom matplotlib.pyplot import specgram\nimport seaborn as sns\nimport glob \nfrom tqdm import tqdm\nimport pickle\nimport IPython.display as ipd  # To play sound in the notebook","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:38:38.609856Z","iopub.execute_input":"2023-03-07T22:38:38.610312Z","iopub.status.idle":"2023-03-07T22:38:48.850635Z","shell.execute_reply.started":"2023-03-07T22:38:38.610275Z","shell.execute_reply":"2023-03-07T22:38:48.849552Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Reject Greed; Tread Lightly; Care Locally; Respect Diversity... by Martina Nicolls\n\n\"At the Nairobi National Museum is a section dedicated to birds of the region. It is the largest number of taxidermy birds in one room that I have ever seen. East Africa is one of the world’s richest regions in terms of bird species diversity, with a record of over 1,300 species. Most of them are identified in the exhibition at the Nairobi National Museum.\"\n\nhttps://martinasblogs.blogspot.com/2014/05/birds-of-kenya-and-east-africa.html","metadata":{}},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\n!pip install soundfile -q","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:39:22.928695Z","iopub.execute_input":"2023-03-07T22:39:22.929185Z","iopub.status.idle":"2023-03-07T22:39:34.422449Z","shell.execute_reply.started":"2023-03-07T22:39:22.929140Z","shell.execute_reply":"2023-03-07T22:39:34.420828Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ0mq30qlIv97DFc5vj6qAERGkKPl4lJWa17g&usqp=CAU)Vulture Education Raptor Taxon Advisory Group","metadata":{}},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\n!pip install noisereduce","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:39:49.823131Z","iopub.execute_input":"2023-03-07T22:39:49.823599Z","iopub.status.idle":"2023-03-07T22:40:15.947436Z","shell.execute_reply.started":"2023-03-07T22:39:49.823559Z","shell.execute_reply":"2023-03-07T22:40:15.946054Z"},"_kg_hide-output":true,"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\n#Convert Audio to Frequency\n\nimport soundfile as sf\nfreq,rate=sf.read('../input/birdclef-2023/train_audio/yetgre1/XC403259.ogg')\nimport plotly.express as px\nimport numpy as np\npx.line(x=np.array(list(range(len(freq)))),y=freq)","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:41:13.299464Z","iopub.execute_input":"2023-03-07T22:41:13.299869Z","iopub.status.idle":"2023-03-07T22:41:16.481650Z","shell.execute_reply.started":"2023-03-07T22:41:13.299835Z","shell.execute_reply":"2023-03-07T22:41:16.480226Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\nimport IPython\nIPython.display.Audio(\"../input/birdclef-2023/train_audio/yetgre1/XC530126.ogg\")","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:42:35.626533Z","iopub.execute_input":"2023-03-07T22:42:35.627018Z","iopub.status.idle":"2023-03-07T22:42:35.643642Z","shell.execute_reply.started":"2023-03-07T22:42:35.626972Z","shell.execute_reply":"2023-03-07T22:42:35.642613Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\n!pip install tensorflow-io","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:42:56.081025Z","iopub.execute_input":"2023-03-07T22:42:56.081489Z","iopub.status.idle":"2023-03-07T22:43:07.773954Z","shell.execute_reply.started":"2023-03-07T22:42:56.081435Z","shell.execute_reply":"2023-03-07T22:43:07.772306Z"},"_kg_hide-output":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\nimport tensorflow_io as tfio","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:43:36.703049Z","iopub.execute_input":"2023-03-07T22:43:36.704327Z","iopub.status.idle":"2023-03-07T22:43:36.789611Z","shell.execute_reply.started":"2023-03-07T22:43:36.704268Z","shell.execute_reply":"2023-03-07T22:43:36.787814Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\nimport tensorflow as tf","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:43:54.444720Z","iopub.execute_input":"2023-03-07T22:43:54.445162Z","iopub.status.idle":"2023-03-07T22:43:54.450704Z","shell.execute_reply.started":"2023-03-07T22:43:54.445122Z","shell.execute_reply":"2023-03-07T22:43:54.448916Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import noisereduce as nr\nreduced_noise=nr.reduce_noise(y=freq,sr=rate)","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:44:10.668597Z","iopub.execute_input":"2023-03-07T22:44:10.669856Z","iopub.status.idle":"2023-03-07T22:44:23.877282Z","shell.execute_reply.started":"2023-03-07T22:44:10.669805Z","shell.execute_reply":"2023-03-07T22:44:23.875790Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Convert an ogg file to spectogram","metadata":{}},{"cell_type":"code","source":"#Code by Sayantan Mazumdar https://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\ndef read(pth,reduce_noise):\n    freq,rate=sf.read(pth)\n    if reduce_noise:\n        freq=nr.reduce_noise(y=freq,sr=rate)\n    # Convert to spectrogram\n    spectrogram = tfio.audio.spectrogram(\n    reduced_noise, nfft=3600, window=256, stride=256)\n    return tf.math.log(spectrogram).numpy()\nplt.imshow(read('../input/birdclef-2023/train_audio/walsta1/XC610566.ogg',True));","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:45:28.222169Z","iopub.execute_input":"2023-03-07T22:45:28.224634Z","iopub.status.idle":"2023-03-07T22:45:31.469073Z","shell.execute_reply.started":"2023-03-07T22:45:28.224561Z","shell.execute_reply":"2023-03-07T22:45:31.467658Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import seaborn as sns\nimport plotly.express as px\nimport plotly.graph_objs as go\n\n#Ignore warnings\nimport warnings\nwarnings.filterwarnings('ignore')","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:46:04.928351Z","iopub.execute_input":"2023-03-07T22:46:04.928827Z","iopub.status.idle":"2023-03-07T22:46:04.935844Z","shell.execute_reply.started":"2023-03-07T22:46:04.928784Z","shell.execute_reply":"2023-03-07T22:46:04.934324Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#I think that's the same from last year (eBird_Taxonomy_v2021)","metadata":{}},{"cell_type":"code","source":"eBird = pd.read_csv(\"/kaggle/input/birdclef-2023/eBird_Taxonomy_v2021.csv\")\npd.set_option('display.max_columns', None)\neBird.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:47:03.145721Z","iopub.execute_input":"2023-03-07T22:47:03.146181Z","iopub.status.idle":"2023-03-07T22:47:03.250872Z","shell.execute_reply.started":"2023-03-07T22:47:03.146140Z","shell.execute_reply":"2023-03-07T22:47:03.249876Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Taxonomic Ranks\n\nThere are seven main taxonomic ranks:\n\nKingdom,\n\nPhylum or division,\n\nClass,\n\nOrder,\n\nFamily,\n\nGenus,\n\nSpecies.\n\nhttps://en.wikipedia.org/wiki/Taxonomic_rank","metadata":{}},{"cell_type":"code","source":"ax = eBird['ORDER1'].value_counts()[:20].plot.barh(figsize=(16, 8), color='green')\nax.set_title('Eastern African Species Order 1', size=18, color='orange')\nax.set_ylabel('Order 1', size=10)\nax.set_xlabel('Count', size=10);","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:49:33.761012Z","iopub.execute_input":"2023-03-07T22:49:33.761421Z","iopub.status.idle":"2023-03-07T22:49:34.182252Z","shell.execute_reply.started":"2023-03-07T22:49:33.761386Z","shell.execute_reply":"2023-03-07T22:49:34.180969Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"text_cols = ['SPECIES_CODE', 'SCI_NAME', 'ORDER1', 'FAMILY']\n\nfrom wordcloud import WordCloud, STOPWORDS\n\nwc = WordCloud(stopwords = set(list(STOPWORDS) + ['|']), random_state = 42, background_color='orange', colormap=\"Purples\")\nfig, axes = plt.subplots(2, 2, figsize=(20, 12))\naxes = [ax for axes_row in axes for ax in axes_row]\n\nfor i, c in enumerate(text_cols):\n  op = wc.generate(str(eBird[c]))\n  _ = axes[i].imshow(op)\n  _ = axes[i].set_title(c.upper(), fontsize=24)\n  _ = axes[i].axis('off')","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:50:06.078447Z","iopub.execute_input":"2023-03-07T22:50:06.078913Z","iopub.status.idle":"2023-03-07T22:50:07.025512Z","shell.execute_reply.started":"2023-03-07T22:50:06.078859Z","shell.execute_reply":"2023-03-07T22:50:07.023851Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"meta = pd.read_csv(\"/kaggle/input/birdclef-2023/train_metadata.csv\", encoding='utf8')\npd.set_option('display.max_columns', None)\nmeta.tail()","metadata":{"execution":{"iopub.status.busy":"2023-03-08T14:25:31.418922Z","iopub.execute_input":"2023-03-08T14:25:31.420225Z","iopub.status.idle":"2023-03-08T14:25:31.575893Z","shell.execute_reply.started":"2023-03-08T14:25:31.420165Z","shell.execute_reply":"2023-03-08T14:25:31.574712Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ax = eBird['CATEGORY'].value_counts()[:20].plot.barh(figsize=(16, 8), color='orange')\nax.set_title('Eastern African Species Category', size=18, color='green')\nax.set_ylabel('Category', size=10)\nax.set_xlabel('Count', size=10);","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:51:37.045237Z","iopub.execute_input":"2023-03-07T22:51:37.045644Z","iopub.status.idle":"2023-03-07T22:51:37.364001Z","shell.execute_reply.started":"2023-03-07T22:51:37.045608Z","shell.execute_reply":"2023-03-07T22:51:37.362605Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ax = eBird['FAMILY'].value_counts()[:20].plot.barh(figsize=(16, 8), color='purple')\nax.set_title('Eastern African Species Family', size=18, color='red')\nax.set_ylabel('Family', size=10)\nax.set_xlabel('Count', size=10);","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:52:32.607129Z","iopub.execute_input":"2023-03-07T22:52:32.608071Z","iopub.status.idle":"2023-03-07T22:52:33.103278Z","shell.execute_reply.started":"2023-03-07T22:52:32.608016Z","shell.execute_reply":"2023-03-07T22:52:33.102117Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"bra = meta[(meta['common_name']=='Brazilian Merganser')].reset_index(drop=True)\nbra.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-07T23:21:42.817110Z","iopub.execute_input":"2023-03-07T23:21:42.817596Z","iopub.status.idle":"2023-03-07T23:21:42.836809Z","shell.execute_reply.started":"2023-03-07T23:21:42.817555Z","shell.execute_reply":"2023-03-07T23:21:42.835577Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Varshini PJ  user: varshinipj\n\nfig = px.scatter_mapbox(meta,\n# Here, plotly gets, (x,y) coordinates\nlat=\"latitude\",\nlon=\"longitude\",\ntext='scientific_name',\n\n                #Here, plotly detects color of series\n                size=\"rating\", #numerical attribute to quantify\n                color = \"common_name\", #categorical attribute to classify the data points on the map according to the class of that categorical attribute\n                labels=\"scientific_name\",\n\n                zoom=14.5,\n                center={\"lat\":-7.8334, \"lon\":36.3834},\n                height=600,\n                width=800)\nfig.update_layout(mapbox_style='stamen-terrain')\nfig.update_layout(margin={\"r\": 0, \"t\": 0, \"l\": 0, \"b\": 0})\nfig.update_layout(title_text=\"Turdus abyssinicus a.ka. Abyssinian Thrush\")\nfig.show()","metadata":{"_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-03-07T23:25:54.834226Z","iopub.execute_input":"2023-03-07T23:25:54.834651Z","iopub.status.idle":"2023-03-07T23:25:56.061660Z","shell.execute_reply.started":"2023-03-07T23:25:54.834616Z","shell.execute_reply":"2023-03-07T23:25:56.060443Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Why I got an error with the mapbox above? It's the same, except the bird and coordinates.\n\nInside the editor it's worst.","metadata":{}},{"cell_type":"markdown","source":"<h1 style=\"background-color:#DC143C; font-family:'Brush Script MT',cursive;color:white;font-size:200%; text-align:center;border-radius: 50% 20% / 10% 40%\">My New Acquisitions</h1>","metadata":{}},{"cell_type":"markdown","source":"#By Ben Jenkins\n\nhttps://www.kaggle.com/code/benjenkins96/identify-eastern-african-bird-species-by-sound","metadata":{}},{"cell_type":"code","source":"#Adapted from Ben Jenkins https://www.kaggle.com/code/benjenkins96/identify-eastern-african-bird-species-by-sound\n\n# Plot a scatterplot of the latitude and longitude values\n\nax= meta.plot.scatter(x='longitude', y='latitude', alpha=0.1,figsize=(12, 8))\nax.set_title('Geographic Distribution of Recordings',size=18, color='red')\nax.set_xlabel('Longitude', size=10)\nax.set_ylabel('Latitude', size =10);","metadata":{"execution":{"iopub.status.busy":"2023-03-08T14:44:37.316282Z","iopub.execute_input":"2023-03-08T14:44:37.316718Z","iopub.status.idle":"2023-03-08T14:44:37.697147Z","shell.execute_reply.started":"2023-03-08T14:44:37.316679Z","shell.execute_reply":"2023-03-08T14:44:37.695921Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ax = meta['author'].value_counts()[:10].plot.barh(figsize=(16, 8), color='green')\nax.set_title('Bird Sound Recordists', size=18, color='red')\nax.set_ylabel('Author', size=10)\nax.set_xlabel('Count', size=10);","metadata":{"_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-03-08T15:17:29.907726Z","iopub.execute_input":"2023-03-08T15:17:29.908133Z","iopub.status.idle":"2023-03-08T15:17:30.237802Z","shell.execute_reply.started":"2023-03-08T15:17:29.908097Z","shell.execute_reply":"2023-03-08T15:17:30.236376Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Isaac Kilusu - Bird Sound Recordist \n\nAbout Isaac Kilusu:\n\n\"He an avid birder,bird sound recordist, bird mapper and researcher,he has been recording bird sounds for the last 7 years and leading birding tours in Kenya and Tanzania.\"\n\n\"He also train local bird guides,one of east african top sound recorder and africa as a whole.Some of my birds sounds have been used to develop various birding apps such as birds of Africa and world birds sounds plus hundreds of research works. He is a supported member of African bird club and one of the founder of Tanzania birders community and Kilusu bird club.\"\n\nhttps://www.orniverse.com/author-profile/282/isaac-kilusu","metadata":{}},{"cell_type":"code","source":"#By Ben Jenkins https://www.kaggle.com/code/benjenkins96/identify-eastern-african-bird-species-by-sound\n\n# Set up a figure with subplots\nfig, axs = plt.subplots(2, 2, figsize=(12, 8))\n\n# Plot a histogram of the latitude values\nmeta['latitude'].hist(bins=50, ax=axs[0, 0])\naxs[0, 0].set_title('Distribution of Latitude', color='red')\naxs[0, 0].set_xlabel('Latitude', color='red')\naxs[0, 0].set_ylabel('Count', color='red')\n\n# Plot a histogram of the longitude values\nmeta['longitude'].hist(bins=50, ax=axs[0, 1])\naxs[0, 1].set_title('Distribution of Longitude', color='red')\naxs[0, 1].set_xlabel('Longitude', color='red')\naxs[0, 1].set_ylabel('Count', color='red')\n\n# Plot a scatterplot of the latitude and longitude values\nmeta.plot.scatter(x='longitude', y='latitude', alpha=0.1, ax=axs[1, 0])\naxs[1, 0].set_title('Geographic Distribution of Recordings', color='red')\naxs[1, 0].set_xlabel('Longitude', color='red')\naxs[1, 0].set_ylabel('Latitude', color='red')\n\n# Print the top 10 authors with the most recordings\nmeta['author'].value_counts().nlargest(10).plot.barh(ax=axs[1, 1])\naxs[1, 1].set_title('Top 10 Authors with the Most Recordings', color='red')\naxs[1, 1].set_xlabel('Count', color='red')\naxs[1, 1].set_ylabel('Author', color='red')\n\n# Adjust the layout of the subplots\nplt.tight_layout()\n\n# Print the number of recordings for each bird species\n#print(meta['primary_label'].value_counts()) #It was better without it","metadata":{"_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-03-08T14:59:06.372521Z","iopub.execute_input":"2023-03-08T14:59:06.373727Z","iopub.status.idle":"2023-03-08T14:59:07.682305Z","shell.execute_reply.started":"2023-03-08T14:59:06.373684Z","shell.execute_reply":"2023-03-08T14:59:07.681169Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#By Ben Jenkins https://www.kaggle.com/code/benjenkins96/identify-eastern-african-bird-species-by-sound\n\nimport seaborn as sns\n\nsns.kdeplot(data=meta, x='longitude', y='latitude', cmap=\"summer\", fill=True)\nplt.title('Heatmap of Latitude and Longitude')\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-03-08T15:19:35.482291Z","iopub.execute_input":"2023-03-08T15:19:35.483579Z","iopub.status.idle":"2023-03-08T15:19:46.884147Z","shell.execute_reply.started":"2023-03-08T15:19:35.483509Z","shell.execute_reply":"2023-03-08T15:19:46.882892Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"sub = pd.read_csv('../input/birdclef-2023/sample_submission.csv', encoding='ISO-8859-2')\nsub.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-07T22:59:51.937451Z","iopub.execute_input":"2023-03-07T22:59:51.937913Z","iopub.status.idle":"2023-03-07T22:59:52.051181Z","shell.execute_reply.started":"2023-03-07T22:59:51.937860Z","shell.execute_reply":"2023-03-07T22:59:52.049798Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Acknowledgement:\n\nTom Denton https://www.kaggle.com/code/tomdenton/birdclef2021-tfaudiodataset\n\nSayantan Mazumdar\nhttps://www.kaggle.com/swaralipibose/converting-audio-to-spectogram-noise-image-data/notebook\n\nBen Jenkins\nhttps://www.kaggle.com/code/benjenkins96/identify-eastern-african-bird-species-by-sound\n\nVarshini PJ user: varshinipj","metadata":{}},{"cell_type":"markdown","source":"#The Race To Save African Vultures\n\n\"A dozen species of African vultures are in population freefall—hunted for cultural uses or felled by poisons meant for lions. Conservationists and local people are scrambling to stem the damage.\"\n\n\"Vultures are already the most threatened group of raptors in the world, which is why, in some respects, the unfolding crisis in Africa feels like the repeat of a bad dream that played out in South Asia in the 1990s.\"\n\n\"Food scarcity is also a problem for vultures, especially in West Africa, where large-mammal populations have fallen 60% since 1970.\"\n\n\"There are promising signs, but if you think of Africa as a whole, there’s a lot that needs doing.”\n\nhttps://www.allaboutbirds.org/news/the-race-to-save-african-vultures/#:~:text=Seventy%20percent%20of%20African%20Vulture%20Species%20Are%20Endangered&text=Food%20scarcity%20is%20also%20a,have%20fallen%2060%25%20since%201970.","metadata":{}}]}