Pigs can learn to play video games with their snouts
Pigs are far smarter than most people realize. In a classic cognitive study, researchers trained four pigs—Hamlet, Omelet, Ebony, and Ivory—to use a custom joystick with their snouts. The pigs successfully moved a computer cursor to hit targets on a screen, demonstrating a clear understanding of the game's mechanics. They kept playing even when the food dispenser broke, motivated purely by the researchers' verbal encouragement.
The Screen, the Snout, and the Joystick
In studies exploring the boundaries of non-primate intelligence, researchers set up a computer task tailored specifically to the physical capabilities of domestic pigs. Four subjects—two Yorkshire pigs named Hamlet and Omelet, and two Panepinto micro-pigs named Ebony and Ivory—were introduced to an interactive testing apparatus. Instead of using hands or paws, the animals used their snouts to manipulate an adapted joystick mounted in front of a monitor. The objective was straightforward in concept but demanding in practice: navigate an on-screen cursor across a digital field until it contacted a designated target wall.
Operating a video screen task requires an animal to make a complex cognitive leap. The pig must realize that physical pressure applied to an external controller translates directly into the movement of an abstract visual marker on a vertical display. All four pigs demonstrated an ability to perform this task well above chance levels. Even when visual targets shifted positions, the pigs adjusted their snout movements to steer the cursor successfully, showing that their actions were deliberate and guided by an understanding of the visual feedback.
The physical mechanics of the setup highlighted the pigs' motor control. Domestic pigs lack opposable digits and have binocular vision optimized for foraging near ground level, rather than staring directly at elevated digital screens. Despite these physiological constraints, the subjects adapted their posture and refined their snout pressure to achieve fine directional control over the joystick, maneuvering the digital cursor with notable precision.
To understand how a pig can manipulate a joystick, one must look at the unique anatomy of the porcine snout. The snout is far more than an olfactory organ; it is a muscular, tactile apparatus reinforced by a specialized disc of cartilage and a distinct prenasal bone. In natural and farm environments, pigs use this structure for rooting, turning over heavy soil, moving stones, and investigating minute objects buried beneath the surface.
This rooting disc is densely innervated with sensory receptors, making it exceptionally sensitive to touch, pressure, and temperature. Neurologically, a substantial portion of the pig's somatosensory cortex is dedicated to processing sensory input from the snout, functioning in a manner analogous to the human hand or an elephant's trunk. This combination of structural strength and tactile sensitivity allows a pig to apply delicate adjustments of force when interacting with objects in its environment.
When presented with a controller, the pigs did not merely strike or nudge the device at random. They rested their snouts against the joystick, using steady tactile feedback and fine motor adjustments to correct the cursor's trajectory mid-movement. This demonstrated that the snout can serve as an active tool of cognitive engagement, bridging sensory perception and intentional motor output.
Cognitive Flexibility and Visual Reasoning
The joystick experiment fits into a broader body of research showing that domestic pigs possess advanced learning capacities, visual discrimination, and spatial memory. Pigs can distinguish between familiar and unfamiliar visual symbols, remember the locations of hidden food sources over extended periods, and navigate complex spatial mazes by constructing internal mental maps of their surroundings.
In separate cognitive trials, pigs have also demonstrated the ability to use mirrors to solve spatial problems. When shown the reflection of a food bowl that was otherwise hidden behind a solid barrier, pigs did not search behind the mirror itself. Instead, they used the visual information reflected in the glass to orient themselves, turn around, and locate the actual food source. This indicates that pigs can process indirect visual cues and relate them accurately to physical three-dimensional space.
These visual reasoning skills explain why the pigs could grasp the connection between the joystick and the screen. They were not simply relying on brute-force trial and error. Instead, they built an associative mental model connecting their physical manipulation of the joystick with the movement of pixels on a monitor, adjusting their strategies when the targets became smaller or moved across the screen.
Social Reinforcement and Intrinsic Motivation
Under standard experimental conditions, animals receive automated food rewards, such as pellets or sweets, immediately upon completing a trial. During the joystick trials, however, technical glitches occasionally caused the automated dispenser to fail. Surprisingly, the pigs often continued to perform the trials without receiving an immediate edible reward, sustained largely by verbal encouragement and gentle praise from the human experimenters.
This response highlights the complex motivational drivers of domestic pigs. While food is a powerful primary reinforcer, pigs also exhibit high social responsiveness and curiosity. They form strong bonds with handlers and can be motivated by positive social interactions. The willingness to continue interacting with the screen apparatus in the absence of food suggests that the mental stimulation of the task itself, paired with social affirmation, provided sufficient reward to maintain their focus.
This behavioral flexibility challenges the assumption that livestock species will only engage in demanding tasks for immediate caloric gain. Like domestic dogs and non-human primates, pigs show an appetite for novel environmental enrichment and can remain engaged in problem-solving activities through social and intrinsic reinforcement.
Social Awareness and Strategic Behavior
The cognitive sophistication displayed in screen-based tasks is reflected in the natural social dynamics of pigs. Domestic pigs live in structured social groups where individual recognition, dominance hierarchies, and vocal communication play central roles. Studies have shown that pigs can recognize individual group members by scent, vocalizations, and visual appearance, maintaining stable relationships over long periods.
In group foraging scenarios, pigs have demonstrated tactical awareness and deceptive behavior. When a subordinate pig discovers a concealed food cache, it may delay approaching the food if a dominant pig is nearby, preventing the higher-ranking animal from stealing the resource. Conversely, dominant pigs have been observed following knowledgeable subordinates specifically to exploit their foraging discoveries. Subordinate pigs, upon realizing they are being tracked, will alter their routes or visit empty foraging sites to mislead the follower.
Such tactical maneuvering requires an understanding of what other individuals can see and know, a capacity that touches on the fundamentals of perspective-taking. These social survival strategies rely on the same underlying cognitive architecture that enables pigs to solve abstract problems, process indirect visual cues, and master mechanical tools in laboratory settings.
Rethinking Porcine Intelligence and Welfare
The demonstration of video game proficiency in pigs has broader implications for how scientists and the public understand livestock intelligence. Historically, cognitive research focused heavily on primates, cetaceans, and dogs, with agricultural animals often viewed merely through the lens of production efficiency. Demonstrating that pigs can grasp digital interfaces highlights the need to re-evaluate their mental capacities and behavioral needs.
Recognizing the depth of porcine cognition directly informs modern approaches to animal welfare. In intensive farming environments, barren conditions can lead to boredom, stress, and stereotyped abnormal behaviors. Because pigs possess active minds, strong exploratory drives, and sophisticated sensory organs, providing cognitive enrichment—such as complex foraging tasks, manipulable objects, and varied social environments—is essential for their psychological well-being.
While a joystick-based video game is an artificial human invention, the pigs' ability to master it reveals their underlying adaptability. Their performance demonstrates that cognitive complexity is not confined to traditional model species, but can emerge in diverse lineages that have evolved specialized sensory anatomy, strong social structures, and sharp environmental awareness.
Key takeaways
•Domestic pigs learned to operate an adapted joystick with their snouts, successfully steering an on-screen cursor to hit targets well above chance levels.
•The pig's snout is a highly innervated, muscular organ capable of delicate pressure adjustments, functioning much like a hand for tactile exploration and tool use.
•Pigs demonstrated intrinsic and social motivation by continuing to complete computer tasks even when automated food dispensers failed, responding to verbal encouragement from handlers.
•Beyond joystick tests, pigs exhibit sophisticated spatial memory, mirror-guided navigation, and tactical deception in social foraging contexts.