Working at height is one of the biggest cause of fatalities and major injuries. It includes falls from high raised platforms, ladders or through fragile surfaces.
So we have trained a deep learning model to detect if a person is working at a height in given image. Technique used is fine tuning of Resnet50 architecture. Image Augmentation was used to increase Dataset. Frame work used is Tensorflow.
Dataset includes thousands of positive, negative and hard examples for the person working at height, collected from open sources. This dataset is saved in drive, can be accessed from here: positive, negative, hard.
Some of the links from which images have been downloaded, are listed in Dataset References.
(If in windows, also install MingW for 'make' commands.)
- Run "make getModel2" for 2 class model in directory ./models.
- Run "make getModel3" for 3 class model in directory ./models.
- Insert images in testingImages folder, which you want to test.
- Then run "make test2" for 2 class model results.
- Or run "make test3" for 3 class model results.
- Run "make getData2" to get data for 2 class model in directory ./data/data2.
- Run "make getData3" to get data for 3 class model in directory ./data/data3.
- Run "make train2" and your new model2 will be saved in modelNew directory.
- Run "make train3" and your neew model3 will be saved in modelNew directory.
Two class Model-> Training Accuracy: 94% , Testing Accuracy: 91% (Height, Not Height)
Three class Model-> Training Accuracy: 83% , Testing Accuracy: 72% (Height, Not Height, Hard)
Not height, Probability [8.759406e-11]
Not height, Probability [2.0659362e-20]
Height, Probability [0.99990416]
Height, Probability [0.99976885]
All source images were picked from sources where the license allowed permissible use for commercial purposes. Some of the sources used were the following:
- Unsplash
- Pixabay
- Free Nature Stock
- Realistic Shots
- Life of pix
- Gratisography
- StockSnap
This project was undertaken under the under the leadership of Professor Brejesh (IITD) and the Data Science team at vyntelligence.