Real-World Data Science Project | BS Artificial Intelligence | Superior University
inDrive riders in Lahore suffer from fare blindness — no data to judge whether the app's suggested fare is fair, what time gives cheapest rides, or which vehicle gets the fastest driver response. This project analyzes 498 real trips + 42 user survey responses to surface actionable insights.
| Problem | Finding |
|---|---|
| Fare Blindness | Riders overpay by 12.6% above app suggestion consistently |
| Time Trap | Night fares are 60% higher than morning fares |
| Ride Type Confusion | Cars get 3.94 avg bids vs rickshaws at 2.48 |
inDrive_Lahore_Analysis/
├── data/
│ ├── trips.csv # 498 manual trip logs
│ └── survey.csv # 42 user survey responses
├── data_cleaning.py # Step 1: Clean & preprocess both datasets
├── eda_analysis.py # Step 2: Generate 7 EDA plots
├── model.py # Step 3: Fare prediction model
├── app.py # Streamlit portfolio dashboard
├── requirements.txt
└── README.md
pip install -r requirements.txtPlace your CSVs in the data/ folder:
data/trips.csv(main trip log)data/survey.csv(user survey)
python data_cleaning.pypython eda_analysis.pypython model.pystreamlit run app.py| Column | Description |
|---|---|
| Date | Trip date |
| Team Member Name | Data collector |
| Time Category | Time slot (Morning/Evening/Night etc.) |
| Pickup Area | Origin zone in Lahore |
| Dropoff Area | Destination zone |
| Ride Type | Car / Bike / Rickshaw |
| Suggested Fare (PKR) | inDrive app suggestion |
| Team Member Offer (PKR) | Fare offered by rider |
| Final Accepted Fare (PKR) | Actual fare paid |
| Num of Driver Bids | Driver responses received |
| Weather Condition | Clear / Cloudy / Rain |
| Traffic Level | Low / Moderate |
User perception survey covering: demographics, usage frequency, fare perception, peak hour awareness, frustrations, and comparison with Careem/Uber.
- Negotiation Gap: Final fares consistently exceed suggested fares by 11–15% across all ride types
- Night Dominance: 38% of trips occur at night (6–10 PM) but fares are 60% higher
- Supply Imbalance: Cars receive most driver bids (3.94 avg); rickshaws least (2.48 avg)
- User Frustration: Long wait & driver rejections are tied as top complaints (survey)
- Competitive Edge: 90% of users find inDrive same or cheaper than Careem/Uber
- Algorithm: Random Forest Regressor
- Features: Suggested Fare, Driver Bids, Ride Type, Time, Weather, Traffic
- R² Score: ~0.97 (97% variance in final fare explained)
- Key Insight: Suggested Fare is the strongest predictor; time of day is second
Developed by Syed Tahir · BS Artificial Intelligence (4th Semester) · Superior University Lahore