{"id":29124258,"url":"https://github.com/busrarafa/dog-vs-cat-custom-cnn-classification-model","last_synced_at":"2025-06-29T20:06:38.457Z","repository":{"id":300415671,"uuid":"1006114339","full_name":"BusraRafa/Dog-vs-Cat-custom-CNN-classification-model","owner":"BusraRafa","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T15:04:25.000Z","size":1205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T15:30:29.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BusraRafa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-21T14:24:22.000Z","updated_at":"2025-06-21T15:04:28.000Z","dependencies_parsed_at":"2025-06-21T15:30:30.250Z","dependency_job_id":"50794fbd-bb7f-44a9-8347-5d4ebceeac47","html_url":"https://github.com/BusraRafa/Dog-vs-Cat-custom-CNN-classification-model","commit_stats":null,"previous_names":["busrarafa/dog-vs-cat-custom-cnn-classification-model"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BusraRafa/Dog-vs-Cat-custom-CNN-classification-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FDog-vs-Cat-custom-CNN-classification-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FDog-vs-Cat-custom-CNN-classification-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FDog-vs-Cat-custom-CNN-classification-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FDog-vs-Cat-custom-CNN-classification-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BusraRafa","download_url":"https://codeload.github.com/BusraRafa/Dog-vs-Cat-custom-CNN-classification-model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BusraRafa%2FDog-vs-Cat-custom-CNN-classification-model/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262659987,"owners_count":23344439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-29T20:06:37.474Z","updated_at":"2025-06-29T20:06:38.440Z","avatar_url":"https://github.com/BusraRafa.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐶🐱 Dog vs Cat Classification with Custom CNN\n\nThis project is a binary image classification model that distinguishes between **cats** and **dogs** using a **custom-built Convolutional Neural Network (CNN)** in TensorFlow/Keras.\n\n## 📁 Dataset\n\nFor this used the [Microsoft Dogs vs Cats Dataset](https://www.kaggle.com/datasets/microsoft/catsvsdogs), available on Kaggle, which contains 25,000 labeled images of cats and dogs.\n```bash\nhttps://www.kaggle.com/datasets/microsoft/catsvsdogs\n```\n- Preprocessing:\n  - Corrupt images removed\n  - Normalized and resized to 224x224\n  - Data augmentation applied (rotation, zoom, flip, shift, etc.)\n\n---\n## 🧠 Model Overview\n\n- **Type**: Binary Image Classification (Cat = 0, Dog = 1)\n- **Framework**: TensorFlow/Keras\n- **Architecture**:\n  - 4 Convolutional layers\n  - Batch Normalization after each conv layer\n  - MaxPooling layers\n  - Dropout before the dense layers\n  - Final sigmoid activation\n\n- **Loss**: Binary Crossentropy  \n- **Optimizer**: Adam  \n- **Input Size**: 224x224 RGB Images  \n\n---\n\n## 📊 Evaluation Results (on Validation Set)\n\n| Metric     | Cat (0)  | Dog (1)  |\n|------------|----------|----------|\n| Precision  | 0.85964  | 0.95723  |\n| Recall     | 0.96242  | 0.84261  |\n| F1-score   | 0.90813  | 0.89627  |\n| Support    | 2501     | 2497     |\n\n- **Accuracy**: 90.26%  \n- **Macro Avg F1-score**: 90.22%  \n- **Weighted Avg F1-score**: 90.22%\n\n✅ The model shows high performance with balanced precision and recall for both classes.\n\n---\n\n## Sample Predictions\n\n![Image](https://github.com/user-attachments/assets/214c9163-650c-4f67-b25a-2b11d40f51c0) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fdog-vs-cat-custom-cnn-classification-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbusrarafa%2Fdog-vs-cat-custom-cnn-classification-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbusrarafa%2Fdog-vs-cat-custom-cnn-classification-model/lists"}