{"id":26121432,"url":"https://github.com/divith123/crime-predication-analysis","last_synced_at":"2026-02-27T20:04:45.625Z","repository":{"id":280954752,"uuid":"943719249","full_name":"Divith123/Crime-Predication-Analysis","owner":"Divith123","description":"This project focuses on analyzing and predicting crimes against women using data mining techniques. It leverages machine learning models to predict future trends in crime rates and provides a user-friendly Streamlit application for visualization and analysis.","archived":false,"fork":false,"pushed_at":"2025-03-06T07:07:26.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T10:06:54.781Z","etag":null,"topics":["crime-analysis","crime-prediction","machine-learning","python","streamlit"],"latest_commit_sha":null,"homepage":"https://crime-predication-analysis.streamlit.app/","language":"Python","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/Divith123.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}},"created_at":"2025-03-06T06:44:07.000Z","updated_at":"2025-03-06T07:07:31.000Z","dependencies_parsed_at":"2025-03-06T08:20:32.425Z","dependency_job_id":null,"html_url":"https://github.com/Divith123/Crime-Predication-Analysis","commit_stats":null,"previous_names":["divith123/crime-predication-analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Divith123/Crime-Predication-Analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divith123%2FCrime-Predication-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divith123%2FCrime-Predication-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divith123%2FCrime-Predication-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divith123%2FCrime-Predication-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Divith123","download_url":"https://codeload.github.com/Divith123/Crime-Predication-Analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Divith123%2FCrime-Predication-Analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29911421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crime-analysis","crime-prediction","machine-learning","python","streamlit"],"created_at":"2025-03-10T14:21:35.279Z","updated_at":"2026-02-27T20:04:45.600Z","avatar_url":"https://github.com/Divith123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crime Prediction and Analysis\n\n![Python](https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10-blue) ![Streamlit](https://img.shields.io/badge/Streamlit-1.20.0-green) ![Scikit-learn](https://img.shields.io/badge/Scikit--learn-1.2.2-orange)\n\nThis project focuses on analyzing and predicting crimes against women using data mining techniques. It leverages machine learning models to predict future trends in crime rates and provides a user-friendly Streamlit application for visualization and analysis.\n\n---\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [Dataset](#dataset)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Project Structure](#project-structure)\n- [Contributing](#contributing)\n- [License](#license)\n- [Contact](#contact)\n\n---\n\n## Overview\n\nThe goal of this project is to analyze historical crime data against women and predict future trends using machine learning. The application provides insights into crime patterns, visualizes trends over time, and allows users to make predictions based on input features.\n\n---\n\n## Features\n\n1. **Dataset Overview**:\n   - View the raw dataset with filtering options by state or year.\n   - Display statistics such as the number of rows, unique states, and years covered.\n\n2. **Exploratory Data Analysis (EDA)**:\n   - Visualize crime trends over the years.\n   - Analyze the distribution of different types of crimes.\n   - Compare crime trends across multiple states.\n\n3. **Crime Prediction**:\n   - Predict total crimes for a given year based on normalized crime category values.\n   - Compare predicted values with historical data.\n\n4. **Interactive Interface**:\n   - Built using Streamlit for an intuitive and interactive user experience.\n\n---\n\n## Dataset\n\nThe dataset used in this project contains the following columns:\n\n| Column Name | Explanation                     |\n|-------------|---------------------------------|\n| State       | Name of the state              |\n| Year        | Year of the record             |\n| Rape        | Number of rape cases           |\n| K\u0026A         | Kidnap and assault cases       |\n| DD          | Dowry deaths                   |\n| AoW         | Assault against women          |\n| AoM         | Assault against modesty of women |\n| DV          | Domestic violence cases        |\n| WT          | Women trafficking cases        |\n\nThe dataset is stored in `datasets/CrimesOnWomenData.csv`.\n\n---\n\n## Installation\n\n### Prerequisites\n\n- Python 3.8 or higher\n- Git\n\n### Steps\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Divith123/Crime-Predication-Analysis.git\n   cd Crime-Predication-Analysis\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Train the model:\n   ```bash\n   python train.py\n   ```\n\n5. Run the Streamlit app:\n   ```bash\n   streamlit run app.py\n   ```\n\n---\n\n## Usage\n\n### Dataset Overview\n- View the dataset with filtering options for state or year.\n- Understand the structure and contents of the dataset.\n\n### Exploratory Data Analysis\n- Analyze crime trends over the years.\n- Compare crime trends across multiple states.\n- Visualize the distribution of different types of crimes.\n\n### Crime Prediction\n- Input a year and normalized crime category values to predict total crimes.\n- Compare the predicted value with historical data.\n\n---\n\n## Project Structure\n\n```\nCrime-Predication-Analysis/\n│\n├── app.py                     # Streamlit application file\n├── train.py                   # Training script\n├── requirements.txt           # Python dependencies\n├── datasets/                  # Folder for datasets\n│   ├── CrimesOnWomenData.csv  # Dataset file\n│   └── description.csv        # Column descriptions\n├── models/                    # Folder for trained ML models\n│   └── crime_prediction_model.pkl\n├── utils/                     # Utility functions\n│   └── preprocessing.py       # Data preprocessing functions\n└── visuals/                   # Visualization functions\n    └── plots.py               # Plotting functions\n```\n\n---\n\n## Contributing\n\nWe welcome contributions! To contribute:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/YourFeatureName`).\n3. Commit your changes (`git commit -m \"Add YourFeatureName\"`).\n4. Push to the branch (`git push origin feature/\"YourFeatureName\"`).\n5. Open a pull request.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Contact\n\nFor questions or feedback, feel free to reach out:\n\n- **GitHub**: [@Divith123](https://github.com/Divith123) | [@dilanmelvin](https://github.com/dilanmelvin)\n- **Email**: divithselvam23@gmail.com | dilan4524melvin@gmail.com\n\n---\n\n## Acknowledgments\n\n- Inspired by real-world applications of data mining in crime analysis.\n- Thanks to open-source libraries like Scikit-learn, Streamlit, and Pandas.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivith123%2Fcrime-predication-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivith123%2Fcrime-predication-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivith123%2Fcrime-predication-analysis/lists"}