Project Report (Black Book)
Project Report (Black Book)
Submitted by
Mr Hemant P. Chauthe 220105232008
Mr Dhananjay D. Patil 220105232010
Ms Harshada P. Pawar 220105232007
Ms Revati M. Jadhav 220105232019
May, 2024-25
Certificate
This is to certify that,
Mr Hemant P. Chauthe, 220105232008
Mr Dhananjay D. Patil, 220105232010
Ms Harshada P. Pawar, 220105232007
Ms Revati M. Jadhav, 220105232019
have successfully completed the project entitled “ Predictive Analysis Of Power Generation
From Footsteps Using Machine Learning ”, under my guidance in partial fulfillment of
the requirements for the degree of Bachelor of Engineering in C om puer S ci enc e and
Engi ne eri n g under t he S andi p University Nashik during the academic year 2024-25.
Date : ……………….
Place:……………….
……………………………….
Dr. Supriya Bhosale
Project Guide
………………………… ……………………….
Dr. Umesh Pawar Dr. Pawan Bhaladhare
Head, Dean
Department of Computer Science and Engg
Examiner :………………………………………………………………………………….
ii
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Acknowledgements
We would like to extend our heartfelt gratitude to our parents, project guide, project co-
ordinator, head of department, dean, and all other university staff for their unwavering
support throughout this project. Their assistance was invaluable in helping us to complete our
final year degree project, which contributed significantly to our Bachelor of Technology in
Computer Science and Engineering. We truly appreciated the interest and learning
experiences that accompanied this endeavor.
We express our deepest appreciation to our Project Guide, Dr. Supriya Bhosale, for her
expert guidance and technical assistance throughout the project work, which is helpful to
learn from this project and implement essential strategic plans for the successful completion
and implementation of this project. Her technical assistance helped us to learn technical
aspects of software project management and helped us to gain practical knowledge from this
project.
We would like to extend our heartfelt gratitude to our Project Co-ordinator, Prof. Abdul
Kayyum Shaikh Sir, for his support and for giving important instructions to complete this
project throughout the final year. His guidance about project guidelines and project structure
helped us to complete the project within the timeline using our true potential.
We express our deepest appreciation to the Head of Department, Dr. Umesh Pawar Sir,
for arranging different technical sessions based on project development and project-related
activities, which helped us to plan our project development activities according to industry
standards.
We would like to extend our heartfelt gratitude to the Dean, Dr. Pawan Bhaladhare Sir,
for providing all the necessary college resources and assigning different faculty, who have
expertise in different project domains and have knowledge of the technical aspects of
different project domains.
We must express sincere, heartfelt gratitude towards Sandip University for providing us with
all the necessary academic resources and infrastructure; without it, we could not have
completed this final year degree project in the award of Bachelor of Technology in Computer
iii
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Abstract
Energy has long been the pulse of human civilization, fueling progress and innovation. Yet, as
conventional sources dwindle, the search for sustainable alternatives becomes not just a
necessity but an inevitability. This project explores a concept hidden in plain sight harnessing
the energy of footsteps. Every step carries kinetic potential, an untapped rhythm of daily life
waiting to be transformed.
Piezoelectric tiles embedded in high-footfall areas homes, schools, railway stations capture
this overlooked energy, converting motion into electricity. Each step, no longer just a
movement, becomes a contribution to a self-sustaining cycle, where human activity fuels itself.
But beyond the conversion of energy, intelligence refines its efficiency. Machine learning
breathes adaptability into this system. By employing Linear Regression and Random Forest
Regression, the technology does not merely generate power it learns. Real-time data analysis
predicts and optimizes energy output, creating an evolving system that grows smarter with
every footstep. The results unfold on an interactive Python-powered dashboard, where raw
motion turns into visualized potential.
In a world that never stands still, where crowded streets and bustling transit hubs define the
pulse of modern life, this idea aligns seamlessly with the natural flow of human movement.
Especially in a country like India, where millions move in unison every day, the potential is
immense. This is more than an experiment in alternative energy it is a vision of sustainability
woven into the fabric of urban existence. One step, one spark, one future powered by motion
itself.
iv
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Table of Contents
1 Introduction.....................................................................................................1- 4
1.1 Overview.................................................................................1
1.2 Brief Description.....................................................................1
1.3 Problem Definition..................................................................2
1.4 Objective.................................................................................3
1.5 Organization of Report............................................................3
2 Literature Survey ..........................................................................................5 - 9
Related work done in the previous papers with their advantages and disadvantages.
3 Software Requirements Specification .........................................................10 - 39
3.1 Introduction..............................................................................10
3.1.1 Purpose......................................................................10
3.1.2 Project Scope.............................................................10
3.1.3 Design and Implementation Constrains.....................11
3.1.4 Assumptions and Dependencies.................................13
3.2 System Features (Use Case Diagrams).....................................15
3.2.1System Feature 1(Functional Requirement)................15
3.2.2System Feature2 (Functional Requirement).................17
3.3 External Interface Requirements................................................18
3.3.1User Interfaces..............................................................18
3.3.2 Hardware Interfaces.....................................................23
3.3.3 Software Interfaces.......................................................25
3.3.4 Communication Interfaces...........................................27
3.4 Nonfunctional Requirements.......................................................29
3.4.1 Performance Requirements...........................................29
3.4.2 Safety Requirements.....................................................30
3.4.3 Security Requirements..................................................30
3.4.4 Software Quality Attribute............................................31
3.5 Analysis Model............................................................................32
3.6.1 Data Flow Diagrams.....................................................32
3.6.2 Class Diagrams.............................................................34
3.6.3 State-Transition Diagrams............................................34
3.7 System Implementation Plan.......................................................35
v
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
4 System Design...............................................................................................40 - 43
4.1System Architecture..................................................................40
4.2 Cicuit Diagram.........................................................................41
4.3 Block Diagram.........................................................................42
4.4UML Diagram...........................................................................43
5 Technical Specifications...............................................................................44 - 46
5.1 Technology details used in the project.....................................44
5.2 References to technology ........................................................46
6 Project estimate (Expected and Actual) Schedule (Sem I & Sem II ) and Team
structure(In the form of Diagram) .................................................................47 - 54
7 Software and Hardware Implementation....................................................55 - 65
7.1 Hardware Implementation........................................................55
7.2 Software Implementation.........................................................58
8 Software Testing............................................................................................66 - 70
8.1 Introduction...............................................................................66
8.2 Test cases (Unit test, Integration Test, Acceptance Test, Product Test)...66
8.3 snap shots of the test cases and test plans.................................70
9 Results and Discussion (Snap shots of the results) ....................................71 - 78
10 Deployment and Maintenance.....................................................................79 - 82
10.1 Deployment Strategies............................................................79
10.2 Maintenance Strategies...........................................................80
10.3 User Help................................................................................81
11 Conclusion and Future Scope.......................................................................83 - 85
References............................................................................................................86 - 87
Appendix .............................................................................................................88 - 99
Appendix A: Publications (if any) (In form of Index)
Published Paper in Hard Copy
Appendix B: Glossary [Define terms, acronyms, and abbreviations used]
vi
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
List of Figures
vii
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
List of Tables
viii
Chapter 1
Introduction
1.1Overview
1.2Brief Description
The project titled "Predictive Analysis of Power Generation from Footsteps Using Machine
Learning" presents an innovative approach to sustainable energy generation by harvesting
mechanical energy from human footsteps. Utilizing piezoelectric sensors, the system captures
pressure and vibrations caused by footfall in high-traffic areas such as railway stations,
shopping malls, schools, and other public spaces. This mechanical energy is then converted
1
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
into electrical energy, which can be stored and used for small-scale applications like lighting
LEDs or powering low-energy electronic devices.
By merging sustainable energy harvesting with modern machine learning techniques, this
project offers a practical and eco-friendly solution to address energy demands in densely
populated urban areas. Its cost-effectiveness, low environmental impact, and scalability make
it an attractive option for smart city initiatives and energy-conscious infrastructures. Overall,
the system underscores the potential of transforming everyday human activities into useful
energy, contributing meaningfully to the global push for renewable and alternative energy
sources.
1.3Problem Definition
The increasing global energy demand, coupled with the depletion of conventional energy
sources, has necessitated the development of innovative, renewable energy solutions. In urban
environments, a significant amount of mechanical energy generated from human movement
remains untapped, contributing to energy wastage. Harnessing this energy effectively can
provide a sustainable and eco-friendly solution to meet small-scale power requirements,
especially in high-footfall areas like railway stations, malls, and public spaces. This project
2
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
seeks to address this problem by developing a footstep energy harvesting system that converts
human mechanical energy into electrical power while incorporating real-time monitoring and
predictive modeling for optimal performance.
1.4Objective
1. Develop a system that captures mechanical energy from footsteps using piezoelectric
sensors.
2. Efficiently convert the mechanical energy into electrical power for small-scale
applications like lighting or charging.
3. Implement real-time data monitoring of footstep pressure, frequency, and energy
output using a Python-based dashboard.
4. Use machine learning techniques such as Linear Regression and Random Forest to
predict energy output and optimize system performance.
5. Ensure the system is scalable, eco-friendly, and capable of future upgrades for broader
applications.
6. Identify and target locations with high foot traffic for maximum energy generation
efficiency.
Chapter 2: Chapter 2 describes the research about the project and past development in
this project, and recent research about Predictive Analysis Of Power Generation From
Footsteps Using Machine Learning. It gives the research methodology & technology
used for this project in recent years.
3
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 4: Chapter 4 describes about system design, system architecture and UML
diagrams to design and develop Predictive Analysis Of Power Generation From
Footsteps Using Machine Learning.
Chapter 6: Chapter 6 describes the project plan that includes a detailed project schedule,
development team structure, and project estimation with cost estimation and resources
that we will utilize.
Chapter 7: Chapter 7 describes about the how we implemented the system and which are
the technologies and algorithms, we used to develop this system throughout the
development life cycle.
Chapter 8: Chapter 8 describes about the system testing and different tests that are
carried out on the system to cross verify the system functionality & performance of the
system.
Chapter 9: Chapter 9 describes the system development results with all the necessary
features of the system.
Chapter 10: Chapter 10 describes the system deployment and maintenance after the
development is completed.
4
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 2
Literature Survey
This study emphasizes the use of deep learning, specifically Convolutional Neural Networks
(CNNs), for accurate predictions of energy generation in piezoelectric systems. The authors
showcase CNNs' ability to process complex step patterns, particularly in variable traffic
conditions, to enhance energy prediction accuracy, making these systems more adaptive and
efficient [1].
This article applies decision trees and ensemble methods to forecast energy generation in
piezoelectric systems, focusing on high-traffic areas. The authors analyze variables like step
force and frequency, demonstrating how predictive models can improve energy harvesting
efficiency in environments such as transport stations and sports arenas [2].
This paper discusses the application of machine learning techniques, including Naïve Bayes,
for renewable energy systems. Although focused broadly on renewable energy, the insights
are applicable to footstep-based piezoelectric systems, offering strategies for energy
prediction and optimization using traffic patterns and environmental data. The authors
highlight the role of predictive modeling in improving energy system performance [3].
This study integrates IoT devices with piezoelectric tiles to monitor and predict energy
generation in real-time. Targeted at high-traffic areas such as shopping malls and hospitals,
the authors demonstrate how neural networks can predict power outputs using real-time data
5
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
from piezoelectric sensors. The integration of IoT and machine learning is shown to enhance
the continuous and efficient operation of energy harvesting systems [4].
This research investigates the use of piezoelectric sensors for energy harvesting in public
spaces with significant foot traffic, such as train stations and airports. Using regression
models, the authors predict energy generation based on parameters like pressure and step
frequency. Their findings underline the role of machine learning in enhancing the efficiency
of these systems, offering insights into sustainable energy solutions for public infrastructure
[5].
This article explores harvesting energy from footsteps in urban environments using
piezoelectric sensors and machine learning techniques. The study highlights the ability of
piezoelectric tiles to convert mechanical pressure from footsteps into electrical energy,
emphasizing their potential for high-foot-traffic areas like public transportation hubs and
shopping malls. By applying machine learning algorithms, the authors predict and optimize
energy outputs based on variables such as step frequency and force, demonstrating the utility
of such systems for sustainable urban infrastructure [6].
6
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Lee and 2024 Deep Pg. Investigates Convolution Uses advanced Link
Park Learning 43-50 deep learning al Neural deep learning
Applicati methods for Networks techniques which
ons for enhancing (CNNs) may be
Piezoelect accuracy in used for computationally
ric Power energy recognizing intensive
Systems prediction, complex compared to your
relevant to patterns in real-time
your predictive step data. Arduino-based
model. system.
7
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Kumar et 2022 IoT- Pg. Explores IoT Neural IoT and network- Link
al. Integrated 89-97 integration for networks based, while your
Piezoelect real-time used for project uses
ric Tiles monitoring predicting Arduino without
for Real- and energy energy requiring a
Time prediction, outputs network-based
Energy akin to your based on system.
Prediction Arduino-based real-time
and real-time step data.
Monitorin system.
g
8
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
9
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 3
3.1 Introduction
The system requires both hardware and software components for effective energy harvesting
and predictive analysis. Hardware includes piezoelectric sensors and Arduino for capturing
footstep energy, while software uses Python and machine learning libraries for data
processing, prediction, and real-time dashboard visualization.
3.1.1 Purpose
The purpose of this system is to design and implement a smart energy generation solution that
captures mechanical energy from human footsteps using piezoelectric sensors and converts it
into usable electrical energy. The system further utilizes machine learning algorithms to
predict energy output based on footstep parameters, enabling real-time monitoring and
efficient energy utilization. This project aims to promote sustainable energy practices in high-
footfall areas such as railway stations, malls, and schools.
1. Energy Harvesting:
- Capture mechanical energy from human footsteps using piezoelectric sensors embedded in
floors.
- Convert the captured energy into electrical power for small-scale applications like lighting
LEDs and charging low-power devices.
2. Real-Time Monitoring:
- Provide real-time visualization of energy output, footstep pressure, and other key metrics
using a Python-based dashboard.
3. Predictive Modeling:
10
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
- Use machine learning models (Linear Regression and Random Forest Regression) to
predict energy output based on footstep data, enabling performance optimization.
4. Application Areas:
- High-footfall locations such as railway stations, schools, shopping malls, and public
spaces.
5. Scalability:
- Design the system to be scalable and modular, allowing for future expansion and
deployment in larger areas.
6. Eco-Friendly Solution:
- Promote sustainability by utilizing renewable energy sources and reducing dependency on
conventional resources.
1. Hardware Constraints
Sensor Limitations: The piezoelectric sensors used to capture energy from footsteps have
specific sensitivity and power generation limits. The efficiency of these sensors may vary
depending on footstep intensity, frequency, and the type of surface.
Power Storage: Storing the harvested energy efficiently is a major constraint. Battery life,
charging cycles, and storage capacity must be considered to ensure that the system can hold
enough power to be useful for small-scale applications like LED lighting.
2. Software Constraints
11
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Real-time Processing: The system is designed to handle real-time data, which can be
challenging due to the computational demands of processing footstep data and running
machine learning models (e.g., Linear Regression, Random Forest Regression) in real-time.
Data Accuracy: Machine learning models depend on accurate and clean data for prediction.
Noise in the sensor data due to environmental factors or sensor inaccuracies can reduce the
accuracy of energy predictions.
3. Environmental Constraints
Footstep Frequency: The amount of energy generated depends heavily on foot traffic. In
locations with low foot traffic (e.g., at night or in less-populated areas), the system may not
generate enough power to be effective.
Weather Conditions: Environmental factors such as humidity, temperature, and dust can
affect the performance of piezoelectric sensors, potentially leading to degradation over time or
inaccurate energy measurements.
Development Time: The time available for system development is limited, which means
certain features or optimizations may need to be postponed or simplified for initial
implementation. Machine learning model training and fine-tuning may also be time-
consuming and require sufficient computational resources.
5. Scalability Constraints
12
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
System Expansion: Scaling the system to handle large public areas with hundreds of sensors
can be challenging. Each sensor must be integrated into the central system, and the real-time
data processing and prediction must remain effective as the number of sensors increases.
Energy Harvesting Efficiency: As the system is scaled, it may be necessary to improve the
energy harvesting efficiency to meet growing demands. This could involve upgrading
piezoelectric sensor technology or finding better ways to store the generated energy.
Real-time Visualization: The dashboard system should display real-time data, such as energy
output and foot traffic patterns, but the efficiency of the visualization may be limited by
processing power or bandwidth, especially in large-scale deployments.
1. Assumptions
Adequate Foot Traffic: It is assumed that the system will be deployed in areas with
consistent and adequate foot traffic, such as railway stations, malls, or schools. The
energy generated depends heavily on the frequency of footsteps, so locations with
minimal footfall may not generate enough power for practical use.
Proper Sensor Placement: The system assumes that the piezoelectric sensors will be
properly installed in locations where they can effectively capture energy from
footsteps. The sensors need to be placed in areas with consistent foot traffic to ensure
reliable energy generation.
Operational Environmental Conditions: It is assumed that the system will be
deployed in environments with relatively stable weather and temperature conditions.
Extreme conditions, such as high humidity, rain, or dust, may negatively affect sensor
performance, and additional protective measures may be needed.
13
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Stable Power Storage: The assumption is made that the energy storage devices (e.g.,
batteries or capacitors) used in the system will have sufficient capacity and lifespan to
store the energy generated during peak foot traffic periods and release it during off-
peak periods. The storage system is assumed to be able to handle the energy
fluctuations from sensor input.
Reliable Data Collection: The system assumes that the piezoelectric sensors will
function reliably without significant interference or failure over time. It assumes that
sensors will be able to collect consistent and accurate data that can be processed to
predict energy output.
Machine Learning Model Accuracy: The predictive models used (e.g., Linear
Regression, Random Forest Regression) are assumed to be able to generate accurate
predictions based on footstep parameters. The models are expected to be trained on
sufficient data to ensure their reliability in real-world scenarios.
User Acceptance: It is assumed that the end-users (e.g., facility managers,
government bodies, or organizations) will accept and implement the system as a
sustainable energy solution in their premises.
2. Dependencies
14
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Power Supply Reliability: The system assumes that there will be a stable power
supply to run microcontrollers and sensors. In some deployments, a backup power
system (such as a solar panel or UPS) may be required to ensure system continuity
during power outages.
Internet Connectivity (For Real-time Monitoring): The system’s real-time
monitoring feature, including data visualization on the Python-based dashboard, may
depend on reliable internet connectivity, especially if remote access or cloud-based
storage is involved. Poor or unreliable internet service could limit system functionality.
System Integration: The system depends on proper integration between various
components, such as sensors, microcontrollers, the energy storage system, and the
dashboard. Ensuring seamless communication and data exchange between these
components is crucial for system operation.
Regulatory Compliance: The system must comply with local regulations regarding
energy harvesting, environmental safety, and data privacy. This includes legal
constraints on the installation and operation of energy-generating systems in public
spaces, and how the collected data is stored and processed.
External Collaboration: The successful implementation of the system might depend
on partnerships with local authorities, businesses, or public institutions for installation,
maintenance, and system monitoring.
Description:
The system must collect mechanical energy from human footsteps using piezoelectric sensors
and convert it into electrical energy. Simultaneously, it must collect essential data parameters
(such as pressure, force, footstep frequency) for further analysis.
15
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Functional Requirements:
Figure 1 The Use case Diagram of Energy Harvesting and Data Collection
16
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Simultaneously, the system records the footstep parameters (pressure, time, frequency)
into a database for predictive modeling.
Description:
The system must predict the amount of energy that will be generated based on live footstep
data using machine learning models (Linear Regression, Random Forest Regression). It must
also provide real-time monitoring and visualization through a user-friendly Python-based
dashboard.
Functional Requirements:
Figure 2 The Use case Diagram of Predictive Analysis and Real-Time Monitoring
17
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
3.3.1User Interfaces
The Sidebar Panel is a critical part of the system's user interface, offering users interactive
controls and immediate visibility into key daily energy statistics. It is designed to allow quick
adjustments and give an overview of system performance without navigating through multiple
screens.
The sidebar provides sliders that allow users to adjust two major hardware-related parameters
to simulate different sensor or system conditions:
18
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
In addition to parameter inputs, the sidebar displays real-time summary statistics based on
the current day's data file:
These quick metrics provide an instant snapshot of system performance for the day without
requiring users to dive into detailed analysis.
The Main Display Panel is the primary workspace for users. It presents detailed information,
analytics, visualizations, forecasting results, and energy usage suggestions.
The system identifies and displays the name of the current data file (typically
representing today’s date).
This ensures users know exactly which day’s footstep energy data they are viewing
and analyzing.
This section summarizes the energy harvesting performance for the current day:
19
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The dashboard provides suggestions on how the generated energy can be used:
Usage Options:
o Powering an LED Light: Calculates how long an LED light could remain on
based on the available energy.
o Running a DC Motor Fan: Estimates the runtime of a small fan.
o Charging a Rechargeable Battery: Simulates the charging process of a 3V
battery and displays the charging percentage.
Outputs:
o Provides the estimated runtime (in minutes) or battery charge percentage.
o Displays progress bars and informative messages for better visualization.
20
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
This section provides dynamic charts for visual analysis of system performance:
These visualizations help users detect trends, patterns, and anomalies easily.
The dashboard allows side-by-side comparisons between today's and yesterday's data:
After processing and analyzing the data, the system allows users to download the
output.
The processed data from today and yesterday are saved into an Excel workbook with
separate sheets.
21
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
This feature is useful for record-keeping, detailed offline analysis, and academic
reporting.
The complete interaction between the user and the system follows a clear and logical
sequence:
22
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
o The user can download the processed data as an Excel file for future reference
or extended analysis.
1. Hardware Components
Function:
Converts mechanical pressure from footsteps into electrical voltage.
Working Principle:
When mechanical stress (from a footstep) is applied to the piezoelectric material, it
generates an electrical charge proportional to the force.
Output:
Raw AC voltage signal which needs rectification for stable reading.
Function:
Converts the AC output of the piezoelectric sensor into a stable DC voltage.
Components:
o Full-Bridge Rectifier (e.g., diode bridge)
o Capacitor (for smoothing voltage)
Purpose:
Ensures that the Arduino reads a clean, stable DC voltage signal.
Function:
Acts as the central hardware controller.
Roles:
o Reads the analog voltage values from the sensor.
o Time-stamps each reading.
23
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Function:
Receives voltage data sent by Arduino over the USB connection.
Purpose:
Runs Python scripts or Streamlit Dashboard to read CSV data files, analyze energy
generation, and visualize results.
1. Footstep Impact:
o User steps onto the piezoelectric tile, generating a small voltage pulse.
2. Rectification:
o The raw AC voltage from the piezoelectric sensor is passed through a rectifier
circuit to produce stable DC voltage.
3. Voltage Measurement:
o The rectified DC voltage is optionally passed through a voltage divider and fed
into the Arduino’s analog input pin (e.g., A0).
4. Arduino Processing:
o Arduino reads the analog voltage signal at a fixed sampling rate (e.g., every
100 milliseconds).
o Each voltage value is recorded along with a timestamp.
5. Data Transfer:
24
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
o Arduino sends the voltage-time data to the computer via the serial USB
connection.
6. Data Storage:
o A Python script running on the computer listens to the serial port.
o The script saves the incoming data automatically into a CSV file, named with
the current date (e.g., 27-04-2025.csv).
7. Data Analysis and Visualization:
o The Streamlit dashboard reads the latest CSV file.
o It performs energy calculations, AI predictions, forecasting, visualization, and
provides energy usage recommendations.
1.Software Components
Purpose:
To program the Arduino Uno to read analog voltage values and send the data through
the serial port.
Functions:
o Reads voltage from analog pin (A0).
o Time-stamps each reading.
o Sends the readings in a serial format (timestamp, voltage) to the connected
computer.
Purpose:
To listen to the Arduino's serial output and save the incoming data.
Libraries Used:
o pyserial — to read data from the serial port.
o pandas — to structure and store the data in tabular form.
25
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Purpose:
To predict usable energy generation more accurately based on real-world sensor data.
Libraries Used:
o scikit-learn — for training and deploying the Random Forest model.
o joblib — for saving and loading the trained model.
Model Inputs (Features):
o Instant voltage.
o Moving average of voltage.
o Voltage change between samples.
o Rate of voltage change relative to moving average.
Model Output (Target):
o Predicted instantaneous energy in Joules.
Purpose:
To provide a real-time interactive graphical dashboard for analysis, forecasting, and
decision-making.
Libraries Used:
o streamlit — for building the web app dashboard.
o pandas — for handling CSV and processed data.
o numpy — for calculations.
o xlsxwriter — for exporting data to Excel files.
Functions:
o Loads today's and yesterday’s CSV data files.
o Applies physics-based and AI-based energy calculations.
o Provides forecasting estimates and energy usage suggestions.
o Displays real-time charts of voltage, power, and energy accumulation.
26
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
2. Software Workflow
1. Data Acquisition:
o Arduino reads analog voltage from the piezoelectric sensor.
o Arduino sends timestamped voltage data to the computer.
2. Data Storage:
o A Python script listens to the Arduino serial output.
o It saves incoming data into a CSV file automatically.
3. Data Loading:
o The Streamlit dashboard loads the most recent CSV file(s).
4. Data Processing:
o Cleans noise by removing very low voltages (<0.01V).
o Calculates real-time power and physics-based energy.
o Applies the trained machine learning model to predict energy.
5. Visualization and Interaction:
o Displays real-time graphs of voltage, energy, and power.
o Estimates average energy per step and total steps.
o Forecasts monthly energy generation.
o Suggests energy usage (e.g., powering a light, motor, or battery charging).
o Provides option to download processed data in Excel format.
1.Communication Type
27
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
2.Communication Components
COMPONENT DESCRIPTION
Arduino Uno Captures analog voltage from piezoelectric sensor and sends serial
data via USB.
USB Cable Connects Arduino to the computer for power and data transfer.
Computer (PC/Laptop) Receives serial data from Arduino, processes it with Python, and
displays results on the Streamlit dashboard.
Serial Monitor / Reads, decodes, and saves the incoming serial data into structured
Python Script CSV files.
Each data packet sent by the Arduino follows a simple, consistent format:
Timestamp:
o Elapsed time in seconds (or milliseconds) since Arduino started.
o Helps maintain the sequence of data points.
Voltage:
o Analog voltage measured at that time step.
o Represents the energy generated by footsteps on the piezoelectric sensor.
plaintext
CopyEdit
0.00, 0.014
0.10, 0.030
0.20, 0.009
0.30, 0.025
28
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
4. Communication Flow
1. Sensor Activation:
o A footstep on the piezoelectric sensor generates a voltage pulse.
2. Voltage Reading:
o Arduino reads the voltage via an analog input (e.g., A0 pin).
3. Data Formatting:
o Arduino formats the data as timestamp, voltage.
4. Data Transmission:
o Arduino sends the formatted data through its serial port via USB.
5. Data Reception:
o The computer’s Python script continuously reads incoming serial data.
6. Data Storage:
o Each reading is parsed and saved into a CSV file for further analysis.
7. Data Usage:
o The Streamlit dashboard loads the CSV file to perform analysis, forecasting,
and visualization.
The system must process real-time footstep data and update the dashboard within 2
seconds of input.
The energy conversion efficiency from mechanical to electrical energy should be greater
than 70% based on optimal footstep force.
Data recording (pressure, frequency, time) should happen without data loss even during
continuous high footfall rates (~100 steps/min).
29
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The dashboard should support at least 10,000 recorded footsteps without performance
degradation.
Piezoelectric tiles must be shock-proof and capable of handling human weight up to 100
kg without damage.
All wiring and exposed electronics must be properly insulated to prevent electric shock
hazards.
The generated voltage levels must be kept within safe limits (below 12V) for human
interaction.
Backup power should ensure that if the main system fails, sensor data is safely stored
without corruption.
The physical platform must have anti-slip surfaces to prevent user injury.
Only authorized users (administrators) must be allowed to access the dashboard settings
and system configurations.
Data transmitted between Arduino and the Python dashboard (if over a network) should
use secured communication protocols (e.g., encrypted serial or wireless data if applicable).
User authentication (e.g., simple password protection) should be implemented for system
maintenance modes.
Regular backup of collected sensor and prediction data to prevent data loss during system
failure.
30
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Reliability:
The system must operate continuously with minimal downtime during heavy footfall events.
Scalability:
The system design should allow scaling by adding more piezoelectric tiles or connecting
multiple sensor mats.
Usability:
The dashboard interface should be intuitive and easy to navigate for monitoring energy
generation without specialized training.
Maintainability:
Codebase (Python and Arduino) should be modular, well-commented, and documented for
easy updates or bug fixing.
Portability:
The software solution (dashboard and predictive model) should be deployable on different
machines (Windows/Linux) with minimal setup.
Efficiency:
The system should consume minimal computational and energy resources while running
predictive models and visualizations.
31
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
32
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
33
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
3.5.3State-Transition Diagrams
34
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The Data Collection Module is responsible for collecting raw sensor data required for
building and training the AI model for energy prediction.
Hardware Setup:
Key Tasks:
The Data Preprocessing Module ensures that the collected data is clean, consistent, and
ready for machine learning model training.
35
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Key Tasks:
Key Tasks:
36
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Key Tasks:
The Frontend Development Module provides a clean user interface for displaying real-time
energy generation results.
Key Tasks:
The Database Development Module stores sensor data, model outputs, and user interaction
records.
Key Tasks:
37
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The Testing & Debugging Module ensures the robustness of the full system (hardware +
software).
Key Tasks:
The Deployment & Hosting Module makes the system production-ready and available for
users.
Deploying the Streamlit dashboard on cloud platforms (e.g., AWS, Streamlit Cloud, or
Heroku).
Setting up Arduino with continuous serial data streaming.
Ensuring system scalability for real-world use.
Key Tasks:
38
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The Documentation & Reporting Module ensures complete documentation of the system
design, codebase, and user manual.
Key Tasks:
The Maintenance & Technical Support Module provides continuous system upkeep and
user assistance.
Key Tasks:
39
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 4
System Design
4.1System Architecture
40
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
4.2Cicuit Diagram
41
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
4.3Block Diagram
42
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
4.4UML Diagram
1. Activity Diagram:
Footstep Detection
Convert Pressure to
Voltage
Process Data
Predict Power
Output
Display Output
Use Power or
Indicate Status
43
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 5
Technical Specifications
1. Piezoelectric Sensors:
o Role: Converts mechanical pressure (e.g., footsteps) into electrical energy.
o Key Features: High sensitivity, ability to harvest energy from pressure events,
such as footfalls, for energy production.
2. Arduino:
o Role: Microcontroller used to interface with piezoelectric sensors, collect
sensor data, and transmit data to the backend.
o Key Features: Simple setup, flexibility for multiple sensors, supports Arduino
IDE for easy programming.
3. Voltage Measurement System:
o Role: Measures real-time voltage generated by the piezoelectric sensors,
providing the necessary input for further energy prediction.
o Key Features: Accurate voltage reading to enable real-time data analysis for
energy prediction.
4. Computer/Server (for AI Model and Backend):
o Role: Hosts the AI model and manages backend processes for data processing,
predictions, and communication with the front-end dashboard.
o Key Features: High computational power to handle machine learning tasks,
running Python and related machine learning libraries.
1. Python:
o Role: Main programming language for AI model development, data
preprocessing, and backend processing.
44
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
45
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
46
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 6
EXPECTED ACTUAL
Timeline 1 Week 1 Week
Activities Identify hardware and software Completed as planned. All
requirements (Piezo sensor, Arduino, necessary components were
Python, Streamlit, ML libraries). Plan data finalized, and a basic system
collection methods and model selection architecture was outlined.
strategies.
Challenges Minor risks expected in selecting the right No major challenges
sensor configuration. encountered. Clear understanding
of project scope early helped
smooth planning.
Table 3 Requirement Gathering & Planning Table
EXPECTED ACTUAL
Timeline 2 Weeks 2.5 Weeks
Activities Setup Arduino with piezoelectric Slight delay due to calibration issues
sensors. Collect voltage and of sensors. However, successful data
mechanical force data under controlled collection achieved with real-time
conditions. Store data in CSV files. logging into CSV.
Challenges Possible sensor calibration difficulties Faced slight inconsistencies in sensor
and unstable readings. readings initially; solved by
recalibrating Arduino code and
rechecking wiring.
Table 4 Hardware Setup & Data Collection Table
EXPECTED ACTUAL
Timeline 1 Week 1 Week
Activities Clean data, remove noise, compute features Completed as planned. Developed
like Moving Average (Voltage_MA), a robust data preprocessing script
Voltage Change, and Voltage Change Rate. with pandas. Feature extraction
Prepare the final dataset for model training. was smoothly integrated.
Challenges Handling noisy signals. No major issues; Moving Average
smoothing handled noise
47
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
effectively.
Table 5 Data Preprocessing & Feature Engineering Table
EXPECTED ACTUAL
Timeline 2 Weeks 2 Weeks
Activities Train machine learning models (Random Completed within expected time.
Forest, XGBoost). Split into train-test sets. Random Forest Regressor
Evaluate models with RMSE, MAE, R². performed best and was saved for
Save the best-performing model (.pkl). deployment.
Challenges Model overfitting concerns, selecting right Minor hyperparameter tuning was
features. needed to optimize performance.
No major delays.
Table 6 AI Model Development Table
EXPECTED ACTUAL
Timeline 1 Week 0.5 Week
Activities Develop backend to read real-time Faster than expected because backend
sensor data, load the AI model, and logic was simple. No Flask; directly
prepare data for dashboard. integrated inside Streamlit app.
Challenges Possible API delays if using a server- Streamlit-only integration avoided
client model. complex backend API development,
saving time.
Table 7 Backend Integration Table
EXPECTED ACTUAL
Timeline 1.5 Weeks 2 Weeks
Activities Create a Streamlit dashboard showing Slight delay due to UI optimization
live voltage, step counts, predicted and making graphs more dynamic.
energy, and graphs (Voltage vs Time, Final dashboard was responsive and
Energy vs Steps). user-friendly.
Challenges Real-time updates and graph Solved by using Streamlit's
responsiveness. st.line_chart() and caching
techniques to manage live updates.
Table 8 Frontend Dashboard (Streamlit) Development Table
48
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
EXPECTED ACTUAL
Timeline 1 Week 1 Week
Activities Host the Streamlit app on a cloud platform Completed smoothly. Streamlit
like AWS, Streamlit Cloud, or Heroku. Cloud was selected for simplicity.
Ensure Arduino keeps sending data.
Challenges Hosting latency issues. No major issues. Minor
adjustments needed for Streamlit
Cloud settings (session timeouts).
Table 9 Deployment and Hosting Table
EXPECTED ACTUAL
Timeline 1 Week 1 Week
Activities End-to-end system testing (Hardware → Testing was successful. Minor
Streamlit Dashboard). Check for voltage bugs in data formatting were
reading accuracy, prediction correctness, resolved. Prediction accuracy
and graph updates. matched expectations.
Challenges Handling unexpected sensor Added try-except blocks in
disconnections. Arduino and Python scripts to
handle disconnections gracefully.
Table 10 Testing and Validation Table
EXPECTED ACTUAL
Timeline 1 Week 1 Week
Activities Prepare technical documentation, Completed as planned. Detailed
user manuals, project report, and documentation prepared including setup
PPT for presentation. guide, user manual, and performance
graphs.
Challenges Capturing hardware-software Solved by including block diagrams and
interactions clearly. sample data screenshots in the
documentation.
Table 11 Documentation and Final Report Table
49
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
50
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
51
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
52
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
roll)
53
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
54
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 7
7.1.1 Introduction
Component Description
Piezoelectric Transducers Convert mechanical stress into electrical energy.
Bridge Rectifier Converts AC generated from piezo into DC.
Capacitors Store the rectified DC energy.
Arduino Uno Records and transmits voltage readings for real-time analysis.
Multimeter Measures and validates voltage outputs.
Wooden Frame and Structural setup for piezoelectric tile to absorb footstep
Springs energy.
Sensor Arrangement:
o Series Connection: To maximize voltage output.
o Parallel Connection: To maximize current output.
o Series-Parallel Hybrid: Achieved optimal voltage and current balance.
Protective Layer: Thin rubber matting to safeguard piezos without reducing force
transmission.
56
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
57
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Condition Observation
Low weight, short press Lower voltage output.
High weight, short press Moderate voltage output.
Low weight, long pumping Moderate voltage due to accumulated stress.
High weight, long pumping Maximum voltage output observed.
7.1.7 Conclusion
The hardware successfully demonstrates that piezoelectric tiles can harvest substantial energy
from human footsteps. The setup, when combined with real-time voltage measurement and AI
prediction through software, creates a complete end-to-end energy harvesting and analysis
system suitable for smart city applications, walkways, and public spaces.
7.2.1 Introduction
The software component of this project plays a vital role in acquiring, analyzing,
processing, and visualizing the data generated from the piezoelectric hardware system.
The goal of the software is not only to record the voltage generated by footsteps but also to
predict energy generation patterns using machine learning, offering insights into energy
harvesting efficiency.The software is designed using Python and deployed using Streamlit
for interactive visualization. Data collected from the Arduino is stored in CSV files (instead
58
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
of a database) to maintain system simplicity and portability. Thus, the software creates a
complete pipeline: Data Acquisition → Preprocessing → Prediction → Visualization.
Since this project does not involve a traditional database like SQL or Firebase, data is logged
and stored in CSV files.
These CSV files are lightweight, easily portable, and compatible with the Streamlit dashboard
and machine learning model.
Data Dictionary
Important Modules
Data Collection Module: Receives and logs real-time voltage data from Arduino.
Data Preprocessing Module: Cleans, smooths, and engineers features from raw
sensor data.
AI Model Module: Predicts the energy generated using machine learning
algorithms.
Visualization Module: Displays real-time graphs, statistics, and energy
predictions in Streamlit.
59
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Mathematical Modeling
60
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Model: Random Forest Regressor (best for small-medium datasets and noisy sensor
data).
Training:
o Input Features: Voltage, Voltage_MA, Voltage_Change,
Voltage_Change_Rate.
o Output Target: Energy (in joules).
Evaluation Metrics:
o RMSE (Root Mean Square Error)
o MAE (Mean Absolute Error)
o R² Score (Coefficient of Determination)
Preprocessing Techniques:
Business Logic
Software Architecture
61
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Input Layer: Handles real-time data inflow from Arduino via serial communication.
Preprocessing Layer: Cleans and prepares data for prediction.
Prediction Layer: Applies trained AI model to predict energy generation.
Visualization Layer: Displays real-time graphs, energy statistics, and step counts.
7.2.5 Pesudocode
If step detected:
62
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Advantages
Disadvantages
CSV files may become large and harder to manage over long-term deployments.
Limited scalability compared to database systems (no complex querying possible).
Accuracy of prediction depends on quality and amount of training data.
Real-time communication is slightly delayed compared to dedicated real-time
database solutions.
64
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
7.2.7 Applications
Public Transportation Hubs: Metro stations, bus stops where foot traffic is high.
IoT-based Smart Systems: Powering small sensors or lighting systems in remote areas.
65
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 8
Software Testing
8.1 Introduction
Software testing is a crucial phase in the software development lifecycle, ensuring that the
application or system meets the desired requirements, works as intended, and is free from
defects. In your case, where you're working with various IoT and AI-driven projects, such as
the piezoelectric energy harvesting system, object detection with ESP32, and machine
learning-based energy predictions, it is important to ensure that both the hardware and
software components are functioning correctly and efficiently. Testing ensures that your
application delivers accurate results, integrates well with other systems, and performs as
expected under real-world conditions.
Verifying that the sensor data logging, model training, and energy prediction work
seamlessly.
Ensuring that the IoT components (e.g., Arduino, ESP32) communicate reliably with
the software.
Confirming that the AI models (e.g., RandomForestRegressor) predict accurate energy
values and interact with the user interface properly.
8.2 Test cases (Unit test, Integration Test, Acceptance Test, Product
Test)
Test cases are designed to validate the different components of your system. Below are some
common types of tests you will need to perform for each section of your project.
66
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Unit testing focuses on testing individual functions or modules in isolation to ensure that each
component performs correctly. In your case, unit tests will be written for each function,
including sensor data handling, CSV file writing, and model predictions.
Test Case 1: Verify if the serial connection to the Arduino works correctly by
checking if data is being received from the correct port.
o Input: Serial data stream from Arduino.
o Expected Output: Correct parsing and logging of data.
Test Case 2: Validate the open_new_csv() function that opens and writes to a CSV
file.
o Input: A new CSV file.
o Expected Output: The file is created with the correct header (Timestamp,
Voltage (V), Step Count).
Test Case 3: Test the model's feature engineering logic in train_energy_model.py.
o Input: Sample CSV data with Voltage and Steps columns.
o Expected Output: The correct calculation of energy, voltage change, and
other derived features.
Test Case 4: Ensure that the model correctly predicts energy from features in
train_energy_model.py.
o Input: Data features such as Voltage, Voltage_MA, Voltage_Change, and
Voltage_Change_Rate.
o Expected Output: The energy predicted by the RandomForestRegressor
model is accurate.
Integration testing ensures that different components of the system work together as expected.
In your project, the integration test will check if data from the sensors is correctly processed,
stored, and used by the model to predict energy.
67
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Test Case 1: Verify that the data logging (from Arduino to CSV) and model
prediction pipeline are working together.
o Input: Sensor data (voltage and steps) received by the Arduino.
o Expected Output: The data is logged into a CSV file and used by the model
for energy prediction.
Test Case 2: Check if the Streamlit dashboard updates in real-time with new sensor
data.
o Input: New sensor data from the Arduino.
o Expected Output: The dashboard updates with new voltage, step count, and
energy predictions.
Test Case 3: Test the communication between ESP32 and Raspberry Pi for object
detection and classification tasks.
o Input: Image data from the ESP32 camera module.
o Expected Output: Accurate object detection and classification results
displayed on the dashboard.
Acceptance testing validates that the system meets the user's requirements and expectations.
These tests typically cover the overall functionality of the system and ensure that the
application behaves as intended in real-world scenarios.
Test Case 1: Verify that the system logs sensor data correctly and stores it in the
appropriate folder.
o Input: Data from the Arduino sensor.
o Expected Output: The data is stored in a CSV file in the correct folder with
appropriate timestamping.
Test Case 2: Validate that the energy prediction model (AI) produces accurate energy
estimates that match the physics-based calculations.
o Input: Test data with known voltage and step count.
o Expected Output: Predicted energy values should closely match the actual
energy calculated using physics-based methods.
68
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Test Case 3: Test the overall functionality of the Streamlit dashboard to ensure that
users can interact with the system seamlessly.
o Input: Real-time sensor data, energy predictions, and user inputs (e.g.,
efficiency, load resistance).
o Expected Output: The dashboard updates with the correct values and displays
forecasting information, energy statistics, and charts.
Product testing ensures that the complete system, including hardware and software, works
together correctly. In your case, product tests will focus on the integration of the entire system,
from data collection to energy prediction and display in the dashboard.
Test Case 1: Test the complete flow from sensor data collection (via Arduino) to
energy prediction display on the Streamlit dashboard.
o Input: Real-time sensor data from the Arduino.
o Expected Output: The data is logged into a CSV file, processed by the energy
model, and displayed correctly on the dashboard.
Test Case 2: Validate that the system works continuously over an extended period
(e.g., for several hours or days).
o Input: Continuous sensor data for a prolonged time.
o Expected Output: The system should log data without failures and predict
energy consistently, even during long runs.
Test Case 3: Test the system's performance under varying load conditions, such as
higher step counts or voltage levels.
o Input: Sensor data with high voltage or a large number of steps.
o Expected Output: The system should handle the increased load and still
produce accurate predictions without crashing.
69
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Observation Table
70
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 9
9.1 Results
71
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
The collected footstep data (pressure, force, frequency) was used to train machine learning
models.
Random Forest Regressor and Linear Regression were compared for prediction accuracy. The
Random Forest model achieved higher prediction accuracy (example: 93%) compared to
Linear Regression (example: 87%).
72
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
energy stored in the battery. Alerts were generated whenever energy harvesting dropped
below a threshold or a sensor failure was detected.
Snapshot:
73
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Snapshot:
74
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
This data helps analyze usage trends and forecast potential improvements in footstep energy
harvesting setups.
Snapshot:
Snapshot:
75
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Snapshot:
Snapshot:
76
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
9.1.10 . All UI
Snapshot:
77
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
9.2 Discussion
The system effectively converts mechanical energy from footsteps into electrical energy.
The predictive model enables estimating future energy generation based on ongoing foot
traffic.
Real-time visualization enhances system usability for both administrators and users.
Occasional sensor noise was observed, but it was filtered using a moving average technique in
software.
Energy output is directly proportional to pressure applied and the frequency of footsteps.
The system is scalable: more piezoelectric tiles can increase the total energy harvested.
Key Findings:
78
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 10
Dashboard Hosting:
The Python-based dashboard can be deployed on a local server (like Raspberry Pi) or
cloud platforms (e.g., AWS, Azure) depending on the project's scale.
Model Integration:
Machine learning models (Random Forest, Linear Regression) should be embedded
into the real-time data processing scripts to automatically predict energy output.
Data Storage:
Footstep sensor data, energy generated, and predicted outputs must be stored in CSV
files or a simple cloud storage solution for monitoring and analysis.
79
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
User Access:
Access control should be implemented so that only authorized users (like system
administrators) can view or modify system settings.
Routine Inspection:
o Periodically inspect sensor mats for physical wear and tear.
o Ensure tight wiring connections to avoid energy losses.
o Check battery health and replace it once capacity drops significantly.
Sensor Calibration:
o Recalibrate piezoelectric sensors every few months to maintain measurement
accuracy.
o Use standardized test weights and frequencies for recalibration.
Protective Measures:
o Apply protective coatings or covers for outdoor deployments to protect sensors
and circuits against rain, dust, and mechanical damage.
Model Retraining:
As environmental conditions and user behaviors change, machine learning models
should be periodically retrained using the latest collected data to maintain high
prediction accuracy.
System Updates:
Regular updates to the dashboard UI and backend scripts must be performed to fix
bugs, improve features, and enhance security.
Backup and Data Recovery:
o Daily backups of recorded sensor data should be scheduled.
o In case of system failure, recent backups allow quick recovery without
significant data loss.
80
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Scalability:
The modular design of the system allows easy scaling by adding more sensor mats and
connecting them wirelessly to the same dashboard platform.
Future Upgrades:
o Integrating advanced AI models (like Deep Learning or Reinforcement
Learning) for even better predictions.
o Implementing predictive maintenance algorithms that forecast when hardware
components are likely to fail.
o Expanding the system to support mobile apps for real-time remote monitoring.
The Piezoelectric Energy Harvesting and AI Prediction System is designed with user-
friendliness in mind. To assist users and administrators in operating and monitoring the
system effectively, a simple and accessible help guide is provided below.
81
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
o Energy Generated: Monitor how much electrical energy has been harvested
from the footsteps in real-time.
o Predicted Energy Output: Compare actual harvested energy with machine
learning model predictions for today's and yesterday’s data.
o Monthly Forecast: Visualize monthly energy production trends based on
collected and predicted data.
System Notifications and Alerts:
(If implemented in future updates)
o Receive system alerts about sensor issues or unusual drops in energy output.
o Follow on-screen instructions to troubleshoot.
Troubleshooting Tips
82
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Chapter 11
11.1 Conclusion
During implementation, the system achieved stable energy harvesting, accurate data
collection, reliable predictions, and clear visualization, demonstrating the feasibility and
efficiency of integrating IoT, AI, and renewable energy technologies into smart urban
environments.
Overall, the project proves that integrating machine learning into energy harvesting systems
enhances their intelligence, usability, and value in real-world applications.
While the current system meets its core objectives, there is significant potential for future
enhancements and expansion:
83
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Extend the piezoelectric sensor network over larger surfaces like shopping malls,
railway stations, stadiums, and airports to harness greater energy and collect richer
datasets.
Combine the harvested energy directly into local smart grids to supply micro-energy
for public lighting, signage, or emergency systems.
84
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Use AI not only for prediction but for real-time dynamic energy distribution —
automatically deciding where the harvested energy should be used based on demand
predictions.
85
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
REFERENCES
[1] M. Hossain, et al., "Piezoelectric Energy Harvesting for Smart Cities: A Machine
Learning Approach," Journal of Renewable Energy Innovations, vol. 15, no. 3, pp. 234–
250, 2020.
[2] P. Shukla and R. Yadav, "Energy Optimization Using Footstep Energy Harvesting
Systems with Machine Learning Models," Energy and Sustainability Journal, vol. 9, no. 4,
pp. 101–118, 2021.
[3] A. Kumar, et al., "IoT-Integrated Piezoelectric Tiles for Real-Time Energy Prediction and
Monitoring," Smart Cities and IoT Applications Journal, vol. 12, no. 2, pp. 145–161, 2022.
[4] L. Gil-Vera and M. Quintero, "Renewable Energy Prediction Using Machine Learning:
Trends and Challenges," International Journal of Energy Research, vol. 20, no. 1, pp. 76–
89, 2023.
[5] K. Sharma and R. Gupta, "Machine Learning Models for Predictive Power Generation in
Piezoelectric Systems," Renewable Energy Systems Journal, vol. 8, no. 5, pp. 200–215,
2023.
[6] S. Priya and D. J. Inman, Energy Harvesting Technologies, Springer, 2009.
[7] S. Lee and J. Park, "Deep Learning Applications for Piezoelectric Power Systems,"
Advanced Energy Harvesting Journal, vol. 17, no. 1, pp. 34–47, 2024.
[8] M. Zhang, et al., "Energy Harvesting Systems: A Review of Piezoelectric and
Triboelectric Technologies," Renewable and Sustainable Energy Reviews, vol. 90, pp.
463–473, 2016.
[9] J. Li and H. Zhang, "Modeling and Optimization of Piezoelectric Energy Harvesting for
Urban Applications," Energy Conversion and Management, vol. 125, pp. 335–347, 2016.
[10] H. Singh and P. Verma, "Towards Smart Cities: Piezoelectric Energy Harvesting with
Machine Learning for Urban Power Grids," Sustainable Cities and Society, vol. 61, pp.
102288, 2020.
[11] K. K. Selim, I. H. Smaili, H. M. Yehia, M. M. R. Ahmed, and D. A. Saleeb,
"Piezoelectric Sensors Pressed by Human Footsteps for Energy Harvesting," Energies, vol.
17, no. 10, pp. 2297, 2024.
[12] D. Ma, G. Lan, W. Xu, M. Hassan, and W. Hu, "Simultaneous Energy Harvesting and
Gait Recognition Using Piezoelectric Energy Harvester," arXiv preprint
arXiv:2009.02752, 2020.
[13] L. Lenka, M. H. C., R. D. S., and R. B. N., "ML Assisted Foot Step Power Generation
Using Piezoelectric Sensors," International Journal of Advanced Research in Science,
Communication and Technology, vol. 4, no. 5, pp. 45–52, 2024.
[14] P. A. Shevantikar, A. P. Udata, V. R. Jadhav, O. R. Dixit, and A. S. Korachagao, "Smart
Footstep Energy Harvesting System," International Journal of Advanced Research in
Engineering Science and Management, vol. 12, no. 3, pp. 112–118, 2024.
[15] S. Sharma, R. Kiran, P. Azad, and R. Vaish, "A Review of Piezoelectric Energy
Harvesting Tiles: Available Designs and Future Perspective," Energy Conversion and
Management, vol. 254, pp. 115272, 2022.
[16] H. Jiang, Y. Wang, G. Wu, B. Li, and X. Li, "A Novel Control Method of Electric
Charge Extraction Circuit for Piezoelectric Energy Harvesters," Ferroelectrics, vol. 599,
no. 1, pp. 58–71, 2022.
86
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
[17] Z. J. Chew and M. Zhu, "Adaptive Self-Configurable Rectifier for Extended Operating
Range of Piezoelectric Energy Harvesting," IEEE Transactions on Industrial Electronics,
vol. 67, no. 4, pp. 3267–3276, 2019.
[18] E. Lefeuvre, A. Badel, C. Richard, and D. Guyomar, "Piezoelectric Energy Harvesting
Device Optimization by Synchronous Electric Charge Extraction," Journal of Intelligent
Material Systems and Structures, vol. 16, no. 10, pp. 865–876, 2005.
[19] Y. Zhao, L. Zhang, and Q. Liu, "Optimizing Footstep Energy Harvesting Tiles Using
Machine Learning-Based Control," Smart Materials and Structures, vol. 29, no. 11, pp.
115012, 2020.
[20] A. Das, M. R. Islam, and F. Ahmed, "A Review on Recent Advancements in Footstep
Power Generation Systems," Journal of Renewable and Smart Energy, vol. 10, no. 2, pp.
88–102, 2022.
87
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Appendix
Research Paper
Abstract - Energy has long been the pulse of human merely generate power it learns. Real-time data analysis
civilization, fueling progress and innovation. Yet, as predicts and optimizes energy output, creating an
conventional sources dwindle, the search for sustainable evolving system that grows smarter with every footstep.
alternatives becomes not just a necessity but an The results unfold on an interactive Python-powered
inevitability. This project explores a concept hidden in dashboard, where raw motion turns into visualized
plain sight harnessing the energy of footsteps. Every step potential.
carries kinetic potential, an untapped rhythm of daily life
waiting to be transformed. In a world that never stands still, where crowded streets
and bustling transit hubs define the pulse of modern life,
Piezoelectric tiles embedded in high-footfall areas this idea aligns seamlessly with the natural flow of
homes, schools, railway stations capture this overlooked human movement. Especially in a country like India,
energy, converting motion into electricity. Each step, no where millions move in unison every day, the potential is
longer just a movement, becomes a contribution to a self- immense. This is more than an experiment in alternative
sustaining cycle, where human activity fuels itself. But energy it is a vision of sustainability woven into the
beyond the conversion of energy, intelligence refines its fabric of urban existence. One step, one spark, one future
efficiency. Machine learning breathes adaptability into powered by motion itself.
this system. By employing Linear Regression and
Random Forest Regression, the technology does not
88
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
89
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
IoT- Neural Enables Requires The energy conversion process begins with
Based Networ real-time predictive piezoelectric transducers embedded in tiles,
Monitori ks + performa optimizati capturing mechanical force from footfalls. The
ng for IoT nce on for resulting alternating current (AC) is converted into
Energy tracking energy direct current (DC) through a full-wave bridge
Harvesti and efficiency rectifier. The rectified DC is then filtered and
ng [3] efficienc stored in capacitors or batteries, making it suitable
y for low-power applications like streetlights and
enhance digital signboards.
ment
90
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
To optimize energy output, the piezoelectric demonstrates an effective and sustainable method
transducers are arranged in different of footstep energy harvesting, offering a practical
configurations—series, parallel, and series-parallel. solution for powering small-scale devices in high-
A series connection generates higher voltage but traffic areas while also enabling precise data
lower current, whereas a parallel connection analysis for system optimization.
increases current but reduces voltage. To strike a
balance, a series-parallel configuration is B. Predictive Analysis Using Machine Learning
implemented, ensuring an optimal combination of
both voltage and current. The study uses an Arduino Uno microcontroller,
programmed via the Arduino IDE, to gather voltage
readings from piezoelectric transducers placed in
the experimental setup. Subject weight and step
count are manually entered during data collection.
The voltage generated by the piezoelectric sensors
during each step is recorded, and the data is
transmitted via a serial interface. This data, which
includes voltage output, weight, and step count, is
stored in a CSV file using Python's pandas library
for further analysis. This dataset is used to explore
patterns and trends in energy generation based on
footstep data, with the goal of developing
predictive models for energy forecasting.
91
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
In Exploratory Data Analysis (EDA), we explore (b) Sensor Data Processing (Loop)
patterns and trends using pandas, NumPy,
Matplotlib, and Seaborn. We look for relationships Read voltage from the piezoelectric
sensor.
between variables, such as how weight and step
count affect the energy generated. Visual tools like
heatmaps, scatter plots, and line graphs help reveal If voltage increases beyond the
threshold:
these insights.
92
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Load the latest CSV file from the Compute physics-based power and
data folder. energy.
Add sliders in the sidebar to Over a time interval Δt, the total harvested energy
adjust efficiency and resistance.
is computed as:
(c) Load Data
E_physics = Σ (V_i^2 / R) * Δt_i
Load the latest CSV file from the
data folder. where V_i and Δt_i represent the voltage and
sampling time difference for the i-th reading,
(d) Process Data (If CSV contains 'Voltage' respectively. This model assumes ideal conversion
and 'Time') without system losses.
93
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
where:
- V is the instantaneous voltage,
- MA(V) is the moving average of voltage over a
sliding window,
- ΔV is the voltage difference between consecutive
samples,
- ΔV / MA(V) captures the relative voltage change
rate.
The model is trained to approximate:
f: X → E_ai
where E_ai denotes the AI-predicted energy output. As more people walk and as their weight increases,
the energy produced also rises. For example, a
4) Model Evaluation Metric person weighing 45 kg creates a small amount of
energy in just a few seconds, while someone
The performance of the AI model is assessed using heavier generates more. In places with a lot of
the Mean Absolute Error (MAE): people walking around, this energy could be
enough to power things like lights.
MAE = (1/n) Σ | y_i - ŷ_i |
Artificial intelligence plays a key role in analysing
where y_i is the ground truth energy derived from this energy data. The system collects information
the physics model, and ŷ_i is the AI model like the voltage, step count, and weight, then
prediction. organizes it for analysis. The data is cleaned up and
adjusted so we can make accurate predictions about
IV. PERFORMANCE ANALYSIS future energy output. We use tools to visualize how
different factors—like weight or the number of
The system works by capturing the energy steps—affect the amount of energy being
generated from footsteps and converting it into generated.
electrical power, all while using artificial
intelligence to help understand and predict how For predicting energy production, we use two
much energy will be produced. methods: one that looks at simpler patterns in the
data and another that finds more complex
relationships. After comparing these methods, we
found that the more complex approach worked
better at making accurate predictions, which helps
us decide where to place the tiles for the most
energy.
94
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
V. CONCLUSION
VIII. REFERENCES
95
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
[4] L. Gil-Vera and M. Quintero, "Renewable Energy Prediction [14] P. A. Shevantikar, A. P. Udata, V. R. Jadhav, O. R. Dixit,
Using Machine Learning: Trends and Challenges," International and A. S. Korachagao, "Smart Footstep Energy Harvesting
Journal of Energy Research, vol. 20, no. 1, pp. 76–89, 2023. System," International Journal of Advanced Research in
Engineering Science and Management, vol. 12, no. 3, pp. 112–
[5] K. Sharma and R. Gupta, "Machine Learning Models for 118, 2024.
Predictive Power Generation in Piezoelectric Systems,"
Renewable Energy Systems Journal, vol. 8, no. 5, pp. 200–215, [15] S. Sharma, R. Kiran, P. Azad, and R. Vaish, "A Review of
2023. Piezoelectric Energy Harvesting Tiles: Available Designs and
Future Perspective," Energy Conversion and Management, vol.
[6] S. Priya and D. J. Inman, Energy Harvesting Technologies, 254, pp. 115272, 2022.
Springer, 2009.
[16] H. Jiang, Y. Wang, G. Wu, B. Li, and X. Li, "A Novel
[7] S. Lee and J. Park, "Deep Learning Applications for Control Method of Electric Charge Extraction Circuit for
Piezoelectric Power Systems," Advanced Energy Harvesting Piezoelectric Energy Harvesters," Ferroelectrics, vol. 599, no.
Journal, vol. 17, no. 1, pp. 34–47, 2024. 1, pp. 58–71, 2022.
[8] M. Zhang, et al., "Energy Harvesting Systems: A Review of [17] Z. J. Chew and M. Zhu, "Adaptive Self-Configurable
Piezoelectric and Triboelectric Technologies," Renewable and Rectifier for Extended Operating Range of Piezoelectric Energy
Sustainable Energy Reviews, vol. 90, pp. 463–473, 2016. Harvesting," IEEE Transactions on Industrial Electronics, vol.
67, no. 4, pp. 3267–3276, 2019.
96
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
97
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
98
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
99
PREDICTIVE ANALYSIS OF POWER GENERATION FROM FOOTSTEPS USING MACHINE LEARNING
Appendix B: Glossary
AI - Artificial Intelligence
ML - Machine Learning
IoT - Internet of Things
RF - Random Forest
LR - Linear Regression
GUI - Graphical User Interface
DB - Database
CSV - Comma Separated Values
CPU - Central Processing Unit
kWh - Kilowatt-Hour (unit of energy)
mAh - Milliampere-Hour (unit of battery capacity)
V. - Voltage
A - Ampere (unit of electric current)
J - Joule (unit of energy)
Pa - Pascal (unit of pressure)
UML - Unified Modeling Language
MA - Moving Average (used for voltage smoothing)
API - Application Programming Interface
RMS - Root Mean Square (for signal measurements)
DAQ - Data Acquisition
HTTP - HyperText Transfer Protocol
100