An auto cleaning system for cleaning a drilling fluid in a drilling operation, the auto cleaning system comprising: a first line comprising a first entrance valve configured to allow the drilling fluid to flow into the first line, a first pressure sensor configured to measure a first pressure of the drilling fluid in the first line at an entrance point, a second pressure sensor configured to measure a second pressure of the drilling fluid in the first line at an exit point, and a first auto clean valve configured to allow the drilling fluid to flow out of the first line; a second line comprising a second entrance valve configured to allow the drilling fluid to flow into the second line, and a second auto clean valve configured to allow the drilling fluid to flow out of the second line; an auto clean pump operatively connected to the first auto clean valve and the second auto clean valve via an auto clean line, the auto clean pump configured to receive the drilling fluid from the first line or the second line and remove metal particles from the drilling fluid; an electromagnetic device around at least a portion of the first line so as to collect metal particles from the drilling fluid, wherein the electromagnetic device is energized when the drilling fluid is passing through the first line; and a controller operatively connected at least to the first entrance valve, the first pressure sensor, the second pressure sensor, the first auto clean valve, the second entrance valve, the second auto clean valve, the auto clean pump, and the electromagnetic device, wherein the controller is configured to: determine the difference between the second pressure and the first pressure is above a predetermined threshold value; at least partially open the second entrance valve to divert drilling fluid intake from the first line to the second line; and close the first entrance valve to stop the drilling fluid from entering the first line. a first line comprising a first entrance valve configured to allow the drilling fluid to flow into the first line, a first pressure sensor configured to measure a first pressure of the drilling fluid in the first line at an entrance point, a second pressure sensor configured to measure a second pressure of the drilling fluid in the first line at an exit point, and a first auto clean valve configured to allow the drilling fluid to flow out of the first line; a second line comprising a second entrance valve configured to allow the drilling fluid to flow into the second line, and a second auto clean valve configured to allow the drilling fluid to flow out of the second line; an auto clean pump operatively connected to the first auto clean valve and the second auto clean valve via an auto clean line, the auto clean pump configured to receive the drilling fluid from the first line or the second line and remove metal particles from the drilling fluid; an electromagnetic device around at least a portion of the first line so as to collect metal particles from the drilling fluid, wherein the electromagnetic device is energized when the drilling fluid is passing through the first line; and a controller operatively connected at least to the first entrance valve, the first pressure sensor, the second pressure sensor, the first auto clean valve, the second entrance valve, the second auto clean valve, the auto clean pump, and the electromagnetic device, wherein the controller is configured to: determine the difference between the second pressure and the first pressure is above a predetermined threshold value; at least partially open the second entrance valve to divert drilling fluid intake from the first line to the second line; and close the first entrance valve to stop the drilling fluid from entering the first line. determine the difference between the second pressure and the first pressure is above a predetermined threshold value; at least partially open the second entrance valve to divert drilling fluid intake from the first line to the second line; and close the first entrance valve to stop the drilling fluid from entering the first line.