A simple machine learning project that uses K-Means Clustering to detect potential counterfeit banknotes based on their statistical properties. This project demonstrates unsupervised learning using real-world data and visualises the clustering process.
data/: Contains the dataset used for analysis and prediction.notebooks/: Jupyter notebooks for data analysis, feature engineering, and model building.README.md: Project overview and usage instructions.
- Load and explore a dataset of banknotes
- Preprocess data for clustering
- Apply K-Means Clustering to group genuine and counterfeit bills
- Visualise the clusters using Matplotlib and Seaborn
- Evaluate clustering results using inertia and silhouette score
- Python 3.x
- Jupyter Notebook
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-learn
-
Clone this repository:
git clone https://github.com/nurulashraf/kmeans-counterfeit-bills.git cd kmeans-counterfeit-bills -
Install dependencies:
pip install pandas numpy matplotlib seaborn scikit-learn scipy
-
Place your dataset (
fake_bills.csv) in thedatafolder. -
Open the notebook:
jupyter notebook kmeans_counterfeit_bills.ipynb
-
Run the cells and explore the analysis.
This project is licensed under the MIT License.