Introduction
Automated plant phenotyping is essential for understanding root system architecture (RSA) and its response to environmental stressors. Researchers often use mesocosms—thin, transparent containers—to observe root growth. However, the 3D nature of roots often leads to "gaps" in 2D images when segments are occluded by soil or overlap. These discontinuities break the topological graph of the root system, leading to significant errors in extracting traits like total root length and branching patterns. Manual correction is labor-intensive and limits high-throughput analysis.
Methodology
We propose a deep learning-based inpainting model designed to restore root connectivity. The architecture is a fully convolutional encoder-decoder network inspired by U-Net.
Model Architecture
The network utilizes a bottleneck structure to learn global spatial representations of root geometry. A key feature is the inclusion of skip connections between corresponding layers of the encoder and decoder. These connections preserve high-frequency spatial details, ensuring that the restored segments align precisely with existing root structures and avoiding the blurriness typical of standard autoencoders.
Optimization
Unlike traditional inpainting tasks that use Mean Squared Error (MSE), our model is optimized using Mean Absolute Error (MAE). MAE encourages the production of sharp, definitive lines rather than blurry averages, which is essential for maintaining the thin, skeletal nature of root segments. Being fully convolutional, the model can process images of arbitrary dimensions.
Data and Training
Due to the difficulty of obtaining ground truth for real-world root systems, the model was primarily trained on synthetic data. We generated 10,000 simulated root images and introduced artificial gaps by removing random square patches. To validate the model's real-world utility, we tested it on images of chickpea roots grown in mesocosms. This evaluated the model's ability to generalize from synthetic line-drawing-like structures to complex biological images.
Results and Discussion
The model demonstrated superior performance over existing line inpainting methods. It effectively reconnected lateral branches to primary roots, restoring the topological integrity of the system.
On synthetic datasets, the error in total root length measurement for dicots was reduced from 5.71 mm to 1.61 mm after inpainting. Furthermore, the model is highly efficient, processing a 256x256 image patch in approximately 120 milliseconds. A significant finding was the model's strong generalization: although trained only on synthetic data, it accurately repaired gaps in real chickpea root images.
Conclusion and Future Work
While the deep inpainting approach significantly improves RSA trait extraction, challenges remain. Very fine gaps in thin roots can sometimes be missed due to resolution loss during encoding. Additionally, extremely dense root clusters can create semantic ambiguity. Future research will explore the use of Generative Adversarial Networks (GANs) for more realistic texture synthesis and the development of joint models that perform segmentation and gap filling simultaneously.
Summary updated