Food‐Activated Microneedle Sensor for Real‐Time, Colorimetric Spoilage Monitoring of Pre‐Packaged Food
Shadman Khan, Akansha Prasad, Mahum Javed, Roderick MacLachlan, Carlos D. M. Filipe, Tohid F. Didar

TL;DR
A low-cost, color-changing sensor made from food ingredients can detect spoilage in packaged food in real-time, with results readable by smartphone.
Contribution
A novel food-derived microneedle sensor with real-time spoilage monitoring and AI-powered smartphone readout is introduced.
Findings
The sensor uses anthocyanins to detect spoilage through pH changes, showing strong correlation with spoilage markers.
Microneedles nondestructively penetrate packaging and rehydrate in food, enabling real-time spoilage detection.
Machine learning analysis of smartphone images improves accuracy and removes ambiguity in sensor readouts.
Abstract
At a time of growing food insecurity, developing technologies to reduce food waste is critical. An inexpensive, colorimetric spoilage sensor for real‐time food product assessment is reported. The sensor is composed of dehydrated gelatin microneedles that exhibit high mechanical integrity in their base state. However, once exposed to fluid‐rich food environments, they rapidly transition to a hydrogel sensing state. Food‐derived anthocyanins embedded within these microneedles enable pH‐based spoilage monitoring. When applied to sealed fish products, these microneedles nondestructively penetrate through the packaging and are rehydrated by the underlying fish matrix. As the product ages, a defined color shift occurs, demonstrating strong correlation with quantitative spoilage markers. When applied to unsealed fish products for rapid testing, the large microneedle sensing interface enables…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4- —Toyota Tsusho Canada Incorporated
- —Natural Sciences and Engineering Research Council of Canada10.13039/501100000038
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvancements in Transdermal Drug Delivery · Microencapsulation and Drying Processes · Nanocomposite Films for Food Packaging
Introduction
1
The economic and humanitarian burden of food waste has become increasingly pronounced worldwide, with an estimated one‐third of edible food produced annually being discarded.^[^ 1, 2, 3 ^]^ While various technical and operational measures have been enacted across the food production and distribution pipeline to limit commercial food waste, consumer‐level waste remains largely unaddressed. Much of this waste has been attributed to improper end‐user food quality assessment, wherein consumers discard edible food products prematurely in the interest of food safety.^[^ 4 ^]^ To this end, static expiry dates are the only tool currently available to consumers to inform food edibility. These labels offer no context on the real‐time state of a packaged product and come with varying definitions that lead to consumer confusion. With 20–30% of consumer‐level food waste involving edible foods thrown away due to label dependency, supplying consumers with more effective tools for food quality assessment is imperative.^[^ 4 ^]^
From a biochemical standpoint, food spoilage is characterized by the breakdown of macromolecular textures, the overgrowth of native and contaminating microbes, and the accumulation of toxins.^[^ 5, 6 ^]^ The detection of gaseous metabolites released during food spoilage has offered an intriguing non‐contact approach that has been implemented through various electrochemical and optical sensing mechanisms.^[^ 7 ^]^ Among these, sensors designed to detect nitrogenous compounds such as putrescine, cadaverine, and trimethylamine, have shown strong correlation with microbial spoilage and serve as reliable indicators of protein degradation.^[^ 7, 8 ^]^ In parallel, pH‐based spoilage sensing has been extensively explored, as the aforementioned generation of nitrogenous compounds yields defined changes in food pH.^[^ 9, 10 ^]^ Numerous studies have shown that the accumulation of such compounds–namely volatile organic compounds and biogenic amines, strongly correlate with pH changes in various foods, such as fish.^[^ 11, 12, 13, 14 ^]^ While food‐specific pH meters are sometimes used by industry stakeholders to assess food quality, spoilage monitoring stands to offer the greatest benefit at the consumer level. Given that the use of such complex devices is not feasible on a mass market scale, developing simple, cost‐effective pH sensors has been a very active area of research.^[^ 15 ^]^
To this end, anthocyanins – pH‐responsive flavonoids derived from fruits and vegetables, have garnered significant interest.^[^ 16 ^]^ As these agents are native to food, they are completely food‐safe and offer dramatic shifts in color in response to single logarithmic unit changes in pH. Anthocyanins have most broadly been employed within soft, food‐safe polymer films that act as entrapping matrices, without hindering the molecules’ ability to interact with fluids present in food.^[^ 11, 16, 17 ^]^ Cellulose, chitosan, and polyvinyl alcohol have been most commonly used within such systems, often paired with various additives to support sensor performance and resilience. The non‐toxic, biodegradable nature of these films ensures that they can be safely used to package foods for real‐time, consumer‐level monitoring. Compatible materials extend far beyond such conventional polymers, however, with recent works highlighting how various polymer mixes (i.e., polycaprolactone and polyethylene oxide) and fabrication techniques (i.e., electrospinning) can be leveraged toward scalable production of high‐performance sensing films.^[^ 18, 19 ^]^ Regardless of the preparation, such sensors offer signals that are transduced via a visible color change, meaning consumers can assess the food state without using any equipment.^[^ 20, 21 ^]^
While intriguing, such anthocyanin‐embedded spoilage sensing films offer limited real‐world viability.^[^ 22, 23 ^]^ Given that the retention of anthocyanin functionality requires these films to be highly permeable to fluids, they must be composed of porous, hydrophilic matrices. Such a composition does not sufficiently protect enclosed foods from the surrounding environment, preventing the use of such films as standalone packaging.^[^ 11 ^]^ Moreover, industry resistance toward increases in packaging costs makes the commercial adaptation of such technologies unlikely. Recent studies have thus explored microneedle‐based spoilage sensors that can be used at the consumer level for product sampling and sensing readout.^[^ 24, 25, 26, 27 ^]^ To date, however, these approaches have largely relied on synthetic matrices, photopolymerized scaffolds, or external excitation sources, which limit their food safety, scalability, and cost‐effectiveness. Consumer‐level deployment requires a low‐cost, food‐safe, shelf‐stable platform capable of monitoring pre‐sealed foods in an equipment‐free manner.
To address this, we have developed an inexpensive, food‐activated microneedle spoilage sensor to be used by consumers at home (Figure 1a). The microneedle matrix is composed of gelatin – selected due to its food‐safe nature, material versatility, and demonstrated applications in food sensing.^[^ 28, 29, 30 ^]^ Embedded with red cabbage anthocyanin, the sensors are prepared using a three‐step fabrication protocol that yields dehydrated, rigid microneedles that effectively penetrate through both packaging and food. Once exposed to moisture‐rich food matrices, rehydration of the gelatin matrix enables colorimetric pH monitoring (Figure 1b). The spoilage sensing performance of these sensors was evaluated using fish, given its implications in foodborne illness and well‐characterized pH–spoilage correlation.^[^ 31, 32, 33 ^]^ The primary use‐case for these sensors involves the at‐home, real‐time spoilage monitoring of packaged foods, wherein non‐destructive insertion through overlaid packaging allows for continuous monitoring across the product's lifespan. On‐food testing yielded a gradual transition in color from purple to blue, correlating well with changes in pH (Figure 1c,d). A second use case involves rapid testing of opened products, wherein the significant microneedle‐enabled increase in food‐contacting surface area accelerates sensing. The sensors remain effective following exposure to various storage humidities and temperatures, supporting real‐world use. Lastly, an artificial intelligence network was developed to automatically classify smartphone‐captured images of food‐embedded sensing patches, eliminating readout ambiguity and ensuring accessibility.
Overview of gelatin‐anthocyanin fish spoilage sensor. a) Schematic illustration of the developed sensor applied to sealed fish for real‐time spoilage monitoring. b) Treatment‐induced dehydration for mechanical integrity and ambient stability, followed by test fluid‐induced rehydration for sensing. c) Food‐mediated hydration of the sensing microneedles, which subsequently exhibit pH‐induced color change from purple to blue as the food product spoils. d) Proof‐of‐concept application showing colorimetric shift from purple to blue across fish product lifespan. Scale bars depict 20 mm (left) and 10 mm (middle, right).
Results and Discussion
2
Dehydrated Gelatin Microneedle Fabrication
2.1
Polydimethylsiloxane (PDMS) negative molds were first casted from a positive master mold with the desired dimensions, printed via stereolithography (Figure S1, Supporting Information). Preliminary gelatin microneedles were fabricated through a simple casting approach (Figure 2a). Briefly, 5−20% w/v gelatin was added to deionized water, incubated at room temperature for 10 min to enable blooming, and then heated until completely transparent. This solution was then deposited onto the PDMS mold (Figure S2, Supporting Information) and stored under vacuum for 30 min to draw out entrapped air pockets. This procedure was performed at 80 ^°^C to prevent premature gelation. Upon subsequent removal from heat, the casted gelatin fully solidified within 10 min.
Fabrication and characterization of dehydrated gelatin microneedles. a) Schematic illustration of fabrication protocol. b) Optical images of gelled, frozen, and dehydrated gelatin microneedles. Scale bar depicts 4 mm. c) Optimization of gelatin concentration based on the mechanical strength of resultant microneedles. d) Optimization of dehydration time based on the mechanical strength of resultant microneedles. e) Baseline mechanical characterization of optimized gelled, frozen, and dehydrated microneedles. f) Scanning electron microscopy images of (i) gelled and (ii) dehydrated microneedles. Main image scale bar depicts 150 µm, while inset image scale bar depicts 10 µm. g). Schematic illustration of film penetration testing. h) Optical images of microneedles of food packaging films penetrated by dehydrated gelatin microneedles. Scale bar depicts 3 mm. i) Percent penetration of dehydrated gelatin microneedles through food packaging films through ten uses. j) Percent reusability of dehydrated gelatin microneedles through food packaging films through ten uses. All error bars depict standard deviation. All asterisks represent significant differences at corresponding significance levels.
Reversible dehydration was enacted through treatments that succeeded gelation. Specifically, the casted gelatin microneedles were first stored at −20 ^°^C overnight to induce freezing. The needles were then incubated at 30 ^°^C overnight, yielding the final dehydrated microneedle patch (Figure 2b). This freeze‐thaw approach is necessary to induce microstructural changes that increase microneedle strength, fluid absorption capacity, and dehydration efficacy. Specifically, as the water within the gelatin matrix freezes, it forms large, disorganized ice grains.^[^ 34 ^]^ These grains condense surrounding polymer chains, facilitating physical crosslinking and the formation of inter‐macromolecular bonds. This in turn, increases the microneedles’ mechanical integrity. Moreover, the cavities produced by these large ice grains do not dissipate following thawing of the ice grains,^[^ 34 ^]^ resulting in increased liquid absorption capacity relative to non‐frozen gelatin microneedles. Finally, water molecules that are entrapped within the core of individual ice grains are unable to form hydrogen bonds with surrounding gelatin chains.^[^ 34 ^]^ These water molecules are thus largely unstable within the polymer matrix, making them prone to dehydration. Importantly, the microneedle patches were only removed from the PDMS negative mold following dehydration, wherein the mold acted as a scaffold for the microneedles during freezing and dehydration.
Mechanical optimization of the dehydrated microneedles involved considerations toward gelatin concentration in the precursor solution and dehydration time (Table S1, Supporting Information). Sample conditions assessed through the microneedle height reduction observed following the application of perpendicular mechanical force, wherein a lower height reduction signals higher mechanical integrity. Gelatin w/v concentrations of 5%, 10%, 15%, and 20% were evaluated at forces ranging from 100 to 600 gram‐force (gf) (Figure 2c). Dehydrated 5% gelatin microneedles exhibited significantly reduced mechanical integrity across all tested force conditions (p < 0.01, 0.01, 0.001, 0.001, 0.0001, 0.0001) compared to dehydrated 15% microneedles. Between the dehydrated 10%, 15% and 20% microneedles, a slight decrease in mean height reduction was observed as concentration was increased. While these differences were generally not statistically significant, 10% dehydrated microneedles were noted to be slightly inferior to 15% and 20% dehydrated microneedles due to their higher height reduction mean values. While 15% and 20% dehydrated microneedles were largely similar with regard to their mean values, the latter exhibited higher variance in the degree of height reduction. It was noted that 20% gelatin concentrations yielded increasingly brittle properties, making the needles prone to snapping upon force application. As such, the 15% gelatin concentration was selected, wherein a height reduction of 12.77% ± 5.20 was observed at 100 gf and a height reduction of 55.10% ± 3.33 was observed at 600 gf.
To assess the effect of dehydration time on mechanical strength, samples dehydrated for 8, 16, and 24 h were evaluated at forces between 100 and 700 gf (Figure 2d). Compared to the 24‐h samples, 8‐h samples exhibited significantly higher height reduction at all tested forces (p < 0.001, 0.0001, 0.0001, 0.0001, 0.01, 0.001, 0.0001). Samples dehydrated for 16 h demonstrated a significant improvement in mechanical strength relative to the 8‐h samples but were still significantly weaker than 24‐h samples at forces between 200 and 400 gf (p < 0.0001, 0.0001, 0.0001). While differences were not significant at the other tested forces, the 24‐h samples consistently exhibited a mean height reduction lower than the 16‐h samples. Improvements in strength were not observed when dehydration was performed for longer than 24 h. As such, 24 h was noted to be the optimal dehydration time, wherein height reductions of 12.77% ± 5.20 and 59.06% ± 3.05 were observed at 100 and 700 gf, respectively.
With optimized fabrication parameters selected, an assessment of microneedle integrity was performed at each stage of post‐gelation processing to understand the impact of freezing and dehydration (Figure 2e). Gelled microneedles offered very low mechanical strength, with height reductions of 43.64% ± 9.03 and 55.55% ± 6.65 at forces of 100 and 200 gf, respectively. This was significantly higher than both their frozen (31.80% ± 10.05, p < 0.01; 43.28% ± 9.61, p < 0.0001) and dehydrated counterparts (12.77% ± 5.20, p < 0.0001; 18.25% ± 6.24, p < 0.0001). Complete height reduction was observed at forces of 300 gf and above. Conversely, frozen microneedles demonstrated rapidly deteriorating mechanical integrity after removal from their −20 ^°^C treatment environment. Their exterior surface thawed almost immediately, while the inner core thawed within 2 min. Accordingly, these microneedles exhibited significantly higher height reductions at forces between 100 and 500 gf compared to dehydrated microneedles (p < 0.0001, 0.0001, 0.0001, 0.0001, 0.01), as the thawed exterior offered little structural resistance to applied forces. At forces of 600 and 700 gf, the difference between the two conditions was not significant, owing to the temporarily intact ice core. Still, the mean height reduction values exhibited by the dehydrated microneedles at these forces were still lower than those of frozen microneedles. The dehydrated microneedles thus presented a breakthrough material that offered mechanical integrity superior to that of frozen microneedles, in a format that remains stable indefinitely at room temperature.
The gelled and dehydrated microneedles were subjected to scanning electron microscopy (SEM) (Figure 2f). Dehydration was signified by a significant reduction in microneedle diameter, alongside microscale textures that were attributed to gelatin crystallization. When tested against target matrices, the dehydrated microneedles exhibited excellent penetration of polyethylene food packaging films with thicknesses of 14, 38, and 76 µm (Figure 2g,h). Effective penetration was also observed with alternative packaging materials and non‐target food products (Figures S3 and S4, Supporting Information). The packaging penetration capabilities of the dehydrated microneedles were quantified through the percent of applied microneedles that effectively penetrated through the three polyethylene films (Figure 2i). Single patches were tested over ten times to simultaneously assess the microneedles’ resilience, with the number of reusable needles, total needles minus broken needles, noted after each trial (Figure 2j). With 14 µm thick polyethylene, the penetration rate was consistently above 93% and reusability was noted to be 100.0% following ten trials. The 38 µm thick polyethylene films offered slightly more resistance, yielding 79.3% penetration by the tenth trial, and an 83.7% reusability rate. Finally, testing with 76 µm films resulted in a 56.2% penetration rate and a 75% reusability rate. Importantly, rates were calculated with reference to the number of microneedles at the start of the first use. When adjusted to the number of intact needles at the start of the tenth use, the penetration rates for 38 and 76 µm films are 94.7% and 74.9%, respectively. While the use of these microneedles for real‐time spoilage sensing would only require a single penetration event, these studies demonstrate the mechanical robustness of the developed structures. Height reduction, penetration, and reusability tests were also performed at insertion angles of 10° and 20° to account for user handling. With 10° insertion, a height reduction profile similar to 0° insertion was observed (Figure S5, Supporting Information). On the other hand, no height reduction was observed at 20°, as the applied force was relocated from the tip of the microneedles to the edge, yielding reversible bending. Penetration and reusability rates were not affected by variations in insertion angles (Figure S6, Supporting Information). Penetration and reusability were also evaluated against fish and fish + packaging, with rates remaining consistent (Figure S7, Supporting Information).
Anthocyanin Integration and Optimization
2.2
Anthocyanin integration within the dehydrated gelatin microneedle matrix represented the next objective. Red cabbage anthocyanin was suitable due to its defined color shift from purple to blue at pH 7.0, which corresponds with the fish spoilage threshold reported in prior literature.^[^ 35, 36 ^]^ Anthocyanin powder was first dissolved in deionized water to create a 1% w/v stock solution. This solution was then further diluted to 0.1%, 0.5%, and 0.9% in deionized water. Here, it was hypothesized that too low a concentration would offer a suboptimal color shift, while too high a concentration would buffer the color shift beyond the desired spoilage threshold. The change in absorbance exhibited by these three anthocyanin concentrations when exposed to fresh vs spoiled fish was quantified (Figure 3a). Measurements were taken at several wavelengths to identify the optimal parameters for color shift monitoring, wherein absorbance measured at 300 and 350 nm exhibited the most dramatic changes. While the differences between conditions were statistically insignificant, increased anthocyanin concentrations yielded slightly higher mean shifts in absorbance at 300 and 350 nm. Next, we sought to assess how shifts in absorbance correlated with pH on a day‐to‐day basis throughout the products’ lifespan. Regression analyses were performed between the absorbance of anthocyanin solutions incubated with fish for 30 min and fish pH, over the course of 6 days (Figure 3b). This offered direct insight into the temporal robustness of the fish pH–anthocyanin color change relationship. Here, 0.1% anthocyanin solutions exhibited the lowest correlation with fish pH, with r‐values of 0.8557 and 0.8424 at wavelengths of 300 and 350 nm, respectively (p < 0.05, 0.05). On the other hand, the changes in absorbance exhibited by 0.5% and 0.9% anthocyanin solutions demonstrated strong correlation with fish pH, with r‐values all above 0.95 (p < 0.01, 0.01, 0.01). Importantly, 0.9% anthocyanin solutions were only quantified at 350 nm, as overflow was noted at 300 nm.
Anthocyanin incorporation into dehydrated gelatin microneedles and corresponding performance testing. a) Absorbance shifts observed through fish spoilage using various anthocyanin concentrations and measurement wavelengths. b) Correlation analysis of anthocyanin concentration‐absorbance wavelength combinations. c) Optical images of an anthocyanin‐embedded dehydrated gelatin microneedle sensor, a single needle, and rehydrated patches following exposure to pH. 6.0, 8.0, and 10.0, from left to right. Colored images have scale bars depicting 1 mm, while the Brightfield image scale bar depicts 200 µm. d). Percent color shift exhibited by sensors prepared using varying anthocyanin concentrations at different pH ranges. e) Mechanical assessment of anthocyanin‐embedded microneedle sensor. f) Scanning electron microscopy images of (i) gelled and (ii) dehydrated anthocyanin‐embedded microneedles. Main image scale bar depicts 150 µm, while the inset image scale bar depicts 10 µm. g). Mechanical integrity of sensors after long‐term storage. h) pH responsiveness of sensors after long‐term storage. i) Mechanical integrity of sensors after storage at diverse temperatures for 5 days. j) pH responsiveness of sensors after storage at diverse temperatures for 5 days. All error bars depict standard deviation. All asterisks represent statistically significant differences at corresponding significance levels.
Recognizing that the dehydrated gelatin matrix may alter the color‐responsive properties of embedded anthocyanin, subsequent studies employed dehydrated gelatin microneedles embedded with the pH‐responsive agent. In its initial state, the patch exhibits a faint purple hue (Figure 3c). However, upon incubation within solutions with pH values of 6.0, 8.0, and 10.0, expected shifts to dark purple, blue, and green were observed in under 5 min. Importantly, this was the first indication that anthocyanin embedded within dehydrated gelatin remained fully functional and accessible for pH sensing. In fact, it was observed that the microneedles returned to a largely rehydrated state, similar to their initial gelled state. To this end, the rate of rehydration was evaluated on both short and long‐term timescales (Figures S8 and S9, Supporting Information).
To quantify the pH responsiveness of anthocyanins embedded within dehydrated gelatin matrices, the percent color shift was calculated between samples incubated at pH values of 4.0, 6.0, 8.0, and 10.0 (Figure 3d). When pH increased from 4 to 6 and from 8 to 10, the shifts exhibited by the 0.5% dehydrated anthocyanin patches were significantly more dramatic than that of 0.1% (p < 0.0001, 0.0001) and 0.9% patches (p < 0.0001, 0.0001). With regards to the pH 6.0 to 8.0 transition–the range most relevant to fish spoilage, the 0.5% dehydrated patches demonstrated a much more substantial 8.8% ± 1.7 mean shift in color compared to the 2.6% ± 1.3 mean shift exhibited by 0.1% patches (p < 0.0001). The 10.2% ± 1.3 mean shift exhibited by the 0.9% patches was not significantly different from the 0.5% patches, making both relevant for application‐specific testing.
Material Assessment of Spoilage‐Sensing Microneedles
2.3
To ensure that the introduction of anthocyanin at high concentrations does not yield significant alterations to the mechanical integrity of dehydrated gelatin microneedles, force testing was performed on dehydrated microneedles embedded with 0.1%, 0.5%, and 0.9% anthocyanin (Figure 3e). While samples embedded with higher anthocyanin concentrations exhibited slightly higher microneedle height reductions in response to the application of a perpendicular force, the changes were small in magnitude. Specifically, 0.1% and 0.9% dehydrated anthocyanin microneedles differed by less than 14% across all tested conditions.
Interestingly, 0.1% dehydrated anthocyanin microneedles generally exhibited less height reduction than dehydrated, anthocyanin‐free microneedles. This improvement in mechanical integrity is attributed to increased structural stability afforded by hydrogen bonding between free anthocyanins and the polymeric microneedle matrix. While this would suggest that 0.5% and 0.9% dehydrated anthocyanin microneedles would exhibit even greater mechanical integrity, it is hypothesized that the abundant free anthocyanins present within 0.5% and 0.9% samples engage in interactions with water molecules present within the gelled and frozen microneedle states. Bonded water molecules are resistant to extraction via dehydration, yielding a dehydrated material with slightly higher moisture content. Owing to these counteracting effects, there is little difference in the mechanical integrity of dehydrated anthocyanin‐free and dehydrated 0.9% anthocyanin microneedles. Specifically, the two respective microneedle conditions demonstrate height reductions of 12.77% ± 5.20 and 14.51% ± 6.94 at 100 gf, alongside reductions of 59.06% ± 3.05 and 60.87% ± 3.13 at 700 gf. The hypothesized increase in anthocyanin‐driven intermolecular interactions is supported by SEM images of anthocyanin‐embedded microneedles (Figure 3f). Dehydrated microneedles with embedded with anthocyanins exhibit a significant increase in surface textures attributed to gelatin crystallization.
Next, the impact of long‐term storage on the mechanical integrity and pH responsiveness of dehydrated, anthocyanin‐embedded microneedles was assessed. Mechanical integrity remained largely unchanged for 0.5% anthocyanin‐embedded microneedles, with no significant differences observed amongst all storage samples below 400 gf (Figure 3g). While slight increases in mean height reduction were observed with long‐term storage between forces of 500 and 700 gf (p < 0.01−0.05), these differences did not exceed 8% under any tested conditions. With regard to on‐package application, such a difference would induce negligible changes in penetration and reusability rates. With regards to pH‐responsiveness, 0.5% anthocyanin‐embedded sensing patches were stored for 7, 14, and 21 days in ambient conditions. These samples were subsequently incubated in a pH 8.0 standard solution for 30 min, with the resultant blue color intensity quantified (Figure 3h). No significant differences in the blue color output were observed, confirming that the dehydrated gelatin environment did not influence anthocyanin functionality. As the maintenance of an effective colorimetric response was confirmed in the lower 0.5% concentration condition, only the mechanical integrity of 0.9% anthocyanin‐embedded microneedles was assessed. These samples also exhibited little degradation in mechanical integrity over time (Figure S10, Supporting Information).
Finally, the impact of temperature on the mechanical integrity and pH responsiveness of dehydrated, anthocyanin‐embedded microneedles was evaluated. The 0.5% anthocyanin‐embedded sensing patches were stored at −20, 4, 25, and 37 ^°^C for 7 days and subsequently tested using the same approaches used to assess the long‐term storage samples. Mechanical stability did not significantly differ across any of the tested conditions, and no significant changes in blue color output were observed (Figure 3i,j). The impacts of higher temperature conditions and varying humidities were also assessed, where no degradation in performance was observed (Figures S11 and S12, Supporting Information). Force testing of 0.9% anthocyanin‐embedded microneedles following variable temperature storage also yielded largely insignificant changes to mechanical integrity (Figure S13, Supporting Information). Finally, leaching of embedded anthocyanins from the microneedle matrix was evaluated through immersion in water for up to 60 min, with very minimal leaching observed relative to an anthocyanin positive control that correlated with a fully dissolved sensing patch (Figure S14, Supporting Information).
Proof‐of‐Concept Testing and Machine Learning Integration
2.4
Next, we sought to investigate the real‐time fish spoilage sensing properties of the developed microneedles using haddock, wherein the two aforementioned consumer‐centric use cases were considered. With regards to nondestructive penetration of sealed food packaging for at‐home, real‐time spoilage monitoring, the 0.5% anthocyanin‐embedded spoilage sensing patches behaved as predicted (Figure 4a). Concurrent pH monitoring of the fish product demonstrated the parallel temporal progression of pH and gelatin‐embedded anthocyanin color change. When packaged fish samples remained edible (Days 1 and 2), optical images collected using a smartphone depicted patches with a defined purple hue. However, once the spoilage threshold of 7.0 was passed on Day 3, a dramatic shift to blue was observed, which became increasingly pronounced on Day 4. A standard RGB scale was employed to quantify the loss of red color intensity, as a function of the overall spoilage‐induced color shift exhibited by the microneedle spoilage sensors. Red color intensity averaged arbitrary unit values of 99.6 ± 3.4, 87.1 ± 4.2, 66.6 ± 4.9, and 57.1 ± 6.0 on Days 1 through 4, respectively. Contrarily, 0.9% anthocyanin‐embedded spoilage sensing patches did not offer effective performance. This is attributed to the fluid content available within the fish matrix being insufficient for the induction of color change within the highly concentrated anthocyanin environment present within these samples.
Proof‐of‐concept testing and machine learning integration. a) Quantification and associated images of real‐time monitoring of sealed fish throughout its product lifespan. b) Quantification and associated images of the spoiled fish rapid test. c) Schematic illustration of real‐world, consumer‐level use, yielding a fresh or spoiled readout. d) Training accuracy and loss curves. e) Validation accuracy and loss curves. f) Confusion matrix of AI model when tested with 25 smartphone‐captured images.
With regard to an at‐home rapid test for opened products, spoiled fish samples were penetrated with the spoilage sensors and imaged with a smartphone every 15 min (Figure 4b). Again, a pronounced shift from purple to blue was observed. The mean red color intensity was quantified according to a standard RGB scale, yielding arbitrary unit values of 96.0 ± 3.1, 89.2 ± 3.1, 84.8 ± 3.2, and 67.8 ± 3.2 at 0, 15, 30, and 45 min, respectively. Significant shifts were observed between each respective time point (p < 0.01, 0.05, 0.0001). Recognizing that passing the spoilage threshold in the day‐scale monitoring study corresponded with a red color intensity of 66.6 ± 4.9, 45 min was noted to be the required time for rapid test sensing. That being said, the significant downward trend exhibited at the 15 and 30‐min marks suggests that rate‐change monitoring may enable spoilage assessment within a shorter time span. Again, 0.9% anthocyanin‐embedded spoilage sensing patches were not effective. Importantly, a colorimetric response was not elicited by flat, dehydrated gelatin patches within this sensing timeframe, showcasing the importance of microneedle‐enabled surface area enhancement for rapid testing (Figure S15, Supporting Information). Sensing response against cod and tilapia was also evaluated to ensure generalizability, where a visible shift in color was observed in the same timeframe (Figure S16, Supporting Information).
To automate our solution and ensure it was user‐intuitive and accessible for users with limited vision, a convolutional neural network (CNN)‐based artificial intelligence model was trained using smartphone‐acquired microneedle images to provide a simple “Fresh” or “Spoiled” classification based on a given microneedle patch image (Figure 4c). A CNN was chosen given its suitability with image‐based input and classification. Images were first randomly split into training and validation datasets and then used to train the model across 30 iterations. Validation was performed on every 10th iteration to ensure adequate training and model improvements.
Overall, the trained model was highly accurate (Figure 4d) and importantly, this high accuracy was maintained across validation (Figure 4e). Similarly, training and validation loss both approached zero, indicative of the model's precision. To further test the broad applicability of the model, blind testing was performed to a separate dataset from the training and validation ones. This testing yielded true positive and true negative rates of 100% across all 25 images that were inputted, with no false negative or false positive classifications (Figure 4f). Such an AI model simplifies sensor readout by using a simple smartphone‐acquired optical image, thus eliminating uncertainty in colorimetric interpretation and making the sensor more accessible and user‐friendly.
Conclusion
3
In this work, we introduce pure gelatin microneedles that offer shifts in their mechanical properties in response to environmental stimuli. The microneedles are produced through a three‐step process that involves gelation, freezing, and dehydration. In their dehydrated state, the microneedles exhibit robust mechanical integrity‐similar to that of frozen needles, but in a shelf‐stable form. Their excellent physical properties allow them to effectively penetrate through food packaging in a nondestructive fashion. Only when they contact fluids do these dehydrated gelatin microneedles return to a hydrogel state more typical of gelatin. When embedded with pH‐responsive, color‐changing anthocyanins, this rehydration event makes anthocyanins accessible to the hydrating fluid, permitting colorimetric sensing. Long‐term storage and food‐relevant temperature exposure both yielded limited changes to both the mechanical integrity and pH responsiveness of the developed sensor. When applied toward real‐time monitoring of packaged fish, the developed spoilage sensor exhibited robust correlation with spoilage events, offering dramatic shifts from purple to blue. In another vein, when applied directly onto spoiled fish as a rapid test to be used prior to consumption, a complete shift to blue is observed within 45 min. Finally, the integration of a machine learning model enabled spoilage assessment using a smartphone, preventing readout ambiguity and increasing accessibility. Looking forward, while not obvious to the naked eye, subtle shifts in color occur prior to a full transition to blue. This suggests that sensor performance may be readily improved through further training of the artificial intelligence model. In the case of real‐time packaged food monitoring, this may enact a “spoiling” classification to convey to the consumer that a product is approaching spoilage. With regard to rapid testing, such efforts stand to reduce detection time. Yet even in its current state, the developed sensor stands to offer consumers the power to effectively and accessibly assess the quality of purchased foods.
Experimental Section
4
Materials
Polydimethylsiloxane (SYLGARD 184) was purchased from Dow Corning (Michigan, United States). Gelatin was purchased from Fortino's (Ontario, Canada). Polyethylene wraps were sourced from Thomas Scientific (New Jersey, United States) and Walmart Canada (Ontario, Canada). pH standard solutions were sourced from Millipore Sigma (Ontario, Canada). Haddock fillet samples were purchased from Food Basics (Ontario, Canada).
Resin Master Mold Fabrication
A CAD model of a microneedle mold was designed in Autodesk Inventor, ensuring precise dimensions and features. The 3D model file was then converted into an STL file, recognized by the stereolithography (SLA) 3D printer. Black resin was used as the printing material, and the printer created the mold layer by layer, resulting in a detailed and accurate microneedle mold. Once the print was complete, it was rinsed with 100% isopropyl alcohol to remove excess resin on the surface and then dried. Postcuring of the molds involved placing the printed parts in a water bath and exposing them to UV light on both sides for 10 min, followed by overnight drying at 30 °C. This post‐curing process maximized the mechanical strength and ensured the stability of the molds.
PDMS Negative Mold Fabrication
PDMS Sylgard 184 was prepared at a 10:1 ratio of base resin to curing agent, stirred for 10 min, and then desiccated for 30 min. This mixture was then cast onto the resin master molds and desiccated again for 30 min. The casted PDMS were then cured at 60 ^°^C overnight and then detached from the master mold to obtain the PDMS negative mold.
Gelled Microneedle Fabrication, Freezing, and Dehydration
Gelatin powder was added to deionized water at 5%, 10%, 15%, and 20% w/v concentrations. The mixtures were then stirred and left to bloom for 10 min, and then heated until transparent using a conventional microwave. The resultant solution was cast onto preheated PDMS negative molds and placed under vacuum at −0.08 MPa for 5 min at 80 °C. Any entrapped air pockets visible after desiccation were physically agitated with a needle and removed. The casted solutions were left to gel for 10 min before proceeding to post‐fabrication treatment steps. At this point, the gelled microneedles were left adhered to the negative mold and placed into a conventional freezer set to −20 °C for 24 h. The microneedles‐mold pairing was then subsequently placed onto a hot plate set to 30 °C for 8, 16, or 24 h dehydration times. Microneedles were separated from the mold only after dehydration. Anthocyanin‐embedded microneedle fabrication followed the same protocol, but used 0.1%, 0.5%, and 0.9% anthocyanin solutions instead of deionized water.
Microneedle Imaging
Color optical images of the microneedle patches were taken using a Samsung Galaxy S21 Ultra smartphone. Brightfield imaging of a single needle was performed using a Nikon Eclipse Ti2 inverted microscope.
Mechanical Testing
In preparation for mechanical testing, each microneedle patch was precisely cut into rows of four needles. To evaluate mechanical integrity, the force was normalized to range from 100 to 700 gf per individual needle. High‐resolution images of the needles were taken before any force application to document the baseline structure. A Biomomentum Mach 1 mechanical tester was used to apply perpendicular incremental forces, ranging from 100 to 700 gf, to the microneedles. After each subsequent increase in force, additional images were captured to analyze any deformations or structural failures. Using these images, the height reduction of the individual microneedles was then measured to assess mechanical strength. Lower height reductions indicated higher mechanical integrity. Data from different force levels were compared to evaluate the mechanical properties of the microneedles under varying stress conditions. This standardized method ensured consistent evaluation of microneedle mechanical properties across multiple samples with varying conditions.
Scanning Electron Microscopy
Single microneedles were isolated from their base to induce a 2D form factor that was better suited for top‐down perspective imaging. Samples were mounted using carbon tape and nickel paste. A sputter coater (Polaron E1500, Polaron Equipment Ltd., Watford, Hertfordshire) was subsequently used to coat the samples with 5 nm of platinum. Samples were imaged using the JEOL JSM‐7000F.
Penetration and Reusability Studies
Polyethylene films of varying thickness were secured across the top of a cylindrical support. Microneedle patches were then placed on top of the films with the needles facing down. A mechanical tester was used to apply a consistent force of 500 gf. The patches were then removed, and the number of penetration sites was quantified to determine the penetration rate. The number of undamaged individual microneedles in a patch was also quantified to determine the patch reusability rate. Both rates were calculated as a function of the initial needle count. Patches were subjected to 10 successive trials each.
Anthocyanin Absorbance vs pH Studies
Haddock fish fillets purchased from a local grocery store were divided into 5 g samples and individually stored in sealed bags. Three samples were subjected to pH assessment each day using a Mettler Toledo Seven Excellence pH meter. Next, 0.5 g portions were isolated from each sample for anthocyanin color change assessment. These portions were added to 1 mL aliquots of anthocyanin solutions with concentrations of 0.1%, 0.5%, and 0.9% and incubated for 30 min. The 100 µL samples of the tested solutions were then added to a well plate for absorbance measurements at various wavelengths. Absorbance readings were taken using a Synergy Neo2 plate reader.
Color Shift Studies on Dehydrated Anthocyanin‐Embedded Patches
Dehydrated anthocyanin‐embedded patches were subjected to 4.0, 6.0, 8.0, and 10.0 pH standard solutions. After 15 min of incubation, the samples were imaged using an Epson Perfection V850 Pro Scanner. Quantification of color shifts involved viewing each color as a 3D coordinate on an RGB color map. From here, the distance between two colors was quantified as:
The distance was then referenced as a percent of the maximum distance between two colors:
Day‐Scale Monitoring of Sealed Fish Products
Haddock fish fillets purchased from a local grocery store were divided into 5 g samples and individually wrapped with polyethylene packaging film. Microneedle spoilage sensors were inserted through the packaging film, into the underlying fish matrix. A secondary film was secured overtop the sensor to prevent unwanted air exposure. The samples were stored in the fridge and imaged using a smartphone every day, until spoilage was well‐established. Quantification of color change involved assessing the intensity of red color at the microneedle dots observable through the underside of the patch. As the fish spoiled, a loss in red color intensity was observed.
Minute‐Scale Monitoring of Opened Fish Products
Haddock fish fillets purchased from a local grocery store were divided into 5 g samples and stored until spoiled. The samples were then penetrated with microneedle spoilage sensors and imaged every 15 min. Again, quantification of color change involved assessing the intensity of red color at the microneedle dots observable through the patch, wherein a loss in intensity was observed as the microneedle patches rehydrated.
Storage and Temperature Stability Studies
Microneedle spoilage sensors were stored under ambient conditions for 7, 14, and 21 days. They were then subjected to mechanical testing, as described above. pH responsiveness was assessed through 20 min incubation in pH 8.0 solution, after which samples were scanned using an Epson Perfection V850 Pro scanner. Quantification involved assessing the blue color intensity at the microneedle dot sites observable through the patch.
CNN Development
The CNN model was trained and developed using MATLAB's MathWorks Deep Learning using transfer learning from a pretrained deep CNN. A training dataset of 30 images was used with a 60/40 training to validation split. All images were acquired using an Apple iPhone 14 smartphone and cropped to remove unnecessary background. The 30 training iterations were used, with validation performed on every 10th iteration.
Conflict of Interest
The authors declare no conflict of interest.
Supporting information
Supporting Information
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1M. Canali , P. Amani , L. Aramyan , M. Gheoldus , G. Moates , K. Östergren , K. Silvennoinen , K. Waldron , M. Vittuari , Sustainability 2017, 9, 37.
- 2A. D. Cuéllar , M. E. Webber , Environ. Sci. Technol. 2010, 44, 6464.20704248 10.1021/es 100310 d PMC 2922696 · doi ↗ · pubmed ↗
- 3K. Venkat , Int. J. Food Syst. Dyn. 2012, 2, 431.
- 4D. Patra , S. Feng , J. W. Howard , Curr. Opin. Food Sci. 2022, 48, 100917.
- 5J. Kameník , Maso Int.—J. Food Sci. Technol. 2013, 1, 3.
- 6A. Raposo , E. Pérez , C. T. de Faria , M. A. Ferrús , C. Carrascosa , in Foodborne Pathogens and Antibiotic Resistance, Wiley, Hoboken NJ 2016, p. 41.
- 7S. Khan , J. K. Monteiro , A. Prasad , C. D. M. Filipe , Y. Li , T. F. Didar , Adv. Mater. 2024, 36, 2300875.10.1002/adma.20230087537085965 · doi ↗ · pubmed ↗
- 8Z. Ma , P. Chen , W. Cheng , K. Yan , L. Pan , Y. Shi , G. Yu , Nano Lett. 2018, 18, 4570.29947228 10.1021/acs.nanolett.8b 01825 · doi ↗ · pubmed ↗
