Information encryption method and reading method based on humidity-responsive total internal reflection structure and machine learning algorithm and application of information encryption method and reading method
Through the combination of humidity-responsive total internal reflection structure and machine learning algorithm, the problem of high-resolution encryption and fast reading of structural color materials in the field of information security is solved, achieving high-resolution multi-information encryption and fast and accurate reading, improving The application prospects of information security.
Patent Information
- Application Number
- CN202410214197.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-09-17
AI Technical Summary
Existing structural color materials have challenges in mass production, manufacturing high-resolution patterns, and rapid recognition and decoding. They are also difficult to achieve high-density information storage and fast writing and reading, which limits their practical application in the field of information security.
Using an information encryption method based on a humidity-responsive total internal reflection structure and a machine learning algorithm, a micro-dome structure is formed on a hydrophobic substrate through inkjet printing of humidity-responsive polymer ink, and the machine learning algorithm is combined with the machine learning algorithm to read image information to achieve high resolution. High-speed multi-information encryption and fast and accurate information reading.
It achieves information encryption with high resolution, high information density and high security, reduces preparation costs, and improves the accuracy and speed of information reading.
Smart Images

Figure CN118656844A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security, and in particular to an information encryption method and a reading method based on a humidity-responsive total internal reflection structure and a machine learning algorithm, and applications thereof. Background Art
[0002] Structural color materials such as thin films, gratings, photonic crystals, etc. usually produce bright colors through the periodic arrangement of multiple refractive index differences. These materials are sensitive to periodic arrangements and refractive index differences, and can respond to environmental changes (such as temperature, humidity, pH value, etc.) to change color, display information under specified stimulus responsiveness, and are suitable for building dynamic and variable encryption systems. Therefore, they have attracted much attention in the field of information security. However, the large-scale production of these materials, the manufacture of high-resolution patterns, and fast and accurate identification and decoding are still the main challenges currently faced.
[0003] The preparation methods of structural color materials in the prior art include photolithography, electron beam etching and nanoparticle self-assembly. The photolithography and electron beam etching methods use a large amount of organic solvents in the production process, causing pollution. As for the method of nanoparticle self-assembly, each color requires a different nanoparticle, which makes it impossible to achieve high-resolution information writing in the existing process. Secondly, most of these structural color materials have linear response behavior, which makes it difficult to achieve high-density information storage methods that require high processability, such as writing multiple information on the same plane. At the same time, the current preparation of structural color materials mostly ignores the importance of fast writing and reading for encryption materials, and it is difficult to achieve high-density information such as QR codes. Overcoming these obstacles is crucial to promoting the application of structural color materials from laboratories to practical applications. Therefore, developing encryption and reading methods for highly designed structural color materials with high resolution and nonlinear response, and obtaining new information security methods are of far-reaching significance to the field of structural color information security. Summary of the invention
[0004] The present invention provides an information encryption method and a reading method based on a humidity responsive total internal reflection structure and a machine learning algorithm and its application, wherein the information encryption method and the reading method can realize dynamic structural color coding, image recognition, reading and high-capacity encryption of responsive structural color encryption dot matrix patterns. The information encryption method and the reading method first convert at least two different information to be encrypted into encrypted pixel dot matrix files that can be read by a printer through Photoshop, and print the humidity responsive polymer ink on a hydrophobic substrate in the arrangement mode of the dot matrix file using printing technology; the dot matrix file printed on the hydrophobic substrate is composed of at least three micro-dome structures of different diameters, and the micro-dome structure is affected by the morphology to produce different colors, and the micro-dome structure can also be made to undergo responsive color changes by applying humidity, and different patterns (i.e., responsive structural color encryption dot matrix patterns) can be photographed under different humidity. Then, by a machine learning algorithm, the pixel information of the pattern is read and clustered, and then output as information before encryption, thereby realizing multi-information encryption and accurate and high-speed information reading in a high-resolution plane.
[0005] To achieve the above object, the technical solution of the present invention is as follows:
[0006] An information encryption method based on a humidity-responsive total internal reflection structure and a machine learning algorithm, the method comprising:
[0007] (1) preparing humidity responsive polymer ink;
[0008] (2) Printing at least two different patterns of information to be encrypted on a hydrophobic substrate using the humidity responsive polymer ink in step (1) by printing technology to obtain a responsive structural color encrypted dot matrix pattern;
[0009] Wherein, the microstructure of the pattern of the information to be encrypted on the responsive structural color encryption dot matrix pattern is a micro dome structure.
[0010] According to an embodiment of the present invention, in step (1), the humidity responsive polymer ink refers to a liquid material having a transmittance greater than 80% and being able to stably exist under normal temperature. Preferably, the viscosity of the polymer ink is 1 to 50 cps. Preferably, the refractive index of the polymer ink is 1.2 to 1.8. Preferably, the polymer ink comprises a polymer and a solvent. The polymer is a high molecular polymer that changes in volume after absorbing water. For example, the polymer is at least one of polyacrylic acid, polyvinyl alcohol, polyvinyl pyrrolidone, and cellulose. The solvent is a good solvent for the polymer, for example, the solvent is a mixture of water and at least one of ethylene glycol, ethanol, and formamide.
[0011] According to an embodiment of the present invention, in step (2), the printing technology may be inkjet printing.
[0012] According to an embodiment of the present invention, the number of printed layers is at least 3 layers, for example, 3-100 layers, preferably 5-50 layers.
[0013] According to an embodiment of the present invention, in step (2), the hydrophobic substrate may be a solid having hydrophobic properties. The solid having hydrophobic properties may be PDMS, polytetrafluoroethylene, fluorosilicone resin; or other substrates whose surfaces have been modified with hydrophobic materials. The hydrophobic material may be PDMS, fluorosilane, hydrophobic silane and hydrophobic siloxane. The other substrates may be glass or single crystal silicon.
[0014] According to an embodiment of the present invention, in step (2), when incident light is incident, the difference in refractive index between the high refractive index micro-dome structure formed by the polymer ink droplets and the low refractive index medium formed on the curved surface of the micro-dome structure is 0.2 to 1.4, preferably 0.3 to 1.4. The low refractive index medium can be air or nitrogen.
[0015] According to an embodiment of the present invention, in step (2), the micro-dome structure is a structure in which the side in contact with the hydrophobic substrate is horizontal and the rest of the side is arc-shaped.
[0016] According to an embodiment of the present invention, in step (2), the diameter of the micro-dome structure is 3 to 40 μm, preferably 4 to 30 μm; the top curvature angle is 60 to 120°, preferably 70 to 100°.
[0017] In the present invention, the structural color of the responsive structural color encrypted dot pattern is realized by the color obtained by the refraction of the high refractive index micro-dome structure formed by the polymer ink droplets and the low refractive index medium on the curved surface of the micro-dome structure. The color of the responsive structural color encrypted dot pattern responds to the fluctuation of the diameter of the micro-dome structure. Multiple colors can be realized by printing ink multiple times at the same position to change the diameter of the micro-dome structure. Among them, the fluctuation response refers to the micro-dome structure of a certain diameter producing a strong color change under a certain humidity change, and the micro-dome structure of another diameter not producing a color change under a certain humidity change.
[0018] According to an embodiment of the present invention, in step (2), the encrypted dot matrix pattern is a micro-dome structure dot matrix composed of three or more micro-dome structures of different diameters, and the color of the dot matrix produces different patterns as the humidity changes. The micro-dome structure dot matrix of different diameters has different color responses to humidity changes, so different patterns will appear at different relative humidities. The pattern is composed of pixels of the same color, and the color span can be the entire visible light band.
[0019] According to an embodiment of the present invention, in step (2), the information to be encrypted is image information or text information. The at least two different information to be encrypted refers to at least two different image information, or two different text information, or at least one image information and at least one text information.
[0020] According to an embodiment of the present invention, in step (2), before printing the information to be encrypted on the hydrophobic substrate, the information to be encrypted may be converted into an encrypted pixel matrix file.
[0021] Preferably, the encrypted information can be converted into an encrypted pixel dot matrix file by using computer drawing software. For example, the computer drawing software can be Photoshop; the encrypted pixel dot matrix file is a two-dimensional dot matrix pattern file of more than three sheets that can be recognized by a printer.
[0022] Preferably, the information to be encrypted is an image to be encrypted, and the image to be encrypted is a two-dimensional plane image. Preferably, the pixel resolution of the image to be encrypted is 1 to 500 pixels / cm, preferably 200 to 450 pixels / cm, wherein the three or more two-dimensional dot pattern files that can be recognized by the printer at least include a unique pixel set of encryption information one, a unique pixel set of encryption information two, and an overlapping pixel set of encryption information one and encryption information two.
[0023] According to an embodiment of the present invention, the information encryption method comprises:
[0024] 1) preparing humidity responsive polymer ink;
[0025] 2) converting at least two different pieces of information to be encrypted into encrypted pixel dot matrix files;
[0026] 3) Using printing technology, according to the arrangement of the encrypted pixel dot matrix file in step 2), the information to be encrypted is printed on the hydrophobic substrate using the humidity responsive polymer ink in step 1) to obtain a responsive structural color encrypted dot matrix pattern.
[0027] According to an embodiment of the present invention, the responsive structural color encrypted dot matrix pattern is stored in an environment with a relative humidity lower than 100%.
[0028] The present invention also provides an information reading method, the method comprising:
[0029] (S1) converting the above-mentioned responsive structural color encrypted dot matrix pattern into image information;
[0030] (S2) Using a machine learning algorithm to read the above image information, and outputting the information to be encrypted before encryption.
[0031] According to an embodiment of the present invention, in step (S1), the responsive structural color encrypted dot matrix pattern is converted into image information by taking photos under a microscope.
[0032] According to an embodiment of the present invention, in step (S1), if the encrypted information needs to be displayed under humidity stimulation, the responsive structural color encrypted dot matrix pattern needs to be placed in a humidity environment. Preferably, the humidity environment refers to a relative humidity greater than 0 but not greater than 100%.
[0033] According to an embodiment of the present invention, in the step (S2), the machine learning algorithm extracts at least one data of the hue, saturation and / or brightness of the image information, and performs cluster analysis based on the data, and the algorithm outputs the clustered pixels as the information to be encrypted before encryption.
[0034] Preferably, step S2) is specifically divided into four steps:
[0035] K1) Use `cv2.findContours` to extract the shape and boundaries of objects in the image;
[0036] K2) Convert the image to HSV color space using `cv2.cvtColor`;
[0037] K3) Use one of the k-means, DBSCAN, OPTICS or hierarchical clustering algorithms to cluster the contours based on color similarity;
[0038] K4) Use `isNonWhite` and `fullByBlack` to convert the grouped contours on the sub-image into the information to be encrypted before encryption.
[0039] According to an embodiment of the present invention, the information reading method specifically comprises:
[0040] S1) placing the responsive structural color encrypted dot matrix pattern array in different humidity environments, taking photos under a microscope after the response is complete, and converting the responsive structural color encrypted dot matrix pattern into image information;
[0041] S2) reading the image information using a machine learning algorithm, and outputting the information to be encrypted before encryption.
[0042] The present invention also provides application of the above-mentioned information encryption method and reading method in the field of information encryption and anti-counterfeiting.
[0043] Beneficial effects of the present invention:
[0044] (1) The present invention uses humidity-responsive polymer ink to print humidity-responsive micro-dome structures of different diameters to encrypt information, which has the characteristics of high resolution, high information density, and high security, and has low preparation cost and great application prospects.
[0045] (2) The present invention designs a machine learning algorithm to read, classify, and output information of a responsive structural color encrypted dot matrix pattern containing encrypted information, thereby improving the reading accuracy and speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 Schematic diagram of the micro-dome structure printed and prepared in Example 1 of the present invention producing the same and different total internal reflection structural colors in response to humidity.
[0047] Figure 2 This is a scanning electron microscope image of the micro-dome structure of the information a to be encrypted on the responsive structural color encryption dot matrix pattern in Example 1 of the present invention.
[0048] Figure 3 This is a microscope image of the responsive structural color encrypted dot matrix pattern printed in Example 1 of the present invention at a relative humidity of 84%.
[0049] Figure 4 This is a microscope image of the responsive structural color encrypted dot matrix pattern printed in Example 1 of the present invention at a relative humidity of 34%. DETAILED DESCRIPTION
[0050] The technical scheme of the present invention will be further described in detail below in conjunction with specific embodiments. It should be understood that the following embodiments are only exemplary descriptions and explanations of the present invention and should not be construed as limiting the scope of protection of the present invention. All technologies implemented based on the above content of the present invention are included in the scope that the present invention is intended to protect.
[0051] Unless otherwise specified, the raw materials and reagents used in the following examples are commercially available or can be prepared by known methods.
[0052] Example 1
[0053] ① Dissolve an appropriate amount of polyacrylic acid (1%wt) in water, add an appropriate amount of ethylene glycol (40%wt), wherein the contents of polyacrylic acid and ethylene glycol are based on the ink content, filter the ink with an oil filter head with a filter size of 200nm after ultrasonication for 20 minutes, then drop the filtered transparent polymer ink into an inkjet printing cartridge, and install a nozzle with a droplet volume of 1pL; wherein the viscosity of the ink is 44cps; and the refractive index of the ink is 1.47.
[0054] ② Open the two QR codes a and b (i.e., information a to be encrypted and information b to be encrypted) in Photoshop, convert the two QR codes a and b into bitmap mode, select the black part of one QR code a and paste it to another QR code b to obtain QR code d, then reverse QR code a and select the white part, paste it to QR code d, and obtain the unique pixels of QR code b. The unique pixels of QR code a are obtained by the same steps. Finally, reverse the unique pixels of QR codes a and b, select the white part and paste it on d to obtain the common pixels of QR codes a and ab. The pixel resolution of the image to be encrypted is 222 pixels / cm.
[0055] ③ Import the unique pixels of QR code a, unique pixels of b, and common pixels of ab into the printer, use the above-mentioned ink to print 6 layers of the unique pixels of QR code a to form a micro-dome structure pattern with a diameter of about 10μm, print 13 layers of the common pixels of QR code a to form a micro-dome structure pattern with a diameter of about 15μm, print 21 layers of the unique pixels of QR code b to form a micro-dome structure pattern with a diameter of about 22μm, and print them on a hydrophobic substrate to obtain a responsive structural color encrypted dot matrix pattern; wherein the hydrophobic substrate is a glass substrate treated with hydrophobic fluorosilane chemical deposition.
[0056] ④ Under different relative humidity conditions (84% and 34% respectively), different photos of the above responsive structural color encrypted dot pattern were taken using a microscope. The photos are: Figure 3 and Figure 4 shown.
[0057] ⑤ Input the photo into the computer, 1) use cv2.findContours to extract the shape and boundary of the object in the image; 2) use cv2.cvtColor to convert the image to HSV color space; 3) use DBSCAN to cluster the contours according to color similarity; 4) use isNonWhite and fullByBlack to convert the grouped contours into unencrypted QR codes on the sub-image.
[0058] Figure 1 Schematic diagram of the micro-dome structure printed and prepared in Example 1 of the present invention producing the same and different total internal reflection structural colors in response to humidity. Figure 1 It can be seen that the difference in refractive index between the high refractive index micro-dome structure formed by the polymer ink droplets and the low refractive index medium formed on the curved surface is 0.47.
[0059] Figure 2 is a scanning electron microscope image of the micro-dome structure of the information a to be encrypted on the responsive structural color encryption dot matrix pattern in Example 1 of the present invention; Figure 2 It can be seen that the diameter of the micro-dome structure is 10 microns; the top curvature angle is 76°.
[0060] Figure 3 This is a microscope image of the responsive structural color encrypted dot matrix pattern printed in Example 1 of the present invention at a relative humidity of 84%.
[0061] Figure 4 This is a microscope image of the responsive structural color encrypted dot matrix pattern printed in Example 1 of the present invention at a relative humidity of 34%.
[0062] from Figure 3 and Figure 4 It can be seen that by taking photos at a relative humidity of 84%, the unique pixels of QR code a and the common pixels of QR code a and b are similar in color, so they can be restored by the algorithm to the QR code to be encrypted. At a relative humidity of 34%, the unique pixels of QR code a and the unique pixels of QR code b are similar in color, so they cannot be restored to the QR code to be encrypted.
[0063] Example 2
[0064] ① Dissolve an appropriate amount of polyvinyl pyrrolidone (3%wt) in water, add an appropriate amount of ethylene glycol (40%wt), wherein the contents of polyvinyl pyrrolidone and ethylene glycol are based on the ink content, filter the ink with an oil filter head with a filter size of 200nm after ultrasonication for 20 minutes, then drop the filtered transparent polymer ink into an inkjet printing cartridge, and install a nozzle with a droplet volume of 1pL; wherein the viscosity of the ink is 43cps; and the refractive index of the ink is 1.52.
[0065] ② Open two pictures showing numbers a and b (i.e., information a to be encrypted and information b to be encrypted) in Photoshop, convert the two digital pictures a and b into bitmap mode, select the black part of one digital picture a and paste it to another digital picture b to obtain digital picture d, then reverse digital picture a and select the white part, paste it to digital picture d, and obtain the unique pixels of digital picture b. The unique pixels of digital picture a are obtained by the same steps. Finally, reverse the unique pixels of digital pictures a and b, select the white part and paste it on digital picture d to obtain the common pixels of digital pictures a and b. The pixel resolution of the image to be encrypted is 222 pixels / cm.
[0066] ③ Import the unique pixels of digital image a, the unique pixels of digital image b, and the common pixels of digital images ab into the printer, print 10 layers of a unique image to form a micro-dome structure pattern with a diameter of about 11μm, print 15 layers of ab to form a micro-dome structure pattern with a diameter of about 16μm, print 20 layers of b unique image to form a micro-dome structure pattern with a diameter of about 21μm, and print them on a hydrophobic substrate to obtain a responsive structural color encrypted dot matrix pattern; wherein, the hydrophobic substrate is PDMS.
[0067] ④ Take different photos of the above-mentioned responsive structural color encrypted dot pattern using a microscope at relative humidity of 20%, 43%, 83%, and 98%;
[0068] ⑤ Input the photo into the computer, 1) Use cv2.findContours to extract the shape and boundary of the object in the image. 2) Use cv2.cvtColor to convert the image to HSV color space. 3) Use KMeans algorithm to cluster the contours according to color similarity. 4) Use isNonWhite and fullByBlack to convert the grouped contours into unencrypted digital images on the sub-image.
[0069] The above is an exemplary description of the embodiments of the present invention. However, the protection scope of the present invention is not limited to the above embodiments. Any modification, equivalent substitution, improvement, etc. made by those skilled in the art within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An information encryption method based on a humidity-responsive total internal reflection structure and a machine learning algorithm, characterized in that: The method comprises: (1) preparing humidity responsive polymer ink; (2) Printing at least two different patterns of information to be encrypted on a hydrophobic substrate using the humidity responsive polymer ink in step (1) by printing technology to obtain a responsive structural color encrypted dot matrix pattern; Wherein, the microstructure of the pattern of the information to be encrypted on the responsive structural color encryption dot matrix pattern is a micro dome structure.
2. The information encryption method according to claim 1, characterized in that: In step (1), the viscosity of the polymer ink is 1 to 50 cps; preferably, the refractive index of the polymer ink is 1.2 to 1.8; Preferably, the polymer ink comprises a polymer and a solvent, wherein the polymer is a high molecular polymer that changes in volume after absorbing water, for example, the polymer is at least one of polyacrylic acid, polyvinyl alcohol, polyvinyl pyrrolidone, and cellulose; The solvent is a good solvent for the polymer, for example, the solvent is a mixture of water and at least one of ethylene glycol, ethanol and formamide.
3. The information encryption method according to claim 1 or 2, characterized in that: In step (2), the printing technology is inkjet printing. Preferably, the number of printed layers is at least 3 layers. Preferably, the hydrophobic substrate may be a solid with hydrophobic properties, such as PDMS, polytetrafluoroethylene, or fluorosilicone resin; or other substrates whose surfaces are modified with hydrophobic materials, such as PDMS, fluorosilane, hydrophobic silane, and hydrophobic siloxane; the other substrates may be glass or single crystal silicon.
4. The information encryption method according to any one of claims 1 to 3, characterized in that: In step (2), when incident light is incident, the difference in refractive index between the high refractive index micro-dome structure formed by the polymer ink droplets and the low refractive index medium formed on the curved surface of the micro-dome structure is 0.2 to 1.4, and the low refractive index medium is air and / or nitrogen. Preferably, in step (2), the micro-dome structure is hemispherical, that is, the side in contact with the hydrophobic substrate is horizontal, and the rest is arc-shaped. Preferably, in step (2), the diameter of the micro-dome structure is 3 to 40 μm, and the top curvature angle is 60 to 120°.
5. The information encryption method according to any one of claims 1 to 4, characterized in that: In step (2), the encrypted dot matrix pattern is a micro-dome structure dot matrix formed by combining three or more micro-dome structures with different diameters. Preferably, in step (2), the information to be encrypted is image information or text information. Preferably, the at least two different information to be encrypted refers to at least two different image information, or two different text information, or at least one image information and at least one text information.
6. The information encryption method according to any one of claims 1 to 5, characterized in that: In step (2), before printing the information to be encrypted on the hydrophobic substrate, the information to be encrypted may be converted into an encrypted pixel dot matrix file. Preferably, the encrypted information is converted into an encrypted pixel dot matrix file using computer drawing software, for example, the computer drawing software may be Photoshop; the encrypted pixel dot matrix file is a two-dimensional dot matrix pattern file of more than three sheets that can be recognized by a printer.
7. An information reading method, characterized in that: The method comprises: (S1) converting the responsive structural color encrypted dot matrix pattern according to any one of claims 1 to 6 into image information; (S2) Using a machine learning algorithm to read the above image information, and outputting the information to be encrypted before encryption.
8. The information reading method according to claim 7, characterized in that: In step (S1), the responsive structural color encrypted dot matrix pattern is converted into image information by taking photos under a microscope.
9. The information reading method according to claim 7, characterized in that: In the step (S2), the machine learning algorithm extracts at least one data of the hue, saturation and / or brightness of the image information, and performs cluster analysis based on the data, and the algorithm outputs the clustered pixels as information to be encrypted before encryption. Preferably, step K2) is specifically divided into four steps: K1) Use `cv2.findContours` to extract the shape and boundaries of objects in the image; K2) Convert the image to HSV color space using `cv2.cvtColor`; K3) Use one of the k-means, DBSCAN, OPTICS or hierarchical clustering algorithms to cluster the contours based on color similarity; K4) Use `isNonWhite` and `fullByBlack` to convert the grouped contours into information to be encrypted on the sub-image. Preferably, the information reading method specifically includes: S1) placing the responsive structural color encrypted dot matrix pattern array in different humidity environments, taking photos under a microscope after the response is complete, and converting the responsive structural color encrypted dot matrix pattern into image information; S2) reading the image information using a machine learning algorithm, and outputting the information to be encrypted before encryption.
10. Application of the information encryption method described in any one of claims 1 to 6 or the reading method described in any one of claims 7 to 9 in the field of information encryption and anti-counterfeiting.
