ResearchPublication
Using AI to automate product photo selection
Earlier work, a post written in 2021 by two authors at Prosus and Naspers. An image classifier’s certainty about a car’s type, brand, doors, seats and angle picks the frames of a video that show each of them best.

Where this comes from
This is a post on the Prosus AI Tech Blog, published on 29 March 2021 and written by Luis Armando Pérez Rey, its main contributor, and Dmitri Jarnikov. Prosus republished it on its own site in April 2021, naming him as a PhD candidate at Naspers and Dmitri Jarnikov as a senior director of data science at Prosus Group and Naspers. It is listed here as earlier work with authors from Prosus and Naspers. What follows is from the post.
What the post asks
Someone selling an item online takes several photos of it and then has to choose the ones that show it best. Which photo of a car best shows its type, its color or its condition? The post proposes an easier way: film the item, pick the attributes that matter most, and let a model choose the frames of the video that show them best.
The idea
The authors start from a hypothesis: “Image classifiers can be used to assess how well an attribute is portrayed in an image.” A classifier trained to predict an attribute learns the visual features that predict it best, and the more clearly a picture shows those features, the more certain the classifier is. That certainty can then be read as how well a picture portrays the attribute. A video is a collection of pictures, so the frames on which the classifier is most certain are good candidates to show the attribute.
A proof of concept on cars
The first test is on cars, because they are a very common product to sell, have a well-established list of attributes, and come with plenty of labeled data. One model predicts a car’s type, brand, number of doors and number of seats, and the angle of the car’s front to the camera. The angle was learned from the PASCAL3D+ dataset and the rest from CompCars.
The model is a probabilistic classifier with one prediction for each attribute, set on a feature extractor pre-trained on ImageNet, which the post names InceptionResnetV5. Each attribute’s predictor was trained on its own by transfer learning, with the feature extractor and the other attributes’ layers frozen. For any picture the model gives a prediction for each attribute and how certain it is.
Certainty about a class
Type, brand, doors and seats are discrete. Each of their predictions ends in a softmax, a probability for every possible value, and the entropy of those probabilities measures the uncertainty: the higher it is, the less certain the prediction.
Certainty about an angle
The car’s angle is continuous. Following Prokudin, Gehler and Nowozin’s work on deep directional statistics, the model gives a location, the most likely angle, and a scale, how certain it is of that angle.
One frame for each attribute
The video’s frames are read one by one, and for each discrete attribute the frame on which the model is most certain is kept.
Frames from every side
The full circle of angles is divided into ranges. A frame is kept when the model is certain enough of its angle and that range has no frame yet, so the frames kept show the car from different sides. The predicted angles can also put them in order and draw a map of which sides the video has shown.
- car types the model tells apart, such as sedan, hatchback and estate
- 12
- car brands
- 161
- ranges of angle the full circle is divided into, one frame for each
- 8
- probability a frame’s predicted angle must exceed to be kept
- 0.8
What it found
The post reports no measured results. It shows the proof of concept at work on videos of cars, with the frame chosen so far for each attribute and how certain the model was of each of the attribute’s values as the video plays. The authors say they have built a proof of concept of a method that can automatically highlight a car’s attributes from a video.
The authors name three challenges for taking it further. Classifiers for the attributes of any object would have to be trained without large labeled datasets, perhaps with unsupervised methods, among them two of Luis Armando Pérez Rey’s own papers. The frames are read one at a time, and the order of the frames carries information that architectures for sequences of images could use. A larger feature extractor could do better at a much greater cost in computing, a trade-off still to study.
A note at the end of the post says that it measures a prediction’s certainty by the entropy of its probabilities, that estimating certainty in machine learning is a more complex subject, and points the reader to Hüllermeier and Waegeman’s introduction to aleatoric and epistemic uncertainty.
The post
Using AI to automate product photo selectionLuis Armando Pérez Rey, Dmitri Jarnikov. Prosus AI Tech Blog, 2021Authors
Luis Armando Pérez Rey
Dmitri Jarnikov
References
- Using AI to automate product photo selectionLuis Armando Pérez Rey, Dmitri Jarnikov. Prosus AI Tech Blog, Medium, 29 March 2021
- Using AI to automate product photo selectionProsus, 6 April 2021