Skip to content

Pothole detection using ML model trained into a Flutter App

License

Notifications You must be signed in to change notification settings

adi-code22/Pothole-Detection

Repository files navigation

POTHOLE DETECTION FRAMEWORK

Problem Statement

Imagine that the Government have resources to have drones deployed to survey roads on a regular basis. The pictures captured by these drones will have to be sent to a central data repository, where using computer vision, the system will identify potholes that need immediate attention and send a trigger to the Executive Engineer of the respective district, Chief Engineer of PWD Kerala and the Minister of PWD. The solution should also be able to prioritize the need of attention that is required. . The challenge for the participants is twofold. (a) Develop an Al algorithm which can detect potholes from drone pictures of roads. They should be able to generate training and test data for this themselves. (6) Design a data architecture to implement this solution, assuming the Government will have readily deployable drones.

Solution

  1. Data acquisition and preparation

  2. Model training and evaluation

  3. Model deployment for realtime detection

  4. Notifying the authorities

 

1. Data acquisition and preparation

Pothole data/images taken from Kaggle and used 3D software to rotate and multiply images

 

2. Model training and evaluation

GIF

Fine tuned the model using Teachable Machine framework, a Conolutional Neural Network model was used considering its efficiency in Image Classification.

  • Epoch: 50
  • Batch size: 16
  • Training rate: 0.001

 

 

 

 

3. Model deployment for realtime detection

GIF

GIF

Validation Screen

CNN model was then integrated into the Flutter app using the tflite package

  • Now it detects potholes along with its severity.
  • Pothole location is also noted by the software.
  • The image can be fed from either the camera or gallery
  • The framework also supports image input from surveilance cameras, drones or any other source as image format.\

 

 

 

 

 

4. Notifying the authorities

GIF

GIF

Timely notifications send to concerned authorities

  • Pothole locations are stored into the DB.
  • Local authorities are intimated with specific images and location of potholes.
  • Confidence of ML model can be mapped to severity of the pothole.

 

 

 

 

 

 

 

 

Built With

  • Flutter
  • Tensorflow
  • Firebase

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • flutter

Assuming that you have Flutter installed in your System and either AVD or a smartphone with USB debugging is available;

Installation

  1. Clone the repo
    git clone https://github.com/adi-code22/Pothole-Detection.git
  2. Direct to root folder and run flutter project
    flutter run

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.md for more information.

(back to top)

Contact

Your Name - Adityakrishnan [adityakrishnanp007@gmail.com]

Twitter @AdityakrishnanP

Project Link: https://github.com/adi-code22/Pothole-Detection

(back to top)