Onboard monitoring system for railway infrastructure: design, implementation, and anomaly detection | Synapse