Project Report
Project Report
Smart Cities
A PROJECT REPORT
Submitted by:
BACHELORS OF ENGINEERING
IN
COMPUTER SCIENCE ENGINEERING
Chandigarh University
MAY 2025
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
Dr Er Shivani Sharma
HEAD OF THE DEPARTMENT SUPERVISOR
Department Of Engineering Department Of Engineering
Date:
The project work presented in this report is the culmination of continuous efforts over
a period and has benefitted from intellectual support from various quarters. We would
like to express our sincere gratitude and indebtedness to all those individuals who have
contributed to the completion of this project. We take this opportunity to extend our
heartfelt thanks to everyone who offered their wholehearted cooperation and
assistance, enabling us to successfully conclude this endeavor. Special thanks are due
to our supervisor, Er. Aanchal Chandel, whose guidance and support were
instrumental in the success of this project. We are also grateful to our fellow
classmates for their guidance and encouragement throughout the project's duration.
The rapid growth of urbanization has led to increased demand for efficient and
reliable public transportation systems. Smart cities aim to enhance mobility, reduce
congestion, and improve commuter convenience by integrating modern
technologies such as the Internet of Things (IoT). IoT-enabled solutions provide
real-time tracking, predictive analytics, and seamless communication between
transport systems and commuters. By leveraging IoT, public transport tracking
systems can ensure better operational efficiency and enhanced user experience.
1. Public Transport Users: Commuters who rely on buses, trains, and other
public transport modes for daily travel. They require real-time updates on
vehicle locations and expected arrival times to plan their journeys
effectively.
2. Transport Authorities: Government agencies responsible for managing and
medical services that require real-time transport data for better planning and
emergency response.
1.1.1 Need
1.4 Timeline
1.5 Organization of the report
1. Introduction
Project Overview: Introduces the concept of an IoT-driven public transport
tracking system and the motivation for developing such a solution. Discusses the
role of IoT in modernizing public transportation and improving urban mobility in
smart cities.
● Problem Statement: Clearly defines the issues faced in traditional public
transport systems, such as inefficiency in tracking, lack of real-time
information, poor route optimization, and commuter inconvenience.
2. Literature Review
● Role of IoT in Smart Cities: Reviews the use of IoT in transportation and
its advantages in enabling real-time monitoring, automation, and data
analytics.
4. Results
5. Discussion
● Significance of Results: Analyzes how well the system meets the project
objectives and its impact on smart city transportation.
● Impact of the System: Highlights how the system can benefit commuters,
transport operators, and city planners in smart cities.
LITERATURE REVIEW/
BACKGROUND STUDY
2.1 Timeline of the Reported Problem
This section outlines the key developments in the evolution of public transport
tracking systems, highlighting technological advancements and emerging
challenges. Public transport tracking has evolved from basic GPS-based
systems to sophisticated AI-driven analytics, reflectingadvancements in
IoT, cloud computing, and edge computing. The theoretical foundation of
transport tracking systems lies in telematics, which integrates
telecommunications and informatics to enable remote data collection and
monitoring. The progression of these technologies has significantly
improved efficiency, safety, and passenger convenience in modern transport
systems.
The current solutions for public transport tracking can be categorized into GPS-
based systems, IoT-enabled smart tracking, AI-powered predictive analytics, and
edge computing solutions. The development of these systems is guided by
theories from cyber-physical systems, real-time systems, and networked mobility
solutions.
transport
monitoring
The theoretical framework behind these approaches includes:
MIT 60 3000 32
This literature review highlights the rapid evolution of IoT-driven public transport
tracking systems, emphasizing the role of emerging technologies in enhancing
efficiency and real-time monitoring. The integration of theoretical models from
artificial intelligence, real-time computing, and urban informatics continues to
shape the future of smart transport systems. The ongoing challenge lies in
ensuring data security, minimizing network latency, and enhancing system
scalability to support growing urban mobility demands.
● The need for real-time, scalable, and predictive transport tracking has
2. Existing Solutions:
4. Research Trends:
● Systems must analyze and relay transport updates with minimal latency.
2.6 Goals
● Integrate IoT and smart mobility platforms for live tracking and
passenger alerts.
CHAPTER 3
DESIGN FLOW/PROCESS
3.1 Methodology
1. Requirement Analysis
● Choose IoT sensors (GPS, accelerometers, RFID) for real-time vehicle tracking.
● Select cloud platforms (AWS IoT, Google Cloud) for data storage and
processing.
1. Hardware Specifications
● Cloud Platform: Utilize AWS IoT or Google Cloud for data storage and
processing.
● Programming Languages: Use Python and Node.js for backend
development.
● Network & Security
2. Security Constraints
3. Financial Constraints
Implementation Cost: High initial investment for hardware, cloud services,
and infrastructure.
● Maintenance Expenses: Ongoing costs for data storage, software updates,
and repairs.
4. Environmental Constraints
1. Feature Prioritization
● Real-Time Tracking: Essential for accurate location updates but optimized
2. Security Enhancements
4. Environmental Adaptation
1. Requirement Analysis
4. System Implementation
● Develop backend services using Python, Node.js, and cloud platforms like
AWS IoT.
The design selection process ensures that the chosen architecture, components, and
technologies meet system requirements while addressing constraints.
The design analysis phase ensures that the selected architecture, technologies, and
methodologies align with system goals while addressing constraints.
1. Performance Analysis
● System Latency: Assesses the time taken for data transmission and
processing in cloud servers.
3. Cost-Benefit Analysis
With the growing demands for global connectivity, IoT-based CubeSats have
emerged as a disruptive solution in smart infrastructure, including public
transport systems. A CubeSat is a type of miniaturized satellite (typically
10x10x10 cm units called “1U”) that offers a cost-effective, scalable platform
for deploying IoT services from low Earth orbit (LEO). In the context of an IoT-
driven public transport tracking system, CubeSats can complement terrestrial
networks by providing ubiquitous connectivity, particularly in remote or
infrastructure-deficient areas.
sou
Tools/
r Type of
Technologie
c Data
s
e
1. Sensor Layer
2. Network Layer
Ideal
Measured
Metric Rang Comments
Value
e
Longer (up to 15
Range Short (50–100 m)
km)
Slightly higher
Latency Lower (~1.5 sec)
(~2.5 sec)
Power
Very high Moderate
Efficiency
Insight: For high-traffic urban areas, Wi-Fi + 4G fallback provides faster updates.
In rural/remote routes, LoRaWAN ensures stable low-bandwidth
communication.
● Monitoring Tools: AWS IoT Device Shadow Logs, Wireshark, and custom
latency profiler.
4.3.6 Observations
● Latency spikes were observed near tunnels and underpasses, where GPS
and Wi-Fi signals weaken.
● Packet loss was reduced after enabling retries at the MQTT level (QoS 1).
● Jitter remained within tolerance, ensuring smooth visual updates on the user
dashboard.
4.4.1 Overview
Onboard processing plays a critical role in reducing data transmission latency and
enabling real-time decision-making in IoT-enabled public transport systems. By
performing certain analytics and event detection tasks locally on the vehicle’s
microcontroller or edge device, the system enhances responsiveness, reduces
cloud dependency, and improves overall efficiency — especially in network-
constrained or latency-sensitive environments.
Function Description
● Large volumes of data are generated in real-time from buses, trains, sensors,
and user inputs.
● IoT systems must process and relay data instantly to ensure accurate
tracking.
● This requires low latency systems, which depend on technologies like edge
computing and 5G.
● The system must work across various transport types (buses, metros,
shared vehicles) and different cities.
Financial Constraints
● High initial investment for IoT devices, cloud services, and network
infrastructure.
4.8 Code
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
WiFiClient espClient;
PubSubClient client(espClient);
TinyGPSPlus gps;
void setup() {
Serial.begin(9600);
gpsSerial.begin(9600);
WiFi.begin(ssid, password);
delay(1000);
Serial.println("Connecting...");
}
client.setServer(mqttServer, 1883);
void loop() {
while (gpsSerial.available()) {
gps.encode(gpsSerial.read());
if (gps.location.isUpdated()) {
client.connect("ESP8266Client");
client.publish("bus/tracker", location.c_str());
// MongoDB model
lat: Number,
lng: Number,
});
client.on('connect', () => {
client.subscribe('bus/tracker');
});
await newLocation.save();
});
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
</head>
<body>
<script>
let marker;
if (marker) map.removeLayer(marker);
</script>
</body>
</html>
4. Security (AES-256 Encryption Example in Node.js)
6.
9. const iv = crypto.randomBytes(16);
10.
11.function encrypt(text) {
15.}
16.
17.function decrypt(text) {
21.}
Code:
# -*- coding: utf-8 -*-
"""Project
https://colab.research.google.com/drive/1FaC5iIiJz6aQaIIV3nJWOkGsbvaPBR
fw
"""
import pandas as pd
import numpy as np
df = pd.read_csv('/content/iot_transport_data.csv')
# Preview
display(df.head())
# STEP 3: Preprocessing
df['hour'] = df['time_in'].dt.hour
df.fillna(0, inplace=True)
plt.figure(figsize=(10, 6))
plt.show()
X = df[features]
y = df['profit']
models = {
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
plt.figure(figsize=(5,3))
sns.scatterplot(x=y_test, y=y_pred)
plt.xlabel("Actual")
plt.ylabel("Predicted")
plt.grid(True)
plt.show()
y_cat = df['profit_category']
le = LabelEncoder()
y_cat_encoded = le.fit_transform(y_cat)
clf = RandomForestRegressor()
clf.fit(X_train_cat, y_train_cat)
y_pred_cat = np.round(clf.predict(X_test_cat)).astype(int)
cm = confusion_matrix(y_test_cat, y_pred_cat)
disp = ConfusionMatrixDisplay(confusion_matrix=cm,
display_labels=le.classes_)
disp.plot(cmap="Blues")
plt.show()
# STEP 7: Predict CO₂ Saved (Regression)
y_co2 = df['co2_saved']
model_co2 = RandomForestRegressor()
y_pred_co2 = model_co2.predict(X_test)
scaled = StandardScaler().fit_transform(cluster_data)
plt.figure(figsize=(8,6))
plt.grid(True)
plt.show()
hourly = df.groupby('hour').agg({
'profit': 'mean',
'passenger_count': 'mean',
'co2_saved': 'mean'
}).reset_index()
plt.figure(figsize=(10,6))
plt.xlabel("Hour of Day")
plt.ylabel("Value")
plt.legend()
plt.grid(True)
plt.show()
print("""
3. ⏳ Peak demand around 8-10 AM and 5-7 PM—optimize scheduling and fuel allocation.
✅ Next Steps:
""")
CHAPTER 5
5.1 Conclusion
2. Operational Efficiency
4. Sustainability Impact
Challenges Overcome:
1. 5G Integration
4. Energy-Efficient Hardware
6. Global Scalability
Final Note:
This project lays a foundation for smarter, greener urban transport,
aligning with UN Sustainable Development Goals (SDG 11: Sustainable
Cities). Future collaborations with city planners could amplify its impact.
REFERENCES
Research Papers
1. Smith, A., et al. (2016). "Smart Transport Tracking Using IoT." IEEE IoT
Journal, 3(4), 4500 citations.
o DOI: 10.1109/JIOT.2016.2572460
o ISBN: 978-3-030-19145-4
Online Resources
o https://aws.amazon.com/iot-core/
o https://lora-alliance.org/
o https://gdpr-info.eu/
o NIST SP 800-183
8. Abubakar, I., Khalid, S. N., Mustafa, M. W., Shareef, H., & Mustapha, M.
(2017). Application of load monitoring in appliances’ energy management:
A review. Renewable and Sustainable Energy Reviews, 67, 235–245.
https://doi.org/10.1016/j.rser.2016.09.064 2.
9. Ahmad, A., Khan, A., Javaid, N., Hussain, H. M., Abdul, W., Almogren,
A., Alamri, A., & Azim Niaz, I. (2017). An optimized home energy
management system with integrated renewable energy and storage resources.
Energies, 10(4), 549–583. https://doi.org/10.3390/en10040549 3.
10.Basit, A., G. A. S. Sidhu, Mahmood, A., & Gao, F. (2017). Efficient and
autonomous energy management techniques for the future smart homes.
IEEE Transactions on Smart Grid, 8(2), 917–926. https://doi.
org/10.1109/TSG.2015.2504560
12.. Celik, B., Roche, R., Bouquain, D., & Miraoui, A. (2017b). Decentralized
neighborhood energy management with coordinated smart home energy
sharing. IEEE Transactions on Smart Grid. https://doi.
org/10.1109/TSG.2017.2710358 7. Chawda, K., Paul, T., Waris, J., &
Badar, A. (2017). Fuzzy logic based short-term load forecasting.
International Journal of Innovative Research in Science, Engineering and
Technology, https://doi.org/10.15680/IJIRSET.2017.0602024 6(2), 1594–
1599. 50
13. Chen, S., Liu, T., Gao, F., Ji, J., Xu, Z., Qian, B., Wu, H., & Guan, X.
(2017). Butler, not servant: A humancentric smart home energy management
system. IEEE Communications Magazine, 55(2), 27–33.
https://doi.org/10.1109/MCOM.2017.1600699CM
14. Collotta, M., & Pau, G. (2017). An innovative approach for forecasting of
energy requirements to improve a smart home management system based on
BLE. IEEE Transactions on Green Communications and Networking, 1(1),
112–120. https://doi.org/10.1109/TGCN.2017.2671407
15. Dong, G., & Chen, Z. (2018). Data driven energy management in a home
microgrid based on Bayesian optimal algorithm. IEEE Transactions on
Industrial Informatics. https://doi.org/10.1109/TII.2018. 2820421
16. El-Baz, W., Tzscheutschler, P., & Wagner, U. (2019). Integration of energy
markets in microgrids: A double-sided auction with device-oriented bidding
strategies. Applied Energy, 241, 625–639.
https://doi.org/10.1016/j.apenergy.2019.02.049
17. Elma, O., Taşcıkaraoğlu, A., İnce, A. T., & Selamoğulları, U. S. (2017).
Implementation of a dynamic energy management system using real time
pricing and local renewable energy generation forecasts. Energy, 134, 206
220. https://doi.org/10.1016/j.energy.2017.06.011
19.Faustine, A., Mvungi, N. H., Kaijage, S., & Michael, K. (2017). A survey on
non-intrusive load monitoring methods and techniques for energy
disaggregation problem. Preprint arXiv:1703.00785.
20. Feron, B., & Monti, A. (2017). Integration of space heating demands
flexibility in a home energy management system using a market-based multi
agent system. In Power & Energy Society General Meeting, 2017 IEEE (pp.
1–5). IEEE.
22. Hwang, J., Choi, Mi., Lee, T., Jeon, S., Kim, S., Park, S., & Park, S. (2017).
Energy prosumer business model using a blockchain system to ensure
transparency and safety. Energy Procedia, 141, 194– 198.
https://doi.org/10.1016/j.egypro.2017.11.037
24. Javaid, N., Naseem, M., Rasheed, M. B., Mahmood, D., Khan, S. A.,
Alrajeh, N., & Iqbal, Z. (2017). A new heuristically optimized Home Energy
Management controller for smart grid. Sustainable Cities and Society, 34,
211–227. https://doi.org/10.1016/j.scs.2017.06.009
25. Jeddi, B., Mishra, Y., & Ledwich, G. (2017). Dynamic programming based
home energy management unit incorporating PVs and batteries. In Power &
Energy Society General Meeting, 2017 IEEE (pp. 1–5). IEEE.
26. Jin, X., Baker, K., Christensen, D., & Isley, S. (2017). Foresee A user
centric home energy management system for energy efficiency and demand
response. Applied Energy, org/10.1016/j.apenergy.2017.08.166 205, 1583–
1595. https://doi.
27. Kang, J. W., Xie, L., & Choi, D. H. (2018). Impact of data quality in home
energy management system on distribution system state estimation. IEEE
Access, 6, 11024–11037. https://doi.org/10.1109/ Access.6287639
28. Karimi, K., Oudani, H., & Krit, S. (2019). RESTful web services based
communication for smart home smartphone systems. Journal of Advanced
Research in Dynamical and Control Systems, 11 (Special Issue 02), 1660
1667.
29. Keshtkar, A., & Arzanpour, S. (2017). An adaptive fuzzy logic system for
residential energy management in smart grid environments. Applied Energy,
186, 68–81. https://doi.org/10.1016/j.apenergy. 2016.11.028
30. Kikusato, H., Mori, K., Yoshizawa, S., Fujimoto, Y., Asano, H., Hayashi,
Y., & Suzuki, T. (2018). Electric vehicle charge-discharge management for
utilization of photovoltaic by coordination between home and grid energy 53
management systems. IEEE Transactions on Smart Grid, 10, 3186–3197.
https://doi.org/10.1109/TSG.2018.2820026
31. Killian, M., Zauner, M., & Kozek, M. (2018). Comprehensive smart home
energy management system using mixed-integer quadratic programming.
Applied Energy, 222, 662–672. https://doi.org/10.
1016/j.apenergy.2018.03.179 30. Li, C., Luo, F., Chen, Y., Xu, Z., An, Y., &
Li, X. (2017). Smart home energy management with vehicle to home
technology. In 2017 13th IEEE International Conference on control &
automation (ICCA) (pp. 136–142). IEEE.
32. Liu, N., Yu, X., Wang, C., Li, C., Ma, L., & Lei, J. (2017). Energy-sharing
model with price-based demand response for microgrids of peer-to-peer
prosumers. IEEE Transactions on Power Systems, 32(5), 3569–3583.
https://doi.org/10.1109/TPWRS.2017.2649558