The advance means drones could soon be used in parallel with rescue teams to accelerate the search for people lost in the wild, researchers said.
Every year, thousands of people lose their way in forests and mountain areas. Drones can effectively complement the work of rescue services teams, researchers said.
Since they are inexpensive and can be rapidly deployed in large numbers, they substantially reduce the response time and the risk of injury to missing persons and rescue teams alike.
"While drones flying at high altitudes are already being used commercially, drones cannot yet fly autonomously in complex environments, such as dense forests," said Davide Scaramuzza from the University of Zurich.
Also Read
"In these environments, any little error may result in a crash, and robots need a powerful brain in order to make sense of the complex world around them," Scaramuzza said.
The drone observes the environment through a pair of small cameras, similar to those used in smartphones.
If a trail is visible, the software steers the drone in the corresponding direction.
"Interpreting an image taken in a complex environment such as a forest is incredibly difficult for a computer," said Giusti.
Researchers used a Deep Neural Network, a computer algorithm that learns to solve complex tasks from a set of "training examples," much like a brain learns from experience.
In order to gather enough data to "train" their algorithms, the team hiked several hours along different trails in the Swiss Alps and took more than 20 thousand images of trails using cameras attached to a helmet.