Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

6th IEEE International Conference on Signal Processing, Computing and Control (ISPCC 2k21), Oct 07-09, 2021, JUIT,

Solan, India
2021 6th International Conference on Signal Processing, Computing and Control (ISPCC) | 978-1-6654-2554-4/21/$31.00 ©2021 IEEE | DOI: 10.1109/ISPCC53510.2021.9609515

I. INTRODUCTION

978-1-6654-2554-4/21/$31.00 ©2021 IEEE 218


Authorized licensed use limited to: BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE. Downloaded on November 23,2021 at 17:07:45 UTC from IEEE Xplore. Restrictions apply.
sleep module from time package.
The paper is organized in the following way. Section II
C. Initialization of GUI:
discusses the techniques adopted for development of the After all the packages and modules are imported properly
interface. In Section III, experimental results and their and the GUI is interfaced with the serial port the GUI will be
significances were given in the subsequent section while the displayed on the computer screen for further requests.
paper was concluded with Section V.
D. User Authentication:
For security purpose in this project, an Alphanumeric
II. METHODOLOGY
Username and Password authentication module have been
created which is case sensitive and prevents any fake
authentication. If authentications are failed, then a popup
message alerting wrong username or password is displayed
on the graphical user interface using the Python message
box module. If authentication is accepted, then the control
flows to the next window of the graphical user interface.
E. Fetching of real-time data from the serial port:

After authentication is accepted then the control


flows to the main application window of the
graphical user interface asking for the user request
for fetching the real- time data from the serial port.
When the user presses the get data button present.
on the main window, the GUI will fetch the real-
time data from the serial port every 0.5 seconds.
Fig 1. Workflow of events. F. Analysis of real-time data
After the data is fetched from the serial port of the
A. Importing of Packages and Modules:
computer to the GUI then the GUI based on the threshold
The Graphical User Interface is Designed and Developed
with the help of Python ‘Tkinter’ package. Interfacing of the values of the data does further analysis of the data. Based
graphical user interface with the web browser for displaying
on the data analysis of the real-time data an alert message is
the project related content is done with the help of Python
web- browser module. Serial Port Interfacing with the generated in the form of labels on the main window of the
microcontroller is done with the help of Python ‘serial’
GUI.
module. Execution of multiple nodes simultaneously is
achieved with the concept of multi- threading and for that; G. Alert Generation Module
we have used the Python Thread module from threading
package. For time delay of 0.5 seconds between the data of With the help of multi-threading concept, multiple nodes
nodes we have used the Python sleep module from time
package. For storage of data into Excel file, we have used will generate the alert message of the individual nodes
the Python Workbook module from ‘xlwt’ package. which is implemented with the help of the Thread module
B. Serial Port Interfacing with Microcontroller:
of the threading package. Exception Handling concepts are
To fetch and display the real-time data from the
also used while developing the GUI so as to prevent any
environment to our developed graphical user interface we
garbage or NULL data from the serial port to display
have directly interfaced our GUI with computer serial port
directly on the GUI and preventing any other problem
with the help of Python serial module. The GUI will fetch
while executing the further processes.
data every 0.5 seconds form the serial port and will display
219
on GUI. Time delay is managed with the help of Python
Authorized licensed use limited to: BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE. Downloaded on November 23,2021 at 17:07:45 UTC from IEEE Xplore. Restrictions apply.
H. Storage of Real-Time Data
After the data is fetched and analyzed and alert is
generated based on the threshold values of the data is then
stored continuously every 0.5 seconds in the Excel file
which can be further used for plotting graph of the real-
time data or any other data processing. This is
implemented using the xlwt package of the Python which
allows to create, open, store the values in the Excel file
and then save the file.
Fig 4 - GUI displaying FIRE status after data analysis.

III. EXPERIMENTAL RESULTS Since the system represents a wireless Sensor Network
Similar methodology was adopted in previous study [7]. (WSN), so for the possibility of addition of a greater number
The results obtained in previous study was improved for of nodes, another module was developed for analyzing data
this study with additional features such as “Node Number for five nodes instead of only one node. Figure 5 shows the
(Node)” and the new data display window was presented as GUI created for five nodes.
Figure 2

Fig 2 – Main window used for the detection of forest fires.

When the user clicks on the START button on GUI, the data Fig 5-GUI for displaying the status of five nodes simultaneously.

is fetched from the serial port, analysis is done on the data Like previous module, when the user clicks on the GET
and based on analysis the GUI displays the status of FIRE DATA button, data is fetched every 0.5 seconds by GUI,
or NO FIRE as shown in Figure 3 and Figure 4. analysis is done on the data and based on Node number the
status is displayed in front of node whether there is a fire or
not as shown in Figure 6.

Fig 3 – GUI displaying NO FIRE status after data analysis

220

Authorized licensed use limited to: BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE. Downloaded on November 23,2021 at 17:07:45 UTC from IEEE Xplore. Restrictions apply.
.

Fig 8-GUI displaying NO FIRE status based on data analysis of


Fig 6 - GUI displaying FIRE or NO FIRE status based on data analysis of respective ten nodes
respective nodes.
When the area covered by the sensor network not having any
As a next step the module was further extended to ten
fire situation at any node then GUI will display NO FIRE
nodes for coverage of Wide Area Network (WAN) as
status for all the ten nodes based on the data analysis as
shown in Figure 7.
shown in Figure 8 and when the area covered will have FIRE
condition at all the nodes based on data analysis, then all
nodes will show FIRE status as shown in Figure 9.

Fig 7 - GUI for displaying the status of ten nodes simultaneously.

After the user clicks on the GET DATA button, data is


fetched from the serial port of the computer, analysis is done
on the data and FIRE or NO FIRE status is displayed in front
Fig 9 -GUI displaying FIRE status based on data analysis
of the respective node. Figure 8 and Figure 9 shows the of the respective ten nodes.

status of FIRE and NO FIRE based on the analysis of data


done for the respective nodes. IV. RESULTS AND DISCUSSION
The Graphical User Interface (GUI) discussed in this
paper has been designed and developed

221

Authorized licensed use limited to: BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE. Downloaded on November 23,2021 at 17:07:45 UTC from IEEE Xplore. Restrictions apply.
successfully. The main objective of the project was to detect REFERENCES
forest fires at early stages using open-source technologies [1]. J. Castro, P. Gil, N. Pérez, I. González, C. Goya, R. Colomo,
“Forest Fire Prevention, Detection, and Fighting Based on Fuzzy
have been implemented. The data required for the project is Logic and Wireless Sensor Networks”, Complexity, vol. 2018, pp. 1-
17, Article ID 1639715,
a real-time data have been fetched directly from the
2018
environment through various sensors and is displayed, [2]. K. Kitchen, P. Marno, C. Legg, M. Bruce, G.M. Davies,
“Developing a fire danger rating system for the United Kingdom,
analyzed and stored in Excel file for further statistical Forest Ecology and Management”, Volume 234, Supplement, 2006,
Page S21, ISSN 0378- 1127,
analysis. Usage of the technique like multithreading is used https://doi.org/10.1016/j.foreco.2006.08.037
for displaying and running several nodes simultaneously and [3]. G. Kuznetsov, N. Baranovskiy, “Focused sun's rays and forest fire
danger: New concept”, Proceedings of SPIE - The International
concepts of Exception Handling helped to eliminate any Society for Optical Engineering, 2013, 8890. 10.1117/12.2033929.

garbage or Null values during execution. The Graphical User [4]. N. Baranovskiy, V. Sherstnyov, E. Yankovich, M. Engel, V.
Belov, “Focused sunlight factor of forest fire danger assessment using
Interface (GUI) continuously fetches the data every 0.5 WebGIS and RS technologies”, 4th Int. Conf. on Remote Sensing and
Geoinformation of the Environment (RSCy2016), Proc. of SPIE Vol.
seconds so that whenever the real-time data reaches the 9688, 2016.
[5]. K. Kalabokidis, A. Nikolaos, G. Fabrizio, K. Fotis,
serial port of the computer the graphical user interface P. Palaiologos, P. Savas, V. Christos, “Virtual Fire: A web-based GIS
fetches that data at the same time and acts upon it. platform for forest fire control.” Ecological Informatics, vol. 16, pp.
62-69, 2013.
[6]. P. Gabriele, S. Ovidio, M. Benvenuti, P. Michele, D. Petri, “An
V. CONCLUSION AND FUTURE SCOPE integrated infrared-visible system for fire detection”, Forest Ecology
and Management, Volume 234, Supplement, 2006, Page S37, ISSN
In this paper, a Graphical User Interface (GUI) for 0378-1127,
https://doi.org/10.1016/j.foreco.2006.08.053.
detection of Forest fires at early stages is developed and
[7]. C. Taluja, J. Singh, S. Sharma, K. Chand, P.
tested which fetches the real-time data from the Mukhija, P. Guha, K. Chathuranga, S. Lalitharathne, A.
L. Kulasekera, R. Gopura, “Detection of Forest Fires at Early Stages
environment and analyzes the data based on the Using Wireless Sensor Network and Graphical User Interfacing”,
International Journal of Information Systems & Management Science,
threshold values and generates the status of the fire. In vol. 2, no. 3, 2019.

the present time, with the advancement of technology, [8]. D. Beniz, A. Espindola, “Using TKinter of python to create
Graphical User Interface (GUI) for scripts in LNLS”, Proc., 11st Int.
the introduction of various forest fire detection software Workshop on Personal Computers and Particle Accelerator
Controls, Geneva: JACoW , PCaPAC 2016.
is designed and developed. [9]. K. Adawadkar, “Python Programming-Applications and Future”,
International Journal of Advance Engineering and Research
ACKNOWLEDGEMENT Development (IJAERD) Special Issue SIEICON-2017, April -2017,e-
The authors gratefully acknowledge use of the services ISSN: 2348
and facilities of the CSIO Delhi Centre and DST, India for - 4470 , print-ISSN:2348-6406
the project GAP380. [10].K. Reddy, M. Rao, “GUI implementation of image encryption
and decryption using Open CV-Python script on secured TFTP
protocol”, International Conference on Electrical, Electronics,
Materials and Applied Science AIP Conf. Proc. 1952,
020074-1–020074-8;
https://doi.org/10.1063/1.5032036

222

Authorized licensed use limited to: BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE. Downloaded on November 23,2021 at 17:07:45 UTC from IEEE Xplore. Restrictions apply.

You might also like