How optical fibres and AI are preventing elephant-train collisions

Indian Railways is leveraging Distributed Acoustic Sensing, optical fibres, and indigenous machine learning to safeguard ecological corridors.

On the morning of August 19, 2026, a major tragedy was averted on a precarious stretch of the Northeast Frontier Railway (NFR) in Assam’s Hojai district. The Dibrugarh-New Delhi Down Rajdhani Express was barrelling toward the Hawaipur section under the Lanka Range. A massive herd of around 90 elephants, including several calves, had emerged from the forests, stepping directly onto the iron rails at kilometre mark 167/8 to cross toward the Lumding Reserve Forest.

In the past, a high-speed locomotive’s pilot would have had only seconds to react—far too short a window to halt thousands of tonnes of momentum. Such a situation almost always results in tragedy, even if the loco pilot applies brakes, because an elephant herd is seen only at the last moment. But this morning, the train was stopped just in time, allowing the entire herd to cross the tracks unharmed. Celebrating the averted disaster, Assam Chief Minister Himanta Biswa Sarma took to X, stating, “Creating Corridors of Safety! In most of Assam’s Elephant corridors along railway lines, @assamforest personnel are always on guard to allow safe passage to gentle giants… This morning in Hojai was no different where a high-speed train was alerted, saving precious lives”.

While the state’s forest officials and the Lumding Railway Control Room are rightly hailed for their swift coordination in stopping the train, what fundamentally enabled them to execute this with such pinpoint, life-saving accuracy is a new, invisible guardian: an indigenous artificial intelligence system known as ‘Gajraj Suraksha’. Without this technology, forest guards relying on visual sight and manual radios would have been fighting a losing battle against a speeding Rajdhani. Instead, the AI-driven network, capable of detecting the distinct vibrational footprint of pachyderms miles away, acts as the ultimate early warning system, giving authorities the critical lead time required to halt a train.

In the past, the loco pilot would have had only seconds to react—relying entirely on the train’s headlamp piercing the darkness. The sheer physics of a train’s momentum dictates that stopping within seconds is impossible. But on this night, the tragedy was averted long before the elephants were even visible. Miles away from the herd, an indigenous artificial intelligence system known as ‘Gajraj Suraksha’ detected the distinct vibrational footprint of the pachyderms. Within milliseconds, an alert flashed in the local control room, the station master’s desk, and the loco pilot’s dashboard. The brakes were engaged gradually, and the massive train ground to a halt at a safe distance. The herd crossed in peace, and the train resumed its journey.

According to recent data, this exact sequence has played out flawlessly thousands of times. Over roughly two-and-a-half years, the AI-enabled network generated more than 7,100 real-time alerts, facilitating nearly 9,500 safe elephant crossings. Across the monitored stretches where this technology is fully operational, there have been zero elephant fatalities.

The Gajraj Suraksha project is more than an administrative upgrade; it is a profound testament to Atmanirbhar Bharat—an indigenous, deep-tech solution that marries cutting-edge engineering with the civilizational ethos of protecting wildlife. It proves definitively that hard infrastructure and ecological sanctity are not mutually exclusive when guided by a native, tech-driven Dharma.

The legacy of colonial alignments

To understand the sheer necessity of Gajraj Suraksha, one must first confront the catastrophic legacy of colonial infrastructure. The “iron snake” of the Indian railway system was laid down by the British Empire with a singular, extractive objective: moving resources from the hinterlands to the ports as quickly as possible. These tracks sliced aggressively through ancient, deep-rooted ecological corridors. The planners possessed little regard for the geography of the land, and even less for the flora and fauna that inhabited it.

The British disregard for wildlife was so horrific that a railway line built by the British govt had permanently divided the only home of the Western Hoolock Gibbon, India’s lone ape species. As Hoolock Gibbons live entirely above ground, the community was separated into two groups by the railway line constructed in 1887 through the Hollongapar Gibbon Sanctuary in Assam’s Jorhat district. After over a century, the apes finally crossed the track using artificial canopy bridges installed over the railway line.

The independent Indian state inherited and had to maintain these archaic alignments. The resulting conflict was inevitable. Elephants are nomadic giants. They do not recognise bureaucratic boundaries, nor do they understand the concept of a protected park versus a commercial railway zone. They learn migratory routes over generations, navigating landscapes that extend far beyond officially mapped forest borders.

When the modern state tried to mitigate this conflict, it relied on ‘analogue’ wildlife protection methods that were fundamentally flawed. These legacy systems depended on forest guards patrolling on foot, communicating intermittently with station masters via radio. It relied on the manual reduction of train speeds in designated zones, ignoring the fact that elephants often cross outside these marked elephant corridors. Most crucially, it relied on the human eye. Expecting a loco pilot, driving a high-speed locomotive in pitch darkness, to spot a dark-skinned animal and halt a train carrying thousands of tonnes of momentum is a systemic failure masquerading as a safety protocol.

Wild elephant herd crossing railway line in Assam

The bureaucratic disconnect between the forest department and the railway administration created fatal time lags. By the time a forest guard reported a herd movement, the information was already obsolete. This systemic rot, a remnant of colonial-era bureaucratic silos, resulted in the deaths of approximately 200 elephants over the past decade.

Overpasses and underpasses for highways and railway lines are one of the solution, and it has been implemented in some places. But the problem is, such infrastructure can’t be built everywhere. Wild animals like elephants may take a detour for various reasons, and may directly cross a railway track bypassing an underpass.

It was a crisis that demanded a radical, technological disruption.

The technological counter-offensive: A hard breakdown

Gajraj Suraksha abandons the flawed reliance on human sight and manual reporting. Instead, it turns the earth itself into a sensor. Functioning as an Intrusion Detection System (IDS), it retrofits the Indian Railways’ existing infrastructure to create a continuous, highly sensitive acoustic defence grid. The AI-enabled Intrusion Detection System (IDS) for detecting the presence of elephants on Railway tracks includes Optical Fibre, hardware and pre-installed signatures of elephant locomotion.

The system is designed to generate alerts for loco pilots, station masters and Control Room about the movement of elephants in proximity of railway tracks, for taking timely preventive action. The advanced safety solution is a combination of a Distributed Acoustic Sensing (DAS) server, Level Crossing Gate unit, Assistant Station Master unit, and Driver Display Console. To fully appreciate the genius of this system, we must break down the four core technological pillars that make it boast a staggering 99.5% accuracy rate.

Distributed Acoustic Sensing (DAS) and Rayleigh Backscattering

The foundational science behind Gajraj Suraksha is Distributed Acoustic Sensing (DAS). DAS is a technology that essentially turns standard optical fibres into a massive array of virtual microphones.

When an elephant walks, its immense weight—often exceeding four tonnes—creates low-frequency seismic waves that travel through the ground. These pressure waves eventually reach the railway embankments, causing microscopic vibrations in the soil and the tracks.

DAS exploits a quantum-level physical phenomenon known as Rayleigh backscattering. The glass core of the fibre is not perfectly uniform; it contains microscopic impurities. When a pulse of laser light is fired down an optical fibre, these impurities scatter a tiny fraction of the light back towards the source. If the fibre is perfectly still, the backscattered light returns with a constant, predictable signature.

However, when the seismic waves from an elephant’s footstep hit the cable, the glass fibre is subjected to microscopic strain—it stretches and compresses by fractions of a millimetre. This minuscule physical alteration changes the phase and intensity of the backscattered light. The spectrum of the backscattered pattern varies as the shape and density of the fibre change due to bending, twisting, strain and temperature changes. By continuously firing laser pulses and measuring the changes in the returning light, the system can detect disturbances with astonishing precision. It is effectively feeling the earth’s pulse, capable of detecting movement up to 200 metres away from the tracks before the animal even begins to cross.

Optical Fibre Cables (OFC) and Interrogator Units

The brilliance of the Gajraj system lies in its economic and infrastructural efficiency. It does not require laying down a completely new network of expensive sensors. Instead, it piggybacks on the existing Optical Fibre Cable (OFC) network that the Indian Railways has already laid beneath the tracks for telecommunication and signalling purposes.

The hardware that makes DAS possible is the ‘Interrogator Unit’. Installed at railway stations or relay huts, the interrogator is the device that shoots the highly coherent laser pulses down the dark fibres of the OFC network and captures the returning backscattered light.

A single interrogator unit can monitor up to 40-50 kilometres of track, 20-25 km in each direction. Because the speed of light in the glass fibre is known, the unit calculates exactly where the vibration occurred by measuring the time it took for the altered backscattered light to return. This turns the continuous optical fibre into tens of thousands of discrete acoustic sensors, each capable of pinpointing a disturbance to within 5 metres of accuracy. The structural integrity of the tracks is mapped out dynamically, transforming a passive communication cable into an active, intelligent nervous system.

AI pattern recognition and vibration signature filtering

Detecting a vibration on a busy railway track is easy; the challenge lies in distinguishing what caused it. A railway environment is a cacophony of seismic noise: the rumble of distant trains, the vibrations of nearby highway traffic, the footsteps of track maintenance workers, and natural environmental factors like heavy rain or falling trees. If the system sent an alert for every vibration, loco pilots would suffer from ‘alert fatigue’ and begin ignoring the warnings.

This is where the indigenous Artificial Intelligence and Machine Learning classifiers come into play. Over the development phase, the AI was trained on a vast dataset of acoustic signatures. Every moving object creates a unique vibrational footprint.

An elephant’s footstep generates a very specific, low-frequency seismic wave, characterised by the animal’s weight distribution and biomechanics. The AI acts as a sophisticated filter. When the interrogator unit feeds the raw acoustic data into the system, the algorithmic engine analyses the frequency, amplitude, and temporal pattern of the waves. It actively filters out the mechanical, high-frequency signatures of locomotives and vehicles, as well as the lighter, erratic footprints of humans or smaller animals.

It specifically isolates the heavy, rhythmic thud of a pachyderm. Furthermore, because elephants rarely travel alone, the AI can often deduce the size of the herd based on the density of the acoustic signals. This machine learning model is constantly refining itself, learning from false positives and fine-tuning its parameters based on field experience, which is how it achieved its near-perfect 99.5% accuracy rate.

How Gajraj Suraksha system works

Realtime alert distribution and control integration

The final piece of the puzzle is actionable intelligence. An early warning is useless if it is trapped in a bureaucratic bottleneck. Gajraj Suraksha operates on a decentralised, real-time alert architecture that eliminates the fatal time lags of the past.

When the AI definitively identifies an elephant approaching the track, it bypasses traditional hierarchies. A real-time alert is simultaneously beamed out across multiple nodes. The division control room receives a visual alarm pinpointing the exact kilometre marker of the intrusion. Simultaneously, the station masters of the adjacent stations receive SMS and dashboard alerts.

Assistant Station Master Unit (Bitcomm Technologies)

Most importantly, the loco pilots operating trains in that specific sector receive the warning directly via wireless communication and dedicated mobile applications. This happens in a matter of seconds. Forest officials are also plugged into this matrix; they receive live updates on the herd’s location, allowing frontline staff and drone operators to move swiftly to the area and safely guide the elephants away from the danger zone.

 Driver Display Console (Bitcomm Technologies)

The system incorporates an Assistant Station Master Unit, connected to a central server, which provides the station master with real-time audio-visual alarms for critical activities like elephant presence or construction work. Similarly, the Driver Display Console alerts train drivers with real-time audio-visual alarms about elephants or other obstacles within a designated range ahead of the moving train. These warnings allow the driver to reduce speed and take necessary precautions to avoid accidents.

The systemic impact: Scaling the success

The pilot projects in the Northeast Frontier Railway—specifically the 11 identified elephant corridors spanning the Alipurduar and Lumding divisions—have been an unmitigated triumph. The geography of Assam and North Bengal is ecologically fragile, defined by dense jungles and floodplains that force wildlife to cross human infrastructure constantly. It is an environment where legacy systems consistently failed.

The introduction of the AI-based IDS in December 2022 flipped the script. Since it became fully operational, it has virtually eliminated elephant fatalities on those monitored stretches. It has prompted loco pilots to reduce speeds or halt trains over 3,280 times, proving that the technology translates directly into saved lives.

Presently, the IDS system is working over 141 railway km on critical & vulnerable locations identified by the forest department in Northeast Frontier Railway. The Ministry of Railways is now scaling this indigenous success story nationally. The system is being rolled out around 1170 route kilometres of highly vulnerable elephant corridors traversing West Bengal, Odisha, Jharkhand, Assam, Kerala, Chhattisgarh, and Tamil Nadu.

Works of IDS have been sanctioned for identified corridors across Indian Railways covering Northeast Frontier Railway (403.42 Rkms), East Coast Railway (368.70 Rkms), Southern Railway (55.85 Rkms), Northern Railway (52 Rkms), South Eastern Railway (55 Rkms), North Eastern Railway (99.18 Rkms), Western Railway  (115 Rkms) and East Central Railway (20.3 Rkms).

The estimated implementation cost for this vast, pan-India acoustic shield is a mere ₹ 181 crores—a fraction of what it would cost to build physical overpasses, and a profound investment in the nation’s natural heritage. Because the system leverages existing optical fibre networks rather than requiring the construction of expensive, ecologically disruptive physical barriers like massive concrete walls or electrified fences, it is incredibly cost-effective.

The Next Frontier: Machine-to-Machine Integration with ‘Kavach’

While the current deployment of Gajraj Suraksha has successfully slashed elephant fatalities, the system still operates with a “human-in-the-loop” latency. At present, when the AI identifies an intrusion, it transmits alerts to control rooms, station masters, and locomotives, ultimately relying on the loco pilot to acknowledge the warning and manually engage the train’s brakes. The logical next evolution in this indigenous defence grid is the deep integration of Gajraj Suraksha with Kavach, India’s indigenously developed Automatic Train Protection (ATP) system, closing the loop between acoustic sensing and automated locomotive response.

Developed by the Research Designs and Standards Organisation (RDSO) in collaboration with Indian industry, Kavach is an electronic safety system certified to Safety Integrity Level 4 (SIL-4), the highest standard of operational safety in global railway engineering. Its primary mission is to eliminate human error during high-speed operations. Kavach has been designed to prevent “Signal Passing at Danger” (SPAD), avoid catastrophic head-on and rear-end collisions between two trains, regulate speed over curved or restricted track sections, and automatically sound the locomotive’s horn at level crossings.

The system functions through a network of interconnected nodes. High-frequency RFID (Radio Frequency Identification) tags are embedded between the railway sleepers along the tracks to continuously calibrate the train’s exact location and direction. Meanwhile, Station Kavach units positioned along the route communicate constantly with the Loco Kavach unit installed inside the engine cab via secure, ultra-high frequency (UHF) radio and high-speed data networks. If a loco pilot fails to adhere to a speed restriction or overshoots a red signal, the on-board computer overrides manual control, automatically throttling down the engine and engaging the locomotive’s electro-pneumatic braking system.

Bridging acoustic AI with automated braking

Integrating the Gajraj Suraksha Intrusion Detection System with Kavach establishes a direct Machine-to-Machine (M2M) interface that eliminates human reaction time entirely. In this integrated architecture, the DAS Interrogator Unit and its AI classification server act as an external threat-feed directly to the local Station Kavach controller.

The moment the machine learning algorithms confirm the unique acoustic signature of an elephant herd approaching a specific track section, the DAS server can instantly send a digital trigger to the corresponding Station Kavach. Without waiting for manual relay or human confirmation, the Station Kavach immediately transmits a dynamic speed restriction or an emergency halt command over the radio link to the oncoming train’s Loco Kavach unit.

This fusion transforms train safety from a system of predictive warnings into a fully autonomous, cyber-physical safety net. In scenarios involving dense winter fog, sharp blind curves, or sudden wildlife movements where human vision and reaction times are strained to their physical limits, the train’s braking system initiates deceleration mathematically and automatically at a safe stopping distance. By bridging the earth-sensing intelligence of optical fibre AI with the fail-safe braking power of Kavach, Indian Railways is pioneering an Atmanirbhar safety paradigm, one where heavy industrial logistics and delicate ecological preservation are synchronised by indigenous code.

Beyond the algorithm: The multi-pronged defence protocol

While the AI-driven Intrusion Detection System forms the high-tech backbone of Gajraj Suraksha, securing thousands of kilometres of railway network requires a layered, systemic defence. The Ministry of Railways, operating in close coordination with the Forest Departments of the states, has deployed a comprehensive suite of tactical interventions—ranging from behavioural deterrents to infrared optics—to fortify the most vulnerable ecological corridors.

The ‘Plan Bee’ Deterrent: One of the most uniquely indigenous innovations deployed alongside the AI is the ‘Honey Bee buzzer’ device. First conceptualised by the Northeast Frontier Railway (NFR), this device exploits a fascinating biological vulnerability in pachyderms: elephants are instinctively terrified of swarming bees. Because a bee sting on an elephant’s highly sensitive trunk causes immense pain, herds will rapidly alter their route to avoid the sound of a swarm. The railways have installed amplified electronic buzzers at level crossings and critical track intersections that mimic the exact acoustic frequency of angry honey bees. When activated, the sound acts as a natural, non-violent repellent, successfully driving the herds away from the tracks without causing them any physical distress.

Thermal Vision Optics: While the DAS interrogators feel the earth’s vibrations, the railways are also upgrading their line-of-sight capabilities. To combat the severe visibility constraints of winter fog and pitch-darkness in dense forest terrains, authorities are piloting thermal vision cameras on straight track alignments. These infrared sensors detect the massive heat signatures of wild animals traversing the tracks at night. By cutting through the darkness and weather anomalies, the thermal optics generate an additional layer of visual alerts for loco pilots when the animals are completely invisible to standard headlamps.

Structural and Ecological Interventions: To physically resolve the conflict between infrastructure and migration, the railways are actively constructing dedicated underpasses and ramps at identified locations, ensuring elephants have safe, unhindered pathways beneath or over the tracks. This is augmented by the strategic installation of heavy fencing to organically funnel the herds towards these safe crossings. Suitable signage boards are also being installed along the tracks at all identified elephant corridors, to pre-warn loco pilots that they are approaching an elephant corridor, so that they can be more attentive and reduce speed if needed.

Crucially, the defence strategy extends into active ecological management. The railways routinely conduct drives to clear dense vegetation and edible plants immediately surrounding the tracks. By removing the foraging incentive that draws elephants close to the danger zone, the risk of collision drops significantly. Coupled with the deployment of dedicated ‘elephant trackers’ engaged by the Forest Department and the installation of solar-powered LED lighting in deep forest sectors, these measures create a holistic, multi-layered shield.

Together, this blend of deep-tech AI, behavioural science, and structural engineering proves that the Indian state is leaving no stone unturned in its mission to protect the nation’s natural heritage.

Conclusion: Tech-driven dharma

For decades, the discourse around infrastructure development in India was trapped in a false binary: one could either have rapid logistical expansion, or one could preserve the ecology. This binary was a hangover of Western, hyper-extractive developmental models that viewed nature purely as an obstacle to be conquered or a resource to be consumed.

Gajraj Suraksha shatters this paradigm. It represents a paradigm shift from a fatalistic acceptance of wildlife loss to a mathematically precise, AI-driven defence grid. It demonstrates that the answer to the infrastructural sins of the colonial past is not to halt development, but to leapfrog into the future using indigenous innovation.

By turning the earth’s pulse into a protective shield, India is securing its modern logistical arteries while simultaneously fulfilling its civilisational duty to protect its wildlife. The transition from archaic manual patrolling and blind locomotives to optical fibres and machine learning is not just an upgrade in safety; it is the ultimate manifestation of a tech-driven Dharma. It is a declaration that in the new India, the roar of the locomotive and the path of the Gajraj can exist in harmony, managed by the silent, vigilant hum of indigenous code.

About the author

Related articles

Latest articles

GO BEYOND THE HEADLINE.

Selected issues, clear explanations and thoughtful perspectives—delivered when we publish.