IIITH’s Computer Vision Method For Counting Avenue Trees

In a development that could greatly assist urban planners, city councillors and communities, IIITH researchers unveil a computer vision-assisted tool to count roadside trees and automatically generate maps showing extent of urban tree coverage. 

The importance of an urban green cover can’t be stressed enough. From mitigating the effects of air and noise pollution to preventing flooding in cities by soaking up excess rainwater, the benefits of green spaces have even been linked to the health and well-being of city folks. However, it is the same greenery that is often at the receiving end of rapid urbanisation. Environmental activists and other organizations now work hand in hand with governments to make sure that for every tree axed for developmental works, an appropriate number is planted elsewhere. Or in some instances, instead of felling them, the trees are uprooted whole and replanted elsewhere. But in order to do this, one needs to assess the extent of green cover in the first place.

AI-Solution For Future Cities 

Traditional methods of estimating urban canopies have involved either manually counting each tree that lies in a specified area or using satellite images to get the big picture. More recently, tree censuses have been reported with the help of unmanned aerial vehicles or drones for capturing tree images. At the International Institute of Information Technology, Hyderabad, what started with a request from the National Institute of Urban Management to generate an AI-enabled solution to facilitate city planning and urban afforestation has now led to a computer vision-based tool. Arpit Bahety, research fellow at the Center for Visual Information Technology (CVIT) under the guidance of Prof. C V Jawahar has developed a machine learning algorithm that can automatically detect and count the number of trees abutting urban roads. What is even more useful is that the system generates a colour-coded map, illustrating extent of tree coverage on particular routes.

Arpit Bahety

Colour Me Green

Explaining the distinction between different kinds of urban greenery that exist such as gardens, parks, urban forests, and tree avenues, Arpit says, “For purposes of our work, we ignored bushes and shrubs and focused only on trees which typically line city streets”. With video footage of tree-lined streets obtained from Hyderabad and Delhi, the research team trained a Yolo (You only look once) v4 model – a state-of-the-art ML model for real-time object detection. It has been trained to recognise and detect trees based only on their trunks. Alongside tree detection, the algorithm also generates a tree count at regular time intervals while providing a final count at the end of a given video footage. When the tree count is fed into a GPS extraction model, the system refers to an in-house scale developed by the team where > 50 trees per km refers to a Very Good tree count and < 20 represents Very Low tree count. These routes are then automatically displayed on a map with corresponding colours such as Dark Green for a Very Good tree count and Black which is the lowest on the scale.

Meeting The Challenges

“Our algorithm addresses the problem of double counting (of trees) that exists in traditional methods of census taking,” says Arpit while speaking of how the system scores over other methods. It was tested in Hyderabad and Surat across various city streets, and the outskirts was found to obtain an accuracy of 83%. A visual representation of city roads with tree cover also showcases the big picture which is more useful for city planners to strategise and take appropriate steps on ways to increase tree canopy. According to Ramesh Loganathan, Professor, Co-Innovation and Outreach, IIITH, “This solution is very timely given the intense push for greening in our state, as well as in other parts. It can help quantify and track the health and growth of planted trees. Technology-wise also, this is very challenging given the wide range of plants and trees on the road, trees behind trees or inside plots, other structures that may be in infront or in between, lighting conditions when capturing the videos and many more such.”

To overcome some limitations in tree detection algorithm especially in cases where either the trees have very thin trunks or cannot be easily identified due to objects close to them like tree guards, electricity poles, buildings and so on, the team is fine tuning the process of training the dataset. They are also refining the process of visualization via a kernel density estimation process which does not require the in-house Tree Density index. “It can automatically show which areas have higher tree density and which ones lower”, explains Arpit.

Computer Vision for Urban Mobility

The tree counting solution is just one of many computer vision-based solutions being developed by a dedicated team of researchers in the urban Mobility domain. It is an initiative of the Technology Innovation Hub (iHub-Data) at IIITH which is engaged in the collection of large-scale datasets whose real life applications include not just driver assistance systems, but also road safety, road and infrastructure mapping, resource optimization and technology for surveillance. The other on-going projects under computer vision-based mobility include pothole detection, helmet detection, rider detection and so on.  Dr. Anbumani Subramanian, Adjunct faculty, IIITH who is closely involved with the Mobility enterprise says, “We need to create applications of technology that help us solve problems on a large scale. This machine learning-based tree counting system is an example – it can be deployed on a large-scale across the country, for a simple and efficient count of trees on the roadside. It only needs a simple drive on a motorcycle with a minimal video-capture setup. The captured video of any length can be fed to this system to get the road-side tree count – in a matter of a few minutes!”

Sarita Chebbi is a compulsive early riser. Devourer of all news. Kettlebell enthusiast. Nit-picker of the written word especially when it’s not her own.

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *

Next post