A railway weed control vehicle, comprising: - at least one electrode based weed control unit; - at least one sensor; and - a processing unit; wherein, the at least one electrode based weed control unit is mounted at at least one first position of the vehicle; wherein, the at least one sensor is mounted at at least one second position of the vehicle, wherein with respect to a forward movement direction of the vehicle the at least one second position is in front of the at least one first position; wherein, activation of the at least one weed control unit is used to control weeds along and around a railway track, wherein the railway track comprises rails and sleepers; wherein, the at least one sensor is configured to acquire sensor data relating to at least one location along and around the railway track; wherein, the at least one sensor is configured to provide the sensor data to the processing unit; wherein, the processing unit is configured to modify activation of one or more electrode based weed control units of the at least one electrode based weed control unit comprising utilisation of at least one location of the determined locations of the rail infrastructure components characterised in that the processing unit is configured to analyse the sensor data to determine locations of rail infrastructure components in addition to rails and sleepers, wherein modification of activation of the one or more electrode based weed control unit comprises deactivation of the one or more electrode based weed control units. - at least one electrode based weed control unit; - at least one sensor; and - a processing unit; wherein, the at least one electrode based weed control unit is mounted at at least one first position of the vehicle; wherein, the at least one sensor is mounted at at least one second position of the vehicle, wherein with respect to a forward movement direction of the vehicle the at least one second position is in front of the at least one first position; wherein, activation of the at least one weed control unit is used to control weeds along and around a railway track, wherein the railway track comprises rails and sleepers; wherein, the at least one sensor is configured to acquire sensor data relating to at least one location along and around the railway track; wherein, the at least one sensor is configured to provide the sensor data to the processing unit; wherein, the processing unit is configured to modify activation of one or more electrode based weed control units of the at least one electrode based weed control unit comprising utilisation of at least one location of the determined locations of the rail infrastructure components characterised in that the processing unit is configured to analyse the sensor data to determine locations of rail infrastructure components in addition to rails and sleepers, wherein modification of activation of the one or more electrode based weed control unit comprises deactivation of the one or more electrode based weed control units. wherein, the at least one electrode based weed control unit is mounted at at least one first position of the vehicle; wherein, the at least one sensor is mounted at at least one second position of the vehicle, wherein with respect to a forward movement direction of the vehicle the at least one second position is in front of the at least one first position; wherein, activation of the at least one weed control unit is used to control weeds along and around a railway track, wherein the railway track comprises rails and sleepers; wherein, the at least one sensor is configured to acquire sensor data relating to at least one location along and around the railway track; wherein, the at least one sensor is configured to provide the sensor data to the processing unit; wherein, the processing unit is configured to modify activation of one or more electrode based weed control units of the at least one electrode based weed control unit comprising utilisation of at least one location of the determined locations of the rail infrastructure components characterised in that the processing unit is configured to analyse the sensor data to determine locations of rail infrastructure components in addition to rails and sleepers, wherein modification of activation of the one or more electrode based weed control unit comprises deactivation of the one or more electrode based weed control units.