Deep learning helps NatureScot protect Scotland’s wildlife

Find out how NatureScot overcame limitations of motion-activated camera traps using artificial intelligence (AI).

Otter in water holding branch to make its dam

About NatureScot

NatureScot is the Scottish Government agency charged with protecting and enhancing the nation’s habitats and species. As a Statutory Consultee, NatureScot regularly provide expert advice on how Scotland’s environment and wildlife may be impacted by proposed developments.

Data driven decision-making

A large part of the evidence used by NatureScot to inform these decision-making processes comes from their work on identifying habitats and the species present within them.

Using an extensive network of motion-activated camera traps, NatureScot can gather primary intelligence on the range and concentration of various species, including protected animals such as the Scottish wildcat. Information Management Programme Manager Stephen Gerrard oversees the management and sharing of such data.

“Our camera traps produce thousands of images,” explains Stephen, “but since they’re motion activated, this can include things like branches blowing in the breeze. Only a tiny proportion of the images we capture are actually relevant for our work, and we were having to manually trawl through them to identify the ones which were worth uploading to our Digital Asset Management system.”

Stephen and his project board believed an Artificial Intelligence (AI) solution might exist to help them streamline their process of reviewing the camera trap images. With no AI expertise in-house, Stephen, with the agreement of IT colleagues, applied for NatureScot to be a host organisation in The Data Lab’s MSc Placement Programme.

Seals and birds on rocks in the Sound of Mull, Argyll

The challenge: image detection and recognition

Within hours, Stephen was matched with Ioannis Katsadas, a student on the MSc Data Science postgraduate programme at the University of Glasgow.

After discussing the problem facing NatureScot, the pair agreed on a project scope which would see Ioannis research and assess various options and identify the best AI solution to reduce the amount of time members of staff would have to spend physically reviewing and classifying images before uploading them to the Digital Asset Management system.

Ioannis identified the need to apply deep learning, a subset of AI machine learning, to achieve the desired results.

In order to correctly recognise and classify species within an image, the model would first have to be taught to detect the presence of the target species within the 2D images produced by the camera traps. Rather than manually annotate all possible outlines of each of the 50 species the programme might have to learn to recognise, Ioannis turned to open-source detection applications.

The detection capabilities in Microsoft’s AI for Earth project proved ideal for NatureScot’s purposes. The classification task, however, would need to be custom built, as Microsoft’s solution was based mainly on tropical species, and so less attuned to the highland and woodland habitats in Scotland!   

It didn’t occur to us that Ioannis would be able to come up with an actual machine learning solution for species recognition in three months, but that’s exactly what he did.
Stephen Gerrard , Information Management Programme Manager , NatureScot
Stag

Expectations exceeded

Stephen had expected Ioannis to recommend a classification solution for later implementation. However, having done so with time to spare on his three month placement, Ioannis not only identified the best classification method but also created the model and left guidance on how NatureScot staff could use it in the future.

Creating custom script to pull images from external servers, Ioannis built a software model which could detect, recognise and classify species. Applying deep learning, he taught it to improve the accuracy of its predictions by correcting each mistaken classification until the model was ready for use.

“It didn’t occur to us that Ioannis would be able to come up with an actual machine learning solution for species recognition in three months,” says Stephen, “but that’s exactly what he did. So it has far exceeded our expectations – we are delighted with what he’s done.”

Mutual benefits

Within a few months, NatureScot had already filtered over 120,000 images through Ioannis’ model, freeing up over £20,000 worth of employee hours to devote to other projects and improving the quality of their image dataset. They also avoided the need to invest a higher amount with a specialist AI supplier, while benefitting from Ioannis’ deep up to date knowledge of the latest developments in the field thanks to his ongoing studies.

I went in to the programme hoping to get some experience of working in the ‘real world’, as opposed to academia, and I feel like I definitely got this.
Ioannis Katsadas, MSc Data Science postgraduate programme , University of Glasgow
Highland Cow

Real-world challenges

I saw how some things remain the same, for example the process of researching, looking at what has been done elsewhere, and what’s different, was similar to my academic experience. I found the big difference was in dealing with real-world challenges where things aren’t made simple for you. For example, we had problems accessing images on external servers and cleaning them to prepare a training dataset, so I had to create a special script to prepare the data.”

Drawing on his problem-solving experiences, as well as the soft skills he picked up in collaborating with team members and presenting his work to the wider organisation, has already helped Ioannis differentiate himself in a competitive job market. He believes the dissertation he produced based on the work he did during his time at NatureScot was more fulfilling than a purely theoretical piece, and has since graduated with a distinction from his MSc in Data Science.

Remote support

With the 2020 programme taking place while the world grappled with Covid-19, Stephen and Ioannis found themselves collaborating remotely, rather than from NatureScot’s office as originally planned.

Having returned home to Thessaloniki in Greece, Ioannis worked as a virtual member of the team. We were arranging the placement just as lockdown was starting,” remembers Stephen, “and we worried about whether it would be an extra layer of hassle, and whether we should even go ahead.”

With NatureScot already geared up for remote working, however, they realised the project was perfectly suited to this and went ahead, making sure to involve Ioannis in wider team videocalls and virtual get-togethers. “It was really smooth and easy. It was all far less work than you would think.” 

The Data Lab was also on hand to support both student and sponsor, particularly as it was NatureScot’s first experience of being a host organisation in the MSc Placement Programme.

“We did a lot of work with The Data Lab at the start,” says Stephen, “Marian was very helpful, and Karen too. They talked us through the process and also had regular catchups with Ioannis and myself, both individually and together.”

“If you’ve identified a data-based business problem you’re trying to solve, I’d definitely recommend getting in touch with The Data Lab to see if they might be able to help,” concludes Stephen.  

Datalab banner

2021 programme now open

The Data Lab MSc Placement Programme is now open for summer 2021. Our cohort of 160 students will undertake 8-12 week paid placements to support host companies with defined short term projects which will form the basis of their MSc dissertation.

Learn more about The Data Lab MSc Placement Programme and how your organisation could benefit from having a highly motivated student apply their cutting-edge knowledge and skills to your organisation’s challenges. Our students are studying at universities across Scotland and specialise in topics including AI, data science and data engineering. 

Due to the ongoing pandemic, we expect all summer 2021 placements to continue on a virtual basis, with host companies obliged to pay the National Living Wage to students as a minimum standard. We expect a number of additional placements to be available for the period of September – December 2021.

The Data Lab in the Highlands and Islands

The Data Lab aims to foster innovation that will help Scotland maximise value from data and artificial intelligence. The Data Lab’s Highlands and Islands hub opened in April 2019 and is located within An Lòchran on Inverness Campus. With support from Highlands and Islands Enterprise, in collaboration with The Scottish Government, Scottish Funding Council, Scottish Enterprise and Scottish Development International, it aims to provide the region with a dedicated centre to help build momentum and create further growth, skills and opportunities in the tech sector. It is at the centre of a support programme for businesses in the Highlands and Islands looking to innovate through the application of data science and AI to solving real world business problems.

Can we help you solve your problem?

Have a look at our support and get in touch to see how we can help you.

Browse all support services

We support businesses, communities and social enterprises through a range of support services, including advice, funding, events and property. Find out how we can help you.

HIE's Innovation Service

HIE's innovation service can provide you with expert advice and funding to help you get your ideas off the ground.

R&D funding

We have R&D funding available for businesses of all sizes in the Highlands and Islands of Scotland.

Knowledge Library

Browse our knowledge library to see our latest case studies and playback training webinars and podcasts.

Newsletter

Sign up for all the latest news, information on investments and development opportunities from across our region.