
An in depth encounter between a white shark and a surfer. Writer supplied.
By Cormac Purcell (Adjunct Senior Lecturer, UNSW Sydney) and Paul Butcher (Adjunct Professor, Southern Cross College)
Australian surf lifesavers are more and more utilizing drones to identify sharks on the seaside earlier than they get too near swimmers. However simply how dependable are they?
Discerning whether or not that darkish splodge within the water is a shark or simply, say, seaweed isn’t at all times easy and, in cheap circumstances, drone pilots usually make the correct name solely 60% of the time. Whereas this has implications for public security, it might probably additionally result in pointless seaside closures and public alarm.
Engineers try to spice up the accuracy of those shark-spotting drones with synthetic intelligence (AI). Whereas they present nice promise within the lab, AI methods are notoriously troublesome to get proper in the actual world, so stay out of attain for surf lifesavers. And importantly, overconfidence in such software program can have severe penalties.
With these challenges in thoughts, our workforce got down to construct essentially the most strong shark detector attainable and check it in real-world circumstances. Through the use of plenty of information, we created a extremely dependable cellular app for surf lifesavers that would not solely enhance seaside security, however assist monitor the well being of Australian coastlines.

Detecting harmful sharks with drones
The New South Wales authorities has invested greater than A$85 million in shark mitigation measures over the following 4 years. Of all approaches on supply, a 2020 survey confirmed drone-based shark surveillance is the general public’s most popular technique to guard beach-goers.
The state authorities has been trialling drones as shark-spotting instruments since 2016, and with Surf Life Saving NSW since 2018. Skilled surf lifesaving pilots fly the drone over the ocean at a peak of 60 metres, watching the reside video feed on moveable screens for the form of sharks swimming underneath the floor.
Figuring out sharks by rigorously analysing the video footage in good circumstances appears straightforward. However water readability, sea glitter (sea-surface reflection), animal depth, pilot expertise and fatigue all scale back the reliability of real-time detection to a predicted common of 60%. This reliability falls additional when circumstances are turbid.
Pilots additionally have to confidently establish the species of shark and inform the distinction between harmful and non-dangerous animals, comparable to rays, which are sometimes misidentified.
Figuring out shark species from the air.
AI-driven laptop imaginative and prescient has been touted as a perfect instrument to nearly “tag” sharks and different animals within the video footage streamed from the drones, and to assist establish whether or not a species nearing the seaside is trigger for concern.
AI to the rescue?
Early outcomes from earlier AI-enhanced shark-spotting methods have steered the issue has been solved, as these methods report detection accuracies of over 90%.
However scaling these methods to make a real-world distinction throughout NSW seashores has been difficult.
AI methods are skilled to find and establish species utilizing massive collections of instance photos and carry out remarkably effectively when processing acquainted scenes in the actual world.
Nonetheless, issues rapidly come up once they encounter circumstances not effectively represented within the coaching knowledge. As any common ocean swimmer can inform you, each seaside is completely different – the lighting, climate and water circumstances can change dramatically throughout days and seasons.
Animals may also incessantly change their place within the water column, which suggests their seen traits (comparable to their define) adjustments, too.
All this variation makes it essential for coaching knowledge to cowl the total gamut of circumstances, or that AI methods be versatile sufficient to trace the adjustments over time. Such challenges have been recognised for years, giving rise to the brand new self-discipline of “machine studying operations”.
Basically, machine studying operations explicitly recognises that AI-driven software program requires common updates to take care of its effectiveness.
Examples of the drone footage utilized in our large dataset.
Constructing a greater shark spotter
We aimed to beat these challenges with a brand new shark detector cellular app. We gathered a large dataset of drone footage, and shark consultants then spent weeks inspecting the movies, rigorously monitoring and labelling sharks and different marine fauna within the hours of footage.
Utilizing this new dataset, we skilled a machine studying mannequin to recognise ten sorts of marine life, together with completely different species of harmful sharks comparable to nice white and whaler sharks.
After which we embedded this mannequin into a brand new cellular app that may spotlight sharks in reside drone footage and predict the species. We labored carefully with the NSW authorities and Surf Lifesaving NSW to trial this app on 5 seashores throughout summer season 2020.

Our AI shark detector did fairly effectively. It recognized harmful sharks on a frame-by-frame foundation 80% of the time, in real looking circumstances.
We intentionally went out of our technique to make our exams troublesome by difficult the AI to run on unseen knowledge taken at completely different occasions of 12 months, or from different-looking seashores. These important exams on “exterior knowledge” are typically omitted in AI analysis.
A extra detailed evaluation turned up commonsense limitations: white, whaler and bull sharks are troublesome to inform aside as a result of they give the impression of being related, whereas small animals (comparable to turtles and rays) are tougher to detect typically.
Spurious detections (like mistaking seaweed as a shark) are an actual concern for seaside managers, however we discovered the AI may simply be “tuned” to eradicate these by displaying it empty ocean scenes of every seaside.

The way forward for AI for shark recognizing
Within the quick time period, AI is now mature sufficient to be deployed in drone-based shark-spotting operations throughout Australian seashores. However, in contrast to common software program, it can should be monitored and up to date incessantly to take care of its excessive reliability of detecting harmful sharks.
An added bonus is that such a machine studying system for recognizing sharks would additionally frequently accumulate invaluable ecological knowledge on the well being of our shoreline and marine fauna.
In the long term, getting the AI to take a look at how sharks swim and utilizing new AI know-how that learns on-the-fly will make AI shark detection much more dependable and simple to deploy.
The NSW authorities has new drone trials for the approaching summer season, testing the usefulness of environment friendly long-range flights that may cowl extra seashores.
AI can play a key position in making these flights more practical, enabling larger reliability in drone surveillance, and will ultimately result in fully-automated shark-spotting operations and trusted automated alerts.
The authors acknowledge the substantial contributions from Dr Andrew Colefax and Dr Andrew Walsh at Sci-eye.
This text appeared in The Dialog.
The Dialog
is an impartial supply of reports and views, sourced from the tutorial and analysis group and delivered direct to the general public.
The Dialog
is an impartial supply of reports and views, sourced from the tutorial and analysis group and delivered direct to the general public.