In the fields of photolithographic patterning, optical anticounterfeiting, and information encryption, reversible photochromic materials with solid-state fluorescence are emerging as a potential class of systems. A design strategy for reversible photochromic materials has been proposed and synthesized through the introduction of photoactive thiophene groups into the molecular backbone of aryl vinyls, compounds with unique aggregation-induced emission properties, and solid-state reversible photocontrollable fluorescence and color-changing properties. This work develops novel photochromic inks, films, and cellulose hydrogels for enhancing the security of information encryption and anticounterfeiting technologies. They achieve rapid and reversible color change under ultraviolet light irradiation. Dependent upon the rate of color change, higher levels of timeresolved security can be achieved. This feature is important for enhancing the confidentiality of encrypted information and the reliability of security labels. Colorchanging cellulose hydrogels, inks, and films consisting of three photochromic fluorescent molecules have quick photoactivity, great photoreversibility and photostability, and good processability, making them ideal for timedelayed anticounterfeiting and smart encryption. Furthermore, specialized algorithms are used to construct convolutional neural networks, and image analysis is performed on these systems, thus solving the current problem of the time-consuming information decryption process. This artificial intelligence method offers new opportunities for enhanced data encryption.