Introduction

Food loss and waste (FLW) within agri-food supply chains is a persistent problem in the developing world (Kusumowardani et al. 2022). The loss in fruits and vegetables was estimated to 9.5 tons per week approximately (Dos Santos et al. 2020), resulting in financial losses of $ 510 million per year (Beretta et al. 2017). The microbial, enzymatic activities and continuous respiration that occur after harvesting fresh vegetables and fruits are mainly responsible for its deterioration. The core aspect of food safety is to detect contamination/spoilage rather than monitor it after it happens already. Therefore, there is a dire need to inform the consumers about food quality before eating or shopping in real-time monitoring (Yousefi et al. 2018; Sobhan et al. 2022). The design and development of biosensors and intelligent packaging has been recently perceived as an integral element to maintain high quality and safe produce.

Intelligent packaging (IP) is an innovative approach that has been implemented to monitor various condition changes in the packaged products, including food quality (freshness, spoilage, or ripeness), microbial activity (generation of organic acids, CO2, volatile nitrogenous substances, sulfur derivatives) or other properties (transport and storage history) that affect food quality (Lu et al. 2020). Despite the available IP systems, the number commercially used at stores is considerably small (Priyadarshi et al. 2021). The worldwide market for IP was estimated to be about $17.5 billion in 2019 and it is predicted to reach $251.6 billion by 2025 (Sobhan et al. 2021). The IP systems have many advantages because they can monitor the storage conditions, pH, temperature, shelf life and quality aspects of foods by using various sensitive sensors and indicators such as food quality indicators, food analysis sensors, storage sensors, cross contamination labels, and barcodes (Zhang et al. 2019). However, there are some limitations for the current methods, as they are expensive, time-consuming, offer low precision and not environmentally friendly (Merz et al. 2020). Additionally, these materials can lead to unnecessary waste as they are non-recyclable (Taherkhani et al. 2020). On the other hand, pH-sensitive visual indicators are perceived as practical intelligent packaging systems. They provide real-time information about the food freshness and quality by monitoring the microbial growth or initiation of certain chemical reactions. The mode of action of these indicators is based mainly on the detection of qualitative/quantitative changes in the concentration of one or more substances inside the packaging by changing their color in accordance with the changing pH of food products (Wu et al. 2022; Wang et al. 2023). A visual pH indicator is composed of two parts: a dye which recognizes the pH variations and a solid support matrix which immobilizes the dye (Khezerlou et al. 2023). Previously, synthetic dyes such as bromothymol blue, methyl red, bromocresol green and phenol red, as pH indicators for monitoring freshness of chicken breasts depending on pH changes (Rukchon et al. 2014). However, synthetic dyes hold potential toxicity and renders chemosynthetic indicators problematic to be used in food products (Zeng et al. 2019). Therefore, replacing these synthetic dyes by naturally pH indicators has been conducted in recent years. Anthocyanin is a natural pigment that is extracted from plants. It is widely distributed in nature, easy to obtain, nontoxic, safe for food contact, ecofriendly, cheap, sustainable, and biodegradable that make them a good choice to replace synthetic dyes (Halász et al. 2023). Anthocyanin pigment from red cabbage extract (Brassica oleraceae) is one of the common natural dyes that is used as pH- sensitive indicator and shows different color spectrum in a wide pH range. The anthocyanin extracted from red cabbage is low-cost because it is naturally abundant in comparison to other natural sources, it is water soluble and can be easily extracted. On the other hand, the solid support matrix, which is the second part of intelligent packaging systems, plays an integral role in pH indicators. The characteristics of polymeric matrix (synthetic/natural/biodegradable), their nature (hydrophilic/hydrophobic), the type of interactions with anthocyanins (chemical/physical) and their structural properties (porous/compact films) can significantly affect the diffusion and response of the anthocyanins at different pH values (Kossyvaki et al. 2022). Various polymeric and biopolymeric materials have been utilized as supporting matrices to immobilize the dyes such as chitosan-corn starch (Silva-Pereira et al. 2015), gelatin (Musso et al. 2017), cellulose nanofibers (Pourjavaher et al. 2017), starch-cellulose nanocomplexes (Ezati et al. 2019), starch-polyvinyl alcohol (Zhai et al. 2017), polysaccharides, lipids, and proteins (Mohamed et al. 2020). Bacterial cellulose (BC) is a biopolymer that is characterized with unique properties and several food and non-food applications. BC is synthesized during fermentation process of kombucha tea as a floating solid polymeric film at the air–liquid interface of the culture medium (Villarreal-Soto et al. 2019). It has attracted great attention due to its high purity (free of hemicellulose, lignin, and pectin), the ultrafine structure with distinct tunnel and pore network architecture and the presence of active hydroxyl groups (Choi et al. 2022). Its hydrophilicity, high sorption ability for liquids (97%), high crystallinity (60–80%) and non-toxicity stimulate its use in various applications. Some studies mentioned that BC like hydrogels and can be used as bio-packaging material because of its edibility and biodegradability feature (Jang et al. 2023).

pH sensitive indicators are considered real-time detectors of food spoilage of meat, chicken, fish, Shrimp, milk and cheese (Zhang et al. 2019, 2020; Lee et al. 2019; Weston et al. 2020; Pirsa et al. 2020; Gast et al. 2021). Other studies were found in the literature for using pH smart indicator in examination of vegetables and fruits freshness such as date fruit (Maftoonazad and Ramaswamy 2019), Mangoes (Dirpan et al. 2018) and Fresh-cut green bell pepper (Chen et al. 2018). However, none was reported for cucumbers. Fresh cucumber (Cucumis sativus L.) is considered one of the most essential economic crops universally especially in Egypt (El-Dkeshy et al. 2023). According to FAO, about 613 thousand tons of gherkins and cucumber are being produced in Egypt from twenty-seven thousand hectares in which eleven thousand tons were exported in 2020 (FAOSTAT 2020). However, cucumbers are known to be easily contaminated, therefore, gamma radiation can be used to preserve cucumbers and hence increase their shelf life and maintain its quality (Khalili et al. 2017) and at the same time maintain the color of the anthocyanin pigment post irradiation (Ito et al. 2019). It is important to ensure the accuracy of the absorbed doses for reaching the desired sterilization process of the irradiated food products for safe consumption. Radiochromic dosimeters are an easy and reliable way that can be used to monitor the irradiation process depending on the discoloration phenomena in which the radiochromic dosimeter is equivalent to the absorbed dose by the irradiated material. The use of a natural, eco-friendly, and safe pigment as a substitute for synthetic dyes is considered advantageous and feasible. Therefore, from this standpoint, the present work aims to prove that aqueous red cabbage extract (RCE) and RCE incorporated within BC films can be used as smart pH-sensing indicators to detect early cucumber contamination and identify if the produce was exposed to gamma irradiation or not.

Materials and methods

Sample collection

Commercially ripe fresh cucumbers samples were bought from a local vegetable market in Cairo. Plastic stretch film (saran wrap) used for packaging of cucumbers; samples were immediately stored in the refrigerator at 4 °C ± 1 throughout the period of study. Periodically, three samples were taken for microbiological, physiochemical analysis.

Microbiological analysis

Total plate counts (TPCs) counts were determined during cucumbers storage period (0, 5, 10, 15 days) by the standard methods reported in APHA (1992).

Isolation and identification of microbial strains

The identification of bacterial isolates from cucumber were performed using matrix assisted laser desorption ionization-time of flight-MS (MALDI–TOF–MS). About 10 g of cucumber stores were added to 90 mL sterile saline in 250 mL Erlenmeyer flask and incubated at 30 °C under shaking conditions (150 rpm) for 60 min. Serial dilution was performed and 0.1 mL was plated on nutrient agar plates. After 24 h growth, a series of purification was performed to obtain single separate colonies from each isolate. A single colony from each 24 h grown bacterial isolate culture plates was spotted on stainless-steel plate. α-Cyano-4-hydroxycinnamic acid (HCCA) matrix (1 µL) dissolved in 50% HPLC water, 47.5% ACN, 2.5% TFA and water was aliquoted on the colony and was left to dry at room temperature. The obtained Mass spectra were acquired using linear mode MALDI–TOF–MS (Scientific Analysis Instruments-LT3, United Kingdom) operating in linear mode and extracting positive ions with an accelerating voltage of 25 kV. The identification was performed and matched to BactoScreen database, scores above 0.8 are considered a match for both Genus and species.

Extraction of anthocyanin from red cabbages

Fresh red cabbage (Brassica oleracea L.) was purchased from a local market in Cairo, Egypt. About 200 gm of freshly sliced red cabbage was mashed with 300 ml hot dist. water (80 °C) by an electric blender. The extract was filtered using Whatman paper no. 1, cooling at room temperature and centrifugation at 4000 rpm (4 °C for 10 min) then stored in clean dark bottles in the refrigerator (4 °C ± 1) for further study. The total anthocyanin (TAC) in red cabbage extract was calculated according to the following equation:

$$\Delta {\text{A}} = {\mkern 1mu} \left( {{\text{A}}_{{530}} - {\text{A}}_{{700}} } \right){\mkern 1mu} {\text{pH}}2 - \left( {{\text{A}}_{{530}} - {\text{A}}_{{700}} } \right){\mkern 1mu} {\text{pH}}6$$
$${\text{TAC }} = \frac{\Delta A \times MW \times DF \times 1000}{{\varepsilon \times L}}$$

where MW is the molecular weight of the pigment cyanidin-3-glucoside (449.2 g/mol), DF is the dilution factor, \(\varepsilon\) is the extinction coefficient (26,900 L/cm mol) and L is the length of path (cm).

Preparation of BC films

The BC film was prepared using a symbiotic culture of bacteria and yeast (SCOBY) according to a previous study (Hamed et al. 2023). BC nanofibrils produced in the form of gel-like pellicles (film) on the surface of sugared medium water (SW 6%) were collected and purified using (0.5 N) NaOH for removing the microbial cells and the residues of medium. Then, BC film was cut into small pieces (1.0 × 1.0 cm) and the patches were dried at 40–50 °C.

Immobilization of red cabbage extract on BC films

Loading of AC (different adjusted pH) on BC patches was prepared by immersion of the dry BC patches in extract solution in a glass petri dish at room temperature overnight for maximum absorption of extract on the BC film. A part of the BC patches was allowed to air dry at 30 ± 2 °C and the second part was allowed to oven drying at 40–50 °C, while the last part was left in the wet condition without drying as a control. The obtained pH sensor was kept in a sealed container and dry place until use.

Physiochemical analysis

At the beginning of analysis, the pH of all the samples was checked. Changes in pH value were determined using a Bench top pH meter (Wincom pH-8414 Portable pH meter) equipped with glassy pH electrode. Readings were taken at room temperature according to AOAC (2000). The pH meter was calibrated using a solution of known pH (4, 7 and 9).

Gamma irradiation

Gamma irradiation was carried out using cobalt 60 irradiator source (Gamma Chamber 4000 India), located at National Center for Radiation Research and Technology (NCRRT), Nasr City, Cairo, Egypt, where the dose rate at the time of irradiation was 0.829 kGy/h. For each irradiated sample, one group was left without irradiation which was considered as control. The inoculated cucumber samples were exposed to gamma irradiation as sterilization dose (2 kGy), while RCE and RCE-BC were exposed to 2.5, 5. 10, 15, 20 and 25 kGy.

Color change of red cabbage extract

The changes in red cabbage extract were monitored using UV–Visible spectrophotometer (SPECORD 210 plus, analytic Jena). Data plotted represents either change in extract spectrum within the visible region (400–800 nm) or reduction in color represented as decolorization. Decolorization was calculated according to the following equation:

$${\text{Decolorization}}\,\,\left( \% \right) = \frac{{{\text{Ai}} - {\text{Af}}}}{{{\text{AI}}}}$$

where Ai is the initial dye absorbance and Af is the final dye absorbance.

Statistical analysis

The significance of the data with different factors of non-irradiated and irradiated cucumbers samples was evaluated using Two-way analysis of variance ANOVA. All analysis was performed with SAS software package version 9 (SAS 2002).

Results

Isolation and identification of bacterial strain cucumbers and identification using MALDI–TOF

The microscopic examination of bacterial isolate from cucumber were conducted using standard Methods (Bartholomew and Mittwer 1952). The Identification of three bacterial isolates was confirmed by using MALDI-TOF MS data acquisition and processing. MALDI–TOF MS spectra were collected using a Microflex (SCI, UK) operating in linear positive ion detection mode located at National Center for Radiation Research and Technology (NCRRT), Nasr City, Cairo, Egypt. The count of each bacterial isolate for the upcoming experiments was 1.25 × 109 for Pseudomonas fluorescens, 1.45 × 109 for Erwinia sp and 1.40 × 109 for Pantoea agglomerans (Table 1).

Table 1 MALDI–TOF identification of bacteria isolated from cucumber

Effect of different pH values on red cabbage extract (RCE) color response in aqueous media and BC

The extracted total anthocyanin (TAC) pigment from red cabbage was calculated as 51.96 mg/L. This batch was used throughout the experiments. The spectra of the pH adjusted RCE across a range from 2 to 12 shows changes in absorbance maxima relevant to each color. pH values 2 and 4 were close and showed distinct peaks at 540 nm for red and pinkish red, respectively. RCE with pH value 6 showed a purple color with a distinct peak at 560 nm, pH 8 showed blue color with absorbance peak at 603 nm, pH 10 showed a green color with distinctive peak at 620 nm, while that for pH 12 showed a yellow color with distinctive peak at 463 nm (Fig. 1). Figure 2 represents immobilization of pH adjusted RCE on BC films. The visual results show that BC films acquired the same color as the aqueous solution. Since the isolated bacteria show pH values that ranged from 6 to 7 and preliminary tests showed an increase in acidity upon incubation, pH values 6 and above were excluded. pH 4 was chosen as the initial pH to detect visual changes in color for the upcoming experiments. It is noteworthy to mention that pH 2 was excluded as well, since it exhibits a close visual color as pH 4 but required more acid to obtain that value.

Fig. 1
figure 1

UV–Visible spectra of red cabbage extract at different pH values

Fig. 2
figure 2

a UV–Visible spectra of serial dilutions of cucumber isolated bacterial mixture. b Correlation between maximum absorbance of red cabbage extract and serial dilutions of cucumber bacterial mixture calculated at 540 nm (blue filled circle) and pH values of each dilution (orange filled square)

Changes in RCE color in response to different bacterial count

The changes detected when the mixed bacterial culture was serially diluted were plotted and the results show that the absorption maxima increased with the increase in bacterial count. The recorded increase in absorbance peaks were 27.64, 38.5, 46.52 and 63.82% for log cfu/mL 2, 4, 6 and 8, respectively. It is notable that there was a slight shift in absorbance maxima towards the right which is another indication of the change in color (Fig. 2a). The correlation between the bacterial dilution values and pH values confirms that with serial dilutions of cucumber bacterial mixture, there was a concomitant decrease in pH was linear with R2 = 0.98 and that for bacterial count followed the same trend with R2 = 0.91 (Fig. 2b).

RCE color changes of cucumbers at different storage time

Aqueous RCE was tested to monitor changes in color when cucumbers were stored for 0, 5, 10 and 15 days. The results showed a slight increase in absorbance with the increase in storage time that reached 4, 10 and 15% after 5, 10 and 15 days. A slight shift to the right was notable, indicating change of color. The relationship between storage time and absorbance maxima showed R2 = 0.978 (Fig. 3a and b).

Fig. 3
figure 3

a UV visible spectra representing RCE absorbance changes of cucumbers at different. b Correlation between RCE absorbance and cucumber storage time in comparison with initial RCE

RCE-BC color changes in response to different pHs

BC prepared patches were immersed in different pH-adjusted RCE solutions. The color was detected visually as seen in Fig. 4.

Fig. 4
figure 4

Immobilization of different pH adjusted red cabbage extract on bacterial cellulose films

Effect of gamma radiation on RCE and RCE-BC

Figure 5a shows that exposure to increasing gamma radiation doses decreased the color of both RCE and RCE-BC, however, the response of RCE to gamma irradiation was threefold higher than that for RCE-BC. Images shown in Fig. 5b represent the color changes.

Fig. 5
figure 5

a Effect of gamma radiation on RCE and RCE-BC color changes. b Color response of RCE and RCE-BC after exposure to different gamma radiation doses

Effect of storage time with and without gamma irradiation of cucumbers on RCE-BC

RCE-BC placed on cucumbers were stored for 0, 5, 10 and 15 days. The results showed an increase in absorbance with the increase in storage time that reached 37.5, 42 and 56% after 5, 10 and 15 days. The relationship between storage time and absorbance maxima showed R2 = 0.96. (Fig. 6a and b). On the other hand, when 2 kGy gamma irradiated cucumbers were mixed with aqueous RCE, the results showed a slight decrease in absorbance with the increase in storage time that reached 30 after storage for 5 days and 40% for both 10 and 15 days. The relationship between storage time and absorbance maxima showed R2 = 0.834 (Fig. 7a and b). The results in Table 2 show that the total aerobic mesophilic bacteria count was reduced by almost 4 log cycles upon 2 kGy gamma irradiation for each storage period. However, the overall log count increased for both non-irradiated and 2 kGy gamma irradiated RCE-BC with the increase in storage time. Table 2 represents the increase in bacterial count in both cases. The results show that there is a fourfold increase in bacterial count when comparing bacterial count at each storage time with and without gamma irradiation. On the other hand, there was a gradual increase in bacterial count with storage time for both groups.

Fig. 6
figure 6

a UV–Visible spectra representing changes of bacterial cellulose immobilized red. b Correlation between bacterial cellulose immobilized red extract absorbance and storage days of cucumbers calculated at 540 nm

Fig. 7
figure 7

a UV–Visible spectra representing changes of bacterial cellulose immobilized red. b Correlation between bacterial cellulose immobilized red extract absorbance and storage days of 2 kGy irradiated cucumbers calculated at 540 nm

Table 2 Effect of γ-irradiation (2 kGy) and subsequent storage (4 °C ± 1) on the microbial counts (log cfu/mL) mixture contaminating cucumber

Discussion

The use of natural dyes as visual indicators remains as one of the innovative approaches in food packaging methods. Commercial packaging with pH sensors depends on the sensitive nature of dyes and their change according to pH (Oladzadabbasabadi et al. 2022). These pH sensors are very important to detect spoilage early in post-harvest produce such as cucumbers that are not usually visible during early storage, therefore, the first aim of the present study is to use pH sensitive indicator to detect microbial contamination of refrigerator stored cucumbers and assess cucumber freshness visually. Microbial load depends on the irrigation water used and whether its clean water or wastewater treated (Gurtler and Gibson 2022). This means that the irrigation water will determine the microorganisms present and that they will vary each time. In the present study, the microbial load of the cucumbers in the present study was identified three main microorganisms; Pseudomonas fluorescens, Erwinia sp. and Pantoea agglomerans as predominant strains based on MALDI–TOF–MS data acquisition and processing spectra. MALDI–TOF–MS is a powerful tool for rapid bacterial identification (Ashfaq et al. 2022). This method is not only rapid and cost efficient but is more appropriate to detect foodborne pathogens in the food chain complex as well (Horváth et al. 2020). Microbes generally interact with each other and with their surrounding media utilizing nutrients and producing metabolites modifying their surrounding media. The most common media transformation is pH change of the media that is influenced by the present metabolites produced during microbial growth (Ratzke and Gore 2018). Since the aim of our work is to detect microbial contamination based on the pH changes, it was crucial to choose RCE adjusted at pH that would give a different color than that of the final pH of the cucumber microbial load. Therefore, pH 4 was chosen for RCE since the final pH value of the three identified microbes ranged from 6 to 7. RCE contains anthocyanin pigment which shows unique color changes over a wide pH range. The extract is red at low pH, changing to blue at intermediate pH, and turns green at higher pH values (Khoo et al. 2017). This color change is attributed to the structure of anthocyanins and their hyperchromic and bathochromic properties (Ghareaghajlou et al. 2021). Anthocyanin is one of the bioactive compounds that can be used to monitor food freshness since it is pH sensitive and at the same time safe to use (Wulandari et al. 2020). The results obtained show different color spectra after adjusting the pH values of RCE. Anthocyanins naturally occur as anthocyanidins, its basic structure is 2-phenyl-benzopyrylium chromophore–flavylium ion. Variation of pH changes the molecular structure of anthocyanin resulting in different colors. This pH responsive nature prompted great attention to its use in smart food packaging as an indicator to food spoilage. The main mechanism depends on the increase of volatile amines produced by bacteria which result in increase in pH and therefore induce a color change (Oladzadabbasabadi et al. 2022). Anthocyanins naturally form stable red color (flavylium cation) at pH < 4. Their color changes to purple/blue quinoidal anhydro base at pH 6 to 8. A yellow and light-yellow or colorless chalcone can be visually seen at pHs above 8 (Rawdkuen et al. 2020). However, the pallet color of anthocyanin at different pH values changes with the change of the anthocyanin source of extraction (Oladzadabbasabadi et al. 2022), therefore, it was essential to do this experiment for both RCE and RCE incorporated within BC to identify the changes that will take place for cucumbers.

RCE pigment incorporation within bacterial cellulose (BC) did not affect the anthocyanin response to pH adjustments. This reveals that anthocyanin activity inside the BC structure was protected and not affected by the interaction with BC matrix. A study conducted by Divsalar et al. (2017) and Lotfi et al. (2018) revealed no change in FTIR spectra for anthocyanin pigment incorporated within BC film. There were no reported changes to BC structure as well (Kuswandi et al. 2020). The 3D porous structure of BC nanofibers (120–160 nm) allows the diffusion of anthocyanin pigment within the inner network space. These features may increase the absorption of liquids that are caused by pH change and accelerate the transformation of the color of the dye immobilized in the BC film resulting in the development of highly sensitive and rapid response pH sensor. Both RCE and RCE-BC films exhibited visual changes in color with the increase in microbial contamination changed from deep pink to purple, further increase to alkaline pH changes the color to green. Color change in RCE and RCE-BC was evident as early as 5-day incubation. This makes it very useful to detect contamination at early stages since cucumbers exhibit visual morphological changes after 10 and 15 days of incubation. Therefore, RCE and RCE-BC films can be used to detect microbial contamination of stored cucumbers.

Food irradiation is considered one of the effective and accredited methods that ensures food quality and food safety as well as increases shelf-life (Khalili et al. 2017). The second aim of the present work was to investigate if RCE and RCE-BC can be utilized to detect if gamma irradiation was used for cucumber preservation. The results obtained show that exposure of cucumbers to 2 kGy gamma irradiation treatment reduced the total mesophilic bacteria mixture by almost 4 log cycle as compared to non-irradiated cucumbers, this resulted in prolonging the shelf life of cucumber to 15 days. A preservation dose of 2 kGy was reported to be the optimal irradiation dose that decontaminates cucumbers with less impact on tissue firmness and flavor (Khalili et al. 2017). Ionizing radiation can change physical, chemical, and biological characteristics of materials controlled by the absorbed doses, therefore, it could be a good indicator and can be used for different radiation dosimetry applications (Aljoumaa and Khalil 2019). The present study shows a correlation between RCE maximum absorbance and different gamma irradiation doses where the increase in gamma radiation doses resulted in the decrease of RCE color. This decrease can be attributed to the nature of anthocyanin and its polyphenolic structures which are sensitive to oxidation during irradiation (Hooshyar et al. 2020). On the other hand, RCE-BC showed less color changes when compared to RCE in its aqueous form at low radiation concentrations, but somehow visible changes tool place at higher radiation doses. This suggests that there is a need for more research to develop RCE-BC films that exhibit higher color changes when exposed to low preservation doses.

Anthocyanin-polymer film is affected by different factors such as the source of anthocyanin, extraction procedure (Prietto et al. 2017), the interaction with the polymer functional groups, co-film-forming agents (e.g., plasticizers, nanoparticles, crosslinkers, etc.), and the present water molecules (Chen et al. 2021). The bonds forming between the aromatic rings of anthocyanin and the glucose units in BC film result from the polar interactions between anions of negatively charged hydroxyl groups (OH) present in BC structures and cations of positively charged oxygen in central pyran ring in anthocyanin (Pismensykaia et al. 2020). The hydroxyl groups in anthocyanin and the functional groups in polymeric matrix were found to be associated physically by inter- and intra-molecular connections, such as electrostatic interactions and hydrogen bonds which are weaker than the covalent bonds and often cause different changes in the physical, mechanical, thermal properties and structure of the polymer (Abedi-Firoozjah et al. 2022). It was reported that the incorporation of anthocyanin (AC) into bacterial cellulose (BC) film may reduce the BC macromolecules interactions due to the presence of phenolic compounds which act as plasticizers (Kuswandi et al. 2020; Abedi-Firoozjah et al. 2022). Color stability is an essential factor in establishing colorimetric pH sensors that can be used in intelligent food packaging systems and show color stability during storage (Ezati et al. 2019). The chemical structure and properties of cellulose protects RCE from degradation. Zhao et al. (2019) stated that cellulosic coating solutions make a powerful barrier after drying. This barrier protects the pigment and decreases its leaching during thermal or any other processing of food stuff.

The idea of incorporating natural anthocyanin pigment within a biopolymer has been previously reported yet BC use as matrix for RCE is still considered advantageous. BC production is a natural process and simple to obtain compared to other matrixes that involve the multi-steps for preparation (Wu et al. 2022) or extensive extraction and preparation process (Khezerlou et al. 2023). BC is produced naturally using a mixture of symbiotic colony of bacteria and yeast (SCOBY) using sugared water as simple production media. It forms sheets on the surface of the media (Hamed et al. 2023) which make it easy to collect and use as matrix for incorporating RCE. Therefore, the present study proves that RCE anthocyanin liquid or RCE incorporated within BC are efficient, cost-effective, edible and ecofriendly compared to other pH sensors reported in other studies. This is the first report for anthocyanin incorporated in BC that can be used for 1) detection of cucumber spoilage in refrigerated produce and 2) identifying if the cucumbers were exposed to gamma radiation.

Conclusion

According to the United Nations Sustainable Development Goal 12: responsible consumption and production, target 12.3 aims at halving global food waste by 2030 at retail and consumer level. The main objective is to reduce food loss throughout the supply chain. The current work represents a novel pH-sensitive indicator that senses both contamination and gamma radiation. The biomaterial used was SCOBY produced BC which makes the sensor eco-friendly. The color change of RCE is visible and. offers a time-resolving indicator for both cucumber freshness and gamma irradiation. The relationship between pH changes and bacterial count was directly proportional. The same applies to color change after 2-week stored non-irradiated and gamma irradiated RCE-BC films on cucumbers. The prepared RCE-BC can be used as a label or further developed to coat produce and can be used as intelligent packaging to indicate freshness and avoid food loss. RCE was successful in detecting gamma radiation exposure at both low and high doses. However, there is a need for further development of RCE-BC to produce films that can detect low dose gamma irradiation by the naked eye. Further development for the prepared RCE-BC involves its antioxidant activity and response to different storage conditions such as temperature variation, humidity, light, and stability under different storage conditions. This will be the focus of our upcoming work.