AbstractThe color of an object appears different from its true color when illuminated with light sources of different hues. To solve this problem, this article proposes a combination algorithm (SCA‐GWO‐LSSVR) based on the sine‐cosine algorithm (SCA) and the gray wolf optimization (GWO) algorithm to optimize the regression prediction model of the least‐squares support vector regression (LSSVR) algorithm. The performance of the traditional LSSVR is significantly affected by the penalty parameter (gamma) and the sig2 kernel function parameter. The proposed method uses the improved GWO algorithm to search the population to find the best LSSVR parameter solution. The proposed algorithm uses the SCA to create multiple random candidate solutions in population initialization to avoid blind initialization of the GWO algorithm. In the process of iterative optimization, the SCA is infiltrated, and its sine‐cosine wave mathematical model is used to quickly identify the best outward or inward position of the gray wolf. Finally, the LSSVR combines the optimal sig2 kernel function parameters and penalty parameters (gamma) to obtain a highly versatile illumination correction model. The experimental results show that the fitting accuracy of the proposed method reaches 86.8%, which is 5% higher than that of the LSSVR algorithm alone.