The invention provides a rule generation method, a fault prediction method and a related device, and relates to the technical field of
data processing. The rule generation method can comprise the steps of obtaining a target sample; wherein the target sample comprises a
positive sample and a
negative sample, the
positive sample refers to a sample with a target fault, and the
negative sample refers to a sample without a fault; according to an output
time sequence, searching at least one positive rule of which the occurrence frequency is greater than a frequency threshold value in the
positive sample, and searching at least one negative rule of which the occurrence frequency is greater than the frequency threshold value in the
negative sample; and obtaining a combined rule for fault prediction based on the positive rule and the negative rule. According to the technical scheme provided by the invention, the problems of limited coverage range and low accuracy of artificially defined fault prediction rules in the prior art can be solved.