A machine learning project for classifying aerial objects into three categories: Birds, Drones, and Aeroplanes using image data from Kaggle.
This project processes and prepares aerial imagery data for classification tasks. It downloads datasets from Kaggle, processes images, and uses them for machine learning model training to distinguish between birds, drones, and airplanes.
- Automated Kaggle dataset downloading
- Image preprocessing and normalization
- Standardized image resizing
- Data visualization capabilities
- AdaBoost
- Decision Tree
- Euclidean Distance
- Extra Trees
- Gaussian Naive Bayes
- Gradient Boosting
- K-NN
- Linear SVC
- Logistic Regression
- Multi-Layer Perceptron
- Passive Aggressive classifier
- Random Forest
- sklearns SGDClassifier
- Recall – Of all actual positive cases, how many did it correctly detect.
- Precision – Of all predicted positive cases, how many were actually positive.
- Accuracy – What fraction of total predictions were correct.
- F1 Score – What the balance between precision and recall is.
- R2 – Measure the variance in data explained by the model.
- RMSE – Measure the root squared error.
- MAE – Measure the average absolute error.
- MSE – Measure the average squared error.
Before running this project, ensure you have:
- Python 3.8 or higher
- Google Colab account (or Jupyter Notebook environment)
- Kaggle account with API credentials
- Go to kaggle.com/settings
- Scroll to API section
- Click Create New API Token
- Download
kaggle.json(contains your username and key)
- Open your notebook in Google Colab
- Click the 🔑 Secrets icon in the left sidebar
- Add two secrets:
- Name:
KAGGLE_USERNAME| Value: Your Kaggle username - Name:
KAGGLE_KEY| Value: Your Kaggle API key
- Name:
- Toggle notebook access ON for both secrets
Execute the cells in order
- Clone the repository to your local machine:
git clone https://github.com/DomanskiFilip/AI-Drone-Detection.git
cd AI-Drone-Detection- Install required dependencies:
pip install -r requirements.txt- Run the main script:
python main.py- Run visualization script:
python visualize.pyThis project uses datasets from Kaggle:
Drone Detection Dataset
- Source:
maryamlsgumel/drone-detection-dataset - Categories: Birds, Drones, Aeroplanes
- Authors: Maryam Lawan salisu, Aminu Musa
{
'Birds': 1,
'Drones': 2,
'Aeroplanes': 3
}- Filip Domanski
- Oliwer Galaszkiewicz
- Arash Ahangar
Note: This project is for educational and research purposes. Ensure you comply with Kaggle's terms of service and dataset licenses when using the data.