An analysis of a satellite imagery dataset for ship detection using dimensionality reduction and machine learning models.
This project explores a satellite imagery dataset containing ship and no-ship images. The primary goals are to perform dimensionality reduction with Principal Component Analysis (PCA) and manifold learning (Isomap), then build and evaluate machine learning classifiers on the reduced datasets. The project compares the performance and efficiency of different models with and without dimensionality reduction.
- Python 3.x
- scikit-learn
- pandas
- numpy
- matplotlib
- joblib
- pandas 1.5.0
- numpy 1.23.0
- scikit-learn 1.2.2
- matplotlib 3.6.1
- joblib 1.1.0
- Clone the repository:
git clone https://github.com/UF-MLforAISystems-Fall24/project-2-undergraduate-laba-ehehe.git
- Install the required dependencies:
pip install -r requirements.txt
- Open the Jupyter notebooks:
jupyter notebook "train.ipynb" jupyter notebook "test.ipynb"
Due to file size constraints, the trained models and dataset are hosted on Google Drive. Please download the required files from the link below:
After downloading, ensuring all the files are in the root directory (project-2-undergraduate-laba-ehehe) and the dataset files (ship_data.npy and ship_labels.npy) are in the ships_dataset folder.
The main tasks of this project include:
- Performing dimensionality reduction with PCA to retain 90% variance and visualizing the reconstructed images.
- Applying manifold learning (Isomap) to reduce dimensionality to two components and visualizing the dataset in the reduced space.
- Training and evaluating Random Forest and SVM classifiers on the original, PCA-reduced, and Isomap-reduced datasets.
- Comparing model performance in terms of accuracy, F1-score, training time, and inference time.
Key Jupyter notebooks:
train.ipynb: Data preprocessing, dimensionality reduction, and model training.test.ipynb: Model evaluation and misclassification analysis.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Lan Anh Do - LinkedIn
Project Link: GitHub
- Dr. Catia Silva - Instructor of EEL4930 - Applied Machine Learning System (Fall 2024)