/EEESquad-SmartGuard_SCDFXIBM

We are team EEE Squad. Here is my our solution, SmartGuard for problem statement 3 for the scdfxibm .

Primary LanguageDart

SmartGuard

Problem statement: Infrastructure is getting “smart”, with sensors and Internet of things (IoT) increasingly embedded in the built environment (e.g. Punggol Digital District). How might we leverage a network of smart infrastructure in the built environment to make better and more timely sense of emergency incidents (e.g. detection of fires developing, building collapses, falls, road traffic accidents etc.) and trigger early intervention measures, without the need to activate precious emergency resources?

Our solution: SmartGuard is an all in one cloud-based AI-driven mobile application that takes data collected from sensors and IoT embedded in our community together with public reporting to predicting anomaly or potential hazard within the community. This is achieved using our state-of-the-art Machine learning algorithms to do fire and anomaly detection via public accessible data such as https://data.gov.sg/. This aim of this application is to facilitate the flow of valuable information between users to ensure that everyone is alert about potential hazard near them and hence allowing them to carry out early-stage interventions and as result prevent wastage of emergency resource.

-Anyone can download and login in the SmartGuard mobile application using their SingPass.

-Public data collected about the weather and temperature will be used to train the anomaly detection model to predict potential threat that might be caused as a result of harsh weather condition such as tree family and even fire. This will alert the user to take necessary action to avoid or prevent it.

-Public reporting is also key for mass sharing of data and incident report on potential hazards. User can report and upload images on potential hazard, fire or threats near them to alert others that are on this application to stay alert too. The computer vision model built in the application will also be able to detect on deep reporting of the incident via its fire and smoke classifier.

Youtube pitch for SmartGuard:https://www.youtube.com/watch?v=lCJu71HK6zU&feature=youtu.be

Live Demo video for the SmartGuard application: https://www.youtube.com/watch?v=1Ymmxh6YF3k&feature=youtu.be

Link to download SmartGuard app: https://drive.google.com/file/d/1dMdrhrmIjKu9gJbgrAMLKwUJNwjzxwdd/view?usp=sharing

Getting Started

This project is a starting point for a Flutter application.

Load the flutter file into your SDK, set up emulator Nexus 6 with Pie OS for ideal virtual device.

Alternativly you can download the app-release.apk and install it into your mobile application for testing.

They are two submodule consisting of the code for anomly detection and fire detection alogrithms. Please click on it to access that code.

-Fire_Image_Classifier @d10a95b

-weather-anomaly @13cd811

All ML model has be implemented into the flutter application.

<Fire_Image_Classifier> This is an image classifier model that categorize the image into 3 categories: Fire, Smoke and Normal. Its trained with more than three thousand images and using IBM Cloud Annotation image classifier which employ TensorFlow.

The model will also provide a confidence score for each category with a high accuracy.

Refer to training-log.txt for full training detail.


Model Specification:

The model is trained on temperature readings across Singapore from 2017 to 2020, utilizing the data.gov.sg API. The model utilizes an unsupervised learning method called anomaly detection. Where extreme outliers are detected to generate early alarms of a potential environmental hazard. The model can detect environmental hazards such as wildfires, flashfloods that may impede Singapore's integrity as a sovereign nation.

By taking into account 5 different modalities of weather readings which are: air temperature, rainfall, relative humidity, wind speed, wind direction. The model process this signals and warns users and SCDF lifesavers to act quickly to avoid potentially hazardous events. The model's performance is stress tested by looking at its performance across different environmental events such as the recent haze, the 2018 flash floods, and benchmarking it with the temperature readings in Australia in the recent wildfire and our model can achieve a reasonably low false positive rate.