CN115033560A - Dyeing model establishing method, dyeing equipment and storage medium - Google Patents

Dyeing model establishing method, dyeing equipment and storage medium Download PDF

Info

Publication number
CN115033560A
CN115033560A CN202210960717.5A CN202210960717A CN115033560A CN 115033560 A CN115033560 A CN 115033560A CN 202210960717 A CN202210960717 A CN 202210960717A CN 115033560 A CN115033560 A CN 115033560A
Authority
CN
China
Prior art keywords
dyeing
historical
staining
model
workpiece
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210960717.5A
Other languages
Chinese (zh)
Other versions
CN115033560B (en
Inventor
张洪伟
吴振廷
司伟涛
闫莉
李伟
王青玉
刘静静
田登奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fulian Yuzhan Technology Shenzhen Co Ltd
Original Assignee
Fulian Yuzhan Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fulian Yuzhan Technology Shenzhen Co Ltd filed Critical Fulian Yuzhan Technology Shenzhen Co Ltd
Priority to CN202210960717.5A priority Critical patent/CN115033560B/en
Publication of CN115033560A publication Critical patent/CN115033560A/en
Application granted granted Critical
Publication of CN115033560B publication Critical patent/CN115033560B/en
Priority to US18/232,378 priority patent/US20230384769A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • G06F16/212Schema design and management with details for data modelling support
    • CCHEMISTRY; METALLURGY
    • C25ELECTROLYTIC OR ELECTROPHORETIC PROCESSES; APPARATUS THEREFOR
    • C25DPROCESSES FOR THE ELECTROLYTIC OR ELECTROPHORETIC PRODUCTION OF COATINGS; ELECTROFORMING; APPARATUS THEREFOR
    • C25D11/00Electrolytic coating by surface reaction, i.e. forming conversion layers
    • C25D11/02Anodisation
    • C25D11/04Anodisation of aluminium or alloys based thereon
    • C25D11/12Anodising more than once, e.g. in different baths
    • CCHEMISTRY; METALLURGY
    • C25ELECTROLYTIC OR ELECTROPHORETIC PROCESSES; APPARATUS THEREFOR
    • C25DPROCESSES FOR THE ELECTROLYTIC OR ELECTROPHORETIC PRODUCTION OF COATINGS; ELECTROFORMING; APPARATUS THEREFOR
    • C25D11/00Electrolytic coating by surface reaction, i.e. forming conversion layers
    • C25D11/02Anodisation
    • C25D11/04Anodisation of aluminium or alloys based thereon
    • C25D11/14Producing integrally coloured layers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Chemical & Material Sciences (AREA)
  • Mathematical Physics (AREA)
  • Human Resources & Organizations (AREA)
  • Materials Engineering (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Operations Research (AREA)
  • Strategic Management (AREA)
  • Pure & Applied Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • Computational Mathematics (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • Economics (AREA)
  • Metallurgy (AREA)
  • Organic Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Tourism & Hospitality (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Educational Administration (AREA)
  • Algebra (AREA)
  • Game Theory and Decision Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Marketing (AREA)
  • Evolutionary Biology (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)

Abstract

The application discloses a method for establishing a dyeing model, a dyeing method, equipment and a storage medium, which are applied to the technical field of dyeing processes and comprise the following steps: acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece; and training the initial model based on historical data to obtain a dyeing model. And establishing a dyeing model capable of corresponding the dyeing time to the color value of the dyed workpiece through historical data, and determining the time required for dyeing according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.

Description

Dyeing model establishing method, dyeing equipment and storage medium
Technical Field
The present disclosure relates to the field of dyeing technology, and in particular, to a method for establishing a dyeing model, a dyeing method, a dyeing apparatus, and a computer-readable storage medium.
Background
The surface treatment of metals is basically divided into mechanical surface treatment, chemical surface treatment, electrochemical surface treatment and modern surface treatment, and the common methods include powder spraying, electroplating, etching, polishing, wire drawing, sand blasting, anodizing and the like, and the anodizing is a very common and very basic surface treatment process and is widely applied to the fields of aluminum alloys, titanium alloys and magnesium alloys.
Dyeing of metal articles is typically carried out by multiple anodic processes, including: degreasing, alkali biting, chemical polishing, neutralization, anodic oxidation, acid treatment before dyeing, hole sealing and the like, and parameters of each process such as anodic oxidation time, anodic oxidation voltage, time of pretreatment before dyeing, acid concentration of pretreatment before dyeing, acid pH of pretreatment before dyeing, dyeing time, dyeing dye proportion, dye concentration, dyeing tank temperature, dyeing tank pH, hole sealing time, hole sealing temperature and the like all influence the specific color finally obtained. Therefore, the dyeing of a specific color is always controlled by the experience of production personnel, the experience requirement of the production personnel is high, and meanwhile, the setting of parameters in the dyeing process is carried out according to the subjective experience of the production personnel, so that automation and intellectualization cannot be realized, and the yield cannot be guaranteed. Therefore, how to provide a technical scheme capable of accurately dyeing is an urgent problem to be solved by the technical personnel in the field.
Disclosure of Invention
The purpose of the application is to provide a method for establishing a dyeing model, wherein the established model can accurately carry out dyeing control; another object of the present application is to provide a dyeing method, a dyeing apparatus, and a computer-readable storage medium, which can precisely perform dyeing control.
In order to solve the above technical problem, the present application provides a method for establishing a dyeing model, including:
acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece;
and training the initial model based on the historical data to obtain a dyeing model.
Optionally, after the acquiring the historical data of the dyeing of the workpiece, the method further includes:
determining a historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value;
training the initial model based on the historical data to obtain a dyeing model comprises:
and training an initial model based on the historical data and the historical dyeing rate to obtain a dyeing model.
Optionally, the historical dyeing time includes historical primary dyeing time for performing primary dyeing on the workpiece, and historical secondary dyeing time for performing secondary dyeing on the workpiece;
the historical color values comprise historical first color values after the workpiece is subjected to primary dyeing and historical second color values after the workpiece is subjected to secondary dyeing;
training an initial model based on the historical data and the historical staining rate to obtain a staining model comprises:
obtaining a historical color difference parameter value based on the historical first color value and the historical second color value;
and training an initial model based on the historical chromatic aberration parameter value, the historical dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, the historical staining rate comprises a historical first staining rate corresponding to one staining;
training an initial model based on the historical data and the historical staining rate to obtain a staining model comprises:
obtaining the historical first dyeing rate based on the historical first color value and the historical one-time dyeing time;
and training an initial model based on the historical chromatic aberration parameter value, the historical first dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, the historical staining rate comprises a historical second staining rate corresponding to the secondary staining;
training an initial model based on the historical data and the historical dyeing rate to obtain a dyeing model, wherein the training comprises the following steps:
obtaining the historical second dyeing rate based on the historical second color value and the historical secondary dyeing time;
and training an initial model based on the historical chromatic aberration parameter value, the historical second dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, the historical first color value is a statistical value of a plurality of historical first color values, and the historical second color value is a statistical value of a plurality of historical second color values.
Optionally, the acquiring historical data of workpiece dyeing includes:
acquiring historical data of workpiece dyeing, wherein the historical data also comprises historical device parameters of the workpiece during preparation.
Optionally, the initial model is a model preset with corresponding weight coefficients for input data input into the initial model.
Optionally, the weight coefficient includes a weight coefficient matrix, one of the number of the parameter types in the input data and the total number of the input data is equal to the number of rows of the weight coefficient matrix, and the other is equal to the number of columns of the weight coefficient matrix.
Optionally, the historical device parameter is a historical device parameter of a dyeing device when the workpiece is in a dyeing process.
Optionally, the historical device parameter includes any one or any combination of the following:
dye concentration value, pH value and temperature value.
The present application also provides a dyeing method comprising:
obtaining the color value of the workpiece after primary dyeing;
determining a target secondary dyeing time required for secondary dyeing based on the color values and a dyeing model;
secondarily dyeing the workpiece based on the target secondary dyeing time;
the dyeing model is obtained by training an initial model based on historical data of workpiece dyeing; the historical data includes historical staining time of the workpiece and historical color values of the stained workpiece.
Optionally, before the determining, based on the color value and the staining model, a target secondary staining time required for secondary staining, the method further includes:
acquiring the primary dyeing time for primary dyeing;
the determining a target secondary staining time required for secondary staining based on the color values and a staining model comprises:
determining a primary staining rate based on the primary staining time and the color value;
determining a target secondary staining time required for secondary staining based on the color values, the primary staining rate, and a staining model.
Optionally, before the determining the target secondary dyeing time required for secondary dyeing based on the color value, the primary dyeing rate and the dyeing model, the method further includes:
acquiring a target color value of a workpiece;
determining a target color difference value based on the color value and the target color value;
the determining a target secondary staining time required for secondary staining based on the color value, the primary staining rate, and a staining model comprises:
and determining the target secondary dyeing time required by secondary dyeing based on the target color difference value, the primary dyeing rate and a dyeing model.
Optionally, before the determining the target secondary dyeing time required for secondary dyeing based on the color value, the primary dyeing rate and the dyeing model, the method further includes:
acquiring device parameters during workpiece preparation;
the determining a target secondary staining time required for secondary staining based on the color values, the primary staining rate, and a staining model comprises:
determining a target secondary staining time required for secondary staining based on the color value, the primary staining rate, the device parameter, and a staining model.
Optionally, the device parameters include device parameters of a dyeing tank of the workpiece during a dyeing process.
The present application also provides a dyeing apparatus comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the method of building a staining model as described in any of the above and/or the steps of the staining method as described in any of the above.
The present application further provides a computer-readable storage medium having stored thereon a computer program for execution by a processor to perform the steps of the method of building a staining model as defined in any of the above, and/or the steps of the staining method as defined in any of the above.
The application provides a method for establishing a dyeing model, which comprises the following steps: acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece; training the initial model based on historical data to obtain a dyeing model. And establishing a dyeing model capable of corresponding the dyeing time to the color value of the dyed workpiece through historical data, and determining the time required for dyeing according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The application also provides a dyeing method, a dyeing device and a computer readable storage medium, which also have the beneficial effects.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for establishing a dyeing model according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a first specific method for building a staining model according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a second specific method for building a staining model according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of a third specific method for building a staining model provided in an embodiment of the present application;
fig. 5 is a block diagram illustrating a structure of an apparatus for creating a dyeing model according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of a dyeing method provided in an embodiment of the present application;
FIG. 7 is a flow chart of a first specific dyeing method provided in the examples herein;
FIG. 8 is a flow chart of a second specific dyeing method provided in the examples of the present application;
fig. 9 is a block diagram of a dyeing apparatus according to an embodiment of the present disclosure;
fig. 10 is a block diagram of a dyeing apparatus provided in an embodiment of the present application.
Detailed Description
The core of the application is to provide a dyeing method. In the prior art, when dyeing, especially when processes such as forming gradient color by performing a plurality of dyeing processes are required, dyeing time needs to be automatically judged by people. The dyeing time is not accurate enough, scientific judgment is lacked, and poor dyeing is easy to cause due to manual misjudgment.
The method for establishing the dyeing model provided by the application comprises the following steps: acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece; and training the initial model based on historical data to obtain a dyeing model. And establishing a dyeing model capable of corresponding the dyeing time to the color value of the dyed workpiece through historical data, and determining the time required for dyeing according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for establishing a staining model according to an embodiment of the present disclosure.
Referring to fig. 1, in the embodiment of the present application, a method for establishing a staining model includes:
s101: acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece.
In this step, it is necessary to acquire data when the workpiece is dyed in history, that is, history data. The historical data needs to include historical dyeing time, which is the length of time it takes to dye a workpiece in history, and the historical color value of the workpiece after dyeing the workpiece in history. In the embodiment of the application, each color value can be characterized in an L/A/B color mode. Of course, in the embodiment of the present application, other color modes may also be used to represent each color value, and the specific content may be set according to an actual situation, which is not specifically limited herein.
In the embodiment of the present application, in the history dyeing process corresponding to the history data, it is necessary to maintain the device parameters of the dyeing device substantially the same when dyeing. The device parameters of the dyeing device used in the historical dyeing process need to be non-variable, so that the dyeing model can accurately represent the corresponding relation between the historical dyeing time and the historical color value of the dyed workpiece. The device parameters may include a bath temperature, a liquid pH, and the like, and are not particularly limited herein.
S102: and training the initial model based on historical data to obtain a dyeing model.
In this step, the initial model needs to be trained through the historical dyeing time and the historical color value based on the historical data, so that a corresponding relationship between the dyeing time and the color value of the workpiece is established, and the dyeing model is obtained. The initial model may be a regression model, a neural network model, or the like, as long as the corresponding relationship between the dyeing time and the color value of the workpiece can be represented. It should be noted that, according to different specific types of the initial models, the training process may adopt a corresponding training procedure. The following embodiments will be described in detail with respect to specific training procedures, which will not be described herein.
After S101, the history data may be further cleaned. That is, after S101 described above, the embodiment of the present application may further include: and cleaning abnormal data in the historical data to obtain training data. Correspondingly, S102 specifically includes: and training the initial model based on the training data to obtain a dyeing model. The data can be cleaned by adopting a box separation method, a clustering method or a regression method, and the accuracy and the integrity of the historical data can be ensured by cleaning the historical data.
The method for establishing the dyeing model provided by the embodiment of the application comprises the following steps: acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece; and training the initial model based on historical data to obtain a dyeing model. And establishing a dyeing model capable of corresponding the dyeing time to the color value of the dyed workpiece through historical data, and determining the time required for dyeing according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The following embodiments will be described in detail with respect to a method for creating a staining model provided by the present application.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first specific method for building a staining model according to an embodiment of the present disclosure.
Referring to fig. 2, in the embodiment of the present application, a method for establishing a staining model includes:
s201: historical data of workpiece dyeing is obtained.
This step is substantially the same as S101 in the above embodiment, and for details, reference is made to the above embodiment, which is not repeated herein.
S202: and determining the historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value.
In this step, the historical color can be usedAnd dividing the value by the corresponding historical dyeing time to determine the historical dyeing rate which represents the dyeing speed of the workpiece in the historical data, and then combining the historical dyeing rate to train the initial model in the subsequent steps. The color values correspond to a plurality of color components, and taking an LAB color model as an example, a set of color values may specifically correspond to three color components of an L value, an a value, and a B value. Correspondingly, in this step, the dyeing component rate corresponding to each color component may be specifically determined by combining the corresponding historical dyeing time according to each color component in the historical color values. For example, if the historical color value is L 1 /A 1 /B 1 And the historical dyeing time is T, the step can pass through V L =L 1 /T、V A =A 1 /T、V B =B 1 T, obtaining three dyeing component rates V L 、V A 、V B Thereby obtaining a historical dyeing rate V L /V A /V B
S203: and training the initial model based on the historical data and the historical dyeing rate to obtain a dyeing model.
In this step, the initial model is trained based on the historical data including the historical dyeing time and the historical color value of the dyed workpiece in combination with the historical dyeing rate, so as to obtain a final dyeing model.
The method for establishing the dyeing model provided by the embodiment of the application can establish the dyeing model corresponding to the dyeing time and the dyed workpiece color value through historical data, can improve the accuracy of the dyeing model by combining the dyeing speed during establishment, and can determine the time required for dyeing according to the dyed workpiece color value based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The following embodiments will be described in detail with respect to a method for creating a staining model provided by the present application.
Referring to fig. 3, fig. 3 is a flowchart of a second specific method for establishing a dyeing model according to an embodiment of the present application.
Referring to fig. 3, in the embodiment of the present application, a method for establishing a staining model includes:
s301: historical data of workpiece dyeing is obtained.
In the embodiment of the application, the historical dyeing time comprises historical primary dyeing time for performing primary dyeing on the workpiece and historical secondary dyeing time for performing secondary dyeing on the workpiece; the historical color values include historical first color values after the workpiece is subjected to primary dyeing, and historical second color values after secondary dyeing.
That is, in the embodiment of the present application, specifically, a scene in which a workpiece is dyed twice may be targeted, where the parameter input to the initial model during training includes a color value of the workpiece after the workpiece is dyed once in history, that is, a historical first color value; and the color value of the workpiece after the workpiece is dyed for the second time, namely the historical second color value. The time taken for the workpiece to be dyed once, i.e., the historical primary dyeing time, and the time taken for the workpiece to be dyed twice, i.e., the historical secondary dyeing time, are included at the same time. And training the initial model by combining the historical dyeing rate in subsequent steps, so that the trained model can specifically define the corresponding relation between the color value and the secondary dyeing time.
Specifically, in the embodiment of the present application, the historical first color value is a statistical value of a plurality of historical first color values, and the historical second color value is a statistical value of a plurality of historical second color values. The statistical value may be a median, an average, a maximum, a minimum, and the like of the corresponding parameter, and may specifically represent a statistical result of the corresponding parameter in a period of time. For example, the historical first color value may be a median of a plurality of historical first color values, and the historical second color value may be a median of a plurality of historical second color values, thereby excluding an influence of a measurement error on the historical color values. Of course, the specific content of the above statistical value may be set according to the actual situation, and is not limited specifically herein.
S302: historical color difference parameter values are obtained based on the historical first color values and the historical second color values.
In this step, the variation of the color value of the workpiece before and after the second dyeing, that is, the value of the historical color difference parameter, can be determined based on the historical first color value and the historical second color value. And training the initial model based on the historical color difference parameter value, so that the trained model can specifically define the corresponding relation between the historical color difference parameter value and the historical secondary dyeing time.
In this step, the historical color difference parameter value may be obtained by performing a difference operation according to the historical first color value and the historical second color value. Taking the LAB color model as an example, if the historical second color value is L 2 /A 2 /B 2 The historical first color value is L 1 /A 1 /B 1 Then, in this step, each color component in the historical first color value may be subtracted from each color component in the historical second color value, that is, by L 2 -L 1 =ΔL、A 2 -A 1 =ΔA、B 2 -B 1 And (= Δ B), and obtaining historical color difference parameter values Δ L/Δ A/Δ B.
S303: and determining the historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value.
This step is substantially similar to S202 in the above-described embodiment. Specifically, the historical staining rate may include a historical first staining rate corresponding to one staining. That is, in the embodiment of the present application, the historical first color value corresponding to the same workpiece during the same dyeing process may be divided by the historical one-time dyeing time to obtain the corresponding dyeing rate, that is, the historical first dyeing rate. The detailed calculation process of the dyeing rate is described in the above embodiments, and will not be described herein. In a subsequent step, the initial model may be trained based on the historical first staining rate, resulting in a staining model.
Specifically, the historical staining rates may include a historical second staining rate corresponding to the second staining. That is, in the embodiment of the present application, the historical second color value corresponding to the same workpiece during the same dyeing process may be divided by the historical second dyeing time to obtain the dyeing rate corresponding to the second dyeing process, i.e., the historical second dyeing rate. The detailed calculation process of the dyeing rate is described in the above embodiments, and will not be described herein. In a subsequent step, the initial model may be trained based on the historical second staining rate, resulting in a staining model.
S304: and training the initial model based on the historical chromatic aberration parameter value, the historical dyeing rate and the historical dyeing time to obtain a dyeing model.
In this step, the initial model may be trained based on the historical color difference parameter values, the historical dyeing rate, and the historical dyeing time to obtain a dyeing model. Specifically, when the historical staining rate comprises a historical first staining rate, the step may comprise: and training the initial model based on the historical chromatic aberration parameter value, the historical first dyeing rate and the historical dyeing time to obtain a dyeing model. When the historical staining rate comprises a historical second staining rate, this step may comprise: and training the initial model based on the historical chromatic aberration parameter value, the historical second dyeing rate and the historical dyeing time to obtain a dyeing model. Details of the training of the initial model will be described in detail in the following embodiments, and will not be described herein.
The method for establishing the dyeing model provided by the embodiment of the application establishes the dyeing model which can correspond to the dyeing time and the dyed workpiece color value through the historical data, combines the dyeing speed and the color difference parameter value during establishment, can improve the accuracy of the dyeing model, and can determine the time required by dyeing according to the dyed workpiece color value based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The following embodiments will be described in detail with respect to a method for creating a staining model provided by the present application.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third specific method for establishing a staining model according to an embodiment of the present disclosure.
Referring to fig. 4, in the embodiment of the present application, a method for establishing a staining model includes:
s401: and acquiring historical data of workpiece dyeing, wherein the historical data also comprises historical device parameters during workpiece preparation.
In this step, the historical data may include historical device parameters at the time of workpiece preparation, in addition to the above-described historical dyeing time and historical color values. The historical device parameters are parameters generated when each device or device runs in the manufacturing process of the workpiece. It should be noted that, during the manufacturing process, the workpiece may undergo not only one dyeing process but a plurality of processes, including oxidation degreasing, alkali-biting, chemical polishing, neutralization, anodic oxidation, acid treatment before dyeing, hole sealing, etc., each process corresponds to one process, and when the corresponding process is operated, the device or equipment thereof may generate corresponding parameters, i.e., device parameters; after each step, the workpiece is affected, and corresponding workpiece parameters are generated.
For example, the pH of the solution may be used as a device parameter during the acid treatment process prior to dyeing, and correspondingly, the thickness of the oxide layer may be used as a workpiece parameter after the anodization process. In an embodiment of the present application, the historical device parameter may be a historical device parameter of the dyeing device when the workpiece is in the dyeing process, that is, a device parameter generated by the dyeing device in the history. Furthermore, the historical data may further include historical workpiece parameters of the workpiece after the dyeing process, that is, workpiece parameters carried by the workpiece after each process in the history. The historical color value may be used as one of the workpiece parameters. Of course, the historical device parameters may also include other process parameters as a reference, and the specific content thereof may be set according to the actual situation, and is not limited herein. Of course, the target parameter in the training of the initial model in the embodiment of the present application is the historical dyeing time, such as the historical secondary dyeing time, which is focused on the dyeing process. The historical device parameters used in the embodiments of the present application may also be only device parameters generated when the dye vat is in operation.
Specifically, in the embodiment of the present application, the history device parameters include: dye concentration value, pH value and temperature value. Of course, other parameters may also be selected as the history device parameters, and are not specifically limited herein.
It should be noted that, in the embodiment of the present application, the history device parameters include various parameters, and the data thereof is numerous and complicated. Correspondingly, after the step, the method can comprise the following steps: and completing missing values of the historical device parameters, and processing abnormal values of the historical device parameters. The accuracy of the final dyeing model can be further improved by completing missing values of the parameters of the historical device and carrying out exception handling.
S402: historical color difference parameter values are obtained based on the historical first color values and the historical second color values.
S403: and determining the historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value.
S404: and training the initial model based on the historical data and the historical dyeing rate to obtain a dyeing model.
S402 to S404 are substantially the same as S302 to S304 in the above embodiment, and for details, reference is made to the above embodiment, which is not repeated herein.
In an embodiment of the present application, the initial model may be a local weighted linear regression model. The principle of the local weighted linear regression model is: the data set is examined to consider only data points that lie within a certain range around the point to be predicted. And performing linear regression (local linear regression) on the points in the region, adding weight consideration when solving regression parameters by using a least square method, endowing each point in the range with certain weight, gradually attenuating the weight along with the increase of the distance from the point to be predicted, and reducing the weight along with the increase of the distance from the point to be predicted. And finally, evaluating and predicting the point to be predicted according to the fitting straight line.
That is, in the embodiment of the present application, it is preferable to use a local weighted linear regression model as the initial model, and train the local weighted linear regression model to obtain the staining model. Of course, models of other algorithms may also be selected in the embodiment of the present application, and are not specifically limited herein. Specifically, in the embodiment of the present application, the initial model is a model that is preset with corresponding weight coefficients for input data of the initial model. Namely, in the embodiment of the present application, a corresponding weight coefficient is additionally set for each input data.
Specifically, when the distance calculation is performed by the local weighted linear regression model, different weights are given to different features of the sample in the embodiment of the present application. Specifically, for the conventional local weighted linear regression model, for each training data point, the following should be performed:
Figure 569470DEST_PATH_IMAGE001
and a minimum, where i is the number corner mark of the training data,
x (i) is the ith training data, which is a m × 1 vector, y, since a set of training data has m features in the embodiment of the present application (i) Is the target value of the ith training data, and θ is the coefficient vector of the regression equation; ω is a Gaussian weight coefficient, which is expressed as:
Figure 860206DEST_PATH_IMAGE002
wherein x is (i) Is the ith training data, x is the data point to be predicted; τ is the bandwidth, the greater τ, the greater the intensity of the local regression.
When the local weighted linear regression is used for prediction in the embodiment of the present application, because different features have different influence weights on the target result, the weight coefficient of the feature is increased during distance calculation, and at this time, the original gaussian weight coefficient becomes:
Figure 213827DEST_PATH_IMAGE003
wherein x is (i) Is the ith training data, x is the data point to be predicted; τ is the bandwidth, the greater τ, the greater the intensity of the local regression; alpha is a weight matrix of the sample point features to represent different weights of different features in the distance calculation.
Thus, the model solves for regression coefficients as:
Figure 12019DEST_PATH_IMAGE004
wherein X is a mixture of 1 (constant term) and X (i) An n × (m +1) dimensional matrix of composition, n being the number of training data, m being the number of data features, X can be written as:
Figure DEST_PATH_IMAGE005
therefore, in the embodiment of the present application, the weight coefficients include a weight coefficient matrix, one of the number of the parameter types in the input data and the total number of the input data is equal to the number of rows of the weight coefficient matrix, and the other is equal to the number of columns of the weight coefficient matrix. By training the initial model comprising the weight coefficient matrix, the obtained dyeing model is more accurate.
The utility model provides a through historical data establishment including historical device parameter can be with the dyeing model that dyeing time and dyeing back work piece colour value correspond, combines dyeing rate and colour difference parameter value during the establishment, can promote the accuracy of dyeing model, can confirm the required time of dyeing according to the work piece colour value after the colour based on this dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The following describes an apparatus for establishing a dyeing model provided in an embodiment of the present application, and the apparatus for establishing a dyeing model described below and the method for establishing a dyeing model described above may be referred to in correspondence with each other.
Fig. 5 is a structural block diagram of an apparatus for establishing a dyeing model according to an embodiment of the present application, and with reference to fig. 5, the apparatus for establishing a dyeing model may include:
the history acquisition module 100 is configured to acquire history data of workpiece dyeing, where the history data includes a history dyeing time of the workpiece and a history color value of the dyed workpiece.
And the training module 200 is configured to train the initial model based on the historical data to obtain a dyeing model.
Optionally, in an embodiment of the present application, the method further includes:
and the dyeing rate module is used for determining the historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value.
The training module 200 is specifically configured to:
and training the initial model based on the historical data and the historical dyeing rate to obtain a dyeing model.
Optionally, in this embodiment of the application, the historical dyeing time includes a historical primary dyeing time for performing primary dyeing on the workpiece, and a historical secondary dyeing time for performing secondary dyeing on the workpiece;
the historical color values comprise historical first color values after the workpiece is subjected to primary dyeing and historical second color values after the workpiece is subjected to secondary dyeing;
the training module 200 includes:
a historical color difference parameter value unit, configured to obtain a historical color difference parameter value based on the historical first color value and the historical second color value;
and the first training unit is used for training the initial model based on the historical chromatic aberration parameter value, the historical dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, in this embodiment of the present application, the historical staining rate includes a historical first staining rate corresponding to one staining;
the training module 200 includes:
a historical first dyeing rate unit, configured to obtain a historical first dyeing rate based on the historical first color value and the historical one-time dyeing time;
and the second training unit is used for training the initial model based on the historical chromatic aberration parameter value, the historical first dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, in this embodiment of the present application, the historical dyeing rate includes a historical second dyeing rate corresponding to the secondary dyeing;
the training module 200 includes:
a historical second dyeing rate unit, configured to obtain a historical second dyeing rate based on the historical second color value and the historical secondary dyeing time;
and the third training unit is used for training the initial model based on the historical chromatic aberration parameter value, the historical second dyeing rate and the historical dyeing time to obtain a dyeing model.
Optionally, in this embodiment of the application, the historical first color value is a statistical value of a plurality of historical first color values, and the historical second color value is a statistical value of a plurality of historical second color values.
Optionally, in this embodiment of the application, the history obtaining module 100 is configured to:
and acquiring historical data of workpiece dyeing, wherein the historical data also comprises historical device parameters during workpiece preparation.
Optionally, in this embodiment of the application, the initial model is a model that presets corresponding weight coefficients for input data that is input to the initial model.
Optionally, in this embodiment of the application, the weight coefficient includes a weight coefficient matrix, one of the number of the parameter types in the input data and the total number of the input data is equal to the number of rows of the weight coefficient matrix, and the other is equal to the number of columns of the weight coefficient matrix.
Optionally, in this embodiment, the historical device parameter is a historical device parameter of the dyeing device when the workpiece is in the dyeing process.
Optionally, in this embodiment of the present application, the historical device parameter includes any one or any combination of the following:
dye concentration value, pH value and temperature value.
The dyeing model establishing apparatus of this embodiment is configured to implement the aforementioned dyeing model establishing method, and therefore specific embodiments in the dyeing model establishing apparatus may refer to the embodiment parts of the dyeing model establishing method in the foregoing, for example, the history obtaining module 100 and the training module 200, which are respectively configured to implement steps S101 and S102 in the dyeing model establishing method, so that specific embodiments thereof may refer to descriptions of corresponding embodiments of the respective parts, and details thereof are not repeated herein.
Referring to fig. 6, fig. 6 is a flowchart of a dyeing method according to an embodiment of the present disclosure.
Referring to fig. 6, in an embodiment of the present application, a dyeing method includes:
s501: and acquiring the color value of the workpiece after the primary dyeing.
In this step, the color value of the workpiece after the workpiece is dyed for the first time needs to be acquired, so that the dyeing time corresponding to the secondary dyeing is determined according to the dyeing model and the color value. It should be noted that, in the embodiment of the present application, the parameters finally input to the staining model substantially correspond to the parameters used for training the staining model in the embodiment described above, in the embodiment of the present application, the result finally output based on the staining model is the target secondary staining time and corresponds to the historical secondary staining time, and the color value in this step corresponds to the historical first color value in the embodiment described above.
S502: and determining the target secondary dyeing time required for secondary dyeing based on the color values and the dyeing model.
In the embodiment of the application, the dyeing model is a model obtained by training an initial model based on historical data of workpiece dyeing; the historical data includes historical staining times of the workpiece and historical color values of the stained workpiece. The process of establishing the staining model has been described in detail in the above embodiments, and will not be described herein.
In this step, the color values are input into the dyeing model, and the target secondary dyeing time required for secondary dyeing is output through the dyeing model. Details regarding this step will be described in detail in the following embodiments, and will not be described herein.
S503: and secondarily dyeing the workpiece based on the target secondary dyeing time.
In this step, the workpiece is secondarily dyed based on the target secondary dyeing time, thereby realizing an accurate secondary dyeing process.
According to the dyeing method provided by the embodiment of the application, the dyeing model capable of enabling the dyeing time to correspond to the color value of the dyed workpiece is established through the historical data, and the time required by dyeing can be determined according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The details of a dyeing method provided in the examples of the present application will be described in detail in the following examples.
Referring to fig. 7, fig. 7 is a flowchart illustrating a first specific dyeing method according to an embodiment of the present disclosure.
Referring to fig. 7, in an embodiment of the present application, a dyeing method includes:
s601: and acquiring the color value of the workpiece after the primary dyeing.
This step is substantially the same as S501, and is not described herein again.
S602: the one-time dyeing time for one dyeing is obtained.
In this step, a dyeing time corresponding to the color value may be obtained for the subsequent calculation of a dyeing rate. The one-time dyeing time corresponds to the historical one-time dyeing time in the above embodiment, and is the time spent by the workpiece in the one-time dyeing process. This step and the above S601 may be executed in any order or in parallel, and are not specifically limited herein as the case may be.
S603: determining a primary staining rate based on the primary staining time and the color value.
In this step, the color value may be divided by a dyeing time to obtain a corresponding first dyeing rate. The detailed calculation process of the dyeing rate is described in the above embodiments, and will not be described herein. In step (ii), the first staining rate corresponds to the historical first staining rate in the above example.
S604: based on the color values, the primary staining rate and the staining model, a target secondary staining time required for secondary staining is determined.
In this step, the color values and the primary dyeing rate are input into a dyeing model, and the target secondary dyeing time required by secondary dyeing is obtained.
Before this step, the embodiment of the present application may further include: acquiring a target color value of a workpiece; a target color difference value is determined based on the color value and the target color value. The target color value is a color value that the workpiece needs to reach after the secondary dyeing, and specifically corresponds to the historical second color value in the above embodiment. In the process of obtaining the dyeing model by training the initial model by using the historical data, all the used historical data are data after successful dyeing. And the historical second color value is the color value of the workpiece after the workpiece is dyed twice successfully in the history. In the current dyeing process, the workpiece is dyed for the second time, so that the color value of the workpiece reaches the target color value after the workpiece is dyed for the second time, in other words, the target color value corresponds to the historical second color value in the historical data.
In this application embodiment, can further make a difference with target color value and color value, can make a difference respectively with the color component that two above-mentioned color values correspond, obtain the target color difference value, it expresses as Δ L/Δ a/Δ B. And then, inputting the target color difference value into a dyeing model to obtain the target secondary dyeing time.
Correspondingly, the method comprises the following steps: and determining the target secondary dyeing time required by secondary dyeing based on the target color difference value, the primary dyeing rate and the dyeing model. Inputting the target color difference value and the primary dyeing rate into a pre-trained dyeing model to obtain the secondary dyeing time of the target.
S605: and secondarily dyeing the workpiece based on the target secondary dyeing time.
In this step, the workpiece is secondarily dyed based on the target secondary dyeing time, thereby realizing an accurate secondary dyeing process.
According to the dyeing method provided by the embodiment of the application, the dyeing model capable of enabling the dyeing time to correspond to the color value of the dyed workpiece is established through the historical data, and the time required by dyeing can be determined according to the color value of the dyed workpiece based on the dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
Details of a dyeing method provided in the embodiments of the present application will be described in detail in the following embodiments.
Please refer to fig. 8, fig. 8 is a flowchart of a second specific dyeing method provided in the present embodiment.
Referring to fig. 8, in an embodiment of the present application, a dyeing method includes:
s701: and acquiring the color value of the workpiece after the primary dyeing.
S702: the one-time dyeing time for one dyeing is obtained.
S701 to S702 are substantially the same as S601 to S602 in the above embodiment, and for details, reference is made to the above embodiment, which is not repeated herein.
S703: and acquiring device parameters during workpiece preparation.
In this step, parameters at the time of operation of the color device when dyeing the workpiece, that is, device parameters, can be acquired. The specific type and the related preprocessing process of the device parameter corresponding to the historical device parameter may refer to the above embodiments, and are not described herein again.
Specifically, in the embodiment of the present application, the device parameters include device parameters of a dyeing tank of the workpiece during the dyeing process, and in this case, the device parameters may include: dye concentration value, pH value, and temperature value. Of course, other parameters may also be selected as the device parameters, and are not specifically limited herein.
S704: determining a primary staining rate based on the primary staining time and the color value.
This step is substantially the same as S603 in the above embodiment, and is not described herein again.
S705: and determining the target secondary dyeing time required by secondary dyeing based on the color value, the primary dyeing rate, the device parameter and the dyeing model.
In this step, the color value, the primary dyeing rate, and the device parameter may be input to the dyeing model, and the target secondary dyeing time output by the dyeing model may be obtained.
S706: and secondarily dyeing the workpiece based on the target secondary dyeing time.
In this step, the workpiece is secondarily dyed based on the target secondary dyeing time, thereby realizing an accurate secondary dyeing process.
The embodiment of the application provides a dyeing method, through historical data establishment can be with the dyeing time and the dyeing corresponding dyeing model of work piece colour value after dyeing, can be according to the work piece colour value after the look required time of dyeing of confirming based on this dyeing model. The dyeing model replaces manual confirmation of dyeing time, and accurate dyeing process can be realized.
The dyeing apparatus provided in the embodiments of the present application is described below, and the dyeing apparatus described below and the dyeing method described above may be referred to in correspondence.
Fig. 9 is a block diagram of a dyeing apparatus provided in an embodiment of the present application, and with reference to fig. 9, the dyeing apparatus may include:
and the color value obtaining module 300 is configured to obtain a color value of the workpiece after the workpiece is dyed once.
A target secondary dyeing time module 400, configured to determine a target secondary dyeing time required for secondary dyeing based on the color value and the dyeing model;
a dyeing module 500 for performing secondary dyeing on the workpiece based on the target secondary dyeing time;
the dyeing model is obtained by training an initial model based on historical data of workpiece dyeing; the historical data includes historical staining times of the workpiece and historical color values of the stained workpiece.
Optionally, in this embodiment of the present application, the method further includes:
and the primary dyeing time acquisition module is used for acquiring primary dyeing time for primary dyeing.
The target secondary staining time module 400 includes:
a primary dyeing rate unit for determining a primary dyeing rate based on the primary dyeing time and the color value;
and the first target secondary dyeing time unit is used for determining the target secondary dyeing time required by secondary dyeing based on the color value, the primary dyeing rate and the dyeing model.
Optionally, in an embodiment of the present application, the method further includes:
the target color value acquisition module is used for acquiring a target color value of the workpiece;
a target color difference module to determine a target color difference based on the color value and the target color value;
the target secondary staining time module 400 is used to:
and determining the target secondary dyeing time required by secondary dyeing based on the target color difference value, the primary dyeing rate and the dyeing model.
Optionally, in an embodiment of the present application, the method further includes:
the device parameter acquisition module is used for acquiring device parameters during workpiece preparation;
the target secondary staining time module 400 is used to:
and determining the target secondary dyeing time required by secondary dyeing based on the color value, the primary dyeing rate, the device parameter and the dyeing model.
Optionally, in the embodiment of the present application, the device parameters include device parameters of the dyeing tank during the dyeing process of the workpiece.
The dyeing apparatus of this embodiment is used to implement the foregoing dyeing method, and therefore specific embodiments of the dyeing apparatus can be seen in the example parts of the dyeing method in the foregoing, for example, the color value obtaining module 300, the target secondary dyeing time module 400, and the dyeing module 500, which are respectively used to implement steps S501 to S503 in the method for establishing the dyeing model, so that the specific embodiments thereof may refer to descriptions of corresponding respective part embodiments, and are not described herein again.
In the following, a dyeing apparatus provided in an embodiment of the present application is introduced, and the dyeing apparatus described below and the method for establishing the dyeing model described above and the dyeing method described above may be referred to correspondingly.
Referring to fig. 10, fig. 10 is a block diagram of a dyeing apparatus according to an embodiment of the present disclosure.
Referring to fig. 10, the dyeing apparatus may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program; the processor 11 is used for implementing the method for establishing the dyeing model in the above embodiments and/or the specific contents of the dyeing method when executing the computer program.
The processor 11 of the dyeing apparatus of the present embodiment is used for installing the device for establishing the dyeing model in the above embodiments, and/or the dyeing device, and the processor 11 and the memory 12 can be combined to implement the method for establishing the dyeing model in any of the above embodiments, and/or the dyeing method. Therefore, the specific implementation manner of the dyeing apparatus can be seen in the above embodiment sections of the method for establishing the dyeing model and the dyeing method, and the specific implementation manner thereof can refer to the description of the corresponding embodiments of each section, which is not described herein again.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for building a staining model, and/or a staining method as described in any of the above embodiments.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
A method of establishing a dyeing model, a dyeing method, a dyeing apparatus, and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (18)

1. A method for establishing a dyeing model is characterized by comprising the following steps:
acquiring historical data of workpiece dyeing, wherein the historical data comprises historical dyeing time of the workpiece and historical color values of the dyed workpiece;
and training the initial model based on the historical data to obtain a dyeing model.
2. The method of claim 1, further comprising, after said obtaining historical data of workpiece staining:
determining a historical dyeing rate of the workpiece according to the historical dyeing time and the historical color value;
training the initial model based on the historical data to obtain a dyeing model comprises:
and training an initial model based on the historical data and the historical dyeing rate to obtain a dyeing model.
3. The method of claim 2, wherein the historical dyeing time includes a historical primary dyeing time for primary dyeing of the workpiece, a historical secondary dyeing time for secondary dyeing of the workpiece;
the historical color values comprise historical first color values after the workpiece is subjected to primary dyeing and historical second color values after the workpiece is subjected to secondary dyeing;
training an initial model based on the historical data and the historical staining rate to obtain a staining model comprises:
obtaining a historical color difference parameter value based on the historical first color value and the historical second color value;
and training an initial model based on the historical chromatic aberration parameter value, the historical dyeing rate and the historical dyeing time to obtain a dyeing model.
4. The method of claim 3, wherein the historical staining rates comprise a historical first staining rate corresponding to one staining;
training an initial model based on the historical data and the historical staining rate to obtain a staining model comprises:
obtaining the historical first dyeing rate based on the historical first color value and the historical one-time dyeing time;
and training an initial model based on the historical chromatic aberration parameter value, the historical first dyeing rate and the historical dyeing time to obtain a dyeing model.
5. The method of claim 3, wherein the historical staining rates comprise historical second staining rates corresponding to secondary staining;
training an initial model based on the historical data and the historical staining rate to obtain a staining model comprises:
obtaining the historical second dyeing rate based on the historical second color value and the historical secondary dyeing time;
and training an initial model based on the historical chromatic aberration parameter value, the historical second dyeing rate and the historical dyeing time to obtain a dyeing model.
6. The method of claim 3 wherein the historical first color value is a statistical value of a plurality of historical first color values and the historical second color value is a statistical value of a plurality of historical second color values.
7. The method of claim 2, wherein the obtaining historical data of workpiece staining comprises:
acquiring historical data of workpiece dyeing, wherein the historical data also comprises historical device parameters of the workpiece during preparation.
8. The method of claim 7, wherein the initial model is a model with preset weighting coefficients for input data input into the initial model.
9. The method of claim 8, wherein the weight coefficients comprise a weight coefficient matrix, and wherein one of the number of the parameter types in the input data and the total number of the input data is equal to the number of rows of the weight coefficient matrix, and the other is equal to the number of columns of the weight coefficient matrix.
10. The method of claim 7, wherein the historical device parameters are historical device parameters of a dyeing device during a dyeing process of the workpiece.
11. The method of claim 10, wherein the historical device parameters comprise any one or any combination of the following:
dye concentration value, pH value and temperature value.
12. A method of dyeing, comprising:
acquiring a color value of the workpiece subjected to primary dyeing;
determining a target secondary dyeing time required for secondary dyeing based on the color values and a dyeing model;
secondarily dyeing the workpiece based on the target secondary dyeing time;
the dyeing model is obtained by training an initial model based on historical data of workpiece dyeing; the historical data includes historical staining times of the workpiece and historical color values of the stained workpiece.
13. The method of claim 12, further comprising, prior to said determining a target secondary staining time required for secondary staining based on said color values and a staining model:
acquiring the primary dyeing time for primary dyeing;
the determining a target secondary staining time required for secondary staining based on the color values and a staining model comprises:
determining a primary staining rate based on the primary staining time and the color value;
determining a target secondary staining time required for secondary staining based on the color value, the primary staining rate, and a staining model.
14. The method of claim 13, further comprising, prior to said determining a target secondary staining time required for secondary staining based on said color values, said primary staining rate, and a staining model:
acquiring a target color value of a workpiece;
determining a target color difference value based on the color value and the target color value;
the determining a target secondary staining time required for secondary staining based on the color value, the primary staining rate, and a staining model comprises:
and determining the target secondary dyeing time required by secondary dyeing based on the target color difference value, the primary dyeing rate and a dyeing model.
15. The method of claim 13, further comprising, prior to said determining a target secondary staining time required for secondary staining based on said color values, said primary staining rate, and a staining model:
acquiring device parameters during workpiece preparation;
the determining a target secondary staining time required for secondary staining based on the color values, the primary staining rate, and a staining model comprises:
determining a target secondary staining time required for secondary staining based on the color values, the primary staining rate, the device parameters, and a staining model.
16. The method of claim 15, wherein the device parameters comprise device parameters of a dye bath of the workpiece during a dyeing process.
17. A dyeing apparatus, characterized by comprising:
a memory for storing a computer program;
processor for executing said computer program for carrying out the steps of the method for establishing a staining model according to any one of claims 1 to 11 and/or the steps of the method for staining according to any one of claims 12 to 16.
18. A computer-readable storage medium, in which a computer program is stored which is executable by a processor for implementing the steps of the method for building a staining model according to any of claims 1 to 11 and/or the steps of the method for staining according to any of claims 12 to 16.
CN202210960717.5A 2022-08-11 2022-08-11 Dyeing model establishing method, dyeing equipment and storage medium Active CN115033560B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210960717.5A CN115033560B (en) 2022-08-11 2022-08-11 Dyeing model establishing method, dyeing equipment and storage medium
US18/232,378 US20230384769A1 (en) 2022-08-11 2023-08-10 Method for establishing dyeing model, dyeing method, and dyeing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210960717.5A CN115033560B (en) 2022-08-11 2022-08-11 Dyeing model establishing method, dyeing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115033560A true CN115033560A (en) 2022-09-09
CN115033560B CN115033560B (en) 2023-04-07

Family

ID=83131277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210960717.5A Active CN115033560B (en) 2022-08-11 2022-08-11 Dyeing model establishing method, dyeing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115033560B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110541266A (en) * 2019-08-29 2019-12-06 颜英说 cloth dyeing on-line control equipment and cloth dyeing on-line control method thereof
CN110592855A (en) * 2019-08-29 2019-12-20 颜英说 Cloth dyeing device and cloth dyeing control method thereof
CN111719322A (en) * 2020-07-16 2020-09-29 浙江流庆纺织有限公司 One-bath dyeing method of polyester-nylon and cationic polyester-nylon composite fiber terry knitted fabric
CN113822388A (en) * 2021-11-24 2021-12-21 深圳市裕展精密科技有限公司 Parameter setting method, device, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110541266A (en) * 2019-08-29 2019-12-06 颜英说 cloth dyeing on-line control equipment and cloth dyeing on-line control method thereof
CN110592855A (en) * 2019-08-29 2019-12-20 颜英说 Cloth dyeing device and cloth dyeing control method thereof
CN111719322A (en) * 2020-07-16 2020-09-29 浙江流庆纺织有限公司 One-bath dyeing method of polyester-nylon and cationic polyester-nylon composite fiber terry knitted fabric
CN113822388A (en) * 2021-11-24 2021-12-21 深圳市裕展精密科技有限公司 Parameter setting method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN115033560B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109829136B (en) Method and system for predicting residual life of degradation equipment with random jump
Shen et al. A dynamic system approach to speech enhancement using the H/sub/spl infin//filtering algorithm
DK2859138T3 (en) Process for making a metal coating
CN111488904A (en) Image classification method and system based on confrontation distribution training
CN113640208B (en) Multi-scale simulation method for corrosion damage of coating-containing metal structure in marine environment
CN111523727B (en) Method for predicting remaining life of battery by considering recovery effect based on uncertain process
CN115033560B (en) Dyeing model establishing method, dyeing equipment and storage medium
Michal et al. Usage of neural network to predict aluminium oxide layer thickness
CN115033558A (en) Dyeing model establishing method, dyeing equipment and storage medium
CN115033559B (en) Dyeing model establishing method, dyeing equipment and storage medium
US20070224363A1 (en) Process and device for predicting coating thickness
CN115862785A (en) Prediction model establishing method, anode machining control device and storage medium
CN115033557A (en) Dyeing model establishing method and device, dyeing method and equipment and medium
CN114580151A (en) Water demand prediction method based on gray linear regression-Markov chain model
Glynn et al. Estimation and inference for non-stationary arrival models with a linear trend
CN107977742B (en) Construction method of medium-long term power load prediction model
US20230384769A1 (en) Method for establishing dyeing model, dyeing method, and dyeing device
Vagaská et al. The application of neural networks to control technological process
CN109740804B (en) Water quality prediction method, terminal device and computer-readable storage medium
Vagaská Mathematical–Statistical Nonlinear Model of Zincing Process and Strategy for Determining the Optimal Process Conditions
CN113537638A (en) Short-term wind pressure prediction method and abnormal data completion method and device for high-rise building
Jacobsen et al. Enhancing Dynamical System Modeling through Interpretable Machine Learning Augmentations: A Case Study in Cathodic Electrophoretic Deposition
US11734470B2 (en) Intelligent volume meshing for modelling electrochemical processes
Litovka et al. Numerical calculation of the electric field in an electroplating bath with bipolar electrodes
Mladenović et al. Artificial neural network for composite hardness modeling of Cu/Si systems fabricated using various electrodeposition parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant