Bacterial total number real-time detection system and method based on combination of inverse opal photonic crystal hydrogel and smart colorimetric platform
By combining inverse opal photonic crystal hydrogel with an intelligent colorimetric platform, an integrated reaction module and image acquisition module are constructed, solving the problems of speed, accuracy, and portability in the detection of total bacterial count in food in existing technologies, and realizing high-sensitivity detection with on-site visualization.
Patent Information
- Application Number
- CN202611630088.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing rapid microbial detection technologies are difficult to achieve rapid, accurate, and portable detection of total bacterial count in food, and the test results are easily affected by ambient light and human interpretation.
By combining inverse opal photonic crystal hydrogel with an intelligent colorimetric platform, and through optical device design and MATLAB software system, an integrated reaction module, light source control module and image acquisition module are constructed to achieve stable and rapid image acquisition. Quantitative analysis of total bacterial count is then performed through color feature value quantification and threshold determination.
It enables rapid, on-site, visual detection of total bacterial count in food, featuring high sensitivity, low detection limit, high portability, ease of operation, no need for large equipment, and good accuracy and stability.
Smart Images

Figure CN123136107A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of food testing technology, specifically relating to a total bacterial count detection system combining an inverse opal photonic crystal hydrogel system and an intelligent colorimetric platform. This system utilizes the specific binding of inverse opal photonic crystal hydrogel to bacteria, combined with an intelligent colorimetric platform, to achieve rapid detection of total bacterial count within 2 minutes. The system integrates hardware devices and software algorithms for rapid quantitative analysis of total bacterial count. Background Technology
[0002] Microbial contamination is a major factor leading to food spoilage and foodborne illnesses. Total bacterial count reflects the overall level of microbial contamination in food and is an important indicator for evaluating food hygiene and microbial quality. Currently, the main method for detecting total bacterial count in food is plate culture counting, which involves sample preparation, serial dilution, inoculation, incubation, and colony counting to obtain results. While this method is widely used and provides intuitive results, it typically requires a long incubation period, making it difficult to meet the needs for rapid detection during food production, distribution, and on-site supervision.
[0003] To shorten the detection time for microorganisms, various rapid detection technologies have been developed in recent years, including nucleic acid amplification, biosensing, optical detection, and functional material response. Among these, functional hydrogels, due to their three-dimensional network structure, good biocompatibility, and ease of surface functionalization, can achieve bacterial capture by introducing biomolecules with bacterial recognition capabilities. Photonic crystal materials possess periodic micro / nano structures that selectively reflect light of specific wavelengths; changes in their periodic structure or lattice spacing can cause corresponding changes in the reflection spectrum and structural color, thus showing potential applications in the field of visual sensing. However, existing rapid microbial detection technologies still have certain limitations. On the one hand, some detection methods are mainly targeted at specific bacteria, requiring specific recognition elements such as nucleic acid amplification, making them difficult to directly use for rapid evaluation of the overall microbial load in food. On the other hand, some detection methods based on hydrogels or optically responsive materials still rely on additional complex instruments or manual color interpretation, and the detection results are easily affected by ambient light, imaging conditions, and differences in human interpretation. Furthermore, existing methods still lack an effective connection between achieving rapid bacterial capture, visual signal response, and objective digital quantification.
[0004] Therefore, an ideal colorimetric detection device should have the characteristics of high sensitivity, low detection limit, high portability and short detection time. Developing a rapid, accurate and highly portable technology for monitoring total bacterial count is of great practical significance. Summary of the Invention
[0005] The purpose of this invention is to establish a detection system based on the inverse opal photonic crystal hydrogel system, enabling rapid, practical, and convenient on-site visualization detection. Based on the detection principle of inverse opal photonic crystal hydrogel and combined with optimized optical device design, this invention constructs an image acquisition hardware device integrating three functional modules: a reaction module, a light source control module, and an image acquisition module. In a closed, dark environment, the system uses an adjustable array of light sources at the top for illumination and acquires detection images, achieving stable, rapid, and convenient image acquisition. Simultaneously, based on the MATLAB GUI platform, a software system suitable for the detection system is constructed, including three modules: image loading, color feature value quantization, and threshold determination, enabling rapid analysis of image data. The accuracy and stability of the system are verified through evaluation of detection results on actual samples.
[0006] The objective of this invention can be achieved through the following methods:
[0007] A total bacterial count detection system combining an inverse opal photonic crystal hydrogel and an intelligent colorimetric platform, comprising a sample reaction module, a light source control module, an image acquisition module, and a data processing module, wherein:
[0008] The sample reaction module performs total bacterial count detection through the following steps:
[0009] 1) Prepare a silica nanoparticle ethanol dispersion with a mass fraction of 5-15% by using silica nanoparticles with a particle size of 220-270 nm. Completely immerse a clean glass slide in the hydrophilization treatment solution for hydrophilization treatment. After treatment, remove the glass slide, wash it thoroughly with ultrapure water, then wash it with anhydrous ethanol, and dry it with nitrogen. Then fix two hydrophilized glass slides at intervals to form a sandwich scaffold, and place it in the silica nanoparticle ethanol dispersion. Place it in a constant temperature and humidity incubator at 25-30℃ for self-assembly until the solvent evaporates completely to obtain a photonic crystal template.
[0010] 2) A prepolymer containing acrylamide, acrylic acid, crosslinking agent MBA and photoinitiator LAP is introduced into the pores of the photonic crystal template, and photoinitiated polymerization is carried out to form a photonic crystal hydrogel. The silica template is then removed to obtain an inverse opal photonic crystal hydrogel with a three-dimensional porous network structure.
[0011] 3) Prepare a mixture containing 1-5% N-hydroxysuccinimide (NHS) and 1-5% 1-ethyl-(3-dimethylaminopropyl)carbodiimide hydrochloride (EDC). Incubate the inverse opal photonic crystal hydrogel in the mixture for 1-3 h to activate the carboxyl groups. After removal, wash with 1×PBS and then react in 1×PBS containing 0.1-0.5% concanavalin A and 0.1-0.5% nisin for 2-3 h to perform protein grafting. Subsequently, soak in 0.8-1.2 mol / L calcium chloride solution for 3-5 min to activate the protein, thus obtaining the detection hydrogel. This detection hydrogel is an inverse opal photonic crystal hydrogel with bacterial specific binding ability.
[0012] 4) Place the detection hydrogel obtained in step 3) into two identical reaction module sample cells, serving as a blank reference cell and a detection cell, respectively. Add sterile physiological saline to the blank reference cell and add the test sample solution of the same volume as the sterile physiological saline to the test sample cell. Allow the two detection hydrogels to react with the sterile physiological saline and the test sample solution under the same conditions for 1-2 minutes. Collect blank reference images of the detection hydrogel in the blank reference cell and sample response images of the detection hydrogel in the test sample cell, respectively. Extract the color feature values of the blank reference image and the sample response image through the data processing module and calculate the color feature difference to convert it into the total bacterial count.
[0013] The light source control module includes a ring array light source located at the top of the device and a light-passing hole on the stage, which are used to supplement the light source in a closed dark environment and ensure that the image has sufficient differentiation from the background during image acquisition.
[0014] The image acquisition module is used to acquire blank reference images of hydrogel detection in the blank reference cell and sample response images of hydrogel detection in the sample detection cell, respectively.
[0015] Based on the acquired images, the data processing module outputs the total bacterial count through the following steps:
[0016] S1. Perform color channel conversion on the loaded blank reference image and sample response image, extract each color feature value, and calculate the color feature difference between the sample response image and the blank reference image.
[0017] S2. Input the extracted feature values into the prediction model and combine them with the sample dilution factor to obtain the prediction result.
[0018] In the above system, the hydrophilization treatment solution in step 1) is a mixture of 98% H2SO4 and 30% H2O2 by volume ratio of 7:3; the hydrophilization treatment temperature is 20~25℃ and the time is 20~30 min.
[0019] In the above system, in step 2), the mass concentration of acrylamide in the prepolymer solution is 15-25%, the mass concentration of acrylic acid is 5-15%, the mass concentration of crosslinking agent MBA is 0.1-1%, and the mass concentration of photoinitiator LAP is 0.1-0.5%; the photoinitiated polymerization condition is to complete the polymerization and curing by irradiation with ultraviolet light for 5-10 minutes.
[0020] In the above system, the solvent in the mixture in step 3) is 2-morpholine ethanesulfonic acid MES buffer, with a pH of 5.8~6.2.
[0021] In the above system, the sample detection groove in step 4) has a size of 25 mm × 75 mm, with a detection groove in the center that is 10 mm long and 1 mm deep.
[0022] In the above system, the image acquisition module includes an image acquisition device, a slide rail, and a plate; the slide rail is used to adjust the relative position of the two to achieve precise focusing of the optical focal length; the plate is provided with a groove that matches the size of the detection slot, and a square light-transmitting hole is opened in the center of the groove to ensure that the light from above passes through this hole; the ring light source, the image acquisition device, and the sample detection slot are located on the same straight line.
[0023] In the above system, the light source control module includes a ring array light source and a light-transmitting hole on the top of the device, which are used to supplement the light source in a closed dark environment and ensure that the image has sufficient differentiation from the background during image acquisition; wherein the power of the array light source is 10~12 W, and the exposure time of the image acquisition device in the image acquisition module is 0.5~1.5 s.
[0024] In the above system, in S1, the R, G, B, H, S, V and Gray color feature values of the blank reference image and the sample response image are extracted according to the pixel arrangement inside the image; the color feature values in the vertical direction of the two images are averaged, and the spectrum of each color feature value is obtained according to the pixel distribution in the horizontal direction; at the same time, the overall feature value difference between the two images is calculated.
[0025] In the above system, the prediction model in step S2 uses the colorimetric feature difference ΔH as the input variable and the total number of bacteria as the output variable; after data fitting, the ΔH value and the logarithm of the total number of bacteria show a significant linear positive correlation.
[0026] ∆H is obtained by the following formula:
[0027]
[0028] In the formula,
[0029] △H is the change in the response H value of the test sample relative to the blank response H value;
[0030] X1 and X2 represent the starting and ending pixel coordinates of the blank reference image distributed along the horizontal pixel dimension within the corresponding area, respectively.
[0031] H1(j) represents the H value at the j-th pixel position in this dimension of the blank reference image;
[0032] Similarly, X3 and X4 represent the starting and ending pixel coordinates distributed along the horizontal pixel dimension within the corresponding region of the response image of the sample to be tested;
[0033] H2(i) represents the H value at the i-th pixel position in this dimension of the sample response image.
[0034] A method for assessing total bacterial count using a combined inverse opal photonic crystal hydrogel colorimetric detection system and an intelligent colorimetric platform, based on the aforementioned system, includes the following steps:
[0035] (1) Prepare the detection hydrogel through the above steps and store it in sterile physiological saline at 4°C for later use;
[0036] (2) Take two identical sample detection cells, use them as blank reference cells and sample detection cells respectively, and place detection hydrogels of the same size in each cell;
[0037] (3) Add sterile saline to the blank reference tank and add the same volume of the test sample elution solution as sterile saline to the sample detection tank, so that the two test hydrogels react under the same conditions for 1~2 min.
[0038] (4) Under the same light source power, exposure time, image acquisition position and shooting parameters, blank reference image and sample response image are acquired respectively, and the two images are input into the data processing module to extract color feature values, calculate ΔH and evaluate the total number of bacteria.
[0039] The analytical principle of the inverse opal photonic crystal hydrogel detection system disclosed in this invention is as follows:
[0040] The system comprises three main parts. The first part involves the assembly of a photonic crystal, the synthesis of an inverse opal photonic crystal hydrogel, and the introduction of a protein with bacterial responsiveness. During the reaction, the protein specifically binds to the target bacteria, triggering a change in the hydrogel volume, which in turn alters the lattice spacing, producing a color change that is visible to the naked eye. The second part involves placing the hydrogel and the test solution together in a custom-designed detection tank, fixing it to a platform, and using an adjustable top light source in a closed, dark environment to supplement illumination. Image acquisition is then performed using an image acquisition device, achieving stable, rapid, and convenient image acquisition. The third part is a software system built on the MATLAB GUI platform, suitable for this detection system. This system includes three main modules: image loading, color feature value quantization, and threshold determination, supporting efficient analysis of image data. In summary, this detection system enables rapid, on-site, visual detection, demonstrating good practicality and convenience. Furthermore, evaluation of the detection results on various real samples verifies that the system possesses good accuracy and stability.
[0041] Beneficial effects of the present invention
[0042] This invention proposes a system for quantifying total bacterial count by combining an inverse opal photonic crystal hydrogel colorimetric detection system with an image acquisition device and analysis software. Compared with existing detection methods, this invention achieves rapid, visualized detection and has advantages such as ease of operation and no need for large equipment. It provides a novel approach for on-site, real-time detection of total bacterial count that balances accuracy and convenience, and has significant practical application value. Attached Figure Description
[0043] Figure 1 This is a schematic diagram of the detection system;
[0044] Figure 2 Color values of hydrogels made from silica particles of different sizes.
[0045] Figure 3 Preparatory conditions diagram, synthesis characterization and color feature diagram of photonic crystals
[0046] Among them, (A) nanoparticle size and monodispersity; (B) scanning electron microscopy image; (C) assembly conditions; (DE) gel rheological analysis; (F) Fourier transform infrared characterization; (G) feasibility analysis; (H) XPS full spectrum; (I) high-resolution Si2p spectrum; (J) high-resolution C1s spectrum; (K) high-resolution N1s spectrum.
[0047] Figure 4 Parameters for hydrogel preparation;
[0048] (A) The blank response H value of the hydrogel; (B) ΔH.
[0049] Figure 5This is a graph showing the quantification results of color feature values in hydrogel images based on bacterial concentration gradient detection.
[0050] Among them, (A) R, G and B channel curves; H, S and V channel curves; gray channel curves; (B) Correlation analysis diagram of image color feature values based on bacterial concentration gradient.
[0051] Figure 6 To detect the reaction kinetics of hydrogels.
[0052] (A) Reaction law diagram; (BC) Reaction curves and fitting curve diagrams.
[0053] Figure 7 The diagram shows the anti-interference ability of the hydrogel.
[0054] (AB) shows the optimized preprocessing conditions of the system; (C) shows the anti-interference ability of the hydrogel.
[0055] Figure 8 To determine the storage stability of the hydrogel.
[0056] Figure 9 The diagram shows the hardware device, including (A) the overall hardware diagram and (B) a physical image and CAD drawing of the customized testing slot.
[0057] Figure 10 The diagram shows the optical path design, including (A) a component location diagram and (B) an optical path display diagram.
[0058] Figure 11 This is a graph showing the impact of image acquisition parameters on image quality.
[0059] These include the effects of exposure time and light source power.
[0060] Figure 12 This is a diagram illustrating the software's operational logic.
[0061] Figure 13 This is a schematic diagram illustrating the threshold determination principle.
[0062] Figure 14 This is a diagram illustrating the software operation process.
[0063] Figure 15 Pearson correlation coefficient analysis plot to detect the relationship between the ΔH value of hydrogel and putrefaction indicators.
[0064] Figure 16 A correlation analysis graph showing the relationship between the ΔH value of hydrogels and the total bacterial count of commercially available products. Detailed Implementation
[0065] The present invention will be further described below with reference to specific embodiments, and the advantages and features of the present invention will become clearer as a result of the description. However, these embodiments are merely exemplary and do not constitute any limitation on the scope of protection defined by the claims of the present invention.
[0066] The reagents used in this invention are as follows:
[0067] Concentrated ammonia, tetraethyl orthosilicate (TEOS), anhydrous ethanol, N,N'-methylene bisacrylamide (MBA), and hydrofluoric acid were purchased from Shanghai Jizhi Biochemical Technology Co., Ltd.; acrylic acid (AA), acrylamide (AM), lithium phenyl-2,4,6-trimethylbenzoylphosphinate (Lap), potassium bromide, 4-Morpholineethanesulfonic acid (MES), and nisin from streptococcus lactis (Nisin) were purchased from Shanghai Maclean Biochemical Technology Co., Ltd.; and concanavalin A was also purchased. A and ConA were purchased from Shanghai Yuanye Biotechnology Co., Ltd.; PBS (1×) buffer was purchased from Shanghai Sangon Biotech Co., Ltd.; calcium chloride, 1-(3-Dimethylaminopropyl)-3-ethylcarbodiimide hydrochloride (EDC), and N-hydroxysuccinimide (NHS) were purchased from Shanghai Sigama-Aldrich Co., Ltd.; sodium chloride, tryptone soybean broth (TSB), tryptone soybean agar (TSA), and plate counting agar (PCA) were purchased from Qingdao Gaokeyuan Haibo Biotechnology Co., Ltd.; hydrochloric acid titrant, methyl red, potassium chloride, bromocresol green, and magnesium oxide were all purchased from Sinopharm Group. The deionized water used in the experiment was treated by the Milli-Q system (USA) with a resistivity ≥ 18.2 MΩ cm. All chemical reagents were of analytical grade and did not require further purification before use.
[0068] The bacterial strains used in this invention were all isolated from spoiled fresh meat and deposited at the National Engineering Research Center for Meat Quality and Safety Control, Nanjing Agricultural University. The meat samples used in this invention were purchased from Hema Supermarket in Nanjing.
[0069] A detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform is disclosed for detecting total bacterial count. The system utilizes the inverse opal photonic crystal hydrogel to specifically bind bacteria and employs an intelligent colorimetric platform for rapid detection of total bacterial count. The system includes a sample reaction module, a light source control module, an image acquisition module, and a data processing module.
[0070] The image acquisition module operation includes the following steps:
[0071] (1) The image acquisition device is connected to the computer terminal, and the accompanying client is used to realize real-time image acquisition. The best acquisition state is achieved by adjusting the shooting parameters.
[0072] (2) Place the same size test hydrogel in the blank reference cell and the sample test cell respectively, and fix the two test cells in the same groove position on the plate. Among them, add 100 μL of sterile physiological saline to the blank reference cell and add 100 μL of the sample solution to be tested to the sample test cell;
[0073] (3) After the two groups of hydrogels reacted with the corresponding liquids for 2 min, blank reference images and sample response images were acquired sequentially under the same light source power, exposure time and image acquisition position.
[0074] The data processing module operation includes the following steps:
[0075] (1) First, after opening the application software, select "Hydrogel Detection System" to enter the main interface. The system interface mainly includes four functional modules: image loading, color feature value quantization, difference map and threshold determination;
[0076] (2) In the image loading module, the left side is a blank reference image preview window, and the right side is a sample response image preview window. Clicking the two "Import" buttons in sequence will import the blank reference images acquired by the hardware device and the corresponding sample response images from the computer folder into the preview window respectively;
[0077] (3) Click the R, G, B buttons in the upper right corner of the color feature value extraction interface. The system will extract the RGB color feature values of the blank reference image and the sample response image in the horizontal direction and calculate the difference. At the same time, it will generate an RGB spectrum with "difference intensity - X-axis pixel" as the coordinate.
[0078] (4) Click the H, S, V buttons in the middle right of the color feature value extraction interface. The system will extract the HSV color feature values of the blank reference image and the sample response image in the horizontal direction and calculate the difference. At the same time, it will generate an HSV spectrum with "difference intensity - X-axis pixels" as the coordinate.
[0079] (5) Click the Gray button in the lower right corner of the color feature value extraction interface. The system will extract the Gray color feature values of the blank reference image and the sample response image in the horizontal direction and calculate the difference. At the same time, it will generate a Gray map with "difference intensity - X-axis pixels" as the coordinate.
[0080] (6) Enter the dilution factor of the experimental sample in the “N-Value” input box. This value is used to convert the total number of bacteria in the test sample to the total number of bacteria in the actual sample. The system default value is 10, which is a tenfold dilution.
[0081] (7) Click the “Calculation” button. The system will analyze and process the color feature value H value, and extract the mean difference of the corresponding H value in the color feature value matrix of the blank reference image and the sample response image. Combined with the loaded bacterial concentration standard curve, the total number of bacteria in the sample can be evaluated in real time.
[0082] Specifically, the image quantization mode and result determination method of the data processing module are as follows:
[0083] Image quantization processing: Color feature values are extracted from the two sets of images, and a spectral correlation is established between pixel differences and the intensities of each color channel. Based on the spatial distribution of image pixels, the mean of color feature values in each horizontal column of the blank reference image and the sample response image is calculated to obtain the difference between the two in that direction. With the horizontal pixel position as the x-axis and the average difference of color feature values of corresponding pixels as the y-axis, a difference intensity distribution map of the colorimetric image of the sample to be tested is plotted.
[0084] Result Determination: The formula for calculating the ΔH value in the result determination is shown below. The mean value of the color feature values of each pixel within the edge region of the imported image is calculated to obtain the overall mean value of the image color feature values, and then the overall average difference ΔH is calculated. ΔH is substituted into the preset linear fitting relationship, and the software analysis program automatically calculates the total number of bacteria contained in the sample (MLog CFU / g).
[0085]
[0086] In the formula,
[0087] △H is the change in the response H value of the test sample relative to the blank response H value;
[0088] X1 and X2 represent the starting and ending pixel coordinates of the blank reference image distributed along the horizontal pixel dimension within the corresponding area, respectively.
[0089] H1(j) represents the H value at the j-th pixel position in this dimension of the blank reference image;
[0090] Similarly, X3 and X4 represent the starting and ending pixel coordinates distributed along the horizontal pixel dimension within the corresponding region of the response image of the sample to be tested;
[0091] H2(i) represents the H value at the i-th pixel position in this dimension of the sample response image.
[0092] Example 1: Construction and optimization of inverse opal photonic crystal hydrogel detection
[0093] The procedure for detecting total bacterial count using inverse opal photonic crystal hydrogels includes six key steps: I. SiO2 screening, II. Dual-substrate deposition, III. UV curing, IV. HF etching, V. Total bacterial count detection, and VI. Analytical results. Figure 1 First, in the SiO2 screening stage, highly monodisperse silica nanoparticles were used to screen for uniform SiO2 spheres with a diameter of 250 nm. Subsequently, through a second step (II. dual-substrate deposition), these SiO2 nanoparticles self-assembled into a highly ordered photonic crystal template. A prepolymer solution containing acrylic acid and acrylamide monomers infiltrated into the template voids and underwent a third step (III. UV curing) to form a robust cross-linked hydrogel network. In a fourth step (IV. hydrofluoric acid etching), the silica template was completely removed by hydrofluoric acid, ultimately yielding an inverse opal photonic crystal hydrogel with an interconnected porous structure. Furthermore, the carboxyl groups of the inverse opal photonic crystal hydrogel were activated and bound to concanavalin A and nisin. This dual-ligand functionalization endowed the hydrogel with broad-spectrum trapping capabilities. Upon contact with bacteria, specific biorecognition induced rapid volume expansion of the hydrogel lattice. According to Bragg's diffraction law, this structural expansion translated the microscopic binding event into a macroscopic, visible red shift in the hydrogel structure. Finally, to obtain the VI. analysis results, a self-designed hardware and software platform was employed. By using a controlled darkroom imaging module, colorimetric responses could be captured without ambient light interference. Simultaneously, MATLAB-based intelligent software quantitatively extracted the ΔH values of the images in the HSV color space. Within a given range, a robust linear correlation was found between the ΔH values output by the sensor and the logarithm of the bacterial concentration. This was achieved by synergistically combining the unique optical signal amplification mechanism of the inverse opal photonic crystal hydrogel with high-precision digital image colorimetric measurement.
[0094] 1. Optimization of photonic crystal assembly conditions
[0095] The particle size of silica nanoparticles directly affects the structural color of the assembled photonic crystal, and their monodispersity is also a key factor determining the quality of the photonic crystal, making it the most important parameter affecting the self-assembly process. This embodiment uses commercially available monodisperse silica nanoparticles as the photonic crystal assembly unit. To investigate the influence of particle size on subsequent photonic crystal template assembly and the structural color of the inverse opal photonic crystal hydrogel, commercially available monodisperse silica nanoparticles of different sizes were selected for comparison. Figure 2 ).
[0096] Silica nanoparticles of different sizes were dispersed in anhydrous ethanol and subjected to ultrasonic treatment to prepare ethanol dispersions of silica nanoparticles. The particle size uniformity and monodispersity of the silica nanoparticles of different sizes were evaluated by particle size characterization. Figure 3 A). The results show that the particle size of silica nanoparticles can significantly affect the structural color of the photonic crystal and the color characteristics and response performance of the subsequent inverse opal photonic crystal hydrogel. Considering the ordered nature of the template structure and the color response results of the subsequent hydrogel, this embodiment preferably uses silica nanoparticles with a particle size of 250 nm for subsequent experiments.
[0097] Scanning electron microscope (SEM) Figure 3 B) The images successfully revealed that the SiO2 photonic crystal self-assembled into an ordered hexagonal structure, and the corresponding Si and O element mapping showed that they were uniformly distributed throughout the field of view, confirming the compositional uniformity of the photonic crystal framework.
[0098] The environmental conditions during the self-assembly process and the concentration of the silica nanoparticle solution are also important factors affecting the quality of photonic crystals. Figure 3 C). When the mass fraction concentration of the silica nanoparticle solution is in the range of 2.5% to 10%, the area ratio obtained by photonic crystal self-assembly shows a significant upward trend with increasing concentration. When the concentration reaches 10% or above, the area ratio reaches 100%, indicating that the nanoparticles have completely filled the glass slide and formed a complete photonic crystal. In summary, the optimal conditions for photonic crystal self-assembly determined by this invention are: assembly temperature 30℃ and silica nanoparticle solution concentration 10%.
[0099] In this embodiment, the preparation of the hydrogel and the detection of the total bacterial count were carried out according to the following steps:
[0100] 1) Select commercially available silica nanoparticles with a particle size of 250 nm, uniform particle size and good monodispersity, add them to anhydrous ethanol and ultrasonically disperse for 30 min to prepare a silica nanoparticle ethanol dispersion with a mass fraction of 10%.
[0101] The hydrophilization treatment solution H2SO4 (98% by mass) and H2O2 (30% by mass) were mixed in a volume ratio of 7:3. A clean glass slide was completely immersed in the hydrophilization treatment solution and left to stand at 20-25°C for 30 min. After treatment, the glass slide was removed, thoroughly washed with ultrapure water, then washed with anhydrous ethanol, and dried with nitrogen. Subsequently, two hydrophilized glass slides were fixed at intervals to form a sandwich scaffold and placed in an ethanol dispersion of silica nanoparticles. Evaporation-induced self-assembly was carried out at a constant temperature of 30°C until the solvent was completely evaporated, so that the silica nanoparticles formed a periodically ordered photonic crystal template between the two substrates.
[0102] 2) Prepare 15 mL of prepolymer solution, containing 20% acrylamide, 10 wt% acrylic acid, 0.5 wt% N,N'-methylenebisacrylamide (MBA), and 0.2 wt% lithium phenyl-2,4,6-trimethylbenzoylphosphine (LAP). Immerse the obtained photonic crystal template in the prepolymer solution, allowing the prepolymer solution to fully penetrate and fill the pores of the photonic crystal template through capillary action. After the system becomes uniformly transparent, irradiate it under 365 nm ultraviolet light for 10 min to polymerize and solidify, forming a photonic crystal hydrogel. After polymerization, remove the photonic crystal hydrogel and cut it into 5 mm × 5 mm pieces. Place them in a 5% hydrofluoric acid solution for 30 min to etch away the silica template. After etching, wash thoroughly with ultrapure water to obtain an inverse opal photonic crystal hydrogel with a three-dimensional periodic porous network structure.
[0103] 3) A mixed activation solution containing 3% N-hydroxysuccinimide (NHS) and 3% 1-ethyl-(3-dimethylaminopropyl)carbodiimide hydrochloride (EDC) was prepared using MES buffer at pH 6.0. The resulting inverse opal photonic crystal hydrogel was incubated in the mixed activation solution for 3 h to activate the carboxyl groups in the hydrogel network. After incubation, the hydrogel was washed with 1×PBS. Subsequently, the activated inverse opal photonic crystal hydrogel was placed in a 1×PBS solution containing 0.2% concanavalin A and 0.2% nisin for 3 h to couple the two biorecognition ligands, concanavalin A and nisin, to the same inverse opal photonic crystal hydrogel. After coupling, the hydrogel was treated in 1 mol / L CaCl2 solution for 5 min to obtain a dual-ligand functionalized detection hydrogel. The resulting detection hydrogel was transferred to sterile physiological saline and stored at 4°C for later use.
[0104] 4) During testing, two identical hydrogels were selected and placed in two custom-designed sample detection cells of the same structure and size, one as a blank reference cell and the other as a sample detection cell. 100 μL of sterile saline was added to the blank reference cell, and 100 μL of the sample solution was added to the sample detection cell. The hydrogels were allowed to react with their respective liquids for 2 minutes. After the reaction, blank reference images and sample response images were acquired under the same image acquisition position and at a ring array light source power of 12 W and an image acquisition device exposure time of 1 s. The obtained blank reference images and sample response images were imported into the data processing module. R, G, B, H, S, V, and Gray color space features were extracted from the images to obtain the R, G, B, H, S, V, and Gray feature values. The color feature difference between the sample response image and the blank reference image within the corresponding detection area was calculated. The mean difference of the H channel color features, ΔH, was used as the parameter for quantitative analysis of the total bacterial count to calculate the total bacterial count of the sample.
[0105] 2. Characterization of hydrogel synthesis
[0106] Figure 3 The oscillatory strain curves of the hydrogel in DE show that the storage modulus (G') curve enters a plateau region, i.e., the linear viscoelastic region, around 0.1% strain. Within this region, the hydrogel structure is not destroyed by the oscillation force, and strain exhibits a linear relationship with stress. Therefore, subsequent frequency scans were performed within this region. The frequency scan curves show that within the linear viscoelastic region, the storage modulus (G') is always much greater than the loss modulus (G''), and both curves are approximately horizontal straight lines, insensitive to frequency changes, indicating the formation of a good and stable network structure within the hydrogel.
[0107] To fully verify the successful preparation and functionalization of inverse opal photonic crystal hydrogels Figure 3 The morphology and chemical characterization of F were systematically performed. Fourier transform infrared spectroscopy confirmed that pure SiO2 has a fluorescence intensity of approximately 1100 cm⁻¹. -1 The inverse opal photonic crystal hydrogel exhibits characteristic Si–O–Si stretching vibrations and displays characteristic carbonyl (C=O) and N–H / O–H absorption bands, confirming the formation of the hydrogel network. More importantly, a characteristic Si–O–Si stretching vibration was observed only in the inverse opal photonic crystal hydrogel at approximately 1550 cm⁻¹. -1 The presence of additional C–N stretching vibration bands indicates the successful introduction of nitrogen-containing functional groups. Furthermore, feasibility analysis shows that ( Figure 3 The H value of the inverse opal photonic crystal hydrogel remained almost unchanged before and after incubation with the bacterial suspension, while the H value of the grafted inverse opal photonic crystal hydrogel increased significantly after contact with bacteria, indicating successful surface functionalization and effective bacterial capture. The surface chemical composition was further characterized by XPS. Figure 3 Pure SiO2 exhibits characteristic Si2p, Si2s, and O1s signals, while the introduction of the hydrogel matrix produces a distinct C1s peak and a weak N1s peak in the inverse opal photonic crystal hydrogel. Notably, the significantly enhanced N1s signal observed in the inverse opal photonic crystal hydrogel confirms the successful grafting of nitrogen-containing cyano functional groups, which is highly consistent with the FTIR results. High-resolution XPS spectroscopy further validates the surface chemical state. The Si2p peak centered at 103.4 eV remains unchanged, indicating that the silica framework maintains chemical stability throughout the modification process. Figure 3 I). All samples exhibited characteristic C1s components corresponding to C–C / C–H, C–O / C–N, and C=O bonds, while the N1s spectra of the inverse opal photonic crystal hydrogel showed nitrogen species associated with the hydrogel at approximately 399.80 and 401.65 eV. Figure 3 J). The N1s intensity was significantly increased in the inverse opal photonic crystal hydrogel, further confirming that cyano-functionalized groups had been successfully introduced into the hydrogel surface. Figure 3 In summary, these multidimensional characterization results confirm the successful synthesis of the inverse opal photonic crystal hydrogel and its robust structural design.
[0108] Besides the optical properties of the photonic crystal template itself, the color response capability of the inverse opal photonic crystal hydrogel is also significantly affected by factors such as the polymer network structure, crosslinking density, and dual-ligand loading. Therefore, this invention further uses the blank response H value of the hydrogel and ΔH after interaction with bacteria as evaluation indicators to systematically optimize the total solids content, the ratio of AA to AM monomers, the concentration of MBA crosslinking agent, and the concentration of dual-ligands.
[0109] like Figure 4As shown in AB, increasing the total solids content increases the blank response H value of the hydrogel and decreases the overall ΔH after bacterial interaction. Too low a content results in insufficient mechanical strength, hindering subsequent cutting, transfer, and detection operations; too high a content leads to an overly dense network, limiting swelling and volume changes, and reducing the structural color response amplitude. The AA:AM mass ratio affects the blank response H value and ΔH of the hydrogel. An appropriate ratio yields a suitable color baseline and the maximum ΔH response, achieving a balance between carboxyl functional sites, network hydrophilicity, and polymer backbone stability. The MBA concentration determines the network crosslinking density and chain segment mobility: too low a concentration results in a loose network and insufficient mechanical stability; too high a concentration restricts chain segment movement and hydrogel volume changes, inhibiting the structural color response induced by bacterial binding. As the total concentration of the two ligands increases, the blank response H value of the hydrogel remains generally stable, while ΔH gradually increases; at excessively high concentrations, ΔH no longer increases significantly, indicating that effective coupling sites tend to saturate. These parameters collectively affect the structural stability and structural color response capability of the hydrogel, requiring a comprehensive trade-off between the two. In summary, through systematic optimization of total solids content, monomer ratio, crosslinking agent concentration and dual ligand concentration, the optimal formulation was finally determined to be 30% total solids content, 0.5 AA:AM mass ratio, 5 mg / mL MBA concentration and 6 mg / mL total dual ligand concentration.
[0110] 3. Determination of color feature values
[0111] To further determine the optimal color channel reference value suitable for the system's threshold determination function, this invention uses mixed bacterial solutions of different concentrations with hydrogels for colorimetric response, acquires images, and extracts color feature values for analysis. For example... Figure 5 As shown in Figure A, in the RGB channels, the color feature value difference of the G channel exhibits a concentration-dependent trend within the bacterial concentration range of 2-7 Log CFU / mL, while the differences between the R and B channels show no obvious pattern. In the HSV channels, the color feature value difference of the H channel shows a clear concentration-dependent trend within the bacterial concentration range of 3-8 Log CFU / mL, while the differences between the S and V channels show no obvious pattern. The color feature value difference of the Gray channel also does not show a clear trend. To further verify the above results, this study calculated the overall average value and difference of each color feature value between the blank reference image and the sample response image of the hydrogel sheet, and performed correlation analysis between the difference and the bacterial concentration. The results are as follows: Figure 5 As shown in B, among all the color characteristic value differences, the ΔH value was highly significantly correlated with the bacterial concentration (P < 0.001), the ΔG value was significantly correlated (P < 0.05), and the remaining color characteristic value differences were not significantly correlated with the bacterial concentration. In summary, the H value, a color characteristic value of the hydrogel sheet, is highly correlated with changes in bacterial concentration; therefore, the color characteristic value of the hydrogel sheet can be used to reflect the bacterial concentration.
[0112] Example 2: Performance Evaluation of Inverse Opal Photonic Crystal Detection
[0113] 1. Reaction Kinetics
[0114] To clarify the relevant detection performance of the system, this invention first investigated the changes in the hydrogel sheet during the reaction with bacterial solution, mainly including the change in H value and the reaction endpoint. Based on this, important parameters such as the reaction kinetics and linear range detection limit of the detection system were clarified.
[0115] like Figure 6 As shown, a mixed bacterial suspension with a concentration of 8 Log CFU / mL was first reacted with the hydrogel slide. After 2 minutes, the H-value curve flattened out, showing no significant difference from the H-value at 150 seconds. The actual image of the hydrogel slide on the right side of the figure also shows that the color had become a deep dark red at this point. Therefore, the reaction endpoint for detection was determined to be 2 minutes.
[0116] Based on this, the hydrogel sheet was reacted with a mixed bacterial suspension at a concentration of 1-8 Log CFU / mL. It was found that within the bacterial suspension concentration range of 2.6-8 Log CFU / mL, ΔH showed a good linear relationship with the bacterial suspension concentration. The detection limit of the hydrogel sheet was determined to be 2.6 Log CFU / mL, and the linear range was 2.6-8 Log CFU / mL. This range covers the complete fluctuation range of the total bacterial count in meat samples within the shelf life, thus achieving accurate assessment of the total bacterial count in meat samples throughout the entire process. A linear fit was performed on the curve within this linear range with ΔH as the abscissa, and the fitting equation was y = 21.2023 x - 0.2754, R². 2 = 0.9968, indicating that the fitted equation has high reliability.
[0117] 2. Anti-interference capability
[0118] To further reduce the impact of meat sample matrix on test results, a gauze filtration step was added before the meat eluent testing, and the number of filtration layers was optimized. Figure 7 As shown in Figure A, when the number of gauze layers was 2, 4, and 8, the total bacterial count in the filtrate measured by PCA was not significantly different from that in the unfiltered eluent; however, when the number of gauze layers increased to 16, the total bacterial count decreased significantly. This indicates that when the number of gauze layers is less than 16, filtration does not lead to a reduction in the number of bacteria in the filtrate, meaning the filtrate reflects the actual bacterial concentration. Figure 7As shown in B, after filtration through gauze with different numbers of layers, the effect of the filtrate on the ΔH value of the hydrogel sheet was approximately 0.004 when the gauze layers were 8 and 16, significantly lower than other layers. This value was even far below the detection limit of the hydrogel sheet. Therefore, after filtration with 8 layers of gauze, it can be considered that the ΔH value of the hydrogel sheet was contributed solely by bacteria in the sample, effectively eliminating interference from the meat sample matrix.
[0119] To verify whether the hydrogel sheet is affected by the sample matrix during meat sample testing, this invention evaluated its anti-interference performance. The eluents of five types of irradiated meat samples, as well as inactivated and non-inactivated bacterial solutions at a concentration of 6 Log CFU / mL, were reacted with the hydrogel sheet. The results are as follows: Figure 7 As shown in Figure C, the ΔH value of the hydrogel sheet after reacting with the uninactivated bacterial solution was approximately 0.3, significantly higher than that of other treatment groups; the ΔH value after reacting with the eluent of irradiated meat samples was approximately 0.015, much lower than the result of the reaction with the bacterial solution. This indicates that when the bacterial count in the meat sample exceeds the standard, the hydrogel sheet can accurately reflect the total bacterial count in the sample without being affected by the sample matrix itself. Furthermore, when the bacterial concentration in the inactivated bacterial solution is below 1 LogCFU / mL, a negative ΔH value is reasonable based on the reaction kinetics curve between the hydrogel sheet and the bacterial solution.
[0120] 3 Storage stability
[0121] The ability of the hydrogel sheet to maintain stable reactivity over a long period largely determines the practical application capability of this invention. Figure 8 It can be seen that within the storage time range of 0 to 91 days, the hydrogel sheet can maintain a stable blank response H value and maintain good reactivity with the mixed bacterial solution. When the storage time reaches 98 days, the blank response H value of the hydrogel sheet increases significantly compared with 0 days, while the ΔH value of the reaction with the mixed bacterial solution decreases significantly. Therefore, the storage stability of the hydrogel sheet in this invention at 4℃ is 91 days, which fully meets the requirements of practical applications.
[0122] Example 3: Construction of a Visualized Rapid Detection System
[0123] 1 Hardware Design
[0124] The inverse opal photonic crystal hydrogel visualization detection platform mainly relies on the detection images captured by the image acquisition equipment to analyze the sample. The parameters of the key equipment are shown in Table 1 below.
[0125] Table 1 Hardware Equipment Parameters
[0126]
[0127] The hardware components pre-designed for this invention mainly include: a ring light source 1, a component fixing rail 2, an image acquisition device 3, a grooved placement plate 4, a sample detection slot 5, and a dark box 6. The experimental setup is designed as follows: the sample to be tested is fixed at the detection position by the grooved and perforated placement plate 4; the ring light source 1 is used to supplement external illumination, making the sample color appear clearer; the dark box 6 and the grooved placement plate 4 work together to avoid light reflection from below the sample, thus creating a sharp contrast between the sample and the background; the image acquisition device 3, which is stable and compatible with the computer, is used to achieve real-time capture of the blank reference hydrogel image and the sample response hydrogel image.
[0128] The specific structure of each module is as follows: Figure 9 As shown, the functions are described below:
[0129] (1) A ring light source 1 is placed at the top of the device to provide adjustable illumination in a darkroom environment. With the optimization of relevant parameters of the image acquisition device, clear, analyzable, and distortion-free images can be obtained;
[0130] (2) The component fixing slide rail 2 provides the moving space for the ring light source 1, the image acquisition device 3, and the grooved plate 4. The focal length and the distance from the light source can be adjusted by moving the slide rail, so as to obtain the best image acquisition effect.
[0131] (3) The image acquisition device 3 connects to a computer terminal to realize real-time acquisition and transmission of colorimetric images, providing data support for subsequent colorimetric analysis. It has high resolution and allows for adjustment of multiple parameters during acquisition, ensuring clear and faithful images.
[0132] (4) The recessed plate 4 is provided with a recess that matches the size of the detection slot, which facilitates sample replacement and instrument operation. A small square hole is provided in the center of the recess as a light-passing hole to ensure that the light from above passes through only through this hole. With the customized detection slot, it can adapt to the light source environment embedded in the equipment and the processing and analysis needs of the subsequent software;
[0133] (5) The transparent material of the customized sample detection tank 5 can hold the sample liquid without generating background interference. The size design of the detection tank allows it to be embedded in the groove of the placement plate and fixed, ensuring that the center of the light source, the image acquisition device 3, the sample detection tank 5 and the light transmission hole are on the same straight line;
[0134] (6) Dark box 6 can isolate the interference of external natural light sources and ensure that the sample background is in a dark state, thereby improving the capture quality and efficiency of colorimetric images.
[0135] 2 Optical Path Design
[0136] Based on the above hardware structure, the optical path design diagram of this invention is as follows: Figure 10As shown. The relative distance between the image acquisition device 3 and the recessed placement plate 4 can be adjusted by the component fixing slide rail 2 to achieve the best image acquisition effect. The light emitted by the ring light source 1 is blocked by the placement plate 4 and can only pass through the light-transmitting hole below the sample detection slot 5, thereby realizing the two major functions of image acquisition: (1) uniform edge background, using a uniform light source and light-transmitting hole to ensure the color consistency of the sample detection slot 5 area; (2) constructing a dark box environment, forming a closed environment that is not affected by external natural light. As a result, the state of the hydrogel in the sample detection slot 5 is clearly presented and forms a clear contrast with the background, and finally the image is acquired in real time through the image acquisition device 3 located at the top of the device.
[0137] To achieve the application goal of real-time on-site detection, this invention integrates the design of an inverse opal photonic crystal hydrogel detection system. The operation procedure of the equipment is as follows:
[0138] (1) Connect the image acquisition device 3 to the ring light source 1. The power of the ring light source 1 is adjustable, and the positions of the image acquisition device 3 and the grooved shelf 4 can be adjusted by the component fixing slide rail 2. The image acquisition device 3 is connected to the computer terminal, and the accompanying client is used to realize real-time image acquisition, and the optimal acquisition state is achieved by adjusting the shooting parameters;
[0139] (2) Add sterile saline solution to the sample detection tank 5 and place the hydrogel sheet inside, fixing it in the groove of the grooved placement plate 4. The client clicks the image acquisition button to obtain the sample image;
[0140] (3) Add the sample solution to be tested into the new sample detection cell 5 and place the hydrogel sheet inside. Enable the client's timed shooting function to acquire the sample response image after the sample reaction;
[0141] (4) Store the acquired images to the computer. Start the self-developed inverse opal photonic crystal hydrogel detection system, load the blank reference image and the sample response image in sequence, and click the image analysis and threshold determination button to complete the quantitative analysis and evaluation of the sample.
[0142] 3. Image acquisition parameter optimization
[0143] To acquire more accurate colorimetric images, image quality can be improved by optimizing image acquisition parameters. Therefore, this invention, based on the detection principle of inverse opal photonic crystal hydrogel, investigated the effects of light source power and exposure time on image quality and fidelity to obtain the best image acquisition effect. Light source power was set to 4, 6, 8, 10, and 12 W, and exposure time was set to 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, and 2 s, respectively. Parameter optimization was performed based on the authenticity of the colorimetric images and the detection effect.
[0144] like Figure 11As shown, under a fixed exposure time of 1 s, the color characteristic values of the hydrogel blank reference image in both the RGB and Gray channels significantly increased with increasing light source power. In the HSV channel, the color characteristic value of the V channel showed a significant upward trend, while the H and S channels showed no significant change, indicating that the H and S channels have strong stability when the external light source power changes. Simultaneously, the color characteristic value difference between the H and S channels showed good stability, while the characteristic value differences of the other channels showed some fluctuation. When the light source power was 10-12 W, the acquired image more closely matched the true color representation. Under a fixed light source power of 10 W, the color characteristic values of the hydrogel blank reference image in both the RGB and Gray channels significantly increased with increasing exposure time. In the HSV channel, the color characteristic value of the V channel showed a significant upward trend, while the H and S channels showed no significant change, indicating that the H and S channels also have strong stability when the exposure time changes. Simultaneously, the color characteristic value difference of the H channel maintained good stability, while the characteristic value differences of the other channels showed some fluctuation. When the exposure time is extended to 2 seconds, the difference in color feature values decreases, and the image deviates completely from the true state, appearing white. Therefore, images acquired with an exposure time of 0.75-1.25 seconds are more consistent with true color representation. In summary, the optimized image acquisition conditions of this invention are: light source power 12 W, exposure time 1 second.
[0145] 4. Software Design
[0146] Based on the need for rapid visualization and detection, this invention utilizes MATLAB GUI to develop an image analysis software suitable for detecting inverse opal photonic crystal hydrogels. The software mainly consists of four functional units: system selection, image loading, color feature value quantization, and threshold determination. The overall operational logic architecture of the software is as follows: Figure 12 As shown.
[0147] First, after launching the software, enter the system selection module and select "Hydrogel detection system" to access the corresponding operation interface. Second, through the image loading module, select and import the blank reference image and sample response image from the computer file to achieve image acquisition and subsequent colorimetric analysis. Then, based on the pixel distribution in the image, obtain various color parameters such as R, G, B, H, S, V, and Gray values, and obtain the characteristic value difference between the sample response image and the blank reference image in the vertical direction. Using the horizontal pixel distribution as the X-axis and the difference as the Y-value of the corresponding pixel, plot the peak spectrum between the pixel and the difference. Finally, take the average H value between the two endpoints X1 and X2 of the blank reference image as the blank response H value, and take the average H value between the two endpoints X3 and X4 of the sample response image as the sample response H value, calculating the ΔH value (e.g., ...). Figure 13 (As shown). Based on the fitting relationship between the ΔH value and the total bacterial count established by the previous response equation, the ΔH value obtained from the software analysis is converted into the total bacterial count. Combined with the dilution factor during sample detection, the total bacterial count of the sample itself is calculated, thereby achieving quantitative detection of the total bacterial count of the sample.
[0148] The specific software operation steps are as follows: Figure 14 As shown, the main steps include opening the selection system, importing the acquired image, RGB color channel analysis, HSV color channel analysis, Gray color channel analysis, dilution determination, and threshold judgment to determine sample freshness.
[0149] Example 4: Practical Application of the Visualized Rapid Detection System
[0150] 1. Evaluation of the freshness of raw meat
[0151] Based on the aforementioned optimization of the system's analytical functions and evaluation of its detection capabilities, this invention aims to verify the effectiveness of the hydrogel ΔH value in reflecting sample freshness. Using commercially available chicken breast samples, this invention employs hydrogel detection, PCA bacterial count, physicochemical indicators (TVB-N, pH), color difference, and sensory evaluation to comprehensively assess the freshness of chicken breast during storage. Furthermore, by using Pearson correlation coefficient analysis to examine the correlation between the hydrogel ΔH value and traditional freshness indicators, the application capability of this hydrogel detection system in assessing meat freshness is explored. Figure 15 As shown, the hydrogel ΔH value exhibits a significant correlation with the total bacterial count and other spoilage indicators measured by PCA, indicating that detecting the hydrogel ΔH value can effectively reflect the degree of spoilage in fresh meat. The hydrogel detection system established in this study can accurately characterize the freshness of fresh meat, providing an effective technical approach for rapidly assessing meat freshness.
[0152] 2. Accuracy testing of commercially available meat products
[0153] The total bacterial count of all commercially available meat samples and the corresponding ΔH value of the hydrogel sheet were compared based on R. 2 The overall correlation fit results are as follows: Figure 16 As shown, the fitting results of the hydrogel ΔH value and the total bacterial count in the sample showed a good correlation, R0 2 = 0.9803. The marginal distribution histogram shows that, due to the large overall sample size, the total bacterial count distribution of commercially available meat samples is close to a normal distribution, indicating that the experimental sample data has strong stability. The residual plot shows that both the overall residual and the mean absolute error are small, indicating that the average deviation between the predicted and actual values is small, further verifying the high accuracy of the hydrogel detection system in the detection of total bacterial count.
[0154] In practical applications, the ΔH value obtained by the inverse opal photonic crystal hydrogel detection system described in this invention has been verified through fresh meat freshness evaluation and accuracy testing of commercially available meat products. It has the ability to replace traditional parameters for actual detection and can accurately reflect the total number of bacteria in fresh meat.
[0155] The above description is merely a preferred embodiment of the present invention and should not be construed as limiting the scope of the invention. Any modifications, equivalent substitutions, or improvements made in accordance with the technical solution (or claims) of the present invention shall fall within the protection scope of the present invention.
Claims
1. A real-time bacterial count detection system combining an inverse opal photonic crystal hydrogel and an intelligent colorimetric platform, characterized in that, The system includes a sample reaction module, a light source control module, an image acquisition module, and a data processing module, wherein: The sample reaction module performs total bacterial count detection through the following steps: 1) Prepare a silica nanoparticle ethanol dispersion with a mass fraction of 5-15% by using silica nanoparticles with a particle size of 220-270 nm. Completely immerse a clean glass slide in the hydrophilization treatment solution for hydrophilization treatment. After treatment, remove the glass slide, wash it thoroughly with ultrapure water, then wash it with anhydrous ethanol, and dry it with nitrogen. Then fix two hydrophilized glass slides at intervals to form a sandwich scaffold, and place it in the silica nanoparticle ethanol dispersion. Place it in a constant temperature and humidity incubator at 25-30℃ for self-assembly until the solvent evaporates completely to obtain a photonic crystal template. 2) A prepolymer containing acrylamide, acrylic acid, crosslinking agent MBA and photoinitiator LAP is introduced into the pores of the photonic crystal template, and photoinitiated polymerization is carried out to form a photonic crystal hydrogel. The silica template is then removed to obtain an inverse opal photonic crystal hydrogel with a three-dimensional porous network structure. 3) Prepare a mixture containing 1-5% N-hydroxysuccinimide (NHS) and 1-5% 1-ethyl-(3-dimethylaminopropyl)carbodiimide hydrochloride (EDC). Incubate the inverse opal photonic crystal hydrogel in the mixture for 1-3 h to activate the carboxyl groups. After removal, wash with 1×PBS and then react in 1×PBS containing 0.1-0.5% concanavalin A and 0.1-0.5% nisin for 2-3 h to perform protein grafting. Subsequently, soak in 0.8-1.2 mol / L calcium chloride solution for 3-5 min to activate the protein, thus obtaining the detection hydrogel. This detection hydrogel is an inverse opal photonic crystal hydrogel with bacterial specific binding ability. 4) Place the detection hydrogel obtained in step 3) into two identical reaction module sample detection cells, serving as a blank reference cell and a detection cell, respectively. Add sterile physiological saline to the blank reference cell and add the sample solution to be tested to the sample detection cell in an equal volume to the sterile physiological saline. Allow the two detection hydrogels to react with the sterile physiological saline and the sample solution to be tested under the same conditions for 1-2 minutes. Collect blank reference images of the detection hydrogel in the blank reference cell and sample response images of the detection hydrogel in the sample detection cell, respectively. Extract the color feature values of the blank reference images and sample response images through the data processing module and calculate the color feature difference to convert it into the total bacterial count. The light source control module includes a ring array light source located at the top of the device and a light-passing hole on the stage, which are used to supplement the light source in a closed dark environment and ensure that the image has sufficient differentiation from the background during image acquisition. The image acquisition module is used to acquire blank reference images of hydrogel detection in the blank reference cell and sample response images of hydrogel detection in the sample detection cell, respectively. Based on the acquired images, the data processing module outputs the total bacterial count through the following steps: S1. Perform color channel conversion on the loaded blank reference image and sample response image, extract each color feature value, and calculate the color feature difference between the sample response image and the blank reference image. In S1, the R, G, B, H, S, V and Gray color feature values of the blank reference image and the sample response image are extracted according to the pixel arrangement inside the image. The color feature values in the vertical direction of the two images are averaged, and the spectrum of each color feature value is obtained according to the pixel distribution in the horizontal direction. At the same time, the overall feature value difference between the two images is calculated. S2. Input the extracted feature values into the prediction model and combine them with the sample dilution factor to obtain the prediction result; The prediction model in step S2 uses the colorimetric feature difference ΔH as the input variable and the assessed total number of bacteria as the output variable. After data fitting, the ΔH value and the logarithm of the total number of bacteria show a significant linear positive correlation. The fitting equation is y = 21.2023 x - 0.2754, where x is the ΔH value and y is the logarithm of the total number of bacteria. △H is obtained by the following formula: ; In the formula, △H is the change in the H value of the test sample response relative to the H value of the blank response; X1 and X2 represent the starting and ending pixel coordinates of the blank reference image distributed along the horizontal pixel dimension within the corresponding area, respectively. H1(j) represents the H value at the j-th pixel position in this dimension of the blank reference image; Similarly, X3 and X4 represent the starting and ending pixel coordinates distributed along the horizontal pixel dimension within the corresponding region of the response image of the sample to be tested; H2(i) represents the H value at the i-th pixel position in this dimension of the sample response image.
2. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, In step 1), the hydrophilization treatment solution is a mixture of 98% H2SO4 and 30% H2O2 by volume ratio of 7:3; the hydrophilization treatment temperature is 20~25℃ and the time is 20~30 min.
3. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, In step 2), the mass concentration of acrylamide in the prepolymer solution is 15-25%, the mass concentration of acrylic acid is 5-15%, the mass concentration of crosslinking agent MBA is 0.1-1%, and the mass concentration of photoinitiator LAP is 0.1-0.5%. The photoinitiated polymerization is carried out by irradiating with ultraviolet light for 5-10 minutes to complete the polymerization and curing.
4. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, In step 3), the solvent in the mixture is 2-morpholinoethanesulfonic acid MES buffer, with a pH of 5.8~6.
2.
5. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, In step 4), the sample detection groove has dimensions of 25 mm × 75 mm, with a detection groove in the center that is 10 mm long and 1 mm deep.
6. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, The image acquisition module includes an image acquisition device, a slide rail, and a plate; the slide rail is used to adjust the relative position of the two to achieve precise focusing of the optical focal length; the plate is provided with a groove that matches the size of the detection slot, and a square light-transmitting hole is opened in the center of the groove to ensure that the light from above passes through this hole; the ring light source, the image acquisition device, and the sample detection slot are located on the same straight line.
7. The real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform according to claim 1, characterized in that, The array light source power is 10~12 W, and the exposure time of the image acquisition device in the image acquisition module is 0.5~1.5 s.
8. A method for assessing total bacterial count using the real-time bacterial count detection system combining inverse opal photonic crystal hydrogel and intelligent colorimetric platform as described in claim 1, characterized in that, The method includes the following steps: (1) Prepare the detection hydrogel through the above steps and store it in sterile physiological saline at 4°C for later use; (2) Take two identical sample detection cells, use them as blank reference cells and sample detection cells respectively, and place detection hydrogels of the same size in each cell; (3) Add sterile saline to the blank reference tank and add the same volume of the sample solution to be tested as the sterile saline to the sample detection tank, so that the two detection hydrogels react under the same conditions for 1 to 2 minutes. (4) Under the same light source power, exposure time, image acquisition position and shooting parameters, blank reference image and sample response image are acquired respectively, and the two images are input into the data processing module to extract color feature values, calculate ΔH and evaluate the total number of bacteria.
