The application discloses an online electric leakage detection and early warning module for outdoor line poles and relates to the technical field of power line monitoring. The module comprises a current collection unit, a
signal conditioning unit, an environment sensing unit and a main control
processing unit. An adaptive threshold calculation submodule and a dynamic sampling scheduling submodule are arranged in the main control
processing unit. The adaptive threshold calculation submodule divides the environment into bins according to temperature and
humidity, constructs a robust baseline with a median and an
absolute deviation of the median, and generates a dynamic alarm threshold. The dynamic sampling scheduling submodule divides the operation into five states, i.e., deep sleep,
fast scanning, monitoring, intensive capture and alarm confirmation, and the transition is driven by the dynamic threshold and the
signal trend. The two submodules are coordinated through a sample bucket permission flag, the data during the fault period is prohibited from being backfilled into the baseline, and closed-loop purification is realized. The application takes into account low
false alarm, high sensitivity and transient fault capture capability, and does not significantly increase
power consumption.