A spectral color matching method based on KM model and intelligent optimization

By establishing a nonlinear color matching model and optimizing it with a genetic algorithm, the problem of color matching accuracy in the printing field using KM theory was solved, achieving efficient and accurate ink color matching and improving printing quality.

CN119092006BActive Publication Date: 2026-11-17QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411196436.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-11-17
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing printing color matching methods based on KM theory suffer from low color matching accuracy in the printing field, especially due to errors caused by the shift in the absorption and scattering coefficients of the primary color inks and the discontinuity of their optical behavior.

Method used

By establishing a color matching model that integrates the nonlinear relationship between K/S value and concentration, the optimal parameters are solved using a genetic algorithm. By nonlinearly correcting the spectral reflectance, a constrained optimization problem is constructed to determine the correction coefficients k1 and k2. The correction coefficients are optimized using a grid search method, and finally the ink formula is solved using a genetic algorithm.

Benefits of technology

It improves color matching accuracy, reduces the number of experiments and sample data requirements, enhances the model's generalization ability, and achieves efficient and accurate automatic ink color matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119092006B_ABST
    Figure CN119092006B_ABST
Patent Text Reader

Abstract

This invention proposes a spectral color matching method based on the KM model and intelligent optimization. Addressing the issue of low accuracy in ink color matching using traditional KM methods, this invention improves the KM single-constant color matching model by treating the product of the primary color's K / S value and concentration as a whole in the calculation, thus comprehensively considering the nonlinear relationship between K / S value and concentration. Simultaneously, through a small number of color matching experiments, a grid search algorithm is used to optimize and obtain the spectral reflectance correction parameter, accurately correcting the spectral reflectance of the target color sample to improve the accuracy of the KM color matching model. Based on this, a nonlinear constrained optimization problem is constructed and solved using a genetic algorithm to obtain the optimal ink formulation. This invention has strong guiding significance for the development and application of automatic ink color matching systems; it requires only a small number of color matching experiments and a limited amount of color matching sample data to obtain a color matching model with strong generalization ability. This method significantly improves color matching accuracy and reduces the difficulty of ink color matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of printing technology, and in particular to a spectral color matching method based on the KM model and intelligent optimization. Background Technology

[0002] Color matching is the process of obtaining a target color by mixing different base color inks. Traditional manual color matching is often affected by the physiological, psychological, and other subjective and objective factors of the colorist, leading to unstable product quality and often failing to meet the requirements of modern printing and packaging production. Computer color matching technology, based on color theory, provides base color ink formulas for arbitrary color mixing through automatic computer calculations, simplifying the color matching process in practice. Computer color matching technology pre-stores a database of basic ink colors in the computer and uses color matching software to calculate the mixing ratio of base inks matching the target color, thereby obtaining a precise ink formula, improving the accuracy and stability of color matching, and reducing human error. To achieve efficient and accurate automatic color matching, several color matching models have been proposed both domestically and internationally, including models based on single-constant and double-constant Kubelka-Munk theories, the Friele model, the Stearns-Noechel model, and color matching models based on neural networks. The KM (Kubelka-Munk) theoretical model is a theoretical derivation model based on light propagation behavior modeling. It does not require extensive basic experimental data for modeling, and its generalization ability is usually stronger than experimental models that rely on a small number of training samples. Some models that rely on training samples, such as neural network models, often require thousands or even tens of thousands of training samples to ensure the model's generalization ability. This requires creating a large number of color samples and measuring them, as well as training the model, which consumes a lot of time, manpower, and resources.

[0003] KM theory has two algorithms: single-constant and double-constant. The double-constant algorithm is generally used in industries such as paints, plastics, and coatings, while the single-constant algorithm is mainly used in the textile printing and dyeing industry. Based on this theory, industries such as printing and coatings have established their own computer color matching systems. KM theory proposes that the absorption and scattering coefficients of light in multiple non-transparent mixtures are linearly related to the absorption and scattering coefficients of each non-transparent material, and these absorption and scattering coefficients are only related to their reflectance coefficients. In the invention patent "A Color Matching Method for Colored Yarn Based on Modified Single-Constant KM Theory" (CN 112668174 B), a linear function for correcting spectral reflectance is proposed, expressed as G(x)=k1x+k2, where the variable parameters k1 and k2 are the values ​​that achieve the best linear relationship between the corrected single-constant K / S value of the primary color fiber sample and the concentration, and satisfy the constraint condition k1+k2=1. The invention patent "A Printing Ink Color Matching Method Based on KM Theory" (CN 113910796B) proposes a method to obtain the absorption and scattering coefficients of primary color inks, still utilizing the linear relationship between the single constant K / S value and concentration for color matching. However, KM theory is based on a series of assumptions and differs from actual optical behavior. In practical applications, it has been found that the single constant K / S value of the primary color does not have a linear relationship with concentration, which may lead to poor color matching accuracy of the model.

[0004] Furthermore, the KM theory assumes a continuous change in refractive index at the film interface in color matching; however, the actual air-film interface typically experiences abrupt changes in refractive index. This discontinuity prevents the KM spectral color matching model from achieving spectral reflectance values ​​that closely approximate actual measurements. One solution is to correct the spectral reflectance of the target color, primary color, and substrate before color matching. For example, the Saunderson correction method can be used, with the following correction model:

[0005]

[0006] In the formula R p (λ), R corr,p(λ) represents the spectral reflectance coefficients before and after correction, where λ is the wavelength, k1 is the Fresnel reflectance coefficient of parallel light (approximately 0.04), and k2 is the Fresnel reflectance coefficient of diffuse light incident from the interior to the surface (approximately 0.4–0.6). These two parameters are often trial and error based on specific circumstances, making it difficult to find accurate values. Furthermore, in the printing industry, to obtain colors lighter than the primary colors, diluents are often used instead of white ink. However, the use of diluents causes a shift in the absorption and scattering coefficients of the primary color inks in the color matching system, resulting in color matching errors. This can also be corrected by adjusting the spectral reflectance, but the correction parameters require repeated adjustments. Therefore, existing color matching methods based on traditional KM theory have low accuracy when applied in the printing field. Therefore, there is an urgent need to develop new color matching methods and technologies to improve color matching accuracy and efficiency. Summary of the Invention

[0007] To overcome the shortcomings of existing technologies, this invention provides a spectral color matching method that integrates the product of the primary color K / S value and concentration into a whole for calculation, thereby taking into account the nonlinear relationship between K / S value and concentration. The optimal parameters are solved to perform nonlinear correction on the spectral reflectance. Based on this, a constrained nonlinear optimization problem is constructed, and the optimal formula is obtained using a genetic algorithm.

[0008] This invention is achieved through the following technical solution: a spectral color matching method based on the KM model and intelligent optimization, comprising the following steps:

[0009] Phase 1: Establish a basic dataset for color matching and build a color matching model, keeping the correction coefficients k1 and k2 in the color matching model as undetermined parameters.

[0010] Step S1: Select the base color ink and diluent, and prepare coated paper with high gloss and smoothness; mix the base color ink and diluent at c i :(1-c i (0 < c) i ≤1, i=1,2,…,n) are mixed uniformly to obtain n sets of mixtures of base color ink and diluent with different ratios, and then developed on coated paper to prepare n sample sheets; preferably, n is 20, c1=5%, c2=10%,…,c 20 =100%, with each tier at 5%;

[0011] Step S2: Measure the spectral reflectance coefficient R of coated paper. p (λ), the spectral reflectance coefficient of the n samples in step S1. Where i = 1, 2, ..., n; wavelength λ = 400, 410, ..., 700, in nm, with a wavelength interval of 10 nm;

[0012] The spectral reflectance coefficient R of coated paper p(λ) is corrected, and the formula is:

[0013]

[0014] Spectral reflectance coefficients of n samples The formula is modified as follows:

[0015]

[0016] k1 and k2 are correction coefficients, where k1 represents the Fresnel reflection coefficient of parallel light, which is approximately 0.04; k2 represents the Fresnel reflection coefficient of diffuse light incident from the interior to the surface, which is approximately 0.4 to 0.6; by default, k1 = 0.04 and k2 = 0.05 can be set.

[0017] Step S3: Calculate the ratio of the absorption coefficient to the scattering coefficient of the coated paper. Where wavelength λ = 400, 410, ..., 700; the formula is: Calculate the ratio of the absorption coefficient to the scattering coefficient for n samples. Where i = 1, 2, ..., n, and wavelength λ = 400, 410, ..., 700; the formula is:

[0018]

[0019] According to the single-constant additivity principle of KM theory, the ratio of absorption coefficient to scattering coefficient, K / S, has a linear relationship with concentration; denoted as... Let K / S be the K / S value of the primary color ink at a unit concentration under wavelength λ. Then, the ratio of the absorption coefficient to the scattering coefficient of n samples satisfies the following formula:

[0020]

[0021] Considering that the relationship between K / S value and concentration is usually not linear, a nonlinear function f(λ,c) is introduced. i ) replace the above formula get:

[0022]

[0023] Where f(λ,c) i () represents the concentration c at wavelength λ. i The K / S value of the primary color ink; further obtained:

[0024]

[0025] Therefore, for wavelength λ, we can obtain the sequence [0, f(λ, c1), f(λ, c2), ..., f(λ, c2). n[); Through interpolation algorithms, the K / S value f(λ,c) function of the primary color ink corresponding to wavelength λ and arbitrary concentration c can be obtained:

[0026]

[0027] here This represents the interpolation function; preferably, the interpolation algorithm uses cubic spline interpolation.

[0028] Step S4: Set the primary color inks to cyan, magenta, and yellow respectively, and repeat steps S1 to S3 to obtain the K / S value sequence [0, f] for wavelength λ. c (λ,c1),f c (λ,c2),…,f c (λ,c n )]、[0,f m (λ,c1),f m (λ,c2),…,f m (λ,c n )]、[0,f y (λ,c1),f y (λ,c2),…,f y (λ,c n [Wavelength λ = 400, 410, ..., 700;] Through interpolation algorithms, the K / S value f of the primary color ink corresponding to any wavelength λ and concentration c can be obtained. c (λ,c), f m (λ,c), f y A function of (λ,c);

[0029] Based on the determined K / S value function f for cyan ink, magenta ink, and yellow ink c (λ,c), f m (λ,c), f y (λ,c) yields the color matching model.

[0030]

[0031] In the formula c c c m c y The proportions of cyan ink, magenta ink, and yellow ink are respectively. The predicted K / S value of the prepared ink; where According to step S3, f c (λ,c c ), f m (λ,c m ), f y (λ,c yAccording to the interpolation algorithm; since the correction coefficients k1 and k2 need to be clearly determined in step S2 before steps S3 and S4 can be calculated, k1 and k2 are undetermined parameters in the color matching model;

[0032] The second stage involves conducting small-scale color matching experiments using mixed primary color inks, and determining the optimal values ​​of correction coefficients k1 and k2 using a grid search method. This includes the following steps:

[0033] Step S5: Mix cyan ink, magenta ink, and yellow ink with c c :c m :c y Mix evenly according to the ratio, 0 <c c ,c m ,c y ≤1, resulting in m groups of mixed inks with different proportions; if c c +c m +c y <1, the percentage of diluent is 1-(c c +c m +c y The mixed inks were applied to coated paper to prepare m samples; m ≥ 2; the spectral reflectance coefficients of these m samples were measured simultaneously.

[0034] Step S6: Divide the range of k1 into 0.035 to 0.045 with an interval of 0.005, and divide the range of k2 into 0.4 to 0.6 with an interval of 0.01, to obtain k1∈{0.035,0.04,0.045}, k2∈{0.4,0.41,0.42,…,0.6}, and construct a search grid (k1,k2) containing a total of 3×21=63 search points;

[0035] Step S7: Determine the optimal values ​​of the undetermined parameters k1 and k2, according to steps S7.1 to S7.3 below:

[0036] Step S7.1: For each search grid point determined in step S6, corresponding to the k1 and k2 values, use the color matching model obtained in step S4 to calculate the K / S prediction values ​​of the prepared m samples respectively.

[0037] Step S7.2: For each search grid point determined in step S6, corresponding to the k1 and k2 values, the K / S measurement values ​​of the m samples obtained in step S5 are calculated using the formulas in steps S2 and S3, based on the spectral reflectance coefficients of the m samples.

[0038] Step S7.3: For each search grid point determined in step S6, using the results of steps S7.1 and S7.2, calculate the prediction accuracy index acc. pred The formula is as follows:

[0039]

[0040] In the formula, Ω = {400, 410, ..., 700} represents the wavelength range; a total of 63 accuracy index values ​​(acc) are obtained. pred The k1 and k2 values ​​corresponding to the smallest accuracy index values ​​are taken as the optimal values ​​of the undetermined parameters k1 and k2.

[0041] The third stage: Based on the color matching model and the optimal values ​​of the undetermined parameters k1 and k2, after determining the target color sample, an optimization problem is constructed and solved to obtain the ink formula, including the following steps:

[0042] Step S8: Measure the spectral reflectance R of the target color sample. T (λ) and the reflectivity R of the paper TP (λ), and make corrections:

[0043]

[0044] The ratio of the absorption coefficient to the scattering coefficient of the target color sample and the target paper is calculated using the following formula:

[0045]

[0046] Step S9: Construct an optimization problem to solve for the optimal ratio of each primary color ink; the optimization problem is expressed as:

[0047] C(c y ,c m ,c c ) = arg min C β(c y ,c m ,c c ),

[0048] Where c c c m c y The proportions of cyan ink, magenta ink, and yellow ink are respectively; C(c y ,c m ,c c ) represents the optimal ink ratio solution set; the objective function β(c y ,c m ,c c This ensures the accuracy of color matching prediction, defined as...

[0049]

[0050] in The K / S value is predicted using the color matching model, where Ω = {400, 410, ..., 700} is the wavelength range;

[0051] The equality constraints of the optimization problem are:

[0052]

[0053] Where f c (λ,c c ), f m (λ,c m ), f y (λ,c y ) is the interpolation function obtained in step S4, where the undetermined parameters k1 and k2 are determined in step S7;

[0054] The inequality constraints for the optimization problem are:

[0055]

[0056] Step S10: Use a genetic algorithm to solve the optimization problem described in step S9 to obtain the ratio c of cyan, magenta, and yellow inks. c c m c y The corrected spectral reflectance prediction value of the color ink is obtained; the Genetic Algorithm (GA) is a search algorithm that finds approximate solutions to optimization problems by simulating natural selection and genetic mechanisms; the specific process and steps are as follows:

[0057] Step S10.1: Initialize the population by selecting an appropriate population size, such as 50 or 100; each individual is represented by a chromosome, which consists of three genes, representing c... c c m c y The value of c; the range of gene values ​​is [0,1]; randomly generate individuals in the population to ensure that c c +c m +c y ≤1;

[0058] Step S10.2: Use the objective function of the optimization problem as the fitness function, i.e. The gene values ​​of a chromosome are set to satisfy the inequality constraint: c c +c m +c y ≤1, 0≤c c ≤1, 0≤c m≤1, 0≤c y ≤1; The selection strategy of the genetic algorithm adopts roulette wheel selection, which selects individuals based on their fitness value. The smaller the fitness value, the greater the probability of the individual being selected.

[0059] Step S10.3: Perform crossover, mutation, and fitness calculations; set the crossover probability p. c For example, 0.8; using single-point crossover or double-point crossover, partially exchanging genes between two parent individuals to generate new offspring individuals; setting the mutation probability p. m For example, 0.01; randomly select a gene on the chromosome and randomly change its value to ensure that the constraint conditions described in step S10.2 are still met after the mutation; for each individual in the newly generated population, calculate its fitness value β(c y ,c m ,c c );

[0060] Step S10.4: Repeat the crossover, mutation, and fitness calculation described in step S10.3 until the preset maximum number of generations is reached, such as 100 generations, at which point the algorithm stops; or the fitness value falls below a certain threshold, at which point the algorithm stops; after stopping the algorithm, the gene value c of the optimal individual is obtained. c c m c y This yields the optimal ratio c of cyan, magenta, and yellow inks. c :c m :c y .

[0061] Step S10.5: If the solution yields c c c m c y After c c +c m +c y If <1, then the percentage of diluent is 1-(c c +c m +c y ); Find c c c m c y Then, the predicted K / S value of the prepared ink can be obtained from the equality constraint expression described in step S9. The predicted corrected spectral reflectance can be obtained further, and the calculation formula is as follows:

[0062] The beneficial effects of this invention are:

[0063] This invention integrates the nonlinear relationship between K / S values ​​and concentration, establishing a basic color matching dataset while obtaining the correction coefficient of spectral reflectance through grid optimization. Furthermore, it constructs a nonlinear constrained optimization problem and uses a genetic algorithm to solve the formula, significantly improving the color matching accuracy of the single-constant KM model. This invention is of great significance for the development and application of automatic ink color matching systems. With only a small number of color matching experiments and limited sample data, it achieves good model generalization ability and improves the performance of the KM color matching model. Attached Figure Description

[0064] Figure 1 This is a flowchart of the spectral color matching method based on the KM model and intelligent optimization of the present invention;

[0065] Figure 2 This is a comparison chart of the spectral reflectance curves before and after target color correction and the spectral reflectance curves of the predicted sample in an embodiment of the present invention. Detailed Implementation

[0066] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0067] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0068] Figures 1-2 This is a specific embodiment of the present invention, which is a spectral color matching method based on the KM model and intelligent optimization, and consists of three stages. The first stage is to build a color matching model based on the establishment of a basic color matching dataset; the second stage is to obtain the correction coefficients k1 and k2 in the color matching model through measurement data from a small number of color matching experiments; the third stage is to obtain the optimal ink formula by constructing and solving an optimization problem based on the color matching model after giving the target color sample.

[0069] The first stage involves establishing a basic dataset for color matching and building a color matching model, while keeping the correction coefficients k1 and k2 in the color matching model as undetermined parameters.

[0070] Step S1 in the method of this invention is to conduct a primary color ink preparation experiment. Before the experiment, the necessary instruments and materials need to be prepared, including a printability tester, an electronic analytical balance (accurate to 0.0001g), and a spectrophotometer (used to measure spectral reflectance), as well as glass bottles, an ink knife, an ink dispenser (with a range of 2mL), three primary color inks (yellow, magenta, and cyan), a thinner, and coated paper with a size of 70mm × 320mm.

[0071] In the method of this invention, steps S1 to S3 need to be repeated three times; according to step S4 of the method of this invention, the primary color inks are respectively set as cyan ink, magenta ink, and yellow ink, and steps S1 to S3 are repeated to obtain the K / S value f of the primary color ink corresponding to the calculated wavelength λ and arbitrary concentration c. c (λ,c), f m (λ,c), f y A function of (λ, c). Specifically, according to step S1 of the method of the present invention, the base color ink and the diluent are mixed at c i :(1-c i (0 < c) i ≤1, i=1,2,…,20) are mixed uniformly, c1=5%, c2=10%,…,c 20 =100%, with a gradient of 5%; for each base color ink, 20 mixtures of base color ink and diluent with different ratios were obtained, and the mixtures were applied to coated paper using a printability tester to prepare 20 samples. The pressure of the printability tester was adjusted to 300N, the ink injection volume was 0.3mL each time, and the ink mixing time was controlled to be 2-3 minutes. Then, according to step S2 of the method of this invention, the spectral reflectance coefficient R of the coated paper was measured using a spectrophotometer. p (λ), the spectral reflectance coefficient of 20 samples of each primary color ink in step S1. Where i = 1, 2, ..., 20, wavelength λ = 400, 410, ..., 700 nm; then the spectral reflectance coefficients of the coated paper and test samples are corrected and converted into K / S values; next, according to step S3, the nonlinear relationship between K / S value and concentration is integrated to obtain the K / S value f(λ,c) function of the primary color ink at wavelength λ and arbitrary concentration c. This function can be regarded as a nonlinear interpolation function. here The interpolation function is represented; preferably, the interpolation algorithm uses cubic spline interpolation.

[0072] After completing step S4, the color scheme model is obtained, and its expression is: In the formula c c c m c yThe proportions of cyan ink, magenta ink, and yellow ink are respectively. The predicted K / S value of the prepared ink; where According to step S3, f c (λ,c c ), f m (λ,c m ), f y (λ,c y The color matching model is obtained according to the interpolation algorithm described in step S4. Since the correction coefficients k1 and k2 need to be determined in step S2 before subsequent calculations can be performed, k1 and k2 are undetermined parameters in the color matching model. The obtained color matching model can be written into a computer program function, which takes k1 and k2 as input parameters and outputs the predicted K / S value.

[0073] In the second stage, a small number of color matching experiments were conducted by mixing primary color inks, and the optimal values ​​of correction coefficients k1 and k2 were determined by grid search method.

[0074] A color matching experiment is conducted according to step S5 of the method of this invention. Cyan ink, magenta ink, and yellow ink are uniformly mixed in a certain ratio to obtain mixed inks with different ratios. The mixed inks are then applied to coated paper to prepare sample sheets. This process is repeated m times, where m≥2, and the ratios of cyan ink, magenta ink, and yellow ink are recorded for each sample. The spectral reflectance coefficients of the obtained m sample sheets are measured.

[0075] As described in step S6 of the method of this invention, the range of k1 is divided into 0.035–0.045 with an interval of 0.005, and the range of k2 is divided into 0.4–0.6 with an interval of 0.01, resulting in k1∈{0.035,0.04,0.045} and k2∈{0.4,0.41,0.42,…,0.6}, respectively. A search grid (k1,k2) is constructed, containing a total of 3×21=63 search points. Then, as described in step S7 of the method of this invention, 63 precision index values ​​are calculated. The values ​​of k1 and k2 corresponding to the smallest accuracy index values ​​are taken as the optimal values ​​of the undetermined parameters k1 and k2. In this embodiment, k1 = 0.035 and k2 = 0.43 are obtained.

[0076] The third stage first determines the target color, and then constructs an optimization problem to solve the ink formulation.

[0077] According to step S8 of the method of the present invention, the spectral reflectance R of the target color sample is measured. T (λ) and the reflectivity R of the paper TP (λ), and make corrections; calculate the ratio of the absorption coefficient to the scattering coefficient of the target color sample and the target paper. Figure 2Examples of spectral reflectance and corrected reflectance of the target color sample are given.

[0078] According to step S9 of the method of the present invention, an optimization problem is constructed to solve the optimal ratio of each primary color ink; the objective function, equality constraints, and inequality constraints are defined. According to step S10 of the method of the present invention, a genetic algorithm is used to solve the optimization problem described in step S9 to obtain the ratios of cyan, magenta, and yellow inks, and to obtain the corrected predicted values ​​of the spectral reflectance of the color inks. The genetic algorithm solution can be performed by writing a program according to the methods described in S10.1 to S10.3 of the method of the present invention. When initializing the population, the population size is selected as 100; each individual is represented by a chromosome, and the chromosome consists of three genes, representing c... c c m c y The value of c; the range of gene values ​​is [0,1]; randomly generate individuals in the population to ensure that c c +c m +c y ≤1; fitness function is The gene values ​​of a chromosome are set to satisfy the inequality constraint: c c +c m +c y ≤1, 0≤c c ≤1, 0≤c m ≤1, 0≤c y ≤1; The selection strategy uses roulette wheel selection, choosing individuals based on their fitness value, with individuals having a higher probability of being selected due to lower fitness values. A crossover probability p is set. c =0.8, using two-point crossover, partially exchanging genes between two parent individuals to generate new offspring individuals; setting the mutation probability p. m =0.01; Randomly select a gene from the chromosome and randomly change its value to ensure that the constraint conditions described in step S10.2 are still met after the mutation; For each individual in the newly generated population, calculate its fitness value β(c y ,c m ,c c Repeat the crossover, mutation, and fitness calculations until the preset maximum number of generations (100) is reached, then stop the algorithm. After stopping the algorithm, the optimal individual's gene value c is obtained. c c m c y This refers to the optimal ratio of cyan, magenta, and yellow inks. For Figure 2 In the example shown, the optimal ratio of cyan, magenta, and yellow inks for the target color was determined using a genetic algorithm to be 9.8%:11.9%:77.6%.

[0079] According to step S10.5 of the method of the present invention, c is obtained.c c m c y Then, the predicted K / S value of the prepared ink can be obtained from the equality constraint expression described in step S9. The corrected spectral reflectance can then be obtained from the prediction. Figure 2 The corrected spectral reflectance curve predicted in this embodiment is presented, allowing for a clear visual observation that the target color sample reflectance curve and the predicted spectral reflectance curve match well. Furthermore, if necessary, color matching can be performed based on the obtained formula, comparing the deviations in spectral reflectance or Lab color values ​​between the color matching sample and the target sample. Color matching personnel can then perform more refined formula corrections based on their experience.

[0080] The spectral color matching method in this embodiment, through a small number of color matching experiments, obtains spectral correction coefficients and integrates the nonlinear relationship between K / S values ​​and concentration, achieving higher accuracy than prediction formulas based on existing KM theory. In actual production, after establishing the color matching dataset and determining the correction coefficients, the third stage of color matching can be performed multiple times; the first two stages only need to be performed once, without repeating them each time a color matching target sample is received. After determining the color matching target sample, the optimal ratio of each primary color ink can be accurately predicted using the third stage steps and method of this invention. This invention can more accurately match the color of the target sample, greatly improving the color matching accuracy of the single-constant KM theory, and has significant guiding significance for the development and application of ink color matching systems.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Any other modifications or equivalent substitutions made by those skilled in the art to the technical solutions of the present invention, as long as they do not depart from the spirit and scope of the technical solutions of the present invention, should be covered within the scope of the claims of the present invention.

Claims

1. A spectral color matching method based on the KM model and intelligent optimization, characterized in that, Includes the following steps: Phase 1: Establishing the color scheme model, specifically including the following S1 to S4: S1. Prepare sample sheets using base color inks and diluents. The specific process is as follows: Select base color inks and diluents, and prepare coated paper with high gloss and smoothness; mix the base color inks and diluents at c i :(1-c i (0 < c) i ≤1, i=1,2,…,n) are mixed uniformly to obtain n sets of mixtures of primary color ink and diluent with different ratios, and then developed on coated paper to prepare n sample sheets; n takes the value of 20, c1=5%, c2=10%,…,c 20 =100%, with each tier at 5%; S2. Measure and correct the spectral reflectance of the substrate and sample, keeping the undetermined parameters in the correction formula. The specific process is as follows: Measure the spectral reflectance coefficient of the coated paper. Measure the spectral reflectance coefficients of n samples in S1. , where i = 1, 2, ..., n; wavelength The unit is nm, with a wavelength interval of 10 nm; the spectral reflectance coefficient of coated paper. The formula is corrected as follows: ; spectral reflectance coefficients of n samples The formula is modified as follows: k1 and k2 are correction coefficients; S3. Calculate the K / S values ​​of the substrate and sample, and obtain the K / S value sequence of the primary color inks based on the KM theory. Establish an interpolation function to calculate the K / S values ​​of the primary color inks at any concentration. The specific process is as follows: calculate the ratio of the absorption coefficient to the scattering coefficient of the coated paper. , where wavelength The formula is: Calculate the ratio of the absorption coefficient to the scattering coefficient for n samples. Where i = 1, 2, ..., n, wavelength The formula is: Further, we obtained: , Indicates wavelength When the concentration is c i The K / S value of the primary color ink; thus, for wavelength The sequence can be obtained. The wavelength can be obtained through interpolation algorithms. K / S value of primary color ink at any concentration c function: , here This represents the interpolation function; the interpolation algorithm uses cubic spline interpolation. S4. Set the primary color inks to cyan, magenta, and yellow inks, and repeat S1 to S3 to obtain the interpolation functions for different primary color inks, thus establishing a color matching model. Specifically, set the primary color inks to cyan, magenta, and yellow inks respectively, and repeat S1 to S3 to obtain the wavelengths for each. K / S value sequence at time , , ,wavelength The calculated wavelength is obtained through an interpolation algorithm. K / S value of primary color ink at any concentration c The function; based on the determined K / S values ​​of cyan, magenta, and yellow inks. The color scheme model was obtained. , In the formula, , , and represent the proportions of cyan ink, magenta ink, and yellow ink, respectively; The predicted K / S value of the prepared ink; where According to S3, According to the interpolation algorithm; since the correction coefficients k1 and k2 in S2 need to be clearly determined before S3 and S4 can be calculated, k1 and k2 are undetermined parameters in the color matching model; Phase Two: Determine the parameters to be determined, specifically including the following steps S5 to S7: S5. Conduct color matching experiments with mixed primary color inks, prepare a small number of color matching samples, and measure the spectral reflectance. The specific process is as follows: mix cyan ink, magenta ink, and yellow ink... Mix evenly according to the proportions. , thus obtaining m groups of mixed inks with different proportions; if The percentage of diluent is The mixed inks were applied to coated paper to prepare m samples; m ≥ 2; the spectral reflectance coefficients of these m samples were measured simultaneously. S6. Divide the range of the undetermined parameters into a search grid at certain intervals. Specifically, divide the range of k1 (0.035–0.045) at an interval of 0.005 and the range of k2 (0.4–0.6) at an interval of 0.01, obtaining the following results: Construct a search grid (k1, k2) containing a total of 3 × 21 = 63 search points; S7. Define an accuracy index consisting of model predictions and experimental measurements, calculate and find the highest accuracy for each grid point, and determine the optimal value of the parameter to be determined. The third stage: Solving for the optimal formula, specifically including the following steps S8 to S10: S8. Measure the spectral reflectance of the target color sample and the target paper, and then calculate the K / S value after correction. The specific process is as follows: Measure the spectral reflectance of the target color sample. and the reflectivity of the paper And make corrections: ; The ratio of the absorption coefficient to the scattering coefficient of the target color sample and the target paper is calculated using the following formula: ; S9. Construct an optimization problem to find the optimal ratio of each primary color ink, and clarify the objective function and constraints. The specific process is as follows: Construct an optimization problem to find the optimal ratio of each primary color ink; the optimization problem is expressed as: , in The proportions of cyan ink, magenta ink, and yellow ink are respectively. The solution set for the optimal ink ratio; objective function It ensures the accuracy of color matching prediction, defined as , in To utilize the K / S value predicted by the color matching model, For wavelength range; The equality constraints of the optimization problem are: ; in The interpolation function obtained in S4 is given by S7, where the undetermined parameters k1 and k2 are determined by S7. The inequality constraints for the optimization problem are: ; S10. Solve the optimization problem using a genetic algorithm to obtain the optimal ink formula. The specific process is as follows: Use a genetic algorithm to solve the optimization problem described in S9 to obtain the ratio c of cyan, magenta, and yellow inks. c c m c y And obtain the corrected spectral reflectance prediction value of the color ink.

2. The spectral color matching method based on the KM model and intelligent optimization according to claim 1, characterized in that: Specifically, S7 is... S7.

1. For each search grid point determined in S6, corresponding to the k1 and k2 values, use the color matching model obtained in S4 to calculate the K / S prediction values ​​of the prepared m samples. ; S7.

2. For each search grid point determined in S6, corresponding to the k1 and k2 values, the K / S measurement values ​​of the m samples are calculated using the spectral reflectance coefficients of the m samples measured in S5, and the formulas in S2 and S3. ; S7.

3. For each search grid point determined in S6, using the results of S7.1 and S7.2, calculate the prediction accuracy index corresponding to the k1 and k2 values. The formula is as follows: , In the formula For the wavelength range; a total of 63 accuracy index values ​​were obtained. The k1 and k2 values ​​corresponding to the smallest accuracy index values ​​are taken as the optimal values ​​of the undetermined parameters k1 and k2.

3. The spectral color matching method based on the KM model and intelligent optimization according to claim 1, characterized in that: Specifically, S10 is as follows: S10.1 Initialize the population, selecting an appropriate population size, between 50 and 100; each individual is represented by a chromosome, which consists of three genes, representing c... c c m c y The value of the gene is [0, 1]; individuals in the population are generated randomly to ensure... ; S10.2, The objective function of the optimization problem is used as the fitness function, that is... Let the gene values ​​of the chromosome satisfy the inequality constraints: The selection strategy of the genetic algorithm is roulette wheel selection, which selects individuals based on their fitness value. Individuals with smaller fitness values ​​have a higher probability of being selected. S10.3 Perform crossover, mutation, and fitness calculations; set the crossover probability p. c The mutation probability p is set within the range of 0.8 to 0.9; single-point or double-point crossover is used to partially exchange genes between two parent individuals to generate new offspring individuals; the mutation probability p is set. m The value ranges from 0.01 to 0.02; a gene is randomly selected from the chromosome, and its value is randomly changed to ensure that the constraint conditions described in S10.2 are still met after the mutation; for each individual in the newly generated population, its fitness value is calculated. ; S10.4 Repeat the crossover, mutation, and fitness calculation described in S10.3 until the preset maximum number of generations is reached (100-200 generations), then stop the algorithm; or stop the algorithm when the fitness value falls below a certain threshold. After stopping the algorithm, obtain the gene value c of the optimal individual. c c m c y This yields the optimal ratio of cyan, magenta, and yellow inks. ; S10.5, If the solution yields c c c m c y back The percentage of diluent is then... Find c c c m c y Then, the predicted K / S value of the prepared ink can be obtained from the equality constraint expression described in S9. Furthermore, the predicted corrected spectral reflectance can be obtained, calculated using the following formula: .

Citation Information

Patent Citations

  • A color matching method for colored spinning yarn based on modified single constant KM theory

    CN112668174B

  • A Printing Ink Color Matching Method Based on KM Theory

    CN113910796B

  • Multi-target optimization and color-matching method of special-color ink in offset printing

    CN102729612A

  • Offset printing spot color residual ink rematching method, device and system and medium

    CN113791746A