Right now, there are swarms of robots that are so good at blending into their surroundings that they have been unquestioningly accepted into society. Their mission? Learn how the organisms they’ve been sent to study operate and socialize, then use their new knowledge to steer the cultures they’ve infiltrated towards what their creators decide will be a better future.

Thankfully, this isn’t about highly sophisticated androids seeking to destroy human society from the inside out (those don’t yet exist… at least not as far as we know).

Nope, we’re talking about bees.

This month, a five-year European research initiative called FOCAS (Fundamentals of Collective Adaptive Systems) came to a close. The purpose of the study: to learn the ways that social animals communicate. To accomplish that goal, researchers made swarms of robots designed to fool bees and zebrafish that looked and acted enough like the real thing to take part in the animal’s society.

This means the researchers got an unprecedented look inside the literal hive-mind that is a honeybee colony, and may even be able to use these robots to steer the bees towards adaptation and survival as they face potential extinction.

These robots are the result of years and years of work in swarm robotics. It’s not enough to build a little drone that can do bees’ characteristic waggle dance; the researchers needed to create a team of tiny bots that have a hive-mind of their own. They also needed to be able to move, act, and learn as a unit rather than a jumbled mess of machinery. For example, engineers from the University of Graz used artificial intelligence to evolve the robots’ behavior to be more like that of real-life bees as the drones themselves became more sophisticated. They also got two robotic swarms to interact with each other, flying around as cohesive units without individuals flying off on their own, or crashing into one another.

The robotic bees infiltrate real hives to understand their behaviour. Image: Assissibf

All of these minor, incremental improvements were intended to progress the bots towards the ultimate goal: robo-spies so advanced that the real animals would accept, communicate with, and even follow them. After being plopped into a colony and acting like they belong there for long enough, the robots seem to pass as the real thing. While species-saving programs aren’t in play quite yet, the team’s work shows that real bees will go along with the robotic insect’s programmed behavior, and the insider’s perspective of a honeybee colony can help scientists understand exactly what environmental factors are putting pressure on bees and other animals.

Bees play an essential part in our ecosystem. Image: Greenpeace

The robotic Spies Who Stung Me could have more uses than simply keeping bees alive — they could also help manage livestock and agriculture. That may help explain Walmart heavily invested in and patented similar technology earlier this year.