Manuscript Offprint
arXiv:2611.00392Emergent Control of Ant Learning Walks in a Mobile Robot
1 Abstract
Before foraging, desert ants perform learning walks (LWs) to acquire visual memories around their nest. With experience, these walks expand, become straighter, and contain fewer visual scans. We previously proposed a model in which these behaviours emerge from the angular mismatch between path integration (PI) and a mushroom-body-inspired visual compass (VC). Here, we test whether this mechanism can generate learning walks on a physical robot, despite the sensory and motor noise inherent to real-world conditions.
We implement the model on a four-wheeled robot equipped with a panoramic camera, an IMU and wheel encoders providing compass and stride information for PI, and test it outdoors using a replicated desert-ant experimental setup. The PI–VC mismatch regulates walking speed, turning, pirouettes, and returns to the nest, while PI provides a teaching signal for visual learning. The robot autonomously decides when to acquire visual memories, while its behaviour gradually shifts from exploration towards foraging as visual learning progresses.
The robot reproduces desert-ant LW features, including expanding and straightening trajectories, decreasing pirouette frequency, and improved visual homing. These results demonstrate that a simple error-driven mechanism can generate key features of learning walks under real-world conditions, supporting its plausibility as an explanation for active visual learning in desert ants. More broadly, this work illustrates how physical robots can be used to test biological models.
2 Introduction
To find their way home after foraging over long distances, desert ants combine path integration (PI) with learned visual information [6, 45]. PI provides a homeward vector, but its errors accumulate during travel, making visual memories important for locating the nest accurately [21, 30]. Ants acquire visual memories during learning walks (LWs), a series of exploratory trips undertaken before they begin foraging [12, 50]. With experience, ants generally walk faster, venture farther from the nest, follow straighter paths, and perform fewer scans. Their visual homing ability also improves in parallel [7, 12]. Yet, alteration of the familiar panorama can cause learning behaviours to reoccur in experienced ants [33, 43].
Snapshot-based navigation models explain how stored views can support visual homing [2, 5, 51]. However, they do not explain when visual memories are acquired during LWs or how these walks are dynamically controlled. Recently, two
November 3, 2026
1/36 computational models have been proposed to explain how LWs are dynamically controlled and how visual memories are acquired during these walks. Xiang et al. [48] proposed a model in which panoramic images are encoded using rotation-invariant Zernike moments [39, 41] and processed by a mushroom body model. The resulting familiarity signal controls the balance between exploration and homing during LWs, reproducing several characteristic features of these behaviours. In our previous work [32], we proposed an alternative mechanism based on the angular mismatch between path integration (PI) and a learned visual compass (VC), reproducing complementary features such as changes in walking speed and pirouette frequency. Here, we test whether this mechanism can autonomously generate LWs on a physical robot.
In Misiek et al. [32], we proposed a different mechanism based on the angular discrepancy between the nest directions estimated by PI and a mushroom-body-inspired visual compass (VC). This error signal, , controls LW behaviour, while PI also teaches the VC to associate panoramic views with the nest direction, following Müller and Wehner [33]. High error produces slow, spiralling walks with frequent pirouettes and early returns to the nest. As the VC learns, the error decreases and walks become longer and straighter. When the visual environment changes, PI and VC predictions diverge again, causing learning behaviours to reappear. In simulation, the model reproduced many features of desert-ant LWs. However, whether the same mechanism can generate LWs using real sensors and under real-world noise remains to be tested.
The transition from simulation to robotics is not trivial because simulations rely on assumptions that do not necessarily hold in the real world. This is a well-known problem in robotics, commonly referred to as the “sim-to-real” problem or “reality gap” [20, 22, 23, 44]. [link to robotics] As such, manhy models have been tested on robots
Insect-navigation models have already been tested on robotic platforms. Sahabot [27] and AntBot [11] demonstrated ant-inspired PI using compass and odometry information. Stone et al. [40] implemented a central-complex-inspired PI circuit in embodied navigation, later transferred to a physical aerial robot by Stankiewicz and Webb [36].
Other robotic studies have investigated visual homing and route following. In particular, Gattaux et al. [17] demonstrated outdoor visual homing using a mushroom-body-inspired model on the Antcar robot, with PI used during training to label panoramic views acquired during manually controlled learning walks. More recently, Ou et al. [35] used automated learning flights on a drone, during which PI trained a neural network to predict a home vector from omnidirectional images. Although these learning flights were automated, they did not reproduce the structure of bees' learning flights observed in experimental data. A key contribution of these robotic studies is that they confront insect-inspired navigation models with real-world sensory and motor noise, testing whether mechanisms developed in simulation remain effective under physical conditions. In this spirit, we test whether our previously proposed PI-VC mismatch mechanism can autonomously generate the characteristic structure and development of desert-ant learning walks on a physical robot.
Here, we reproduce the experimental arrangement of Fleischmann et al. [12], using three cylinders placed in a grassy area on the University of Sussex campus. The model described and simulated in Misiek et al. [32] is now implemented on a four-wheeled differential-drive robot equipped with a panoramic camera, an inertial sensor, wheel encoders, and GNSS tracking (see Methods and Fig. 13). We test whether the model can support LWs and visual learning in the real world, with the robot autonomously deciding when to collect visual memories, scan, return to the nest, and transition to foraging. We show that the robot reproduces the main characteristics of desert-ant
November 3, 2026
2/36

Fig 1. Robot platform. Photograph of the custom-built robot used in the experiments. To give an indication of scale, the wheels are 27 cm in diameter and the top-mounted panoramic camera is positioned 29 cm above the ground. The two HC-SR04 ultrasonic distance sensors used for obstacle avoidance are visible at the front of the robot, on the right side of the image. See Section 6.1 for a full description of the platform.
LWs, including expanding and straightening trajectories, decreasing pirouette frequency, and improved visual homing with experience. To our knowledge, this is the first robotic implementation of dynamically controlled learning walks.
3.1 Layout
We reproduced the main experimental paradigm of Fleischmann et al. [12] on a robotic platform (Fig. 1). In the original experiment, three black cylinders 38 cm high and 22 cm in diameter were placed 2 m from the nest on a largely featureless Tunisian saltpan. Here, we doubled the scale of the original layout to accommodate the larger dimensions of the robot and GNSS positioning uncertainty, which was typically centimetre-scale (median horizontal accuracy 1.4 cm) but could occasionally deteriorate (Fig. 2). Three white cardboard cylinders approximately 1 m high and 45 cm in diameter were therefore placed 4 m from the nest (Fig. 2), and the 3 m threshold used in Misiek et al. [32] to distinguish LWs from foraging walks and record pirouettes, was increased to 6 m. Because our experimental site contained a much richer visual panorama than the original saltpan, with prominent trees and buildings, we also took steps to improve the visibility of the artificial landmarks: the cylinders were made taller than a strict twofold scaling would require and white was chosen instead of black to increase the contrast against the dark green of the trees and the brownish-red and dark grey colors of the buildings (Fig. 2).
Experiments were conducted on an approximately 30 × 40 m grassy area near the Library Square at the University of Sussex (Fig. 2). A fixed nest position was defined near the centre of the experimental area, at 50.865538°N, −0.08865920°W. The original and displaced nest positions, cylinder positions, and visual-homing release
November 3, 2026
3/36

Fig 2. Experimental reproduction of Fleischmann et al. [12]. Photograph of the robot in the foreground, with the three white cylinders reproducing a scaled-up version of the experimental layout of Fleischmann et al. [12], near the Library Square at the University of Sussex. The sky was cloudy. The grass is unusually yellow due to the summer 2026 drought. The buildings in the background provided prominent visual landmarks compared with the largely featureless Tunisian desert environment used by Fleischmann et al. [12].
November 3, 2026
4/36

B

C

D

Fig 3. Robot point of view through the Pixpro SP360. (A) Raw px fisheye image. (B) Unwrapped panoramic view of the image in A. The upper , containing mostly sky, were excluded to reduce the influence of the sky and moving clouds on the visual-compass input. The three cylinders are visible but remain small relative to the surrounding landmarks such as trees and buildings. (C) Raw fisheye image acquired at the same orientation as A, but from a different position, twenty minutes after A. Distant background landmarks remain unchanged, whereas the nearby cylinders shift substantially. The clouds have also moved relative to A. (D) Unwrapped panoramic view of the image in C. Comparison of B and D also shows that the camera was not fully stabilized in pitch as the robot moved over uneven terrain. This can be seen as the yellow grassy ground is neither flat nor forming a similar horizon in B and D. Unfortunately, we did no record tilt and roll data (which the IMU had access to), so we could not plot camera pose data.
November 3, 2026
5/36 position were marked with wooden nails so that the experimental setup could be reproduced across the two days. Six independently trained agents were tested: four on 15 August 2026 between approximately 17:00 and 21:30, and two on 16 August 2026 between approximately 16:00 and 19:00. Both days were cloudy, and light rain interrupted some trials. The visual input was noisy, with moving clouds, frequent changes in illumination, and changes in camera pitch as the robot moved over uneven terrain (Fig. 3).
3.2 Protocol
In the original experiment, Fleischmann et al. [12] followed individually marked newcomer ants over successive appearances outside the nest, recording their behaviour as they progressed from early LWs to foraging. At different stages of experience, ants were captured near the nest in a zero-vector state and transferred to a distant test field containing an identical landmark array. During visual homing tests, they were released 3 m from the fictive nest position and their search paths were recorded for five minutes. Because they were zero vector ants this test isolated homing based on learned visual cues, not PI.
We reproduce this test protocol with our robot: after each LW, the robot was displaced to a fixed release position 12 m southeast of the nest. This was farther than the 6 m expected from the approximately twofold scaling of the original protocol and was chosen to better demonstrate visual-homing performance. Visual homing was initiated by pressing a button on the joystick, after which the robot navigated autonomously for at least 90 s using only the visual compass, with no contribution from PI.
Here I summarize the experimental protocol: At the beginning of each experiment, I created a new agent by pressing a button on the control joystick (Fig. 13). The robot was then placed at the marked nest position, its PI state was reset to “zero”, and the first LW was started by pressing another button on the joystick. The agent navigated with the algorithm described in Misiek et al. [32]. Briefly:
-
The agent automatically selected a random allocentric heading from a uniform distribution between 0° and 360°, rotated until it was within 20° of that heading. This was implemented to promote a random and uniform exploration of all directions around the nest. From that point, the robot performed the LW autonomously using the algorithm introduced in Misiek et al. [32].
-
PI-visual-compass mismatch controlled spiralling behaviour and the onset of pirouettes (see Methods).
-
When the accumulated PI/VC error reached a threshold, the LW ended and the robot switched to PI homing until it returned to the estimated position of the nest and began searching.
-
The robot was then displaced to the visual homing test, 12 meters southeast of the nest (see Fig. 5B and Fig. 2).
-
The robot performed visual homing for at least 90 seconds, using only the visual compass signal, and its search for the nest was recorded.
-
I took the agent back to the exact position of the nest. Using the joystick, the PI vector was reset to “zero” and the visual memories from the previous LW were consolidated in long-term memory.
November 3, 2026
6/36

Fig 4. Top view of all 44 learning walks (A) and 54 zero-vector visual homing tests (B) conducted across the six trials. The plotted area spans 60 m in longitude and 40 m in latitude, with the longest LW reaching 27.32 m from the nest. Colours are used only to distinguish the trajectories and have no additional meaning.
November 3, 2026
7/36
All agents completed this cycle – a LW followed by an immediate visual homing test – at least seven times. We aimed to complete nine LWs per agent, but some sequences were shortened by rain or unexpected Jetson restarts. Unlike the original experiment, in which each ant was tested only once and then discarded, the same agent was tested after each successive LW.
Shifted cylinders experiment With agents 3 and 4, after nine LWs, the cylinders were displaced 4 m northwest and an additional visual homing test was conducted. A final test was then performed with the cylinders removed. These manipulations tested whether visual homing was controlled predominantly by the cylinders relative to other landmarks such as trees and buildings, which were not available in the original experiment.
All data were recorded using GNSS with RTK corrections. See Section 6.7 for an accuracy report for each experiment.
4 Results
Across the six experimental sequences, 44 LWs and 54 visual-homing tests were recorded (Fig. 4A,B). The robot traveled a total of 5151.02 m over 2 h 48 min 57.56 s of recordings.
4.1 Learning-walk behaviour changed with experience
Across the six agents, the robot progressively transitioned from short LWs, characterised by spiralling around the nest, to longer, more directed trajectories (Fig. 4A). This progression is evident across the complete LW sequences of agents 2 and 4 (Fig. 6A,B). The expansion of the LWs is also visible across an example of two consecutive walks from the same agent (Fig. 5A), shown at 10 Hz (100 ms intervals), with the pirouettes and snapshots clearly identifiable.
Because performances generally plateaued from approximately the fifth LW onward, LWs 1–4 were analysed separately and subsequent LWs were pooled into a 5+ category (Fig. 7). For each measure, a linear slope was fitted across these five groups within each of the six agents, and the resulting slopes were tested against zero using a two-sided one-sample t-test with Benjamini–Hochberg FDR correction across behavioural measures.
Measures of spatial expansion increased consistently with experience. Maximum distance from the nest increased from 4.21 m in LW1 to 15.22 m in the 5+ group (Fig. 7A; mean within-agent slope = 2.45 m per category, , ), while total travelled distance increased from 34.49 to 62.02 m (Fig. 7B; 6.88 m per category, , ). Across LWs, the maximum distance reached from the nest was 27.32 m, while total distance travelled ranged from 9.53 m in the shortest LW to 93.74 m in the longest (which was classified as a foraging walk as it went farther than 6 m from the nest).
The proportion of walks extending beyond 6 m similarly increased from 0 in LW1 to 0.85 in the 5+ group (Fig. 7H; +23.5 percentage points per category, , ). The first “foraging” walk occurred after one to three LWs, with one agent leaving the 6 m radius on the second walk, four agent on the third walk and the remaining agent on its fourth walk.
LW duration increased from 116.4 s in LW1 to 148.0 s in the 5+ group (Fig. 7C; 8.44 s per LW, , ). Over the same period, straightness increased from 0.248 to 0.485 (Fig. 7D; 0.053 per LW, , ). LW duration
November 3, 2026
8/36

Fig 5. (A) Example of two consecutive LWs performed by a single agent. First LW in blue and second in green. Each arrow represents the robot's heading at 100 ms intervals. Red arrows indicate the robot's heading during snapshots. Nest position as a white star. Cylinders as white circles. The background is a 50% whitened Google Earth image of the experimental site. (B) Example of two consecutive ZV visual homing trajectories from an experienced agent. Seventh test in blue, eighth in green. Tests started 12 meters south-east of the nest (red dot mark). Both visual searches are centered roughly on the nest. Scale differs between A and B.
November 3, 2026
9/36

Fig 6. All consecutive LWs of two agents. (A) All consecutive LWs for agent 2. Eight walks were recorded, each shown in a different color (blue for the first walk, orange for the second, etc.). The 6 m radius around the nest is indicated by a grey dashed circle. The first two LWs remain close to the nest. Subsequent walks are more directed and extend beyond the 6 m radius, and are therefore labelled as foraging walks. The plotted area is a m square. (B) Another example of a series of consecutive LWs, for agent 4. Nine walks were recorded. Cylinders as white dots.
ranged from 94.3 (classified as LW) to 191.4 s (classified as foraging walk, >6m from nest).
Simultaneously, scanning behaviour decreased. Pirouette frequency fell from 6.68 to 2.77 min between LW1 and the 5+ group (Fig. 7E; slope = -1.01 min per category, , ). We performed a similar analysis to Müller and Wehner [33], who recorded the number of pirouettes in a 3 m radius of the nest. We doubled that radius in our analysis. The number of pirouettes performed within 6 m of the nest decreased from 12.7 to 6.5 (Fig. 7F; -1.57 pirouettes per category, , ).
Forward speed also increased with experience (Fig. 7I), with mean speeds of 0.218, 0.292, 0.307, 0.325, and 0.336 m/s for LW1, LW2, LW3, LW4, and the 5+ group, respectively (mean within-agent slope = 0.0269 m/s per category, , ). The speed distribution was wide and the robot reached maximum speeds of up to 1.25 m/s (5 km/h) during LWs.
PI-visual-compass angular error decreased from to between LW1 and the 5+ group (Fig. 7G; per LW, , ), showing increasing agreement between the two navigation systems with accumulating experience, and explaining the overall transition from learning oriented behaviours to more directed walks. We also analysed the accuracy of the raw visual compass signal and the temporally filtered VC signal from our CX model in non naive agents (excluding the first LW). The mean absolute angular error between PI and VC was for the raw signal and after CX integration. Between consecutive predictions only 100 ms apart, the mean angular distance between consecutive predictions (recorded 100 ms apart in the CSV) fell from to , while the mean circular SD of ten successive predictions within a 1-s windows decreased from to . The raw VC signal was therefore very noisy, particularly given the change over only 100 ms, and temporal integration in the CX ring model stabilized it.
November 3, 2026
10/36

B
C
D
E
F
G
H
I
Fig 7. Changes in LW behaviour with increasing experience. Measurements are shown for the first four LWs, with all subsequent walks grouped as 5+. (A) Maximum distance from the nest increased approximately threefold between the first LW and the 5+ group. (B) Total distance travelled increased across LWs. (C) LW duration remained broadly similar, with a slight increase across walks. (D) Path straightness doubled between the first LW and the 5+ group. (E) Pirouette frequency decreased two-fold. (F) Number of pirouettes performed within a 6 m radius of the nest, following the same criterion [33], decreased twofold. (G) PI-VC angular error, which control learning behaviours, decreased across LWs (H) Proportion of foraging walks (> 6 m from the nest), increased and reached a plateau by the third LW. (I) Forward driving speed of the robot during successive LWs in meters per second.
November 3, 2026
11/36

B
C
D
Fig 8. Visual homing tests performance at different levels of experience. (A) Heatmap of all naive test trajectories. Cylinders as white dots, nest position as a white start. Grid size is 4 m by cell. Test start position as a red dot. (n = 6) (B) Heatmap of all homing tests from long-LW agents. Searches remain spread out, but are clearly centred on the nest. (n = 23) (C) Heatmap of all tests from foraging agents (n = 25). Trajectories are more directed and searches are more tightly centred on the nest. Long LWs data not shown. (D) Centroid distance to the nest during visual homing tests as a function of test ID. Search centroids were farther from the nest during early tests and became progressively closer after successive LWs, showing improved homing performance with experience.
November 3, 2026
12/36

Fig 9. Influence of the cylinders (A) Search behaviour was affected by the position of the cylinders. The agent was trained using cylinders positions shown in blue. Control tests shown in blue. All tests were conducted with an experienced agent which performed seven LWs prior to the tests. The orange trajectory shows the search after the cylinders were shifted 4 m to the northwest. The orange, shifted configuration was used only during tests. The search centre shifted in the same direction as the cylinders, showing that they strongly influenced visual homing. This is reminiscent of the classic landmark-displacement experiment of Tinbergen [42], in which shifting landmarks around a wasp nest displaced the subsequent search. (B) Nevertheless, the cylinders were not the only landmarks available to the agent. When they were removed, the agent was still able to perform a tight search centred near the true nest position, indicating that other visual landmarks, such as trees and buildings, could also support homing.
November 3, 2026
13/36

D
E
F

Fig 10. Pirouette and snapshot statistics. (A) PI angular error relative to the ground-truth nest direction provided by GNSS. (B) Distribution of snapshot headings relative to North, showing an approximately uniform distribution. (C) Distribution of snapshot headings relative to the nest direction, also approximately uniform. (D) Angular interval between consecutive snapshots, with two peaks around and . (E) Distance of snapshots from the nest. Most snapshots, and therefore most pirouettes, occurred within 5 m of the nest. (F) Inter-pirouette time interval averaged across LW1 and LW2, with a peak around 7 s.
November 3, 2026
14/36
4.2 Visual homing performances improved with experience
Across the 54 zero-vector tests (Fig. 4B), visual homing improved with experience. Tests were grouped as naive (no previous LW), short-LW (<1.4m from nest), long-LW (less than two walk >6m from nest) and foragers (at least 2 previous walk > 6 m), following the terminology used by Fleischmann et al. [12] (see methods). No agent fitted the short-LW category at any test in our data. Naive agents searches were not centered on the nest (Fig. 8A). Searches after long-LW experience were clearly centred on the nest, while those of experienced “forager” agents were even more tightly clustered around the nest position (Fig. 8B,C).
The improvement in homing performance with experience was particularly clear across successive tests: search-centroid distance to the nest decreased from 13.93 m during the first test walk to 1.81 m in the 5+ group (Fig. 8D). This was also evident within individual sequences: the seventh and eighth ZV tests of one experienced agent both converged toward the nest area from the release location (Fig. 5B).
4.3 The cylinders influenced visual homing but were not the only useful landmarks
In the original experiment of Fleischmann et al. [12], the ants inhabited a nearly featureless saltpan, with the array of three artificial cylinders providing the only prominent visual cues. There is no featureless desert near the University of Sussex so our experiment was conducted in a much richer environment. Whether the array of cylinders were relevant cues at all, compared to larger landmarks like trees and buildings, is therefore an important question. We tested the influence of the array by moving the three cylinders 4 m northwest. This shifted the centre of the visual search in the same direction (Fig. 9A), showing not only that the cylinders contributed to visual homing, but that they were the strongest visual cue for the visual compass model, despite appearing small relative to the other landmarks in the surrounding panorama (Fig. 3B,D). Finally, we conducted an additional test in which the three cylinders were removed to determine whether they were the only cues used by the robot. Despite their removal, the robot still performed a compact search near the original nest position (Fig. 9B), indicating that other local cues such as trees and building, not present in the original experiment, also supported homing.
4.4 Pirouettes and snapshot acquisition
The mean absolute PI angular error relative to the true GNSS nest direction was 1.42° Fig. 10A). The corresponding circular distribution had a mean resultant length of and a circular SD of 18.55° (). Averaged over the six agents, snapshot headings were approximately uniformly distributed relative to both North (Fig. 10B) and the nest direction (Fig. 10C). Thus, views were sampled in all directions, promoting a relatively uniform distribution of learning across the eight directionally tuned MBONs. Individual agent data also showed a uniform distribution. The total number of pirouettes recorded within the 6 m radius was 377, with a minimum of 40, a maximum of 84, and a mean of 63 pirouettes per agent. During pirouettes, the recorded mean absolute angular speed was 64.16°/s, and a pirouette completion took 4.39 seconds on average. The mean number of snapshots per pirouette was 5.20, with a mean SD of 0.85 and a mean interquartile range of 0.67.
Angular distance between consecutive snapshots peaked around and (Fig. 10D). Most snapshots, and therefore most pirouettes, occurred within 5 m of the nest (Fig. 10E).
November 3, 2026
15/36

B
C
D
E
F
Fig 11. Comparison of scanning-bout timing in ants and robotic learning walks. (A, B) Distribution of interbout intervals during the first (A) and second (B) learning walks of ants, digitized from Deeti and Cheng [7], with mean intervals of approximately 2.15 and 2.45 s, respectively. (C) Mean time of successive scanning bouts in ants, with linear regression slopes of 2.16 and 3.87 s/bout for LW1 and LW2, respectively ( and 0.99). (D, E) Distribution of inter-piroquette intervals during the first (D) and second (E) learning walks of six robotic agents, with mean intervals of s (n = 70) and s (n = 71), respectively (mean SD). (F) Mean time of successive robotic pirouettes, with regression slopes of 6.29 and 7.13 s/bout for LW1 and LW2, respectively ( and 0.9995). Error bars in (C) and (F) represent SD. Data in (A–C) were approximately digitized from Deeti and Cheng [7].
November 3, 2026
16/36

Fig 12. PI search error after LWs. (A) PI search locations after the 44 LWs. Red dots indicate the positions at which the PI search started, the black star indicates the true nest position, and the black cross indicates the centroid of the search locations. Grey lines show the trajectories produced when the robot was manually driven from the PI search position back to the nest. The background is a 50% whitened Google Earth image of the experimental site. The plotted area is m. (B) Percentage of snapshots for which the angular error between the PI-estimated nest direction and the GNSS-derived ground-truth exceeded , for four distance bins from the nest. (C) Absolute angular error between the PI-estimated and GNSS-derived nest directions for the same distance bins. Only measurements with GNSS horizontal accuracy below 10 cm were included in B and C. Average angular error decreased with higher distance to the nest.
November 3, 2026
17/36
4.5 Timing of pirouettes during learning walks
Deeti and Cheng [7] investigated the timing of scanning bouts during the first two LWs of Melophorus bagoti. A scanning bout was defined as a sequence of body rotations performed at one location, interrupted by stopping phases. From video recordings of eight first and six second learning walks, they found that the timing of successive scanning bouts was approximately linear, with regression slopes of 2.16 s/bout for LW1 () and 3.87 s/bout for LW2 (). The interbout intervals were variable, both between and within individuals. Digitizing their published distributions gave approximate mean intervals of 2.15 s for LW1 and 2.45 s for LW2 (Fig. 11A–C).
We analysed the timing of pirouettes during the first two LWs of our six agents. The minimum observed interval was approximately 4 s. During LW1, the agents performed 76 pirouettes, producing 70 inter-pirouette intervals, with a mean of s (mean SD). During LW2, they performed 77 pirouettes, producing 71 intervals, with a mean of s (Fig. 11D,E). The timing of successive pirouettes was highly linear, with regression slopes of 6.29 s/bout for LW1 () and 7.13 s/bout for LW2 (; Fig. 11F).
Overall, the robotic agents performed pirouettes at longer intervals than the ants observed by Deeti and Cheng [7], but showed similar temporal patterns: relatively regular intervals, a minimum delay between successive bouts, a roughly bell-shaped distribution of intervals, and an increase in the mean interval from LW1 to LW2.
4.6 PI search error during LWs
Across the 44 PI returns, the mean distance between the PI search location and the actual nest location was 2.1 m (Fig. 12A). The average length of the LWs was 51.8 m, with the smallest LW being 27.4 m, and the longest 92.5 m. The maximum PI search error was 8 m. The centroid of the 44 PI search locations was displaced by 1.06 m from the true nest position, indicating a bias –which origin is unknown–, toward the South-East direction. This displacement was greater than expected from sampling variation under a zero-centred Gaussian distribution with the same spatial covariance as the experimental data (parametric Monte-Carlo test, , ).
PI angular error during LWs was measured at snapshot locations using the absolute angular difference between the PI-estimated nest direction and the reference nest direction obtained from the GNSS signal. Snapshot measurements were grouped according to distance from the nest (0-1 m, 1-3 m, 3-6 m, and > 6 m), and only measurements with GNSS horizontal accuracy below 10 cm were included. PI angular error depended strongly on distance from the nest (Fig. 12B,C). Within 0-1 m, the mean absolute error was , with 32.1% of snapshots exceeding . PI error to the true nest direction decreased to at 1-3 m, with 12.8% of snapshots exceeding , and to at 3-6 m, with 7.9% snapshots exceeding . Beyond 6 m, the mean absolute error was , and only 3.9% of snapshots exceeded . Snapshots acquired close to the nest were therefore substantially more likely to be associated with large PI angular errors, and the PI teaching signal could even act counter productively by associating views to MBONs encoding for the opposite direction of the nest.
4.7 Summary
In this section, we showed that the main features of desert ant LWs were reproduced in the robot: walks progressively expanded and became straighter, scanning behaviour decreased, and overall, LWs eventually transitioned into foraging-like walks. In parallel, visual-homing performance improved with accumulating experience.
November 3, 2026
18/36
5 Conclusion
Our active learning model replicates LW behaviour and support learning on a robotic platform, under real-world conditions. The main result of this work is that the active-learning model developed in Misiek et al. [32] also operates on a physical robot. PI-visual-compass mismatch was sufficient to regulate the transition from short, pirouette-rich LWs to longer and straighter trajectories and replicate known features of desert ants Lws [12, 33, 50]. As experience accumulated, PI-visual-compass disagreement decreased, pirouette frequency decreased, walks expanded, and visual homing improved. To the best of my knowledge, this is the first robotic implementation reproducing the progression from the first LWs to the first foraging-like walks in ants. This shows that the model is not restricted to idealized simulations, but can operate in a real sensorimotor loop with noisy visual input, imperfect PI, wheel slippage, uneven terrain, and changing weather. Unfortunately, while we were able to quantify PI error, we could not analyze camera stabilization data as it was absent from the recording process at the time of the experiment.
PI search error in our robot reached similar levels as what is reported in the desert ant LW and insect PI literature. The mean absolute PI angular error during pirouettes was 1.42°, with and a circular SD of 18.55° (; Fig. 10A). This spread was comparable to that of nest-oriented fixations during ant LWs: SD=23.5° (, ) in Ocymyrmex robustior [33] and SD=16.0° (, ) in Cataglyphis aenescens [13]. The robot's PI search error was smaller, but in the same order of magnitude as reported in the PI literature. The robot searches had an average error of 2.1 m after LWs of a mean length of 51.8 m, compared with a median error of 5.9 m reported in Cataglyphis fortis after a 50 m path [21].
PI provided a noisy but sufficient teaching signal to scaffold visual learning. PI accuracy is particularly important in our active-learning model because PI provides both the homing signal and the teaching direction used to train the visual compass during LWs. Close to the nest, the short PI vector produces large angular uncertainty, meaning that some LWs are associated with bad or even counterproductive snapshots, which encode an imprecise or even the opposite direction of the nest. Nevertheless, the distribution remains centred on the true nest direction, so these errors tend to cancel across the many snapshots acquired over successive LWs. Thus, despite substantial noise, especially close to the nest, PI still provided a useful teaching signal on average.
Sources of PI error. In Misiek et al. [32], idealised simulations included independent, fixed step-wise compass noise, following Wystrach et al. [47]. Here, no artificial noise was added to PI, so errors arose from either the terrain (i.e. slope, uneven ground with holes and branches) or the robot itself, including sensor noise, and systematic biases such as (slightly) different wheel diameters or persistent wheel slip. Unlike independent step-wise noise, which can partly cancel over time, sustained biases can accumulate rapidly. In our experiments, the PI signal showed a statistically significant systematic bias, with the estimated nest position shifted by 1.06 m towards the southeast. We included several measures to avoid biases arising from the robot itself, such as randomising spiralling and scan direction, which should reduce systematic effects caused by factors such as unequal wheel diameters, to which encoder-based PI is particularly sensitive. The remaining bias therefore likely originated from the terrain.
Wheel slippage was particularly frequent during pirouettes and turning (personal observation), a known source of dead-reckoning error in skid-steer robots [28, 49]. A
November 3, 2026
19/36 substantial fraction of PI error may therefore have accumulated during pirouettes, although this remains to be tested rigorously. During rotation, opposite encoder signals from the left and right wheels cancelled out, but not when one wheel slipped. Thus, ignoring translational encoder updates during pirouettes could potential help suppressing pirouette induced PI error. The size and the nature of the body of the navigational agent may expose them to very different sources of noise, and pirouettes induced error is likely to be far less consequential in ants. Indeed, the robot was approximately 50 cm wide, so each wheel travelled about 1.6 m during a full 360° pirouette, providing substantial opportunity for slippage and accumulating errors. In ants, by contrast, the corresponding rotational displacement is only on the millimetre scale and is dwarfed by the distance travelled between successive pirouettes. Additionally, the probability of an ant's legs slipping during rotation is likely different from that of a skid-steer robot. Nevertheless, despite these morphological differences, our results demonstrate that the model can operate under real-world conditions, including sources of sensory and motor noise that are difficult to anticipate or reproduce in simulation.
Although our robotic implementation introduces realistic sensory and mechanical sources of PI error, it still omits a potentially important biological limitation: the finite representational capacity of the neural circuit. In our model, the home vector is distributed across eight directional units, but their activity has no upper bound. In contrast, the CPU4 model of Stone et al. [40] uses bounded neural activity, such that sufficiently long paths eventually saturate the PI memory. A biological PI system may therefore lose precision as the encoded vector grows because of finite neural resolution and dynamic range, independently of accumulated sensory noise or systematic bias. Such representational limitations could potentially constitute a major source of PI error in insects. More generally, constraints including finite neuron numbers, firing ranges, spiking variability and memory decay are absent from our implementation. Interestingly, behavioural work in Cataglyphis fortis found that PI uncertainty increased with home-vector length rather than with the total distance walked [31]. This is consistent with a limitation associated with representing increasingly large home vectors, although it does not prove that finite neural capacity is the underlying cause.
Robustness to visual noise The experiments show that the model can operate despite real-world constraints and noise, such as changes in illumination and weather, PI error, camera pitch, wheel slippage, and uneven terrain. However, each learning sequence was completed within a single experimental session, never lasting more than an hour. Even over such a short period, the panorama changed substantially, particularly through changes in cloud cover and illumination, and the model continued to perform well without explicit sky segmentation, which has been implemented in previous insect navigation models using natural images [3, 9, 10, 37, 38]. The only step we took to reduce the influence of the sky on the visual compass was to remove a 90° cone from the dorsal region of the panoramic visual input, which never contained any landmarks. However, a substantial portion of the sky remained accessible to the visual compass 3. With the present model, a realistic navigation task could be conducted by distributing training over the 2–4 day timescale over which ants perform LWs [12, 13]. The robot could then perform repeated long outward journeys followed by homing over subsequent days, mimicking ant foraging trips under different weather conditions and at different times of day. This would test whether homing remains robust across the temporal and visual variability experienced by foraging ants, while also providing the opportunity to assess the benefit of sky segmentation in a realistic navigation task, if two experimental groups were tested, one with sky segmentation and one without.
November 3, 2026
20/36
Our pirouette model is a useful simplification of the ants scans during LWs. Unlike our simulated model [32], which included both full and partial pirouettes with stochastic snapshot acquisition, the robot performed only full 360° pirouettes, acquiring snapshots at a fixed frequency during rotation, with variability in angular intervals arising from motor noise. The angular distance between successive fixations of the same scan followed a similar bimodal distribution to that reported by Freas and Wystrach [15] in Melophorus bagoti. Like ants, our model produced equal proportions of right- and left-directed turns, as expected from the underlying Bernoulli process. A similar process is implemented in the model to randomly choose between clockwise and anti-clowise spiralling at the beginning of a LW. Randomized scans direction prevented the introduction of systematic biases in the PI and visual-compass systems and promoted more uniform sampling of the panorama. Nevertheless, the distribution reported by Freas and Wystrach [15] is averaged across ants, and whether consistent preferences for scan direction occur at the individual level remains to be tested. In our robot, the angular distance between consecutive snapshots peaked around -65° and +65° (Fig. 10D). Freas and Wystrach [15] reports almost twice smaller saccadic interval, with their reported distribution exhibiting peaks at ~ 35° and ~ 35°. On average, our robot took 4.39 seconds to complete a pirouette, Deeti and Cheng [7] reported a median pirouette duration of approximately 0.8 s in Melophorus bagoti, with individual bouts ranging from about 0.3 to 1.7 s, while two examples of pirouettes shown by Fleischmann et al. [13] in Cataglyphis lasted approximately 1.5 and 2 s. We also find that the mean number of snapshots per pirouette was 5.20, with a mean interquartile range of 0.67. This is comparable to the median of four stopping phases per pirouette reported in Cataglyphis noda, although with a larger interquartile range of 1.75 [19]. The lower variability in our robot stems from the simple pirouette mechanism, with invariable 360° rotations, with snapshots acquired at a stable 1.3 Hz rate, whereas C. noda performs more complex scans comprising both full and partial pirouettes [13] and also possibly frequent reversal of scan direction as observed in Melophorus Bagoti [15]. Finally, the robot captured snapshots while rotating during pirouettes, without the fixations observed in ants [13, 15], and this did not seem to prevent learning (see methods). Overall, our simplistic robotic pirouette model is closer to the uninterrupted, 360° voltes observed in Cataglyphis ants [13], than pirouettes. Ant scans therefore appear to be faster, more complex, typically spanning a smaller amplitude than our robot's 360° pirouettes, and also contain more densely spaced fixations. Nevertheless, our simple pirouette model fulfilled its role in supporting visual learning and promoting uniform sampling of the panorama.
Our pirouette-generation process reproduces the inter-scan interval distribution of Melophorus bagoti. Unlike our simulated model [32], which triggered pirouettes through Bernoulli trials, producing approximately exponential inter-pirouette intervals, the robot used an error-accumulation mechanism, producing more regularly spaced pirouettes with a bell-shaped interval distribution and an apparent "refractory period". In our robot, the average inter-pirouette interval during the first and second LW showed a peaked distribution, with a minimum observed interval of 4 s, and a mean of 6.54 s during LW1 and 7.96 s during LW2 (Fig. 10F). A similar peaked distribution of inter-scanning-bout intervals was reported by Deeti and Cheng [7] during the first LWs of Melophorus bagoti, although scanning occurred considerably more frequently, with mean intervals of 2.16 s during LW1 and 3.87 s during LW2. Very short intervals were also rare in the ant data, suggesting an apparent "refractory period" of approximately 1 s, compared with 4 s in our robot. In our robot, this bell shaped distribution and refractory period arises from the error-accumulation process described in Section 6.1. The model therefore reproduced
November 3, 2026
21/36 three temporal features of ant scanning: a peaked interval distribution, an apparent refractory period, and an increase in inter-scan intervals from LW1 to LW2. This suggests that a similar error accumulation process could control the onset of scans during ants LWs, spacing scans more regularly than a memoryless random process. By accumulating PI-VC angular error rather than, for example, time or distance, the model ensures that pirouette behaviour disappears once the visual compass learns and PI and VC strategies start to agree. In contrast to LWs, Deeti et al. [8] found that inter-scanning-bout intervals during homing followed an approximately exponential distribution, consistent with a random-rate Poisson process, suggesting that scan triggering may differ between learning and homing.
Limitations of our replication: size of the robot We used a 15 kg, approximately 50 cm-wide robot to model navigation in desert ants that are roughly 1 cm long and weigh only a few milligrams [11, 29]. Using large robots to model small insects is common in robotic implementations of insect navigation: Sahabot measured 42 × 42 × 28 cm and weighed approximately 8 kg [27], AntBot had a diameter of 45 cm and weighed 2.3 kg [11]. The QCar used by Jesusanmi et al. [25] measured approximately 39 × 21 × 21 cm and weighed 2.7 kg. Finally, Antcar used by Gattaux et al. [17] measured approximately 24 × 20 × 13 cm. Nevertheless, recent work has moved towards considerably greater miniaturisation, with for example AntFlie weighing only 33 g and spanning approximately 9 cm [16]. The large size and weight of the robot were necessary to accommodate the onboard hardware, provide enough battery capacity for several hours of uninterrupted sequences of LWs and tests, traverse rough outdoor terrain without being repeatedly stopped by small obstacles and needing human intervention, and reach sufficient speeds for long-range navigation over hundreds of metres.
Limitations of our replication: scaled up dimensions We doubled the dimensions of the experiment because we initially expected substantially larger GNSS errors than the mean error of 1.40 cm ultimately obtained, and anticipated that increasing the spatial dimensions would reduce the relative impact of this positioning error. Additionally, being half a meter in size, the robot itself was larger than many early ants LWs, which often remain within 30 cm of the nest [24, 50]. This provides an additional justification for scaling up the spatial dimensions of the experiment. Accordingly, cylinders were placed 4 rather than 2 m from the nest, their diameter increased from 22 to 45 cm, and the LW threshold was increased from 3 to 6 m. We argue that the larger scale of our protocol does not affect the scope of our results. The relevant visual features were scaled accordingly (see Results), and the robot itself was already many times larger than an ant, making an exact reproduction of the protocol scale not necessarily meaningful. The parameters of the active-learning model were thus adjusted so that the robot generated (twice) larger versions of the LWs observed in ants. Nevertheless, the robot did not reproduce the very short LWs, extending only tenths of centimeters from the nest, reported in ants [13, 24, 50]; indeed, none of our trajectories would fall within the “short LW” (<0.70 cm from nest, 140 cm in our work) category described by Fleischmann et al. [13]. This indicates that the model parameters and steering mechanisms could still be refined to better match ants’ behaviours. Having a lower viewpoints or sufficient ventral field of view to sample nearby visual cues may also help close range navigation. Our robot camera, by contrast, was mounted 29 cm above the ground, and its FOV extended only 27.5° below the horizon, thus increasing the influence of distant cues in the visual input. Future experiments aiming to reproduce very short LWs at the true scale of LWs may therefore benefit from smaller, potentially legged robotic platforms.
November 3, 2026
22/36
Limitations of our replication: richer panorama Visual-homing abilities improved with experience: experienced agents produced directed trajectories and compact searches around the nest, whereas naive agents did not. Displacing the three cylinders shifted the centre of the visual search in the same direction, showing that they strongly influenced the visual compass, while their removal did not prevent homing, showing that the robot had also learned information from the wider panorama. This richer panorama differed from the original experiment of Fleischmann et al. [12], in which the artificial cylinders were the only available landmarks, and may have made the environment easier to learn.
It is possible that this difference influenced the transition to foraging-like walks which occurred after only one to three LWs, earlier than the 2–7 LWs reported by Fleischmann et al. [12]. Alternatively, the apparently early transition to longer walks may simply reflect that the motor sequence promoted relatively large LWs from the outset, even in naive agents. Indeed, we have seen that no LW were classified as 'short LWs' according to the terminology of Fleischmann et al. [12], which indicates that our robot's early LWs were simply larger than ants LWs, and that the foraging threshold may therefore have been crossed earlier than real ants did. Finally, the earlier transition may be because the parameters selected in our model shifted the exploration-exploitation trade-off towards exploitation. For example, spiraling was triggered when the instantaneous PI-VC angular error exceeded ; lowering this threshold would likely have prolonged LWs before the robot escaped the 6 m nest radius. This would shift the exploration-exploitation trade-off towards greater investment in learning around the nest before initiating foraging.
Limitations of the model: when to stop learning walks In Misiek et al. [32], we argued that the active-learning algorithm requires a way to stop learning when the visual environment is uninformative or cannot be learned. The present experiments highlight a related limitation: the model also needs to determine when to stop expressing LW behaviour altogether. Desert ants perform a limited series of nest-centred LWs, spanning from centimetres to a few metres, before switching to much longer foraging journeys extending tens or even hundreds of metres from the nest [4, 21, 50]. In contrast, our model has no such transition: the longest of the 54 recorded walks reached 27 m from the nest despite being preceded by eight LWs. A more complete model should therefore suppress the LW-specific behavioural rules beyond the nest vicinity: pirouettes and nest-centred spiralling should cease, and PI-VC error should no longer accumulate towards a threshold that triggers premature homing. In particular, a large PI-VC discrepancy far from the nest should not cause the agent to abandon a foraging journey and return home. Importantly, ending LW behaviour does not imply ending visual learning. Ants continue to acquire visual information along their foraging routes, and recent behavioural work suggests that route views are acquired through behaviours distinct from pre-foraging nest-centred learning walks [14]. Recent robotic models similarly distinguish nest-centred visual homing from route following, using different organisations of visual memory for these two navigational regimes [17, 18].
Toward a fully autonomous learning-walk sequence After each PI-guided return, the robot had to be manually repositioned at the nest and its PI vector reset before the next LW could begin. PI was sufficient to return the robot to the vicinity of the nest, but not to localise the nest precisely, and without manual correction PI error would have accumulated across successive LWs. Achieving a fully autonomous LW sequence therefore requires the robot first to localise and reach the nest, and then reliably detect that it has actually arrived, allowing the PI state to be reset before the
November 3, 2026
23/36 next LW. This distinction is important in ants: familiar cues at the nest entrance are not sufficient to reset PI; reset occurs after entering the nest [26]. A visual solution to nest detection was recently demonstrated by Gattaux et al. [17], who used a dedicated nest MBON to modulate robot speed according to the familiarity of nest-centred views. Across three trials, the robot stopped 0, 0.02 and 1.04 m from the nest. Although promising, such variability would be problematic for our application, as resetting PI before the robot has actually reached the nest (1.04 m away) would introduce an error into the subsequent LW. A fully autonomous sequence will therefore require a clear and reliable signal that the nest has actually been reached before accumulated PI error can be reset between successive LWs.
6 Methods
6.1 Robotic platform
Experiments were conducted on a custom-built terrestrial robot (Figure 1). High-level control, navigation algorithms and visual processing were executed on an NVIDIA Jetson TX1, while low-level sensor acquisition, including heading, wheel encoders, and obstacle detection, was handled by an Arduino Uno. Motor control was performed by two RoboClaw 2×15A motor controllers. The robot chassis was 82 mm high, 383 mm wide, and 558 mm long, and the camera was mounted 290 mm above the ground. The wheels had a diameter of 270 mm. The robot weighed 15 kg. At full motor power, it could reach a forward speed of 1.7 m/s (~6 km/h).
The robot was powered by a 6S 22.2 V, 20000 mah LiPo battery. The battery supplied the motor controllers directly, while voltage regulators provided 18 V to the Jetson TX1 and 5 V to a powered USB hub used to connect the camera, 2 motor controllers, joystick, Arduino and 2 GNSS ports to the Jetson (Figure 13). The Jetson could be accessed locally by connecting a screen or remotely via SSH. The main Python control program was configured to launch automatically at startup, and experimental data were recorded onboard as CSV files, one file for each LW or test. The robot could be manually controlled during experiments using a Logitech F710 joystick.
Motor actuation was achieved using four IG42 DC gear motors driving four pneumatic wheels independently. The robot used differential drive, with the left and right wheels driven at different speeds to control turning. The wheels were partially deflated to increase traction and provide a degree of passive suspension, reducing vibrations and wheel slip on uneven terrain. Each motor was equipped with an integrated Hall-effect quadrature encoder (Figure 13). During the experiments, the two front wheel encoders were connected and their signals were combined in a signed signal to estimate forward and backward motion for PI. Rotational motion caused the integrated signal between the two wheels to cancel out. One of the rear Hall-effect encoders was not functional, which is why only the front encoders were used to compute the PI signal. PI was still surprisingly accurate with this setup.
Heading information was obtained from a Bosch BNO055 inertial measurement unit (Figure 13). The sensor was operated in IMUPLUS mode, providing an orientation estimate from on-chip fusion of gyroscope and accelerometer measurements. The Arduino transmitted yaw heading, encoder, and obstacle-distance measurements to the Jetson through a serial connection at approximately 20 Hz. Communication was bidirectional, with the Jetson also sending auxiliary commands for an onboard display and a buzzer.
A 16×2 LCD screen and an active buzzer provided immediate feedback during field experiments (Figure 13). The LCD displayed the encoder signal and compass heading,
November 3, 2026
24/36

Fig 13. Schema of the robot platform
November 3, 2026
25/36 together with the GNSS RTK status, number of satellites, and estimated horizontal positioning accuracy. This allowed the operation of the encoders, compass, and GNSS receiver, as well as the quality of the GNSS position estimate, to be checked directly on the robot. A 5V buzzer provided audible confirmation when a visual snapshot was successfully acquired. The buzzer also confirmed when CSV recording started at the beginning of an experimental trial.
Visual input was acquired using a Kodak PIXPRO SP360 4K panoramic RGB camera mounted at the top of the robot (Figure 1 and Figure 13). The camera uses a fixed-focus 235° fisheye lens, producing a circular panoramic image that was subsequently unwrapped into a rectangular representation for visual processing.
6.2 Visual processing and visual compass model
Camera frames were acquired continuously in a separate thread, while the 20 Hz control loop used the latest available frame to generate visual-compass predictions. The current frame was resized to 100 × 100 pixels before being passed through the visual pipeline. The fisheye image was unwrapped to a 50 × 50 panoramic representation, vertically cropped to 50 × 28 pixels, reduced to the green channel, and processed using a 3 × 3 centre-surround lateral-inhibition filter. The resulting image was finally resized to 10 × 10 pixels and flattened to form the 100-element input to the visual-compass model. The visual compass consisted of 20,000 KCs with five visual inputs per KC, 1% sparse activity, and eight directionally tuned MBONs. The implementation followed the model described in Misiek et al. [32].
6.3 Path integration
Path integration used the same abstract, CX inspired model used in Misiek et al. [32], with inertial heading measurements provided by the BNO055 and wheel-encoder information. In contrast to the simulations, no artificial heading or stride noise was added. The PI model was already exposed to substantial real-world noise, such as the evident slippage of the wheel against the grassy and uneven ground, during the experiments.
6.4 Behavioural modes
During the experiment, the robot was controlled using a Logitech F710 wireless gamepad, connected to the Jetson through its USB receiver. The buttons of the joystick triggered predefined commands, including activating manual control, PI homing, visual homing, starting a LW (autonomous sequence including spiralling behaviour intersped with pirouettes), start CSV recording, reset the PI vector, consolidate visual memories and create a new agent. (Figure 13)
Path integration homing PI homing mode used only the PI vector to perform homing. During path-integration homing, the egocentric PI direction was used directly as a steering error. When
the robot rotated in place with
Once the angular error was within 20°, the robot moved forward with two third of its maximal power.
November 3, 2026
26/36
Visual homing A separate visual-homing mode used visual-compass predictions only to return to the nest. Because the visual compass produced an egocentric nest direction, this prediction was first transformed into an allocentric direction using the current BNO055 heading. This direction was then provided to a separate central-complex-inspired ring representation, which acted as a low-pass filter.
The CX ring consisted of eight neurons with preferred directions spaced by 45°. For each allocentric visual-compass prediction , the activity of neuron was updated according to
where is the neuron's preferred direction and is the update gain. The represented direction was then decoded from the population vector,
Thus, successive visual-compass predictions were integrated into a single directional estimate, reducing the influence of transient prediction noise.
Without this integration step, visual-compass predictions were highly noisy, producing erratic steering movements that prevented stable navigation. The CX ring smoothed successive visual predictions into a more stable directional signal for steering.[]
Without this integration step, visual-compass predictions were highly noisy, producing erratic steering movements that prevented stable navigation. The CX ring smoothed successive visual predictions into a more stable directional signal for steering. This is conceptually similar to Wystrach et al. [46], where successive visual-memory signals are integrated in the CX to update a persistent goal-heading representation.
The direction represented by the CX ring (the visual-compass goal) was compared with the robot's current heading to compute an angular steering error. The robot then steered towards this goal, with rotational speed increasing and forward speed decreasing as the angular error increased.
During visual homing tests, the robot forward speed was of 0.495 m/s on average.
Spiraling behaviour During a LW, the visual compass prediction was compared with the current PI estimate. Their absolute angular disagreement was defined as
such that ranged from 0 for complete agreement to 1 for a disagreement. When the PI and visual compass directions differed by less than , the robot moved outward. Otherwise, the robot followed the spiral direction. The spiral direction was defined as the PI vector, offset by
where determined the direction of the search. During this phase, the robot moved at a third of its maximum power, while continuously steering toward the desired direction. This mechanism allowed the robot to continuing spiralling around the nest until the visual-compass error decreased with accumulating experience. A angle was chosen for spiralling instead of a angle, to counteract for the residual outward motion observed in naive agent.
November 3, 2026
27/36
Pirouettes The normalized PI-visual-compass disagreement was accumulated during spiralling behaviour. When the local accumulated error exceeded a value of 15 (180° error = 1), the robot initiated a pirouette. The robot stopped translating and started a pirouette. It rotated in place in a randomly selected direction (to the left or to the right), at half power. Visual snapshots were acquired during the rotation at a rate of approximately 1.3 Hz. Snapshots were captured while the robot rotated, without fixations. Captured images showed no visible motion blur (Fig. 3), and the snapshot acquisition process was very fast, occurring on the order of tens of milliseconds, making it likely that the recorded view and heading closely matched those at the time the snapshot was triggered. Whether fixation periods would nevertheless improve subsequent homing performance remains to be tested.
Completion of a pirouette was detected when the robot moved returned to within 25° of the initial orientation before the pirouette. The error accumulator was then reset and spiralling behaviour resumed.
A second accumulator integrated PI-visual-compass error over the full LW. When this accumulated error exceeded a value of 200, the controller automatically switched to PI homing mode.
PI continued to be integrated during pirouettes, and the opposite signal from the left and right front wheels encoders mostly cancelled out.
6.5 Obstacle avoidance
Obstacle detection was supported by two HC-SR04 ultrasonic range sensors mounted at the front of the robot, one on each side near the front wheels (Figure 1 and Figure 13). The two HC-SR04 were connected to the Arduino. When a cylinder was detected within approximately 60 cm, the robot reversed to avoid a collision.
6.6 GNSS Tracking
The robot spatial position was measured using an RTK-enabled u-blox ZED-F9P GNSS receiver mounted on the robot and connected to the Jetson (Figure 13). The GNSS antenna was mounted as close as possible to the center of the robot, 4 cm from the axis of rotation. Instead of using a local base station, RTK correction data were received over the internet from the public RTK2GO service using NTRIP. Corrections were provided by the Ashcombe Farm base station, located approximately 4 km from the experimental site, and transmitted to the ZED-F9P receiver via an LTE modem. The ZED-F9P applied these corrections to its GNSS measurements in real time, providing centimetre-scale positioning when an RTK signal was available, and approximately 0.5–2 m accuracy otherwise. Latitude, longitude, RTK status, satellite count, horizontal position accuracy, ground speed, and related GNSS measurements were recorded together with the robot's navigation state. GNSS positions were converted to local Cartesian easting and northing coordinates for subsequent trajectory analysis.
6.7 Reliability of the GNSS signal during recordings
Throughout our LWs and visual homing tests, we recorded the trajectories using GNSS. The GNSS module provides a measure of horizontal accuracy, so we could verify that the recorded data was accurate and remove low precision data when necessary. We found that the GNSS signal was more accurate on 15 August than on 16 August (Fig. 14A,C).
For agents 1–4, tested on 15 August, mean horizontal accuracy was 4.89 cm and median accuracy was 1.40 cm. For agents 5 and 6, tested on 16 August, the median
November 3, 2026
28/36

B
C
D
Fig 14. GNSS horizontal accuracy. (A) Horizontal accuracy over time for agents 1–4, tested on 15 August 2026. Each line corresponds to a LW (blue) or visual homing test (red). Most measurements were below 5 cm and nearly all below 20 cm; the worst was approximately 2 m. (B) Distribution of horizontal accuracy across the four GNSS statuses for agents 1–6. Blue (left flattened box): RTK fixed; orange: RTK float; green: no RTK; red: bad GNSS fix. Accuracy was high for RTK fixed and RTK float states, ranging from very precise in RTK fixed (1.4 cm) to unusable in bad GNSS fix (>10m). (C) Horizontal accuracy for agents 5 and 6, tested on 16 August 2026. Accuracy exceeded 2 m in four walks and even reached up to 33 m. One walk showed sustained poor accuracy above 2 m. (D) Proportion of recording time spent in each GNSS status. Agents 1–4 (left), tested on 15 August, spent almost all recording time in RTK fixed or RTK float states. Agents 5–6 (right), tested on 16 August, spent more time without RTK and nearly 1% of the data was completely unusable due to bad GNSS fix.
November 3, 2026
29/36 remained 1.40 cm, but short periods of substantially poorer GNSS accuracy increased the mean to 68.10 cm (Fig. 14C).
We analysed GNSS status across all trials (Fig. 14B). RTK fixed measurements had a mean of 26.15 satellites used and 1.43 cm horizontal accuracy, while RTK float measurements averaged 25.10 satellites and 8.99 cm. Without RTK correction, accuracy decreased to 152.64 cm, with 21.21 satellites on average. Bad GNSS fixes were substantially worse, with only 3.23 satellites used and 14.18 m horizontal accuracy (Fig. 14B).
Agents 1–4 spent only 3.6% of recording time without RTK correction and never entered a bad GNSS fix. In contrast, agents 5 and 6 spent 13.6% of recording time without RTK correction and 0.8% in bad GNSS fix, corresponding to brief periods of very poor accuracy with errors reaching 33 m (Fig. 14D). Eventually, the cause of the degraded GNSS fixes on the second day remained unclear, but they coincided with a substantial loss of satellites and poorer satellite geometry. Datapoints with an estimated horizontal error greater than 1 m were removed from the analyses in the following result section, corresponding to 0.20% of CSV rows for agents 1–4 and 7.86% for agents 5–6.
6.8 Analysis
All analyses were performed from the CSV files recorded onboard during each LW or test, which contained the robot's navigation state together with measurements from the BNO055, wheel encoders and ZED-F9P GNSS receiver. Data were recorded at 10 Hz, corresponding to one CSV row every 100 ms. Position was analysed from the ZED-F9P coordinates converted to local easting and northing, while forward speed was taken directly from the GNSS ground-speed estimate. For analyses requiring the robot's allocentric heading, the fast BNO055 yaw signal was anchored to the GNSS direction of travel: the GNSS–BNO angular offset was estimated and slowly updated during reliable, approximately straight forward motion, and held fixed during rotations and pirouettes, when GNSS course is unreliable. Path length was obtained by summing successive GNSS displacements, and path straightness was defined as the maximum displacement from the starting position divided by the total distance travelled. Unfortunately, pitch and roll data from the BNO055 were not recorded during the experiments and could therefore not be used to assess camera stabilisation.
References
[1] Amin, A.A., Philippides, A., Graham, P.: Ant visual route navigation: How the fine details of behaviour promote successful route performance and convergence. PLoS Comput. Biol. 21(9), e1012798 (Sep 2025)
[2] Baddeley, B., Graham, P., Husbands, P., Philippides, A.: A model of ant route navigation driven by scene familiarity. PLoS Computational Biology 8(1) (2012), doi:10.1371/journal.pcbi.1002336
[3] Basten, K., Mallot, H.A.: Simulated visual homing in desert ant natural environments: efficiency of skyline cues. Biological Cybernetics 102(5), 413–425 (Mar 2010), ISSN 1432-0770, doi:10.1007/s00422-010-0375-9, URL http://dx.doi.org/10.1007/s00422-010-0375-9
[4] Buehlmann, C., Hansson, B.S., Knaden, M.: Desert ants learn vibration and magnetic landmarks. PLoS ONE 7(3), e33117 (Mar 2012), ISSN 1932-6203,
November 3, 2026
30/36 doi:10.1371/journal.pone.0033117, URL http://dx.doi.org/10.1371/journal.pone.0033117
[5] Cartwright, B.A., Collett, T.S.: Landmark learning in bees: Experiments and models. Journal of Comparative Physiology? A 151(4), 521–543 (1983), doi:10.1007/bf00605469
[6] Collett, T.S., Graham, P., Harris, R.A., Hempel-de-Ibarra, N.: Navigational Memories in Ants and Bees: Memory Retrieval When Selecting and Following Routes, p. 123–172. Elsevier (2006), ISBN 9780120045365, doi:10.1016/s0065-3454(06)36003-2, URL http://dx.doi.org/10.1016/S0065-3454(06)36003-2
[7] Deeti, S., Cheng, K.: Learning walks in an australian desert ant, melophorus bagoti. J. Exp. Biol. 224(16) (Jul 2021)
[8] Deeti, S., Cheng, K., Graham, P., Wystrach, A.: Scanning behaviour in ants: an interplay between random-rate processes and oscillators. Journal of Comparative Physiology A 209(4), 625–639 (Apr 2023), ISSN 1432-1351, doi:10.1007/s00359-023-01628-8, URL http://dx.doi.org/10.1007/s00359-023-01628-8
[9] Differt, D., Möller, R.: Insect models of illumination-invariant skyline extraction from uv and green channels. Journal of Theoretical Biology 380, 444–462 (2015), ISSN 0022-5193, doi:10.1016/j.jtbi.2015.06.020, URL http://dx.doi.org/10.1016/j.jtbi.2015.06.020
[10] Differt, D., Möller, R.: Spectral skyline separation: Extended landmark databases and panoramic imaging. Sensors 16(10), 1614 (2016), ISSN 1424-8220, doi:10.3390/s16101614, URL http://dx.doi.org/10.3390/s16101614
[11] Dupeyroux, J., Serres, J.R., Viollet, S.: Antbot: A six-legged walking robot able to home like desert ants in outdoor environments. Science Robotics 4(27) (Feb 2019), ISSN 2470-9476, doi:10.1126/scirobotics.aau0307, URL http://dx.doi.org/10.1126/scirobotics.aau0307
[12] Fleischmann, P.N., Christian, M., Müller, V.L., Rössler, W., Wehner, R.: Ontogeny of learning walks and the acquisition of landmark information in desert ants, Cataglyphis fortis. J. Exp. Biol. 219(19), 3137–3145 (Jan 2016)
[13] Fleischmann, P.N., Grob, R., Wehner, R., Rössler, W.: Species-specific differences in the fine structure of learning walk elements incataglyphisants. Journal of Experimental Biology 220(13), 2426–2435 (Jul 2017), doi:10.1242/jeb.158147
[14] Freas, C.A., Cheng, K.: Visual learning, route formation and the choreography of looking back in desert ants, melophorus bagoti. Animal Behaviour 222, 123125 (Apr 2025), ISSN 0003-3472, doi:10.1016/j.anbehav.2025.123125, URL http://dx.doi.org/10.1016/j.anbehav.2025.123125
[15] Freas, C.A., Wystrach, A.: Scanning and active sampling behaviours emerge from conserved insect neural circuits (2026), doi:10.7554/elife.110165, URL http://dx.doi.org/10.7554/eLife.110165
[16] Gattaux, G., Diallo, H., Serres, J.R., Wystrach, A., Ruffier, F.: Antflie: Frugal visual teach and repeat on narrow fov micro-drones. IEEE Robotics and Automation Letters 11(4), 4617–4624 (Apr 2026), ISSN 2377-3774, doi:10.1109/lra.2026.3667486, URL http://dx.doi.org/10.1109/LRA.2026.3667486
November 3, 2026
31/36
[17] Gattaux, G.G., Serres, J.R., Ruffier, F., Wystrach, A.: Visual Homing in Outdoor Robots Using Mushroom Body Circuits and Learning Walks, p. 456–468. Springer Nature Switzerland (Nov 2025), ISBN 9783032074485, doi:10.1007/978-3-032-07448-5_38, URL http://dx.doi.org/10.1007/978-3-032-07448-5_38
[18] Gattaux, G.G., Wystrach, A., Serres, J.R., Ruffier, F.: Route-centric ant-inspired memories enable panoramic route-following in a car-like robot. Nature Communications 16(1) (2025), ISSN 2041-1723, doi:10.1038/s41467-025-62327-3, URL http://dx.doi.org/10.1038/s41467-025-62327-3
[19] Grob, R., Fleischmann, P.N., Grübel, K., Wehner, R., Rössler, W.: The role of celestial compass information in cataglyphis ants during learning walks and for neuroplasticity in the central complex and mushroom bodies. Frontiers in Behavioral Neuroscience 11 (Nov 2017), ISSN 1662-5153, doi:10.3389/fnbeh.2017.00226, URL http://dx.doi.org/10.3389/fnbeh.2017.00226
[20] Hofer, S., Bekris, K., Handa, A., Gamboa, J.C., Mozifian, M., Golemo, F., Atkeson, C., Fox, D., Goldberg, K., Leonard, J., Karen Liu, C., Peters, J., Song, S., Welinder, P., White, M.: Sim2real in robotics and automation: Applications and challenges. IEEE Transactions on Automation Science and Engineering 18(2), 398–400 (2021), doi:10.1109/TASE.2021.3064065
[21] Huber, R., Knaden, M.: Egocentric and geocentric navigation during extremely long foraging paths of desert ants. J. Comp. Physiol. A Neuroethol. Sens. Neural Behav. Physiol. 201(6), 609–616 (Jun 2015)
[22] Jakobi, N.: Evolutionary robotics and the radical envelope-of-noise hypothesis. Adaptive Behavior 6(2), 325–368 (1997), ISSN 1741-2633, doi:10.1177/105971239700600205, URL http://dx.doi.org/10.1177/105971239700600205
[23] Jakobi, N., Husbands, P., Harvey, I.: Noise and the reality gap: The use of simulation in evolutionary robotics, p. 704–720. Springer Berlin Heidelberg (1995), ISBN 9783540492863, doi:10.1007/3-540-59496-5_337, URL http://dx.doi.org/10.1007/3-540-59496-5_337
[24] Jayatilaka, P., Murray, T., Narendra, A., Zeil, J.: The choreography of learning walks in the australian jack jumper ant myrmecia croslandi. J. Exp. Biol. 221(Pt 20), jeb185306 (Oct 2018)
[25] Jesusanmi, O.O., Amin, A.A., Domcsek, N., Knight, J.C., Philippides, A., Nowotny, T., Graham, P.: Investigating visual navigation using spiking neural network models of the insect mushroom bodies. Frontiers in Physiology 15 (May 2024), doi:10.3389/fphys.2024.1379977
[26] Knaden, M., Wehner, R.: Ant navigation: resetting the path integrator. Journal of Experimental Biology 209(1), 26–31 (Jan 2006), ISSN 0022-0949, doi:10.1242/jeb.01976, URL http://dx.doi.org/10.1242/jeb.01976
[27] Lambrinos, D., Möller, R., Labhart, T., Pfeifer, R., Wehner, R.: A mobile robot employing insect strategies for navigation. Robotics and Autonomous Systems 30(1-2), 39–64 (Jan 2000), ISSN 0921-8890, doi:10.1016/s0921-8890(99)00064-0, URL http://dx.doi.org/10.1016/S0921-8890(99)00064-0
November 3, 2026
32/36
[28] Mandow, A., Martinez, J.L., Morales, J., Blanco, J.L., Garcia-Cerezo, A., Gonzalez, J.: Experimental kinematics for wheeled skid-steer mobile robots. In: 2007 IEEE/RSJ International Conference on Intelligent Robots and Systems, p. 1222–1227, IEEE (Oct 2007), doi:10.1109/iros.2007.4399139, URL http://dx.doi.org/10.1109/IROS.2007.4399139
[29] McMeeking, R.M., Arzt, E., Wehner, R.: Cataglyphis desert ants improve their mobility by raising the gaster. Journal of Theoretical Biology 297, 17–25 (Mar 2012), ISSN 0022-5193, doi:10.1016/j.jtbi.2011.12.003, URL http://dx.doi.org/10.1016/j.jtbi.2011.12.003
[30] Merkle, T., Knaden, M., Wehner, R.: Uncertainty about nest position influences systematic search strategies in desert ants. J. Exp. Biol. 209(Pt 18), 3545–3549 (Sep 2006)
[31] Merkle, T., Wehner, R.: Desert ants use foraging distance to adapt the nest search to the uncertainty of the path integrator. Behavioral Ecology 21(2), 349–355 (2010), ISSN 1045-2249, doi:10.1093/beheco/arp197, URL http://dx.doi.org/10.1093/beheco/arp197
[32] Misiek, T., Philippides, A., Graham, P., Knight, J.: Emergent control of ant learning walks using the mismatch between path-integration and visual cues (2026), doi:10.64898/2026.05.29.728637, URL http://dx.doi.org/10.64898/2026.05.29.728637
[33] Müller, M., Wehner, R.: Path integration provides a scaffold for landmark learning in desert ants. Curr. Biol. 20(15), 1368–1371 (Aug 2010)
[34] Narendra, A., Ramirez-Esquivel, F.: Subtle changes in the landmark panorama disrupt visual navigation in a nocturnal bull ant. Philosophical Transactions of the Royal Society B: Biological Sciences 372(1717), 20160068 (Apr 2017), ISSN 1471-2970, doi:10.1098/rstb.2016.0068, URL http://dx.doi.org/10.1098/rstb.2016.0068
[35] Ou, D., Hagenaars, J.J., Jankowski, M.R., Firlefyn, M.V.M., De Wagter, C., Muijres, F.T., Degen, J., de Croon, G.C.H.E.: Efficient robot navigation inspired by honeybee learning flights. Nature 653, 1039–1046 (2026), doi:10.1038/s41586-026-10461-3
[36] Stankiewicz, J., Webb, B.: Using the Neural Circuit of the Insect Central Complex for Path Integration on a Micro Aerial Vehicle, p. 325–337. Springer International Publishing (2020), ISBN 9783030643133, doi:10.1007/978-3-030-64313-3_31, URL http://dx.doi.org/10.1007/978-3-030-64313-3_31
[37] Stone, T., Differt, D., Milford, M., Webb, B.: Skyline-based localisation for aggressively manoeuvring robots using uv sensors and spherical harmonics. In: 2016 IEEE International Conference on Robotics and Automation (ICRA), p. 5615–5622, IEEE (May 2016), doi:10.1109/icra.2016.7487780, URL http://dx.doi.org/10.1109/ICRA.2016.7487780
[38] Stone, T., Mangan, M., Ardin, P., Webb, B.: Sky segmentation with ultraviolet images can be used for navigation. In: Robotics: Science and Systems X, RSS2014, Robotics: Science and Systems Foundation (2014), doi:10.15607/rss.2014.x.047, URL http://dx.doi.org/10.15607/RSS.2014.X.047
November 3, 2026
33/36
[39] Stone, T., Mangan, M., Wystrach, A., Webb, B.: Rotation invariant visual processing for spatial memory in insects. Interface Focus 8(4), 20180010 (2018), ISSN 2042-8901, doi:10.1098/rsfs.2018.0010, URL http://dx.doi.org/10.1098/rsfs.2018.0010
[40] Stone, T., Webb, B., Adden, A., Weddig, N.B., Honkanen, A., Templin, R., Wcislo, W., Scimeca, L., Warrant, E., Heinze, S.: An anatomically constrained model for path integration in the bee brain. Curr. Biol. 27(20), 3069-3085.e11 (Oct 2017)
[41] Sun, X., Yue, S., Mangan, M.: A decentralised neural model explaining optimal integration of navigational strategies in insects. eLife 9 (Jun 2020), ISSN 2050-084X, doi:10.7554/elife.54026, URL http://dx.doi.org/10.7554/eLife.54026
[42] Tinbergen, N.: Über die orientierung des bienenwolfes (philanthus triangulum fabr.). Z. Vgl. Physiol. 16(2), 305-334 (Jan 1932)
[43] Vega Vermehren, J.A., Buehlmann, C., Fernandes, A.S.D., Graham, P.: Multimodal influences on learning walks in desert ants (cataglyphis fortis). J. Comp. Physiol. A Neuroethol. Sens. Neural Behav. Physiol. 206(5), 701-709 (Sep 2020)
[44] Webb, B.: Can robots make good models of biological behaviour? Behavioral and Brain Sciences 24(6), 1033-1050 (2001), doi:10.1017/S0140525X01000127
[45] Wehner, R.: Desert ant navigation: how miniature brains solve complex tasks. Journal of Comparative Physiology A: Sensory, Neural, and Behavioral Physiology 189(8), 579-588 (Aug 2003), ISSN 1432-1351, doi:10.1007/s00359-003-0431-1, URL http://dx.doi.org/10.1007/s00359-003-0431-1
[46] Wystrach, A., Le Moël, F., Clement, L., Schwarz, S.: Updating an allocentric goal from lateralised egocentric visual memories. Nature Communications 17(1) (Mar 2026), ISSN 2041-1723, doi:10.1038/s41467-025-67545-3, URL http://dx.doi.org/10.1038/s41467-025-67545-3
[47] Wystrach, A., Mangan, M., Webb, B.: Optimal cue integration in ants. Proceedings of the Royal Society B: Biological Sciences 282(1816), 20151484 (Oct 2015), ISSN 1471-2954, doi:10.1098/rspb.2015.1484, URL http://dx.doi.org/10.1098/rspb.2015.1484
[48] Xiang, Z., Sun, X., Peng, J.: A vector-based computational model of multimodal insect learning walks. Biomimetics 10(11), 736 (Nov 2025), ISSN 2313-7673, doi:10.3390/biomimetics10110736, URL http://dx.doi.org/10.3390/biomimetics10110736
[49] Yi, J., Wang, H., Zhang, J., Song, D., Jayasuriya, S., Liu, J.: Kinematic modeling and analysis of skid-steered mobile robots with applications to low-cost inertial-measurement-unit-based motion estimation. IEEE Transactions on Robotics 25(5), 1087-1097 (Oct 2009), ISSN 1941-0468, doi:10.1109/tro.2009.2026506, URL http://dx.doi.org/10.1109/TR0.2009.2026506
[50] Zeil, J., Fleischmann, P.N.: The learning walks of ants (hymenoptera: Formicidae). Myrmecological News 29, 93-110 (2019), doi:10.25849/myrmecol.news_029:093
November 3, 2026
34/36
[51] Zeil, J., Hofmann, M.I., Chahl, J.S.: Catchment areas of panoramic snapshots in outdoor scenes. JOSA A 20(3), 450–469 (2003)
A Supplementary analyses of the robot experiments
A.1 Correlation between prediction variance and visual-compass accuracy
November 3, 2026
35/36


Fig 15. Relationship between prediction variance and visual-compass accuracy on the robot. (A) Absolute angular error of the centroid of 10 consecutive raw visual-compass predictions (1 s of sampling), relative to the ground-truth nest direction derived from GNSS position. During these 1-s windows, the maximum angular spacing between headings was (mean SD), with a maximum of approximately , while the maximum linear spacing between sampled positions was m, with a maximum of approximately 0.8 m. Only LW3 and subsequent LWs were included, excluding LW1 and LW2. Mean centroid error increased monotonically with circular variance, from in the lowest-variance bin (0–0.1) to in the highest-variance bin (0.9–1.0). Prediction variance was positively correlated with centroid error (Spearman's , p < 0.001), with a linear and mutual information of 0.113 nats. Error bars show standard deviations, which increased with variance. The variability in all variance bin was quite high, hence the low correlation and low predictability despite a clear trend on average. (B) Frequency distribution across all the one-second prediction samples across circular-variance bins. Low-variance samples were more frequent. The positive correlation between prediction variance and angular error suggests that the variance of successive visual-compass predictions could serve as a proxy for prediction accuracy, providing a confidence or reliability signal. This could be used to weight visual-compass predictions against PI, or to distinguish familiar from unfamiliar locations. Unlike the visual familiarity or novelty signals commonly derived from MBON activation in visual-compass models [1, 34, 41, 48], this signal would reflect the consistency of successive directional predictions rather than the familiarity of the visual input itself.
November 3, 2026
36/36