AutoPhoto: Aesthetic Photo Capture using Reinforcement Learning

Hadi AlZayer, Hubert Lin, Kavita Bala

Introduction

Capturing a compelling photograph involves more than technical proficiency; it requires an "eye" for composition—a skill typically honed through years of human experience. While autonomous robotics has advanced significantly in navigation and object tracking, the task of autonomous aesthetic photography remains a challenge. Researchers at Cornell University have introduced AutoPhoto, a system that enables robots to navigate complex indoor environments to find and capture aesthetically pleasing images.

The AutoPhoto system deployed on a Clearpath Jackal robot, alongside a gallery of aesthetic photos captured across various indoor environments.

The Challenge of Robotic Photography

Traditional approaches to automated photography often rely on rigid, hand-coded heuristics, such as the "rule of thirds." However, these rules fail to capture the subjective and nuanced nature of human aesthetic preference. Furthermore, an autonomous agent faces a significant exploration challenge: it must navigate an unknown environment, deciding where to move and when to trigger a capture based solely on its current visual input and its memory of previously visited locations.

Methodology: A Two-Part Pipeline

The AutoPhoto system frames the photography task as a Partially Observable Markov Decision Process (POMDP), addressed through a specialized two-part architecture.

1. Data-Driven Aesthetics Estimation

Instead of relying on geometric rules, the system utilizes a ResNet18 model trained to predict human aesthetic scores. To ensure reliability in real-world conditions, the researchers implemented "robustness losses." These prevent the model from producing erratic scores due to minor camera vibrations or variations in exposure.

To account for the fact that different environments have different baseline "beauty," the system employs adaptive thresholding. It calculates a local aesthetic threshold ($\mu + \sigma$) based on the views in the robot's immediate vicinity, incentivizing the agent to find the best possible shot within its current context.

2. Reinforcement Learning for Navigation

The robot's movement is governed by a navigation policy learned via Proximal Policy Optimization (PPO).

  • Memory Integration: The agent processes visual input through a Long Short-Term Memory (LSTM) module. This memory is vital for preventing the robot from re-exploring unappealing areas or becoming trapped in loops.
  • Action and Reward: The robot can move, rotate, or execute a "CAPTURE" command. It receives rewards for moving toward higher aesthetic scores and a significant bonus for capturing a photo that exceeds the local adaptive threshold.

Experimental Setup and Training

The aesthetics model was trained on the AVA (Aesthetic Visual Analysis) and CPC (Comparative Photo Composition) datasets, which contain thousands of human-rated images. The RL agent was trained within the AI Habitat simulator using the Gibson dataset—a collection of high-fidelity 3D scans of indoor spaces. This simulation-heavy approach allowed for safe, large-scale training before deployment.

Key Results and Insights

The researchers demonstrated that learned aesthetic models significantly outperform traditional heuristics. In simulations using the Gibson dataset, AutoPhoto successfully captured photos exceeding the aesthetic threshold 81.7% of the time, compared to just 57.8% for imitation learning baselines.

An example of a high-scoring aesthetic composition captured by the AutoPhoto agent, featuring balanced lighting and subject placement.

Human validation via Amazon Mechanical Turk further confirmed these results. Participants preferred photos captured by AutoPhoto over the robot's initial starting views with a mean preference score of 0.63 (where 0.5 represents a tie). Notably, the agent proved efficient, finding high-quality compositions in a median of 16 steps, indicating a purposeful search strategy rather than random exploration.

Conclusion and Future Directions

AutoPhoto successfully demonstrates the transfer of aesthetic judgment from human-rated datasets to autonomous robotic agents. By training in high-quality 3D simulations with modeled "noise," the system transitioned seamlessly to a physical Clearpath Jackal robot without requiring additional real-world training.

Future work may expand the system's capabilities by moving from 3-DOF ground robots to 6-DOF aerial drones, allowing for more creative vertical compositions. Additionally, incorporating human-in-the-loop feedback could allow the system to adapt to specific individual aesthetic styles.

Summary updated

Abstract

The process of capturing a well-composed photo is difficult and it takes years of experience to master. We propose a novel pipeline for an autonomous agent to automatically capture an aesthetic photograph by navigating within a local region in a scene. Instead of classical optimization over heuristics such as the rule-of-thirds, we adopt a data-driven aesthetics estimator to assess photo quality. A reinforcement learning framework is used to optimize the model with respect to the learned aesthetics metric. We train our model in simulation with indoor scenes, and we demonstrate that our system can capture aesthetic photos in both simulation and real world environments on a ground robot. To our knowledge, this is the first system that can automatically explore an environment to capture an aesthetic photo with respect to a learned aesthetic estimator. Source code is at https://github.com/HadiZayer/AutoPhoto
BibTeX
@inproceedings{alzayer2021autophoto,
  author = {Hadi AlZayer and Hubert Lin and Kavita Bala},
  title = {{AutoPhoto: Aesthetic Photo Capture using Reinforcement Learning}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=ok9N_AwZnI-9},
}
Figure