Skip to main content

Autonomous Railway Defect Detection System

Page 1


International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056

Volume: 13 Issue: 05 | May 2026 www.irjet.net p-ISSN: 2395-0072

Autonomous Railway Defect Detection System

Suyog Mohite1 , Niraj Kacha2 , Sanket Jadhav3 , Dr. P.S. Patil4

1,2,3Student, Department of Mechanical Engineering, JSPM RSCOE College of Engineering, Tathawade, Pune.

4Professor, Department of Mechanical Engineering, JSPM RSCOE College of Engineering, Tathawade, Pune.

Abstract - Identifying problems on the railway lines like displaced tracks or severe conditions is a critical way of ensuring rail transit is safe. As individuals walk extensive distances makingcorrectionsbyhanderrorsmayoccureasier. This is research on something new a machine named Rail TrackMonitoringconstructedtomonitorrailwaysallthetime. It is connected to an ESP32 chip, a motion sensor, an infrared reader and a small camera, which is powered by another ESP32 board. When it travels on the line it shakes and even records images of what is on the way same time. The data of all the sensors is sent to an online machine learning system that monitors the progress of the rail line. Closer to the front with one mouse button click or cursor arrow movement you are provided with a live view of what detectors are sensing as well as a live health check of the system and an immediate display of what is really going on the tracks. Initial prototyping of Rail Track demonstrates that there is something obvious simple IoT devices and direct uncomplicatedlearningalgorithmscanreadtheindicatorsof wear without any loss of serious changes and the elder approaches are observed to be in lag.

Key Words: Railway Track Monitoring, IoT, ESP32, MPU6050, Machine Learning, ESP32-CAM.

1. INTRODUCTION

Trainsshouldalso becared aboutmorethan most people understandasameanstoexpandaneconomythatconnects big cities and cities with large scale trade across great distances.Theyprovidegoodlow-costtransportationwhich also contributes to passenger’s motion though it is frequently ignored. People seemtothink that transport is nottheonlysupportgivenbyrailinsuchplacesasIndiaand other such places. Heavy loads of the cargo produce enormouspressureonthetrackswhichpresswithexcessive pressure in the course of time. Strain heat is the result of temperaturevariationassteelstretchesinresponsetocold strains and as the steel contracts back several times in responsetothestrainofwaterthatcollectsinthecorners thesteel becomesloosewhereitiscontinuallyintension. Bolts can loosen due to vibration others can break due to forces unknown. Slight shifts up to the point of failure of alignmentoccurbetweensuccessivetracks.Thingsbecome lesssafewhenpiecessuchasrocksormetalbitsfallonthe tracks and cause the rail to shake. Stepping along the line stepbystepisstillthemethodmosttrainsusetoverifytheir tracks when people are passing by slower at their eyes. Although it saves power and reaches many hours of attentiontocrewswhodosoitstillfailstospotfaultsand

faultsoccasionallybutTrainsare most often inspected by machine, which shoots sound waves or lasers down the strongtoolsthattherailhasbutiscostlyandisatpresent notavailableonmanytracks.

Thefutureisanewapproachtomonitoringthemovementof trains. This technique requires little technology and skips using costly equipment to cut down on the number of manual checks. Where track trouble arises early warning sensors scream at a good distance before trouble struck. Information flows live via devices relating to clever networks. Reduced costs enable teams to repair more locations. Not here. Information flows quickly between linkeddevices.Allcomponentsreportrealtimeupdates.Not too far away, a new form of watching train paths starts. Ratherthanexpensiveequipmentitemploystheuseofless complextechnologythatreducesmanualinspections.When there are issues with rails they are noticed earlier since sensorstriggerwarningsbeforelargeproblemsincreasein size. Live data is sent by devices connected to smart networks.MachineLearningaidsinthedetectionofstrange patternswithoutguessing.Lowerconstructioncostsallow coveringmorespots.Safetyincreaseswiththeappearanceof faults.Thiswayancientheavyways.Newinformationflows quicklyonlinkedequipment.Bothpiecesconverserealtime.

2. LITERATURE REVIEW

Monitoringofrailwaytrackshasreceivedalotofresearch withthesoleaimofensuringthattrainsaresaferandthat the number of accidents is limited. Previous methods involvedvisualinspections(manualinspection)ofthetrack and periodic maintenance and these checks were later improvedusingscientifictestingdevices.Thenindividuals startedtoapproachtheuseoftechnologytotestthestateof thetrackortheuseofsensorstotestthetrackautomatically. We used accelerometers and vibration sensors to detect when the railway track is behaving abnormally. The MPU6050 is one example of one sensor that has been utilized to determine direction and tilt. By measuring the amount of tilt and acceleration of the railway track have been able to determine the location of cracks loose or missingjointsandmisalignmentbymonitoringhowmuch thetrackvibratesduringuse.Thesensorshaveproventobe usefulbutgenerallyrequireeitherastationarysystem(fixed installation)oranexpensivepieceofequipment.

IoT(InternetofThings)hasbecomepopularinrailwaytrack monitoringsystemsbecauseitallowstotransmitdataviaa wireless network in real time. We have combined

Volume: 13 Issue: 05 | May 2026 www.irjet.net p-ISSN: 2395-0072

microcontrollers, sensors and cloud platforms to allow remotemonitoringoftherailwaytrackthathasenhanced speedtotimelyresponsetofailuresbutthesystemsarealso prone to internet communication and data processing stabilityonthecloudplatform.Theuseofmachinelearning willimprovetheclassificationaccuracyofdetectingdefects in track conditions. As an illustration, machine learning models(i.e.,DecisionTrees,NeuralNetworks)whentrained onsensordataareabletopredictthestateofthetrack as exceptional or usual. In the creation of machine learning algorithms Many such systems have been proven to work successfully in generating quality results but tend to be highly resource consuming in order to achieve accurate results at the right time and as a result this style is so expensivetoimplementatlargescaleovertheoperationsof anorganizationasitneedsalotofresources.

Asaresult,amajormarketneedexistsforasmall-footprint, low-costintegratedsystemsolutionthatcombinesvarious typesofsensors(i.e.,videocameras,vibration-typesensors) simplemachinelearningtypealgorithmsandreal-timedata visualization. The Rail Track Monitoring system was designedtofillthismarketneedbyprovidinganappropriate balanceofperformancecostandeaseofuse.

3. PROBLEM STATEMENT

Therehasbeenanincreaseinrailwayaccidentswhichare primarilytheresultoftrackissues.Thismightbeduetoa misalignmentacrackinoneofthetrack'ssidesoranother issuewiththetrack.Sokeepingtrackofallthesedifficulties, aswellassomeexternalconcernssuchaswaterinthetrack orthefiredangerissue,inefficienttimeconsumingtaskwe haveproposedasolutioninthispaperbyusingIoTbased systemforinspectingthetracksforfaultsandalertingthe necessaryauthoritiesattheearliest.

4. PROPOSED SYSTEM

WhenlookingattheFigure1fortheRailTrackMonitoring setup.Thesystemisdesignedtoidentifyproblemsonrails usingsensornetworksconnectedtoAIdevices.Ratherthan manualcheck-upscontinuousflowofdataisthroughcloudbased facilities that data is processed in. It starts with sensors closely observing the information streams in the trackenvironmentwithseveralmonitoringdevices.When oneofthesedevicesdetectssomethingamissinthedevice, theyknowthatthereisaproblemwiththestructure.They aremostlybasedonmotiondatacollectedbyMPU6050.As youcontinuetomovethesedevicescollaborate,providing real-time information of the condition of the rail. Sensors feed the streaming data into what follows the Machine LearningProcessingUnit.

Fig -1:ProcessFlowofSensor-BasedRailwayTrack MonitoringandAlertSystem.

A machine-learning driven decision model uses machine learningto determine whetherthingsonthetrack appear correct or suspicious. It does not attempt to find odd numbersbutseeksoddrhythmsinvibrationsandsignsof sensorsignalswhichareoftenassociatedwithcracksorrail changes.

Assoonastheinformationisprocessedtransportstartsbya self-driven inspection bot. It is constructed on the ESP32 chip connected to a motor driver DC motors and a railsmountedframe.TheuseoftheESP32reliesonitsessencein whichmeasurementsarepulledinanddirecteddirectlyto web servers. Directly within the system is an ESP32-CAM thatcapturesreal-timeimagesoftheraillinewithwhichto lendsighttodatacaptures.Sinceitisautonomous,thesmall robotcontinuestolookover24hours,thusno-oneshouldgo outandwalkalongthetracks.Thefinalstepistheso-called Internet Availability Decision Process. Since the system reliesoncloudmonitoringconnectivityisveryimportant.At thispoint,sensorreadingsandlivevideowilldirectlyenter into thecloud databaseand areonlyto beconsultedlater whenthereisaconnection.

SOFTWARE REQUIREMENTS:

• ArduinoIDE

Python

Flask

FirebaseRealtimeDatabase

HTML

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056

Volume: 13 Issue: 05 | May 2026 www.irjet.net p-ISSN: 2395-0072

HARDWARE REQUIREMENTS:

• ESP32Microcontroller.

• ESP32-CAMforvideostreaming.

• MPU60506-axisaccelerometer/gyroscope.

• IRTrack/ObstacleDetectionSensor.

• MotorDriverModule.

• DCMotors.

• PowerSupply/Battery.

• InterfaceConnections.

5.

METHODOLOGY

Rail Track Monitoring is a robot-based technology to monitortheconditionsoftracksbyautomatedmonitoring.It consistsofthreepartsrobothardware,cloudprocessingand user interface. Rail Track Monitoring robot hardware includes ESP32 development board, MPU6050 vibration sensor, IR sensors, ESP32-CAM module, motor driver, DC motors,robotchassisandrechargeablelithium-ion.Itisused todetecttrackvibrationsofanabnormaltrackofthethreeaxispoint.Abnormalvibrationsofthetrackareduetothe cracks or misalignment in the track. Deviations of panel vibrationstendtobeasaresultofpanelcracks.TheESP32 controller processes, stores sensor data temporarily and transmitsitusingWi-Fitoaconcerningstorageinthecloud Firebaseactsasarealtimedatabasetosavesensorvalues. This analyses vibration data using a trained classification modelwithaPythonFlaskbackedprocessingmechanism.

Fig -2:SystemDesignandDevelopment

New sensor readings are compared with normal track patternsandfedtothemodelthatdistinguishesamongthree categoriesnormaltracks,mildlyfaultytracksandseverely faulty tracks. The results are presented on a web-based dashboardthatenablestheuserstoobserverealtimesensor data forecasting output and video stream. The dashboard also features login access to ensure only authorized users can monitor the system. If a fault is found, the system displaysanalertonthedashboardforrailwaypersonnelto take action immediately. The suggested system is costeffective compact and can be transported. It is usable without an expensive device when patrolling the railway tracks on a regular basis. The combination of the sensors, cloud processing, wireless communication and live monitoring will make railways safer as Rail Track Monitoringprovidesapracticalsolution.

Moving occurs courtesy of two DC motors that do the pushing.TheseareconnectedtoadrivecalledL298N,which maintains motion constant. During the rolling forward it scansmeasurementsregardingthestateofthetrack.Itcan movesmoothlyaspowerwillbemanagedadequately.Next is cloud communication and the processing of data. The ESP32 transmits sensor numbers Ax, Ay, Az, etc. A liveupdatingFirebasesystemastherobotrollsalongitspath.All that comes is stored in that system like a landing point of new information. As the motion occurs, measurements continuallyflowintostorage.Theretheyproceedentering intoanalysistools.Anillustration:aDecisionTreemodelis theonethatpaysattentiontotheoddchangesinmovement style. It visits one after one of the patterns and searches aroundonit,seekingindicationsofachange.

Thelastisthepartpeopleinteractwithconstructedsorail employees can track it anywhere. The server, written in FlaskretrievescleaneddatainFirebaseandmatchesitwith forecasts made with the trained model. Authentication is alsotakencareofwithsign-inhackstoanSQLstoretonotify authorizedentrants.ESP32-CAMlivefeeds,sensorreadings andpredictivedataaredisplayedonawebpagedesignedto be easy to look at. An overhead shot reveals precisely the currentstateoftracksonanup-to-datebasis.Whensensors areoutinthefieldthosedataarefedthroughcloudsystems and processed silently behind the scenes. Clean screen layoutwillensurethatallimportantdetailsareeasytosee. Crewsreceivereal-timedataaboutrailhealthratherthana guess.Technologyconnectsrealmachinesandwithdigital analysis to aid the continuity of oversight. Checking is a continuous process, which is driven by intelligent links amongcomponents.Theentireoperationisunobtrusiveand onlywhatcounts-trackstatusmomentbymoment.

6. IMPLEMENTATION DETAILS

There are parts that are used to connect within the Rail TrackMonitoringsystemasillustratedinFigure3.ESP32is asmallcomputerwhichrunsitalllikeabrain.Thebattery packhousedwithanelectricalcircuittomanagethepassage

International

Volume: 13 Issue: 05 | May 2026 www.irjet.net p-ISSN: 2395-0072

of energy provides power. This will supply a continuous voltagetoeverycomponentthatispluggedin.OncethisIR devicedetectsanobjectinplaceoftherailsittransmitsthe datatotheESP32.Themainchipisnotonlyasingletypeof signal receiver but instead multiple gadgets communicate simultaneously with it. One such piece is called MPU6050 thatmonitorschangesinshakingandanglesalongtherail line.Thesereadingswouldindicatewhetherthetracksare bent or out of alignment. The other add on which has the eyes of a camera either captures snapshots or real-time footageinfront.Thatfeedprovidesliveupdatesofwhatisat the end of the road. All the images aid in ascertaining the realityoftheproblemstherein.

Fig -3:HardwareBlockDiagram

TheESP32chipiscurrentlytestingvibrationsinreal-time basedontheinformationprovidedbyinbuiltsensors.There isanMPU6050whoseodd motionsindicatorsofpotential cracksorrailmovementsareconfidentlyspottedratherthan beingoverlookedassmallshakes.Aninfrareddetectorkeeps an eye on something standing in the way out front meanwhile. The information is inputted to the main processorwhereit issorted beforetransmission.Updates sentthereareinstantlywirelessandenableoffsitesystems tomonitorrailhealthwithouttheneedoflooking.

Signals are then sent out of the ESP32 to a motor driver whichdrivestheDCmotors.Theinspectionrobotisdriven by such electronic impulses as it moves steadily on rails. Sensorydataandvideoflowintoascreenthatisobservedby an operator. As the machine is moving, live updates are displayed indicating what is coming on the track. Checks previouslyperformedmanuallyarereplacedbyautomation toreducetheworkloadonindividuals.Therailsystemshave becomelessdangerous,andmorereliableasfewerworkers areforcedtowalkontracks.

7. RESULT

A prototype rail setup saw successful creation and evaluationof the Rail Track Monitoring.Themobilerobot was propelled gradually with motion ignited through DC motors with one driver unit. Sensor data that were continuouslycollectedduringmovementcomprisedtiltand vibrationreadings.Themotorturnedon bytheMPU6050 sensor that monitored physical shifts provided Ax, Ay, Az

readings. Constant outputs were seen in the trials which were standard track conditions. It became evident that irregularities were seen as the flaws or misalignments of somesegments.

Fig -4:ExperimentalSetupandPrototypeTestingofRail TrackGuardianSystem
Fig -5:AccuracyandPerformanceEvaluationofFault DetectionModel
Fig -6:DashboardforReal-timeSensorDataAcquisition

International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056

Volume: 13 Issue: 05 | May 2026 www.irjet.net p-ISSN: 2395-0072

Themachinelearningmodelwasabletoidentifytrackstates - normal, slight movement or intense shaking with an accuracyofabout91%.Theirregularpatternswererealised and saw on a browser interface in real-time. The rail roadtracksoundedoffwarningbellsasaresultofproperly alerting actions by infrared teams. During operation tests with different setups, reliability in detection was high. Through the ESP32-CAM, live video was received which showedclearvisionsofthetracksurface.Assensorreadings were displayed on the screen, the tilt patterns and error signalsdisplayedin real time beside them.The process of transmissionwasconstantlymaintainedbetweenrobotand cloud and the answers came nearly immediately. Performancewasstableinphasesoftestingeventhoughitis complex.Sothereisevidence:automaticinspectionofthe railworks

9. REFERENCES

[1] S. R. Choudhury and A. K. Prasad, “Railway track monitoringusingwirelesssensornetworks,”IEEESensors Journal,vol.16,no.5,pp.1–8,Mar.2016.

[2] P. Weston, C. Roberts, G. Yeo, and E. Stewart, “Perspectives on railway track geometry condition monitoringfromin-servicerailwayvehicles,”Proceedingsof the Institution of Mechanical Engineers, Part F: Journal of RailandRapidTransit,vol.229,no.6,pp.682–695,2015.

[3] H. Wang and Y. Zhang, “Real-time rail surface defect detection using computer vision,” IEEE Transactions on IntelligentTransportationSystems,vol.18,no.3,pp.1–10, Mar.2017.

[4]A.Malekian,J.A.Stankovic,andK.Whitehouse,“Wireless sensor network design for railway monitoring,” IEEE CommunicationsMagazine,vol.52,no.8,pp.152–159,Aug. 2014.

[5]EdgeImpulse,“Tiny ML onESP32:Deployingmachine learning models on embedded devices,” Edge Impulse Documentation,2023.

[6] A. Rizvi, P. Khan and D. Ahmad, "Crack Detection In Railway Track Using Image Processing", International Journal of Advance Research, Ideas and Innovations in Technology.,vol.3,no.4,2017.

[7] Ch. Muneendra Rao, B. R. Bala Jaswanth and Ch. Muneendra Rao “Crack Sensing Scheme in Rail Tracking System” in Int. Journal of Engineering Research and Applications,January2014,pp.13-18.

[8] Shashi Deshetti, " Indian Railway accident statisticsPercentageofaccidentsbytype2009-2014" FACTLY Data journalismportal,22March,2015,[Online]

8. CONCLUSION

More paramount than invention is the exhaustive deploymentofanengenderedtechnology.Thispaperisone suchendeavortoleverageIoTtoforfendhumans.Becauseof its cutting-edge technology-predicated approach to distributing rail safety and passenger delectation, the solutionwillperpetuatetogivebetterresultsinthefieldof railroad conveyance, including standard and bullet trains. We researched astute railway safety systems and their advantagesinthisstudyinordertodesignabetterrailway safetysystemthatcanmonitormisalignmentandcracksin railwaytracks,aswellaseventsinvolvingrailconveyances andanimals.Aperspicacioussafetymonitoringsystemcan significantlyamendrailwaynetworksafetyandsignificantly minimizerailroadaccidents.Thealertswillwithalnotifyyou ofquandariessuchaswateronthetracksandfires

[9]AbhisekhJainS,ArvindS,BalajiB.S,RamViyasN.P,"On board rail track safety monitoring system", International ConferenceonAdvancedCommunicationSystems,Jan.2021, GCT,Coimbatore.

[10]SatishKumar,Dr.Narayanan.R,"Solarpoweredcrack detector applicable for tracks", international Journal of ScientificResearch,Vol.3(2),Nov.2019.

[11]A.K. Sangaiah,M.Ramachandran,and P.Venkatesan, “IoT-basedsmart transportationsystems:A review,”IEEE Access,vol.7,pp.1–15,2019.

Fig -7:RailwayMonitoringDashboardwithLiveAnalytics

Turn static files into dynamic content formats.

Create a flipbook
Autonomous Railway Defect Detection System by IRJET Journal - Issuu