ExperienceApr 2025 - Aug 2025

Computer Vision Research Engineer (Intern)

@Verréo

Designed a texture classification pipeline to automate cork sorting and traceability, with explainability and evaluation tools.

Period
Apr 2025 - Aug 2025
Duration
5 mos
Location
Céret, France
Stack
PythonPyTorchOpenCVCNNAttention ModulesTransfer LearningFeature ExtractionUnsupervised Learning

Highlights

  • Texture classification pipeline (patch pre-training, then fine-tuning).
  • Benchmarked architectures, attention modules and aggregation / clustering methods.
  • Evaluation tools: metrics, confusion matrices, Grad-CAM.

The ReyCorks project, led by Verréo, uses computer vision to automate the sorting of used corks, to improve material recycling and traceability in the wine industry.

As a computer vision research engineer, I rebuilt the material classification system (natural, agglomerated, synthetic) for production, and designed a research pipeline to identify cork manufacturers. The main challenge: images degraded by wear and by the cylindrical shape of the objects.

A ReyCorks sorting machine, where the classification model runs.
A cork in the lit tunnel of a ReyCorks sorting machine

A ReyCorks sorting machine, where the classification model runs.

Cork classification

First, I compared several convolutional architectures to find the best trade-off between accuracy and the inference time imposed by the machine's real-time constraints.

Early analysis revealed a bias: the network classified corks from the markings printed on them rather than from the material. To fix it, I added attention modules that push the model to ignore visual noise (ink, wear) and focus on the cork's texture, and trained it in several stages, from texture patches to whole corks.

Grad-CAM audit: checking that the network activates on the organic texture rather than on printed elements.
Grad-CAM attention maps

Grad-CAM audit: checking that the network activates on the organic texture rather than on printed elements.

Finally, Grad-CAM was used to inspect activation maps, diagnose the initial bias and confirm that final decisions rely on the material's porosity, a requirement for industrial reliability.

Semi-supervised marking recognition

Unlike classification, which runs in real time on the sorting line, manufacturer recognition was designed as offline processing downstream of the machine. The goal of this R&D study was to design a system able to discover and group new manufacturers, with no labelled reference set to start from.

  • Image preparation: the printed markings are isolated and flattened, despite the cylindrical shape of the cork.
  • Features: pretrained vision models combined with local descriptors, to capture both what a logo looks like and its exact shape.
  • Incremental clustering: new batches are grouped as they come in, unknown markings are kept apart until they form a new manufacturer.

Impact and performance

98%

Accuracy, up from about 90 %

23ms

Inference per image

The final classifier keeps up with the real-time pace of the sorting line. The manufacturer study ended as a formalised method, a base for bringing semi-supervised recognition into the software later.