Data Pre-processing on Sensor Nodes for Predictive Maintenance