A Practical Animal Detection and Collision Avoidance System Using Computer Vision Technique
A Practical Animal Detection and Collision Avoidance System Using Computer Vision Technique
Received September 27, 2016, accepted November 8, 2016, date of publication December 21, 2016,
date of current version February 25, 2017.
Digital Object Identifier 10.1109/ACCESS.2016.2642981
ABSTRACT One serious problem that all the developed nations are facing today is death and injuries due to
road accidents. The collision of an animal with the vehicle on the highway is one such big issue, which leads
to such road accidents. In this paper, a simple and a low-cost approach for automatic animal detection on
highways for preventing animal-vehicle collision using computer vision techniques are proposed. A method
for finding the distance of the animal in real-world units from the camera mounted vehicle is also proposed.
The proposed system is trained on more than 2200 images consisting of positive and negatives images and
tested on various video clips of animals on highways with varying vehicle speed. As per the two-second rule,
our proposed method can alert the driver when the vehicle speed is up to 35 km/h. Beyond this speed, though
the animal gets detected correctly, the driver does not get enough time to prevent a collision. An overall
accuracy of almost 82.5% is achieved regarding detection using our proposed method.
INDEX TERMS Cascade classifier, computer vision, histogram of oriented gradient, haar, image processing,
intelligent vehicle system, OpenCV, road injuries.
2169-3536
2016 IEEE. Translations and content mining are permitted for academic research only.
VOLUME 5, 2017 Personal use is also permitted, but republication/redistribution requires IEEE permission. 347
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
S. U. Sharma, D. J. Shah: Practical Animal Detection and Collision Avoidance System
by JP Research India Pvt. Ltd. and the conclusions hinted at All blobs, which stay after the operation are measured as
a significant percentage of road accidents resulting due to an the region of interest. Although this technique performs
object (animal) on the road, driver inattention, and absence of well in controlled areas, e.g. underwater videos, it does not
an intelligent highway safety alert system. work universally, especially road or highway side videos.
Researchers [13] used threshold segmentation approach for
II. EVIDENCES OF AN ANIMAL-VEHICLE COLLISION
getting the targeted animal’s details from the background.
According to the report given by the Society for Prevention Recent researches [14] also revealed that it ’s hard to
of Cruelty to Animals (SPCA), around 270 cattle had been decide the threshold value as the background changes often.
brought to their hospital-cum-animal-shelter in the year 2013, A method applicable to moving backgrounds (e.g., due to
most of whom were accident victims [27]. Below are some of camera motion) is presented in subsequent studies [15], [16].
the snapshot of the images with the sources which suggest The authors also state that other moving objects apart
that there are many challenges that the drivers are facing from the object of interest may be falsely detected as an
because of animals on the road. animal.
Researchers in [17] tried to discover an animal’s presence
in the scene (image) affecting the power spectrum of the
III. LITERATURE SURVEY picture. This method of animal detection was also consid-
Applications built on detection of animals play a very vital ered not appropriate since quicker results with this approach
role in providing solutions to various real-life problems [9]. would involve massive amount of image processing in a short
The base for most of the applications is the detection of period [18]. Researchers in [19] also used the face detector
animals in the video or image. technique initiated by Viola and Jones for a particular ani-
A recent study [10] shown that human beings have to take mal type. After the animal face is identified, the researchers
the final call while driving whether they can control their car track it over time. The problem with this technique is that
to prevent collision with a response time of 150ms or no. face detection requires animals to see into the camera not
The issue with the above approach is that human eyes get necessarily captured by the road travel video. Animals can
exhausted quickly and need rest, which is why this method arrive from a scene from various directions and in different
is not that effective. Some scientific researchers [11] have sizes, poses, and colors. Another method for animal detection
proposed a method that requires the animals to take a pose and tracking that uses texture descriptor based on SIFT and
towards the camera for the trigger, including face detection. matching it against a predefined library of animal textures
The problem with this technique is that face detection requires is proposed in [20]. The problem with this method is that
animals to see into the camera which is, not necessarily it is restricted to videos having single animal only and very
captured by the road travel video. Animals can arrive from minimal background clutter.
a scene from various directions and in different sizes, poses, In Saudi Arabia, the number of collisions between the
and color. camel and a vehicle was estimated to reach more than a hun-
Animals can be detected using the knowledge of their dred each year [21]. Authors in [21] implemented a deploy-
motion. The fundamental assumption here [12] is that the able Camel-Vehicle Accident Avoidance System (CVAAS)
default location is static and can simply be subtracted. and exploited two technologies GPS and GPRS to detect the
348 VOLUME 5, 2017
S. U. Sharma, D. J. Shah: Practical Animal Detection and Collision Avoidance System
FIGURE 11. The same object kept at different positions (depth) from the
camera centre.
TABLE 2. Relationship between pixels and meters. TABLE 3. Actual depth versus calculated depth.
ACKNOWLEDGMENT
The authors would like to thank all who were involved
directly or indirectly in the data collection, experiment con-
duction, and analysis stage of the project.
FIGURE 22. ROC curve.
REFERENCES
XVI. ACHIEVEMENTS WITH RESPECT TO OBJECTIVES
[1] NHTSA 2020 Report, accessed on Sep. 8, 2015. [Online].
• Algorithm developed is working properly and able to Available: http://www.nhtsa.gov/nhtsa/whatis/planning/2020Report/
detect an animal in different conditions on roads and 2020report.html
highways. [2] Global Status Report on Road Safety 2013. Executive Summary, World
• Estimation of animal distance from the testing vehicle is Health Org., Geneva, Switzerland, Oct. 2013.
[3] C. J. L. Murray and A. D. Lopez, ‘‘Alternative projections of mortality and
done. Maximum detecting distance of the animal from disability by cause 1990–2020: Global burden of disease study,’’ Lancet,
the camera mounted vehicle was found to be 20 meters. vol. 349, pp. 1498–1504, May 1997.
• Speed analysis (different speeds like 20, 30, 35, 40, 50, [4] Ministry of Home Affairs. Accidental Deaths & Suicides in India 2012,
Nat. Crime Records Bureau, New Delhi, India, Jun. 2013.
60 kmph) is implemented and tested.
[5] National Highways Authority of India. Information About Indian
• Alert signal to the driver is available. Road Network, accessed on Jun. 3, 2010. [Online]. Available:
http://www.nhai.org/roadnetwork.htm
XVII. CONCLUSION [6] J. Padmanaban, R. Rajaraman, G. Stadter, S. Narayan, and B. Ramesh,
‘‘Analysis of in-depth crash data on indian national highways and impact
An efficient automatic animal detection and a warning system of road design on crashes and injury severity,’’ in Proc. 4th Int. Conf.
can help drivers in reducing the number of collisions occur- ESAR ‘Expert Symp. Accident Res.’, Hanover, Germany, Sep. 2010,
ring between the animal and the vehicle on roads and high- pp. 170–183.
[7] Ministry of Home Affairs. Accidental Deaths & Suicides in India 2006,
ways. In this paper, we discussed the necessity of automatic Nat. Crime Records Bureau, New Delhi, India, Jun. 2007.
animal detection system and our algorithm for animal detec- [8] Accident Research Study on the Ahmedabad–Gandhinagar Highway for
tion based on HOG and cascade classifier. The algorithm the Duration February 2014 to January 2015, JP Res. India Pvt Ltd.,
Mar. 2015.
can detect an animal in different conditions on highways.
[9] S. Sharma and D. J. Shah, ‘‘A brief overview on different animal detec-
The proposed system achieves an accuracy of almost 82.5 % tion method,’’ Signal Image Process., Int. J., vol. 4, no. 3, pp. 77–81,
regarding animal (cow) detection. Estimation of approximate Jun. 2013.
animal distance from the testing vehicle is also done. Though [10] M. Fabre-Thorpe, A. Delorme, C. Marlot, and S. Thorpe, ‘‘A limit to the
speed of processing in ultra-rapid visual categorization of novel natural
the proposed work has been focused on automatic animal scenes,’’ J. Cognit. Neurosci., vol. 13, no. 2, pp. 171–180, Mar. 2001.
detection in context to Indian highways, it will work in other [11] T. Burghardt and J. Calic, ‘‘Analysing animal behaviour in wildlife videos
countries also. The proposed method can easily be extended using face detection and tracking,’’ IEE Proc.-Vis., Image Signal Process.,
vol. 153, no. 8, pp. 305–312, Jun. 2006.
for detection of other animals too after proper training and
[12] D. Walther, D. Edgington, and C. Koch, ‘‘Detection and tracking of
testing. The proposed system can be used with other avail- objects in underwater video,’’ in Proc. IEEE Comput. Soc. Conf. Comput.
able, efficient pedestrian and vehicle detection systems and Vis. Pattern Recognit. (CVPR), Washington, DC, USA, Jun./Jul. 2004,
pp. 544–549.
can be offered as a complete solution (package) for preventing
[13] J. C. Nascimento and J. S. Marques, ‘‘Performance evaluation of object
collisions and loss of human life on highways. detection algorithms for video surveillance,’’ IEEE Trans. Multimedia,
vol. 8, no. 4, pp. 761–774, Aug. 2006.
XVIII. LIMITATIONS AND FUTURE SCOPE [14] N. Kawasaki, ‘‘Parametric study of thermal and chemical non equilibrium
nozzle flow,’’ M.S. thesis, Dept. Electron. Eng., Osaka Univ., Osaka,
Though our proposed system can detect the animals (cow) Japan, 1993.
on roads and highways as well as gives alert to the driver, [15] S. L. Hannuna, N. W. Campbell, and D. P. Gibson, ‘‘Identifying
it has some limitations too. The proposed system can detect quadruped gait in wildlife video,’’ in Proc. IEEE Int. Conf. Image Pro-
cess. (ICIP), Genoa, Italy, Sep. 2005, pp. 713–716.
animal up to a distance of 20 meters only when a vehicle
[16] D. P. Gibson, N. W. Campbell, and B. T. Thomas, ‘‘Quadruped gait
is stationary. The system can prevent collision of the vehi- analysis using sparse motion information,’’ in Proc. Int. Conf. Image
cle with the animal when driving at a speed in between Process. (ICIP), New York, NY, USA, Sep. 2003, pp. 333–336.
30 to 35 kmph. Beyond this speed, though animal gets [17] H. Ragheb, S. Velastin, P. Remagnino, and T. Ellis, ‘‘Human action
recognition using robust power spectrum features,’’ in Proc. 15th Int.
detected time is not sufficient to prevent animal-vehicle Conf. Image Process. (ICIPO), San Diego, CA, USA, Oct. 2008,
collision. pp. 753–756.
[18] F. A. Wichmann, J. Drewes, P. Rosas, and K. R. Gegenfurtner, ‘‘Animal [34] A. Rahman, A. Salam, M. Islam, and P. Sarker, ‘‘An image based approach
detection in natural scenes: Critical features revisited,’’ J. Vis., vol. 10, to compute object distance,’’ Int. J. Comput. Intell. Syst., vol. 1, no. 4,
no. 6, pp. 1–27, 2010. pp. 304–312, 2008.
[19] P. Viola and M. J. Jones, ‘‘Robust real-time face detection,’’ Int. J. [35] KTH Animal Datasets, accessed on Jun. 18, 2013. [Online]. Available:
Comput. Vis., vol. 57, no. 2, pp. 137–154, 2004. http://www.csc.kth.se/~heydarma/Datasets.html
[20] D. Ramanan, D. A. Forsyth, and K. Barnard, ‘‘Building models of animals [36] NEC Animal Datasets, accessed on Jun. 18, 2013. [Online]. Available:
from video,’’ IEEE Trans. Pattern Anal. Mach. Intell., vol. 28, no. 8, http://ml.nec-labs.com/download/data/videoembed
pp. 1319–1334, Aug. 2006. [37] N. Gupta, A. Rawal, V. L. Narasimhan, and S. Shivani, ‘‘Accuracy, sen-
[21] M. S. Zahrani, K. Ragab, and A. U. Haque, ‘‘Design of GPS-based system sitivity and specificity measurement of various classification techniques
to avoid camel-vehicle collisions: A review,’’ Asian J. Appl. Sci., vol. 4, on healthcare data,’’ IOSR J. Comput. Eng., vol. 11, no. 5, pp. 70–73,
no. 4, pp. 362–377, 2011. May/Jun. 2013.
[22] S. Shaikh, M. Jadhav, N. Nehe, and U. Verma, ‘‘Automatic animal [38] G. Singh, ‘‘Draught animal energy research in India,’’ in Proc. Animal
detection and warning system,’’ Int. J. Adv. Found. Res. Comput., vol. 2, Traction Netw. Eastern Southern Africa (ATNESA), 1999, pp. 315–322.
pp. 405–410, Jan. 2015. [39] Car Accidents and Brain Reaction Time Accidents, accessed on
[23] V. Mitra, C.-J. Wang, and G. Edwards, ‘‘Neural network for LIDAR May 5, 2016. [Online]. Available: http://www.chaikinandsherman.com/
detection of fish,’’ in Proc. Neural Netw. Int. Joint Conf., Jul. 2003, Car-Accidents/Brain-Reaction-Time-Accidents.aspx
pp. 1001–1006. [40] Information on Safe Following Distances Between Vehicles, accessed
[24] S. Sharma and D. Shah, ‘‘Real-Time automatic obstacle detection and on May 5, 2016. [Online]. Available: https://www.qld.gov.au/
alert system for driver assistance on Indian roads,’’ Indonesian J. Elect. transport/safety/rules/road/distances
Eng. Comput. Sci., vol. 1, no. 3, pp. 635–646, Mar. 2016.
[25] M. Zeppelzauer, ‘‘Automated detection of elephants in wildlife video,’’
EURASIP J. Image Video Process., vol. 46, p. 46, Aug. 2013,
doi: 10.1186/1687-5281-2013-46.
[26] Cattle—The Real Menace on Indian Highways, accessed on Feb. 3, 2016.
[Online]. Available: http://www.team-bhp.com/forum/street-
SACHIN UMESH SHARMA (M’12) was an Assistant Professor with the
experiences/144117-cattle-real-menace-indian-highways.html Electronics and Communication Department at various engineering col-
[27] Stray Cattle Continues to Cause Accidents on Roads, accessed on leges affiliated with GTU, Ahmedabad, India. He has over nine years of
Feb. 2, 2016. [Online]. Available: http://timesofindia.indiatimes. experience in academics, research, and industry. He has written books on
com/city/chennai/Stray-cattle-continues-to-cause-accidents-on-roads/ ABS implementation using fuzzy logic based controller and fundamentals of
articleshow/46090369.cms image processing. He has also authored numerous articles related to image
[28] Stray Animal Menace Turns Deadly on City Roads, accessed on processing, digital signal processing, and intelligent transportation systems.
Feb. 3, 2016. [Online]. Available: http://www.newindianexpress.com/ He received the Rashtriya Vidya Gaurav Puraskar from the Indian Solidarity
states/odisha/article596072.ece Council for doing excellent work in research and education. He is an active
[29] Safe and Responsible Driving, accessed on Feb. 3, 2016. [Online]. member of several professional societies, including ISTE and SAE.
Available: http://www.chandigarhtrafficpolice.org/situation.php
[30] Road Accidents Involving Stray Dogs, Cattle on the Rise, accessed
on Feb. 3, 2016. [Online]. Available: http://www.thehindu.com/
news/cities/Hyderabad/road-accidents-involving-stray-dogs-cattle-on-
the-rise/article5398380.ece
[31] Road Accidents, Many Caused by Stray Animals, Take a Toll on the
Economy, accessed on Feb. 3, 2016. [Online]. Available: http://www. DHARMESH J. SHAH (M’02) is currently a Provost with Sankalchand
arrivesafe.org/road-accidents-many-caused-by-stray-animals-take-a-toll- Patel University, Visnagar, India. He has over 17 years of experience in
on-the-economy academics, research, and industry. He has written a book on fundamentals
[32] N. Dalal and B. Triggs, ‘‘Histograms of oriented gradients for human of image processing for the final year engineering students. He has also
detection,’’ in Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern authored numerous articles related to VLSI, digital signal processing, and
Recognit. (CVPR), New York, NY, USA, Jun. 2005, pp. 63–69. image processing. He is an active member of several professional societies,
[33] P. Viola and M. Jones, ‘‘Rapid object detection using a boosted cascade
including IETE and ISTE.
of simple features,’’ in Proc. Comput. Vis. Pattern Recognit., Dec. 2001,
pp. I-511–I-518.