This project focuses on applying community detection algorithms to analyze the bike sharing data from the "Databike.csv" dataset.
The goal of this project is to identify communities or clusters within the bike sharing network using two popular community detection algorithms: Girvan-Newman algorithm and Louvain algorithm.
1 bikeNetwork 2 networkStats 3 mapPlot 4 heatMapPlot 5 centralityBetweennes 6 communityLouvain 7 communityGirvanNewman
The project involves the following steps:
- Data preprocessing: The dataset is loaded and cleaned, handling missing values and outliers.
- Network construction: The bike sharing data is transformed into a graph representation, where nodes represent bike stations and edges represent bike trips between stations.
- Girvan-Newman algorithm: The Girvan-Newman algorithm is applied to the network to detect communities.
- Louvain algorithm: The Louvain algorithm is also applied to the network to detect communities.
- Visualization: The detected communities are visualized on a map using the Folium library.
- Analysis: The results of the two community detection algorithms are compared and analyzed.
The repository contains the following files:
DSAideathon.ipynb
: The Jupyter Notebook file containing the code for the project.Databike.csv
: The dataset used for the project.README.md
: This file, providing an overview of the project.
The project requires the following Python libraries:
numpy
pandas
networkx
matplotlib.pyplot
folium
community
You can install these dependencies using pip
or conda
:
pip install numpy pandas networkx matplotlib folium python-louvain
- Clone the repository to your local machine.
- Open the
DSAideathon.ipynb
file in a Jupyter Notebook environment. - Run the cells in the notebook to execute the code and generate the results.
The project's main results are:
- Identification of communities within the bike sharing network using the Girvan-Newman and Louvain algorithms.
- Visualization of the detected communities on a map using Folium.
- Comparison and analysis of the two community detection algorithms.
The insights gained from this analysis can be used to improve the bike sharing system, such as optimizing station locations, balancing bike distribution, and enhancing user experience.
This project demonstrates the application of community detection algorithms to analyze and understand the structure of a bike sharing network. The results provide valuable insights that can be leveraged to enhance the efficiency and effectiveness of the bike sharing system.
##Contributers
Avinash Kumar B22ME014 Chintan Limbachiya B22ME036 Sumit B22CH037 Shashwat Meena B22BB037