Research on the Application of Random Forest Algorithm in Color Difference Prediction

Authors

  • Yuhang Luo School of Computer Science and Software Engineering, University of Science and Technology Liaoning, Anshan, China Author
  • Zhe Wang School of Computer Science and Software Engineering, University of Science and Technology Liaoning, Anshan, China Author
  • Chongyang Tang School of Computer Science and Software Engineering, University of Science and Technology Liaoning, Anshan, China Author

DOI:

https://doi.org/10.70088/s2f5fr58

Keywords:

machine learning, color difference, random forest, visual perception, predictive modeling

Abstract

Accurate color difference prediction is crucial in various industrial applications and must align closely with human visual perception. Traditional color difference prediction methods typically rely on fitting mathematical color difference formulas using empirical color difference data. However, inherent discrepancies often exist between these established formulas and actual human perception of color differences. To address this limitation, this study proposes a novel approach utilizing the random forest algorithm for color difference prediction, aiming to significantly enhance prediction accuracy through the establishment of multiple regression trees. The Standardized Residual Sum of Squares (STRESS) was employed as the primary evaluation metric to assess the degree of fit between the algorithmically predicted color differences and those perceived by the human eye. Comprehensive experiments were conducted using the COM corrected dataset, specifically the CIE Expert Group 1-55 color difference dataset comprising 11,273 data points, along with its relevant data subsets. The experimental results demonstrate that the random forest algorithm exhibits exceptional performance in color difference prediction, achieving an average STRESS value of 29.67. Furthermore, when compared to the traditional CIELAB color space, the proposed MLAB color difference formula yields substantial improvements, reducing the STRESS values by 32% and 27%, respectively. These findings indicate that machine learning approaches, particularly random forest models, offer a robust and highly accurate alternative for complex color difference prediction tasks, bridging the gap between computational models and human visual perception.

References

A. R. Robertson, “The CIE 1976 color‐difference formulae,” Color Research & Application, vol. 2, no. 1, pp. 7–11, 1977.

R. McDonald, “Acceptability and Perceptibility Decisions Using the CMC Color Difference Formula,” Textile Chemist & Colorist, vol. 20, no. 6, p. 31, 1988.

S. Shao, “An investigation of texture effects on instrumental and visual colour difference evaluation,” 2006.

G. Cui, M. R. Luo, B. Rigg, G. Roesler, and K. Witt, “Uniform colour spaces based on the DIN99 colour‐difference formula,” Color Research & Application, vol. 27, no. 4, pp. 282–290, 2002.

M. R. Luo, G. Cui, and B. Rigg, “The development of the CIE 2000 colour‐difference formula: CIEDE2000,” Color Research & Application, vol. 26, no. 5, pp. 340–350, 2001.

C. Şahin, O. Balcı, M. Işık, and İ. Gökenç, “Artificial neural networks approach for prediction of CIELab values for yarn after dyeing and finishing process,” The Journal of The Textile Institute, vol. 114, no. 9, pp. 1326–1335, 2023.

C. Arnold, L. Biedebach, A. Küpfer, and M. Neunhoeffer, “The role of hyperparameters in machine learning models and how to tune them,” Political Science Research and Methods, vol. 12, no. 4, pp. 841–848, 2024.

W. J. Jasper and S. M. Jasper, “A controlled study on machine learning applications to predict dry fabric color from wet samples: Influences of dye concentration and squeeze pressure,” Fibers, vol. 13, no. 4, p. 47, 2025.

B. A. Mascaro, R. V. Conejo, M. Tejada-Casado, R. G. Fonseca, J. M. D. S. N. Reis, and M. M. Pérez, “Machine learning regression models for color prediction of CAD-CAM materials against different tooth-colored backgrounds,” Journal of Dentistry, p. 105994, 2025.

E. Kadyrgali, M. Muratbekova, A. Yerkin, N. Toganas, A. Igali, M. Ziyada, et al., “Perceptual Color Difference Modeling Using Machine Learning and Human Similarity Judgments,” arXiv preprint arXiv:2609.39130, 2026.

H. Choi, S. Jung, and S. W. Lee, “Data-Efficient Machine Learning for Layer Number Identification of 2D Materials Using Color Difference Analysis,” ACS Applied Nano Materials, vol. 8, no. 29, pp. 14819–14826, 2025.

Q. Li, D. Chen, H. Wang, and J. Shen, “A machine learning based approach to standardizing tooth color and shade recommendations,” The Journal of Prosthetic Dentistry, vol. 134, no. 6, pp. 2543–2551, 2025.

C. N. Sánchez, M. T. Orvañanos-Guerrero, J. Domínguez-Soberanes, and Y. M. Álvarez-Cisneros, “Analysis of beef quality according to color changes using computer vision and white-box machine learning techniques,” Heliyon, vol. 9, no. 7, 2023.

G. Ripoll, B. Panea, and M. Á. Latorre, “A Machine Learning Approach Investigating Consumers’ Familiarity with and Involvement in the Just Noticeable Color Difference and Cured Color Characterization Scale,” Foods, vol. 12, no. 24, p. 4426, 2023.

L. Ahrens, J. Ahrens, and H. D. Schotten, “A machine learning approach to color space Euclidization,” Color Research & Application, vol. 49, no. 1, pp. 4–33, 2024.

C. E. Berger, “Objective ink color comparison through image processing and machine learning,” Science & Justice, vol. 53, no. 1, pp. 55–59, 2013.

S. L. Chen, H. S. Zhou, T. Y. Chen, T. H. Lee, C. A. Chen, T. L. Lin, et al., “Dental shade matching method based on hue, saturation, value color model with machine learning and fuzzy decision,” Sens. Mater., vol. 32, no. 10, pp. 3185–3207, 2020.

W. Castro, J. Oblitas, M. De-La-Torre, C. Cotrina, K. Bazán, and H. Avila-George, “Classification of cape gooseberry fruit according to its level of ripeness using machine learning techniques and different color spaces,” IEEE Access, vol. 7, pp. 27389–27400, 2019.

Downloads

Published

01 December 2026

Issue

Section

Article

How to Cite

Luo, Y., Wang, Z., & Tang, C. (2026). Research on the Application of Random Forest Algorithm in Color Difference Prediction. Artificial Intelligence and Digital Technology, 3(7), 8-16. https://doi.org/10.70088/s2f5fr58