1. A method for performing auto-cleaning in a printer, which is designed for printing on a substrate, the method comprising: periodically printing an auto-cleaner print on substrates at a frequency, wherein the auto-cleaner print comprises a single color patch; scanning the auto-cleaner print to obtain scanned image data of the auto-cleaner print; analyzing the scanned image data to determine an extent of presence of artifacts indicative of dirt or ink residue; and based on the determined extent of presence of the artifacts, modifying the frequency at which the auto-cleaner print is periodically printed on further substrates.