[Paper Review] Automated Image Data Preprocessing with Deep Reinforcement Learning
This paper proposes a deep reinforcement learning framework that automatically learns optimal, individualized preprocessing transformation chains for each image in a dataset, improving classifier accuracy and robustness—especially on noisy data—by jointly optimizing the classifier and preprocessing policy through iterative, instance-specific exploration of transformation sequences.
Data preparation, i.e. the process of transforming raw data into a format that can be used for training effective machine learning models, is a tedious and time-consuming task. For image data, preprocessing typically involves a sequence of basic transformations such as cropping, filtering, rotating or flipping images. Currently, data scientists decide manually based on their experience which transformations to apply in which particular order to a given image data set. Besides constituting a bottleneck in real-world data science projects, manual image data preprocessing may yield suboptimal results as data scientists need to rely on intuition or trial-and-error approaches when exploring the space of possible image transformations and thus might not be able to discover the most effective ones. To mitigate the inefficiency and potential ineffectiveness of manual data preprocessing, this paper proposes a deep reinforcement learning framework to automatically discover the optimal data preprocessing steps for training an image classifier. The framework takes as input sets of labeled images and predefined preprocessing transformations. It jointly learns the classifier and the optimal preprocessing transformations for individual images. Experimental results show that the proposed approach not only improves the accuracy of image classifiers, but also makes them substantially more robust to noisy inputs at test time.
Motivation & Objective
- Address the inefficiency and suboptimal outcomes of manual image data preprocessing, which consumes 50–80% of data science project time.
- Overcome limitations of existing data augmentation methods that apply uniform transformations to all data instances, leading to data bloat and ineffective preprocessing.
- Enable individualized preprocessing per image by discovering optimal transformation sequences (e.g., rotation, flipping) tailored to each image’s unique distortions.
- Improve model generalization and robustness to noisy inputs at test time through automated, explainable preprocessing.
- Develop a framework that is extensible to other unstructured data types such as text and time series.
Proposed method
- Formulate image preprocessing as a sequential decision-making problem using deep reinforcement learning, where each image is processed via a learned chain of transformations.
- Define the state space as the raw or distorted image, and the action space as discrete preprocessing operations (e.g., rotate ±90°, flip horizontally/vertically).
- Use a Deep Q-Network (DQN) agent to learn a policy that selects transformations to maximize classification accuracy on the preprocessed image.
- Train the agent end-to-end by jointly optimizing the image classifier and the preprocessing policy, with rewards shaped by classification performance.
- Apply the framework iteratively: the agent selects a transformation, the image is preprocessed, and the process repeats until convergence or a maximum number of steps.
- Ensure explainability by logging and tracing the full transformation chain applied to each image, enabling inspection of preprocessing decisions.
Experimental results
Research questions
- RQ1Can a reinforcement learning agent automatically discover effective, instance-specific preprocessing transformation chains that improve image classifier performance?
- RQ2How does automated, individualized preprocessing compare to traditional data augmentation in terms of accuracy and robustness on noisy image datasets?
- RQ3To what extent does the framework enhance model robustness against noisy inputs at test time?
- RQ4Can the framework generalize beyond simple transformations (e.g., rotation, flipping) to more complex operations like learnable rotations or object-level preprocessing?
- RQ5How does the iterative, policy-based approach to preprocessing improve model generalization compared to fixed or global augmentation strategies?
Key findings
- The proposed reinforcement learning framework significantly improves image classifier accuracy, achieving a test accuracy of 0.9826 ± 0.0014 on MNIST with Arch3, compared to 0.7563 ± 0.0024 for the standard neural network baseline.
- The framework enhances robustness to noisy inputs, with test accuracy on distorted images reaching 0.8987 ± 0.0151 for the RL method on Arch2, outperforming the standard NN baseline of 0.7242 ± 0.0011.
- The framework successfully recovers many distorted images to their original form through symmetric transformation chains, as demonstrated in visualizations of learned preprocessing paths.
- Despite high performance, a small number of images are misclassified due to incorrect transformation chains, indicating a need for improved exploration or action space design.
- The framework’s iterative and instance-specific approach avoids data explosion, maintaining the original training set size while improving model generalization.
- The method provides explainability by logging and tracing the full sequence of transformations applied to each image, enabling inspection of preprocessing decisions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.