Keywords

1 Food Quality and Safety

Food quality and safety have turned out to be the challenging aspects in the food sector, due to the ever-increasing global flows of goods, and needs to be assessed by a ‘farm to fork’ approach. Food quality and safety can be addressed from many perspectives at different stages of the food value chain, from agricultural practice and post-harvesting followed by supply chain, processing, and transport. Agricultural practices involve the irrational use of pesticides and fertilizers, which may be taken up by the agricultural produce. During post-harvest, improper maintenance of storage conditions deteriorates the quality of food products and decreases their shelf life. Supply chain is mostly recognized by a “one up, one down” (OUOD) approach, where the food supply chain participants know only the immediate supplier (one link up the chain) and the immediate customer (one link down the chain) for a product, thereby affecting food traceability (Pearson et al. 2019). During food processing, various unit operations such as drying, baking, mixing, modified atmosphere packaging, pasteurization, irradiation, and high-pressure processing are adopted to manufacture a wide range of food products like dairy products, frozen foods, meat, seafood, beverages, and processed foods. The selection of food processing methods depends on several internal and external quality and safety assessment factors. Internal factors affecting food quality such as appearance, nutrients, flavour, origin; and food safety involves assessment of pathogen, artificial colorants, pesticide residuals, toxins and heavy metal contaminants (Gao et al. 2020; Talaviya et al. 2020; Lin et al. 2018; Zhang et al. 2014; Xu et al. 2020). The selection of appropriate food processing methods is crucial for retaining the nutritional value and quality of the food product, which also depends on external factors such as temperature, relative humidity, light, gas concentration, sanitation procedure and shelf-life of food products.

1.1 Current Practices to Ensure Food Quality and Safety

In order to address these above-mentioned food quality and safety problems, several measures have already been taken by governments, regulatory bodies and food manufacturers. Quality assurance after the production step has been made mandatory at all food processing and storage units. Additionally, in order to regulate risks associated with food processing, ISO 22000 – food safety management operational guidelines are being followed. ISO also ensures best practices for managing risks in all areas of food production (Cho and Kang 2011). Similarly, Hazard Analysis and Critical Control Point (HACCP) management system, based on United States – Food and Drug Administration (US-FDA) guidelines, involves the evaluation and control of physical, chemical and biological hazards from procurement and handling of raw material to production, manufacturing, supply and consumption of the final product (https://www.iso.org/iso-22000-food-safety-management.html). The Codex Alimentarius is a collection of guidelines and standards established cooperatively by the Food and Agriculture Organization (FAO) and the World Health Organization (WHO), that defines the basic conditions and practices required to safeguard consumer health and ensure fair practices in food industries (https://www.fda.gov/food/hazard-analysis-critical-control-point-haccp/haccp-principles-application-guidelines; http://www.fao.org/fao-who-codexalimentarius/en/).

Meanwhile, the increasing demand for organic food and certification to verify its quality and origin, needs efficient traceability. Traceability of organic food is essential in the food supply chain as it can indicate any usage of pesticides, genetically modified organisms (GMOs), and track the environmental /carbon footprint. The reasons for the authenticity of organic foods include partnering with certified organic farmers, meeting global testing standards as per United States Department of Agriculture (USDA), substituting chemical fumigation with food grade CO2 fumigation and meeting global quality and hygiene standards in state-of-the-art facilities.

Conventional methods of food quality assessment by physical, chemical, microbiological, nutritional, and sensory parameters depend on specific attributes such as sensory properties, based on colour, flavour, aroma, taste, texture and quantitative properties of the food product. The traditional microbiological detection and identification methods for food borne pathogens are time consuming and is unable to meet demands for food more rapid food testing. Further, the evaluation of internal factors as mentioned above is vital especially to fresh foods such as dairy, meat, fruits and vegetables, and processed foods. As it is difficult to quantitatively assess the factors related to the quality and safety of food products, technologies developed will require high sensitivity, high specificity, low detection limits and portable usage (Cho and Kang 2011). These demanding characteristics can be tackled by the use of robust, diverse and cost-effective computational tools, which will facilitate a significant improvement in the quality and safety of food products.

1.2 Key Issues Controlling Performance

According to the Codex Alimentarius Commission (CAC), “food safety is the guarantee that the corresponding food will not harm the consumer when prepared or eaten as per its intended use” (Trafialek 2019). However, there are several factors/ parameters responsible for food contamination which needs to be resolved by viable methods. The factors causing spoilage of food threaten its safe consumption and make it harmful to human health. Contamination of food can often occur via pathogens such as bacteria, viruses and parasites, chemical agents and toxins at almost any stage of the food supply chain, which eventually trigger foodborne diseases. These diseases sometimes lead to mortality in developing countries, due to poor personal and food hygiene. These outbreaks can be averted by maintenance of appropriate storage conditions thereby preventing microbial contamination (Uçar et al. 2016). In other cases, fallacious agricultural practices such as irrational pesticide use can be kept under control by supply-chain traceability. For example, traceability will allow a consumer to acquire data on ripening methods (natural/ chemical) and storage conditions of the mangoes purchased at a local supermarket.

As discussed earlier, post-harvest storage is a critical step for safe handling of all foods. Post-harvest losses are sometimes as high as 38% and in developing countries, the percentage may rise up to 60% due to lack of dedicated storage areas with proper temperature maintenance (Gustavsson et al. 2011). Cold-chains are employed to meet the requirements of post-harvest storage, slow down the ripening process, minimize respiratory heating, avoid moisture loss and microbial contamination. Temperature is the most critical parameter to be monitored during storage. However, analysis and improvement of these operating conditions in cold chains requires model-based evaluation by testing different designs and concepts, thereby leading to optimization of the complete process (Ambaw et al. 2013). The following subsections discuss the advent of modern numerical modeling and computational tools in the area of food quality and safety.

1.3 Computational Paradigms

Modeling and simulation tools have proven to be very effective in designing and optimizing a large variety of processes and systems across various industrial sectors. Additionally, food manufacturers have discovered and applied some of these techniques in the past decade (Padhi 2020; Misra et al. 2020; Tian 2016; Delele et al. 2010). A wide variety of factors are involved in the food supply-cum-processing chain and therefore traceability and optimization are key paradigms to effectively manage food quality and safety. With the rapidly growing concern of food safety, reliable scientific data-driven computational tools and databases are the need of the hour. Automated detection of food parameters by modern techniques generates large amount of data and hence requires efficient computational tools. Some of the tools are artificial intelligence (AI) based on artificial neural network (ANN), support vector machine (SVM), random forest, k-nearest neighbour (KNN), decision tree, fuzzy c-means (FCM), genetic algorithm (GA), and so on (Zhu et al. 2021; Zhou et al. 2019). Techniques like blockchain technology are essential for food traceability. On the other hand, computational fluid dynamics (CFD), an advanced modeling and simulation tool, can be extensively used for optimizing fluid-based problems throughout the food processing chain, especially in food storage. It is to be noted that food safety is a function of food processing and supply chain. There are very minimal reports on the application of novel and emerging computational tools for food quality and safety. In view of the above, the chapter discusses the use of AI and blockchain from a traceability and supply chain perspective along with the application of CFD from a food processing/ storage angle.

The massive generation of data by Internet of Things (IoT) devices, sensing systems, web applications and social media have contributed to the rise of Artificial Intelligence (AI) (Koch 2018). AI is a technology in which computers and machines are rendered to mimic the problem-solving and decision-making abilities of the human mind. Most of the machine learning and deep learning methods of AI are applied in various food industries with automated food processing units via sensors, Radio Frequency Identification (RFID) tags, Quick Response (QR) codes. These are primarily employed for data collection followed by data optimization using the respective AI models, which is the key driver to avoid food hazards. Further, food traceability issues can be addressed by the use of blockchain technology, which may be described as a decentralized, distributed digital ledger that records transactions across the entire network. Blockchain can be used for efficiently tracking and authenticating the agri-food products in the supply chain thereby ensuring transparency. CFD is a robust design and analysis technique that involves the simulation of fluid engineering systems. As many processes in the food industry involve fluid flow and thermal systems, CFD simulation has traditionally been employed in food processing industries for the past two decades to provide a powerful early-stage qualitative and quantitative evaluation of the performance of food processing operations, thereby allowing modification and optimization of design parameters or operating conditions for a better workflow. Therefore, CFD can also be utilized for designing and optimizing post-harvest storage systems, airflow chambers and transportation systems in order to extend shelf life and maintain quality and safety of the foods.

This chapter discusses the comprehensive applications of advanced computational tools such as AI, blockchain and CFD to enhance food quality and safety. Brief introductions on AI, blockchain, food supply management and CFD with schematic illustrations are furnished to understand the applicability of these emerging tools. Additionally, case studies pertaining to the application of AI for the prediction of food contaminants, blockchain for traceability of agri-food products, food supply chain management and CFD for cold chains, along with their challenges have been summarized. We believe this chapter will be a significant addition to the existing knowledgebase on food quality, safety and sustainability, through a better understanding of AI-enabled blockchain technology, food supply chain management, and CFD.

2 Modeling Approaches for Food Quality and Safety

2.1 Artificial Intelligence

Recent advancements in AI, machine learning (ML), big data and the era of 4th Industrial Revolution (4.0 IR) are highly influencing the methods of crop farming, cultivation, production and food processing by adhering to the regimens of food quality and safety (Younus 2017). Artificial intelligence works in integration with digital data, sensors and robotics, by analyzing large amounts of data with quick iterative processing and intelligent algorithms thus allowing the AI model to learn automatically from features or patterns in the data. The role of AI is to analyse the data from both inputs and outputs, to derive an output with an enhanced degree of precision and efficiency without the human interference.

2.1.1 Architecture and Working of AI

The basic structure of AI is the artificial neural network (ANN), a theoretical mathematical model which comprises of a number of linear or nonlinear processing elements called nodes, which are interconnected through weighted connections. ANN usually includes 3 parts – input layer, the hidden layer and the output layer, which are usually specified by architecture, learning algorithm and neuron model. The architecture characterizes the interconnection pattern between the different layers of neurons, the learning algorithm updates the weightage to model a particular task appropriately, and the neuron model which is defined by its activation function transforms a neuron’s weighted input to its activated output (Njikam and Zhao 2016; Thike et al. 2020). Once the data is collected, AI performs a prediction from the data sets based on a centralized model, in which a group of servers run a specific model against training and validating datasets. The AI model will be validated and optimized for minimum error based on the experimental and predicted values. ML-based AI is more appropriate for agri-food systems, where higher accuracy is expected and frequent training of the system is not a limitation as compared to rule-based AI (model based on pre-defined outcomes).

AI-based applications are gaining attention in the food industry with respect to food safety and quality assurance due to their ability to analyze large amounts of data generated from various monitoring techniques such as X-rays, lasers, spectroscopy or cameras. The data obtained is then examined by both intrinsic and extrinsic characteristics of the produce from harvest to packaging and the output is predicted in few seconds. Some novel methods such as computer vision are used to evaluate the quality of beverages, where the usage of automated analysis techniques integrated with AI is beneficial. The advantages of AI-integrated analysis of food quality parameters include cost-effectiveness and lower time-consumption, which in turn allow accurate, consistent, and reliable results. Further, the use of drones and robots on the fields makes it possible to thoroughly assess the sorting of foods, ripening status of fruits and to monitor the use of herbicides and pesticides during agricultural practices. The following applications exemplify the use of AI in revolutionizing the process mechanism in food industry in order to maintain high standards of food quality and safety:

  • AI for sorting of foods

Conventional food sorting systems which work on ‘programmed as “acceptable” from the “rejected” lot of food products’ is being replaced with advanced systems that can make optimized decisions based on AI. AI based food sorting uses image processing technologies such as cameras and near-infrared sensors for sorting and grading according to the size and colour of food product.

The application of image processing for sorting of red and green tomatoes and red and green grapes based on colour and size was analysed for an agricultural product packaging system. The colour recognition was carried out by HSV (Hue, Saturation and Value) analysis, and the size recognition was calculated by measuring the diameter of the object/fruit in the grayscale image and setting the thresholding. The data is of fruit size and colour is fed to the microcontroller to sort the fruit by moving it to the box of red/green tomato or red/green grape (Dewi et al. 2020). To arrive at an optimized decision, effective data collection and monitoring of food processes using AI-based optical sensors, to measure and regulate temperature, humidity, pressure and time along with other areas of improvements are essential (Kosior et al. 2017).

  • Enhanced traceability with precision

The conventional practice of tracing the food product depended entirely on simply gathering the data from a specific region and interpreting it accurately with respect to that specific region. However, traceability across the global food supply chain requires execution of strategic safety interventions to gather data from various regions, interpretation and validation of the collected data with minimal time consumption. In this regard, AI systems have made it possible to correlate past data and predict certain events across multiple timelines from different regions (Ramírez et al. 2019).

  • Automation for Self-Operating Clean-in-Place systems (SOCIP)

‘Smart agriculture’ is a classic example of how automation is expanding the production, processing, and packaging of food products using clean-in-place (CIP) systems, which involves periodic cleaning of the equipments to maintain hygiene. The advantage of a self-operating CIP system is that it avoids human intervention, which in turn limits the risks of cross-contamination via foodborne pathogens (Garbie 2010). Martec of Whitwell Ltd. is now examining its self-optimizing CIP system which utilizes optical fluorescence and ultrasonic imaging technologies to feed data to the designed AI program for the measurement of microbial debris and residual food within the equipments. Based on the output parameters i.e., extent of fouling from the debris, the intelligent decision-making tool for CIP will stop the cleaning phase. Some of the applications of AI in food processing is summarized in Table 8.1.

Table 8.1 AI applications in the agri-food supply chain and processing industries

The data stored in AI may be altered or manipulated by hacking due to storage in a centralized manner (Dinh and Thai 2018). Besides, the origin of data and the authenticity of the sources generating the data are not certain and guaranteed (Qi and Xiao 2018). This may lead to an inaccurate and risky prediction. In order to address these risks and issues in AI-based technology, the concept of blockchain was introduced.

2.2 Blockchain Technology

Blockchain was introduced in 2008 as a distributed ledger technology to perform digital transactions via Bitcoin, avoiding the need for intermediaries such as payment gateways, banks, etc. (Tripoli and Schmidhuber 2018). As the vigorous decentralized functionality of the blockchain technology is established and proven for global financial systems, it can also be extended to food safety management systems to resolve food traceability issues across the global food supply chain. Further, the application of blockchain to enhance quality and safety of agri-foods can be addressed by data transparency and traceability, improving food safety and quality monitoring, and reducing the cost of financial transactions.

2.2.1 Working Principle of Blockchain

The architecture of blockchain includes a decentralized model which enables secure peer-to-peer (P2P) transactions based on a cryptographically protected approach such as Hash function (#) (Steiner et al. 2015). A unique hash value (combination of numbers and strings) specific to each transaction (similar to a fingerprint) is generated and the hash algorithm is constructed. Instantaneously, each transaction which is stored in a block has to be validated and approved by computing systems following the blockchain protocol (also referred to as nodes). The nodes can detect if there is any change in transaction by reading the hash value. Each block includes its own hash value and the hash value of the immediately preceding block, thereby forming a chain of blocks. A minor change in the transaction of any previously recorded block will change its associated hash value and consequently breaks the chain. However, the information stored in the blocks are no longer changeable once they are uploaded to the blockchain. Additionally, there is an added advantage that new blocks can be integrated with the blockchain for more transactions as the blockchain can update itself periodically (Xu et al. 2020). Some of the popular decentralized storage technologies of blockchain are Filecoin, BigChainDB, Interplanetary File System (IPFS), Storj, Swarm (Protocol Labs 2017; McConaghy et al. 2016; Benet 2014; Wilkinson 2014; Hartman et al. 1999).

With advanced features of transparency and traceability, blockchain represents an emerging technology in the field of agri-foods, which may transform many aspects of the food industry and enable the improved quality and safety of agri-foods. The traceability chain from ‘farm-to-fork’ via blockchain technology is depicted in Fig. 8.1a (Borah et al. 2020). Food products that have been monitored by blockchain technology in earlier reports are summarized in Table 8.2.

Fig. 8.1
3 diagrams. Diagram A is a flow chart titled agriculture supply chain process in a decentralized blockchain technology. Diagram B is a block diagram that starts with large and small-scale farming and ends with the consumer. Diagram C starts with farmers, agents or mandi or distributors, rice processing companies, and retailers leading to a decentralized blockchain.

(a) The traceability chain from ‘farm-to-fork’ by implementation of blockchain technology (Reproduced from Borah et al. (2020) with permission from Springer Nature) (b) Rice supply chain in India and (c) Blockchain framework. (Adapted and modified from Antonucci et al. (2019) and Kumar and Iyengar (2017))

Table 8.2 Blockchain applications in the agri-food supply chain

2.3 Blockchain-Enabled AI Applications in Agri-food Industry for Improved Food Security

The emerging concept of decentralized AI, which is basically a combination of AI and blockchain, enables processing and analysis of the data on trusted, digital platforms (Team 2018). The data can also be secured and shared on the blockchain, in a decentralized model. The key features and benefits of block chain integration with AI are enhanced data security, improved trust on robotic decisions, collective decision making, decentralised intelligence and high efficiency (Salah et al. 2019). AI-enabled blockchain can therefore be applied in food supply chain management for simultaneous food traceability and data protection of the supply chain.

2.3.1 AI-Enabled Blockchain in Rice Supply Chain Management

The application of AI-enabled blockchain in agri-food industry to maintain food quality and safety is discussed using the rice supply chain management (Fig. 8.1b, c) (Kumar and Iyengar 2017). The rice supply chain which begins at farm land requires detailed understanding of artificial intelligence models for the optimization of agricultural applications such as smart irrigation, farming, plant data analysis, next generation farming, food processing, use of pesticides etc. The technology of smart irrigation was developed to increase the agricultural produce without the involvement of manpower by using sensors that detect the level of water, temperature of the soil, nutrient content, operation of irrigation pumps and forecast weather. Machine to Machine technology (M2M) was developed to ease the data sharing and communication gaps with the server or the cloud connected by a central network to all the nodes of the agricultural field (Shekhar et al. 2017). Image analysis of rice cultivation will be captured by computer vision and data collection through sensors, which will be trained, analysed in the developed model based on AI. Further, the harvested rice will be tracked during its shipping which is tagged by RFID to avoid the food fraud affecting the food safety. The traceability of rice from farm to processing unit to procurement centres followed by retailers and consumers will be encoded in a QR code, where the data collected will be stored in a decentralized blockchain.

2.4 Computational Fluid Dynamics

Computational fluid dynamics is a refined modeling and simulation that uses powerful computers to design, analyze and predict fluid flow, phase change, heat transfer, mass transfer, chemical reactions, mechanistic movements, and solid-fluid interaction. CFD facilitates the evaluation of several different design constraints of a physical system using a specifically constructed computational model representing the system. The yardstick of success is observed by how well the results of the numerical simulations correspond with the results of the experiment, in circumstances where laboratory experiments could be performed and how proficiently the simulations can envisage highly complicated processes that cannot be established in the laboratory (Sun 2019).

CFD is a branch of knowledge primarily based on the theory of fluid mechanics. Fluid flows are defined by the conservation laws of mass, momentum and energy in the form of partial differential equations. These equations are replaced by respective algebraic equations during model development in CFD and are then numerically solved. These algebraic equations portray the relation between pressure, temperature, velocity and liquid density with respect to the fluid problem under study. CFD offers a qualitative prediction of fluid flows using: (i) precise mathematical modeling (using Navier-Stokes transport equations) (ii) numerical methods and (iii) software packages (solvers, pre- and post-processing functions) (Tu et al. 2018; Zawawi et al. 2018). The outcome of a CFD study is a function of the physics and numerics available within the software package and can deliver a comprehensive in-depth analysis of a flow system for specific application (Norton and Sun 2006).

Originally, CFD was solely associated with industries involving aerospace and mechanical activities allowing simulation of combustion processes in rocket engines and other physicochemical reactions in and around the rocket airframe. Successively, chemical engineers started employing CFD tools primarily for design of reaction vessels and fluid flow systems (Ranade 2002). Today, CFD is applied in various disciplines across several industries such as aerospace, automotive, chemical, manufacturing, food processing, biomedical, power generation, petroleum exploration, polymer processing, pulp and paper processing, meteorology, astrophysics, medical research and so on (Bayatian et al. 2021; Toparlar et al. 2017; Bakalis et al. 2015). The upcoming sub-sections discuss the equations governing CFD and its applications for enhanced food quality and safety.

2.4.1 CFD in Food Quality and Safety

The food processing sector is unique due to the wide range of distinct constraints that affect process design and development. The food products have to be desirable to the consumer in terms of visual appeal, nutrition, quality and safety. Food processing involves physicochemical and biological interactions of material and non-material components followed by storage and transportation of the manufactured product. This occurs by the means of physical, chemical and biological reactions through transformation of mass, momentum and energy. Robust modeling and simulation tools are employed to diligently study the various transformations during food processing thereby facilitating improved quality and safety (Bakalis et al. 2015).

CFD has grown to be an indispensable part of the design and analysis ecosystem of many food manufacturers due to its capability to predict and analyze the performance of new processes or designs prior to their implementation or fabrication (Padhi 2020; Parpas et al. 2017). One of the undeniable advantages of CFD modeling of food processing operations is the evaluation of the multiphase flow behaviour and prediction of the effect of different operating conditions on the overall process. Process engineers, equipment designers and researchers use CFD to improve the execution and performance of food processing operations, such as drying (Malekjani and Jafari 2018; Ramachandran et al. 2018), baking (Salish et al. 2021; Zhou and Therdthai 2019), sterilization and thermal processing (Park and Yoon 2018; Anandharamakrishnan 2013), refrigeration (Pham et al. 2021; Hoang et al. 2015), mixing (Gomes et al. 2019; Pires et al. 2017) and so on. CFD can be utilized as a robust technique for modeling and simulation of a new food processing facility or retrofitting existing facilities, leading to better performance, quality, safety and energy-optimized operation thus saving up on time, economic cost and manpower.

2.4.2 Governing Equations

The governing equations for CFD of fluid dynamics, heat and mass transfer can be regarded as mathematical expressions of the conservation laws of fluid mechanics and are referred to as the Navier-Stokes equations (Norton and Sun 2006; Farid 2010). These laws of conservation correlate the rate of change of a specific fluid property and associated external forces, when applied to a fluid continuum and can be labelled as:

  1. 1.

    The law of conservation of mass (continuity equation), which states that the mass flows entering a fluid element must balance exactly with those leaving.

$$ \frac{\mathrm{\partial \uprho }}{\mathrm{\partial t}}+\frac{\partial }{\mathrm{\partial xi}}\left(\uprho u\mathrm{j}\right)=0 $$
(8.1)
  1. 2.

    The law of conservation of momentum (Newton’s second law of motion), which states that the sum of the external forces acting on a fluid particle is equal to its rate of change of linear momentum.

$$ \frac{\partial }{\mathrm{\partial t}}\left(\uprho \mathrm{ui}\right)+\frac{\partial }{\mathrm{\partial xj}}\left(\uprho \mathrm{ui}\mathrm{uj}\right)=\frac{\partial }{\mathrm{\partial xj}}\left[-\mathrm{p}\updelta \mathrm{ij}+\upmu\ \left(\frac{\mathrm{\partial ui}}{\mathrm{\partial xj}}+\frac{\mathrm{\partial uj}}{\mathrm{\partial xi}}\right)\right]+\uprho \mathrm{gi} $$
(8.2)
  1. 3.

    The law of conservation of energy (the first law of thermodynamics), which states that the rate of change of energy of a fluid particle is equal to the heat addition and work done on the particle.

$$ \frac{\partial }{\mathrm{\partial t}}\left(\uprho \mathrm{CaT}\right)+\frac{\partial }{\mathrm{\partial xj}}\left(\uprho \mathrm{ujCaT}\right)-\frac{\partial }{\mathrm{\partial xj}}\left(\uplambda \frac{\mathrm{\partial T}}{\mathrm{\partial xj}}\right)=\mathrm{sT} $$
(8.3)

By applying these conservation laws over discrete spatial volumes in a fluid domain, a systematic interpretation of the changes in mass, momentum and energy can be obtained. The aforementioned equations and their governance on CFD can be further explored in detail from “Mathematical modeling of food processing by Farid M.M. (Ed.). 2010” (Farid 2010).

2.4.3 Numerical Analysis and Visualization

CFD code developers and researchers use a selection of diverse numerical methods to discretize the modelled fluid domain. The most significant ones are finite difference, finite element and finite volume methods. Finite difference methods are seldom used for engineering flows due to their limitations in processing of complex geometries. Finite elements are used to model arbitrary geometries such as wind and building interactions in agricultural building designs (Wang et al. 2016). However, due to the technical difficulties involved in the programming and understanding of this method, a very limited number of commercial finite element packages exist. The finite volume method provides an organized report of the changes in mass, momentum and energy of the fluid across the boundaries within the computational domain (Versteeg and Malalasekera 2007). Therefore, finite volumes are most commonly used due to their ease of understanding, programming and flexibility. The model to be selected for CFD simulation may be laminar or turbulent – based on the type of fluid flow. In a turbulent model, which generally denotes the realistic fluid flow in most applications, the effect of driven forces, eddies and vorticities are incorporated.

Visualization of a CFD problem is almost always necessary to represent its accurate solution. Contour plots, vector and line plots augment the validity of simulation results and have also been employed in several studies to support design and fabrication (Ciano et al. 2021; Inostroza et al. 2021; Demissie et al. 2019). Figure 8.2 illustrates an example of the use of visualization methods to enhance the design process (Moureh and Flick 2004). Today, there are a number of commercial CFD codes and packages that are capable of addressing different problems faced in different areas of engineering (Boysan et al. 2009). Some of the most commonly used commercial CFD codes are ANSYS FLUENT, CFD-ACE, ANSYS CFX, PHOENICS, FLOTHERM and OpenFOAM. These codes incorporate almost all functionalities, employ intuitive graphical user interfaces and support Windows, UNIX and Linux platforms.

Fig. 8.2
Two diagrams of trucks record the temperature within a refrigerated truck. Diagram A records higher temperatures towards the end that fall under the range of negative 20 to negative 18. Diagram B records a cooler temperature toward the ends, the highest temperature recorded being negative 20.

Contours of temperature field within a refrigerated truck (a) with air and (b) without air. (Reproduced from Moureh and Flick (2004) with permission from Elsevier)

3 Applications of Advanced Computational Tools in Food Quality and Safety – Case Studies

3.1 Food Supply Chain Management

Food supply chain is a complex system involving the uninterrupted food flow from farm to consumers. However, there is a lack of transparency and traceability due to the interference of various middlemen. This interference may have significantly negative effects on the freshness of agricultural produce and food quality, and hence the information of all the processes and stages involved in the food supply chain needs to be tracked. The main stages characterizing an agri-food supply chain are agricultural production, post-harvest handling, processing, distribution, retailing and consumption (Caro et al. 2018).

The supply chain in the food industry depends on automated machines which is based on AI, machine vision, navigation technologies and sensor technologies to record the data of temperature, microbiological information and other food quality parameters over the lifecycle of the food products (Jedermann et al. 2014; Heising et al. 2014; Abad et al. 2009). For instance, Radiofrequency Identification (RFID), a sensor-based technology is being applied in food processes, agri-food supply chain industry as one of the efficient traceability systems. The use of RFID and storage of data using blockchain technology in the agri-food supply chain reduces the losses during the logistics process and also maintains food quality and safety. Various food chain traceability initiatives have been taken up and one such initiative by BigchainDB, is based on HACCP, blockchain and IoT (McConaghy et al. 2016). The system provides an information platform for all the supply chain members ensuring transparency and safety (Tian 2016). Also, a recent initiative by Walmart to track and trace the supply of leafy green vegetables by uploading the data to the blockchain using IBM Food Trust Network, can be applicable to other suppliers to ensure food safety along the supply chain. This ensured quick traceability of products back to the farms and harvest sites.

3.1.1 Foodborne Outbreaks in Supply Chain

Food sector faces additional challenges apart from food processing, such as the foodborne outbreaks in the supply chain, which needs immediate attention in the food regulatory framework. The insufficient measures adopted by food regulatory agencies to trace the origin of contamination in foodborne outbreaks affects the public health thereby losing trust of the food product in the supply chain indefinitely. Some of the foodborne outbreaks are detailed in Table 8.3. Therefore, an understanding of the significant impact of foodborne outbreaks, technological advancements and integrated measures to reduce the risks associated with future outbreaks and therefore its prevention by identification and control of hazards at critical stages of the supply chain within a limited time period should be of utmost priority.

Table 8.3 Foodborne outbreaks in agri-food supply chain

3.2 Aflatoxin Detection in Nuts: Detox™ by TOMRA, a Case Study of AI

Food contamination by aflatoxins, which can cause cancer is considered a major health risk to consumers and also a commercial risk to food businesses. Aspergillus (fungi) species present in the environment as A. flavus and A. parasiticus, are commonly found in orchards of nuts. The parasite grows when suitable conditions arise and produces a chemical compound known as aflatoxin. Aflatoxin is a secondary metabolite and a potent carcinogen. The concentration of aflatoxins is measured in parts per billion (PPB), which is equivalent to a pinch of salt to a 10-ton bag of potato chips. As aflatoxins are known to cause fever, malaise, abdominal pain, vomiting, hepatitis and cancer, they need to be addressed for food safety. Aflatoxin B1, occurs naturally in a wide range of foods and primarily infects cereal crops, spices, figs, dried fruits, cocoa beans, rice and nuts such as walnut, peanuts and tree nuts. Further, Aflatoxin M1 is sometimes present in milk taken from animals that have consumed feed contaminated by aflatoxin B1. Development of technologies for detection of aflatoxin in milk is essential as pasteurisation of milk does not protect against aflatoxin infections (https://food.tomra.com/blog/aflatoxins-in-foods).

The advanced modeling technology Detox™ using AI sensor-based sorting by TOMRA, uses fluorescent lighting, advanced lasers and near infra-red (NIR) spectroscopy to examine and identify the extremely low intensity of light reflected by the aflatoxin moulds in a variety of food types, thereby detecting aflatoxin contamination (Fig. 8.3). TOMRA’s sorting machines works on the principle of unique biometric signature identification (BSI) technology. BSI works by scanning and detecting the biometric characteristics of the nuts, which is compared with the database to determine whether the items should be accepted or rejected (https://www.fareasternagriculture.com/technology/infrastructure/laser-sorting-machines-can-eliminate-the-risk-aflatoxins-in-foods). This technology detects and removes smaller defects as compared to conventional spectral technology, as false-rejection rates are exceptionally low with high yields.

Fig. 8.3
Photograph A is of Aflatoxin contamination in Brazil nuts and figs. Photograph B os of the T O M R A Nimbus 640 with double laser. It is made of sturdy material and a tiny screen embedded into the system. A scan C detects the Aflatoxin B1, B2, G1, G2, Y with different pigmented florescence.

Aflatoxin detection in nuts using Detox™ model (a) Aflatoxin contamination in brazil nuts and figs (b) TOMRA Nimbus 640 with double Laser in DETOX ™ Configuration (c) Aflatoxin detection using Detox™ developed by TOMRA

3.3 Case Studies of Blockchain Technology

3.3.1 Dairy Industry: A Pioneer in the Adoption of Blockchain Technology

Milk with acceptable quality is processed into a variety of dairy products such as yoghurt, liquid milk products, butter, ice creams, cheese and ghee by food processing operations such as homogenization, pasteurization, packaging and storage (https://www.fao.org/publications/sofa/2016/en/). However, although milk is considered as an essential nutritional supplement for human beings, the quality of dairy products has been a major issue affecting the health, especially that of infants and older people. Therefore, traceability of milk and milk products is essential as it provides access to critical information about its origin and processing methods (Francisco and Swanson 2018).

Figure 8.4 illustrates the traceability of milk supply chain, which begins from the milking process at the farm and labelled with an activated QR code for each churn. The data will be updated on a blockchain and further the QR code of each milk churn can be scanned to validate the quality before combining them together in the giant tank. The transport tank will be attached with another activated QR code security seal to trace the truck movement. The activated QR code provides the information on the location of the farm where the milk was sourced, procurement time and volumes, results of onsite tests, and details of the transportation vehicle, which will be stored in a distributed ledger using blockchain technology.

Further, the raw milk arriving at the dairy industry will be scanned to access the data of milk procurement and the shipment will be accepted post-verification. The information encrypted in the QR code will be logged and the status of the milk batch will be updated on the blockchain server. If any discrepancies regarding the milk quality should arise at the processing unit, the milk batch will be traced back to the particular farm through the unique QR code. The batch of milk with inferior quality can then be rejected as it is no longer safe to be processed further.

The data of the entire dairy supply chain is automatically recorded and uploaded to the blockchain system using the various sensors installed. Finally, at the packaging/ bottling stage, a QR code will be printed on each product which provides complete information of the dairy supply chain to the end users. Each QR code, encrypted by a hash value, provides the information from farm to finished product along with additional data consisting of processing details, batch number and expiry date (Tan and Ngan 2020).

Considering the multiple processes involved in dairy supply chain, a smart contract integrated with IoT sensors will be efficient and time-saving for the transaction between the dairy industry and retailers. Smart contracts offer information on shipment details, process parameters such as temperature and humidity during shipment and shelf-life of the product. The product after delivery will be certified for maintenance of temperature and humidity during the food product shipment, so that the quality is maintained throughout the supply chain. The consumers, who are the end users, can scan the QR code on the product using the respective application on their smartphones to verify its provenance and authenticity. Furthermore, the details of dairy farming, type of processing, the food safety standards regulating the supply chain (HACCP, ISO, national standards) and the manufacture and expiry date of the dairy product can also be made available by blockchain technology.

Fig. 8.4
A flowchart of the dairy supply chain. It starts with a dairy farm, followed by collection and transportation, milk processing or manufacturing, packaging, distribution, and warehouse or wholesalers. Every stage is followed by an intricate step-by-step process.

Framework for blockchain-based traceability system in the dairy supply chain. (Adapted and modified from Tan and Ngan (2020))

3.3.2 Hive to Tongue Traceability: Implementation of Blockchain Technology (an Emerging Case Study)

Globally, there are about 94 million beehives with an average annual honey production of about 1.77 million metric tons in 2020 (Statista 2018). Quality honey is an immunity booster, and its traceability is beneficial for both the producers and consumers. Honey is often one of the most impure or mislabelled foods as 76% of honey sold in the market is adulterated (Everstine et al. 2013). It has been observed in recent years that honey mixed with impure ingredients such as sugar, salt, corn syrup and even toxins have been found at suppliers and retailers. Although, analytical methods may detect honey adulteration, they are expensive and tedious to be performed on a regular and scalable basis (Strayer et al. 2014). As honey is currently a highly unorganised sector, due to the constant shifting of beekeepers based on the bee’s movement, making it difficult to identify the source of the honey product. Also, to reduce the cost of honey, the honey suppliers and traders often blend the honey from different sources of low-grade honey with a relatively small volume of high-quality, expensive honey. The natural honey which is composed of fructose, glucose, and sucrose is commonly adulterated with corn or sugar syrup, results in a homogeneous mixture which makes it difficult to differentiate (Wang et al. 2015). The syrup or sugar residues in adulterated honey are identical to the natural residues in pure honey. Therefore, the detection of these adulterants becomes difficult, and hence new methods to distinguish the differences between pure and adulterated honey (Drummond and Sun 2010). Additionally, with the increasing demand for organic honey, the suppliers or manufacturers need to meet the criteria such as pure organic honey should not constitute any GMO based content, presence of hazardous substances like antibiotics and pesticide residue, and other chemical residue levels should be below the prescribed limits (Wang et al. 2015). With the increase of adulterated honey flooding the market, the origin and traceability of honey (via labelling) can be powered by blockchain technology.

3.3.3 Unique Identifiers to Verify the Authenticity of Honey

The sale of impure honey could be prevented by testing of adulteration in honey using blockchain-enabled supply chain and traceability. For instance, ultra-filtration is an operation used in honey processing which removes all the naturally beneficial pollen from the honey in order to extend the shelf life of the product thereby rendering it impossible to tell the origin of the honey or the location of beehive. The collection of data comprising the unique identifiers such as health of bees, temperature of bees and the amount of honey produced can be stored in the blockchain and shared throughout the supply chain between different parties. These unique identifiers can then be identified by the label on the product and can be traced for its origin to verify the authenticity of the honey.

3.3.4 Future of Honey Verification with Blockchain

The tampering of honey with adulterants can be validated by contemplating the locality of the bee hives where the honey was harvested. The analysis of the locality and type of farms surrounding the hives can uncover evidence on the adulteration of honey. For example, if the sample of honey contains maple pollen but the hive is at a location where there are no maple trees, it is understood that the honey is probably adulterated. It is more likely and economically practical that any “standard” applied to honey would be based on how the farm is being managed – for example, the farmer is setting aside a portion of the land to grow pollinator friendly plants all year round. The same can be monitored by capturing aerial images of the land and analysing the division of the lands.

3.4 CFD in Cold Food Chains

3.4.1 Cold Food Chains

A large variety of raw, partially cooked or ready-to-eat chilled and frozen foods are available to consumers all over the world. As the demand for innovative food products and ready-to-eat meals increases, the need for enhanced food safety and improved, optimized cold chain facilities also increases. In order to maintain the quality and extend shelf life of a large number of food products, temperature control is crucial at almost every stage of the food processing chain (Tassou et al. 2015). A chain that comprises the production and distribution of frozen and chilled food products is usually described as a ‘cold food chain’. Cold food chains involve heating, ventilation and air conditioning (HVAC) systems, frozen and chilled food display cabinets and refrigerated storage systems: low-temperature (−30 to −40 °C) for frozen foods and medium/ high temperature (−8 to −15 °C) for chilled foods storage. It also includes refrigerated transportation that refers to the conveyance of food by land, sea and air via refrigerated containers (Brown 2008). In the subsequent sections, the effects of freezing and chilling on the quality and safety of fresh and processed foods are explored along with special reference to three case studies, wherein CFD tool is used to enable significant reduction of post-harvest losses and facilitate improved food quality and safety.

3.4.2 Food Quality and Safety Issues at Low Temperatures

Food quality and safety is essential to all fresh and processed foods especially meat, fruits and vegetables. The main objective of chilling or freezing is to extend the shelf life of the food product thereby maintaining its quality. However, certain variation in the characteristics of the food product are often expected due to mismanagement of the cold storage. Oxidation and enzymatic biochemical reactions, especially in fruits, vegetables and sea-food lead to off-flavours and odours. In other cases, the effect of unoptimized cold room conditions is responsible for the degradation of product appearance, palatability and texture (Tassou et al. 2015; Darwesh and Elmetwalli 2015). Additionally, several factors influence the cold chain process efficacy such as temperature distribution, air flow rates, cooling method, storage conditions, thermal-physical interactions, physiological properties, packing design and stacking pattern (Delele et al. 2013a; Chourasia and Goswami 2007a; Pathare et al. 2012).

In order to analyze and improve the existing process and design of the cold chain, modeling of fluid flow, heat and mass transfer is essential during cooling, storage and transportation operations (Ambaw et al. 2013; Delele et al. 2010). CFD solves the governing equations (Eqs. 8.1, 8.2, and 8.3) for cold chain operations to a high degree of accuracy using a very fine mesh of the geometry under study. CFD is also reported to be the most suitable and commonly used technique to analyze the aerodynamics and thermal distributions inside cold storages (Brown 2008; de Albuquerque et al. 2019). Table 8.4 recapitulates the recent use of CFD for design and evaluation of post-harvest cold storages.

Table 8.4 Recent applications of CFD in design of post-harvest storage facilities

3.4.3 Case Study I – CFD Based Optimization of Precooling Conditions of Dates in Cold Room

Ghiloufi and Khir (2019) studied the modeling and optimization of precooling process for dates using CFD. The cold storage (5.6 × 3.62 × 3.3) was designed to preserve about 11 tons of dates at 5 °C. Compression vapor refrigeration system, with 3 axial fans of 45 cm diameter and rotating velocity of 1500 RPM, was used to deliver the necessary cooling capacity. The dates were packed in 432 plastic bins (62 × 32 × 15 cm) and arranged in 3 rows; each row containing 84 bins with 2 m height and circulation corridors were provided. Simulation was performed considering three designs of the cold storage: (1) normal cold room, (2) cold room with single deflector and (3) cold room with three aerodynamic deflectors.

3.4.3.1 Model Development

The Reynolds Averaged Navier-Stokes (RANS) equations were resolved in three dimensions to determine the air flow profiles. The turbulent model used was the k-ω (SST) developed by Menter (Liu et al. 2012) to study the airflow inside the cold room. This model is best suited to describe the air spinning patterns in a cold room (Nahor et al. 2005). The governing equations for the study have already been discussed under Sect. 2.4.2 (Eqs. 8.1, 8.2, and 8.3) of this chapter. Precooling process for dates takes place immediately after harvest from 35 to 40 h depending on initial temperature and refrigeration conditions. Several earlier reports have indicated that the heat respiration of the product during this precooling period is extremely minimal and hence can be neglected (Delele et al. 2012; Gowda et al. 1997; Qiu and Wang 2015). Therefore, the heat respiration and mass losses of dates were not considered for the actual simulation. Assuming each bin of dates to be a solid block, the convective heat transfer coefficient hcv related to the convective flux qdates-air can be obtained by:

$$ \mathrm{hcv}=\frac{\mathrm{qdates}-\mathrm{air}}{\mathrm{Td}-\mathrm{TS}} $$
(8.4)

where Td is the initial temperature of dates and TS is the storage temperature.

The model was established using CFD code ANSYS FLUENT 17 using second-order discretization method and SIMPLE algorithm for pressure-velocity coupling. Steady-state simulations are performed to study the airflow distribution, temperature distribution and convective heat transfer coefficient at date-air interface. The cold room space was divided into 16 million cells using the ANSYS Mesher with additional finned meshing near the interfaces. Further details on the model, boundary conditions, geometry and meshing can be found in Ghiloufi and Khir (2019).

3.4.3.2 Simulation Results

The established CFD model was validated considering earlier studies performed on cold storage of apples (Hoang et al. 2015). The simulation results for the three different cold storage designs are detailed below.

  • Normal cold room

Figure 8.5a displays the air flow circulation. The air velocity has a swirling profile due to the rotation of the fans. The velocity is maximum (7.5 m s−1) at the extremities and almost zero at the centre. A recirculation zone is observed due to the air turbulences near the walls. This air flow distribution affects the cooling behaviour of the product in the cold storage. In order to obtain high and uniform air velocity, a steady temperature distribution throughout the cold storage needs to be established. The temperature distribution after 25 h of cooling was observed in three different planes. A large variation in the cooling zones can be observed in the normal room due to the heterogeneous cooling rate causing poor air flux distribution. This will lead to increased biological and mass losses and deteriorate the quality of the stored product.

  • Cold room with single deflector

The air flow after 25 h of cooling inside the cold room using a single deflector (baffle) is depicted in Fig. 8.5b. Although most of the zones are optimally cooled, several bins remain at temperatures >15 °C. It can be observed that although the usage of a single baffle improves the product refrigeration, the arrangement was not able to ensure uniform cooling of the product.

  • Cold room with three aerodynamic deflectors

A better airflow distribution was obtained with the three deflector design (Fig. 8.5c). Several recirculation zones were observed above the bins due to the increased turbulence developed by the deflectors. A uniform temperature distribution was observed inside the cold room with three aerodynamic deflectors. All the product bins are cooled to temperature < 10 °C in all the planes which validates the effectiveness of the arrangement. Additionally, results indicate that the new design significantly reduces the precooling period by 6 h compared to cold room with single deflector and by 10 h compared to normal cold room. The new arrangement with three deflectors also considerably minimizes the energy consumption and therefore the operating cost of the cold storage.

Fig. 8.5
3 diagrams. Diagram A illustrates the temperature distribution in a cold room. It has 3 specific zones. Diagram B has a single deflector, plotting the colding temperature values around it with higher temperatures towards the entrance. Diagram C has three deflectors along with recirculation zones.

Temperature distribution in (a) normal cold room (b) cold room with single deflector (c) cold room with three deflectors. (Reproduced from Ghiloufi and Khir (2019) with permission from Springer Nature)

3.4.4 Case Study II – Virtual Cold Chain (VCC) Method to Model Post-harvest Temperature History and Quality Loss of Citrus Fruit

Loss of quality is a growing concern in the fruit industry. Post-harvest losses are often as high as 13–38% (Gustavsson et al. 2011). During the preservation and storage of fresh produce, temperature is the most important parameter affecting their quality, shelf life and spoilage rates. It is essential to maintain optimum temperature throughout the supply chain (Pelletier et al. 2011). Therefore, quality observation throughout the cold chain is crucial to track the temperature history of the fruit. Conventionally, temperature monitoring is performed using point probes at specific locations on the pallets or cartons and it does not accurately represent overall fruit quality (Delele et al. 2013b). A better alternative would be to apply numerical modeling via computational fluid dynamics and calculate the core temperatures of each fruit by modeling the heat transfer within the fruit and the surrounding airflow (Wu et al. 2018). This can be accomplished by the use of a virtual cold chain (VCC) strategy wherein, temperatures of packed fruit can be tracked throughout different unit operations of a cold chain. By definition, a virtual cold chain employs a CFD-based workflow to obtain the thermal history and predict the quality evolution of every product going through the different operations of a cold chain. With the help of VCCs, post-harvest losses in the fruit and vegetable industry can be significantly reduced (Menter 1994).

Wu et al. (2018) developed a VCC method for tracking the temperature of packed citrus fruit through various unit operations in different cold chain scenarios using CFD modeling. The temperature information of individual fruits are collated to predict fruit quality loss throughout the entire post-harvest supply chain. The VCC method for citrus fruit (oranges) is discussed in the case study for a conventional cold chain entailing three operations – precooling, refrigerated transport and cold storage. Although only a single carton is used for this study, it is adequate to show the efficacy of the VCC method and can be later extended to other complex models.

3.4.4.1 Cold Chain Strategies

The VCC method in the present study is used to comparatively assess the temperature history and fruit quality loss throughout the five cold chain strategies. The VCC method recreates five different cold chain strategies used in the fruit industry using different combinations of the above-mentioned unit operations. The different cold chain strategies and their operating parameters are illustrated in the form of a flow chart in Fig. 8.6a. The baseline cold chain (I) is chosen as the control/ representative scenario as it is the most widely used cold chain in the fruit industry; it involves partial precooling to remove fruit heat followed by further heat removal during transport. The cold-disinfestation precooling (II) consists of lower temperatures required for markets demanding a disinfestation protocol to kill insect larvae in fruit. The third cold chain – ambient cooling (III) does not include a precooling step. The fruits are instead stored in static cold storage for 5 days before shipment, establishing a slow cooling process. In the ambient loading (IV) cold chain model, the fruits are directly loaded to the refrigerated container for transport after packing. The final cold chain strategy – holding after precooling (V) contains an additional cold storage before shipment and simulates the scenario where fruits are stored for few days after precooling before being transported.

Fig. 8.6
3 illustrations. Diagram A is a branching diagram titled virtual cold chain method. Diagram B consists of a C F D model for precooling and storage and for transport. A line graph C plots quality versus time. It plots 5 curves with decreasing trends plotting the highest values for baseline and the lowest values for ambient cooling.

(a) Virtual cold chain strategies (b) computational models for the VCC method (c) average quality loss of fruits in the five cold chains. (Reproduced from Wu et al. (2018) with permission from Elsevier)

3.4.4.2 Model Development

A fibreboard carton (0.4 × 0.3 × 0.27 m) filled with 64 orange fruits according to a predetermined pattern was selected as a model for the study. The fruits are discretely modelled as spheres (d = 7.5 cm) with the total weight of the carton being 13.6 kg. Three separate computational models are developed for precooling, refrigerated transport and storage (Fig. 8.6b). The air flow rates are 1 L kg−1 s−1, 0.02 L kg−1 s−1 and 0.002 L kg−1 s−1 for precooling, transport and storage, respectively. The initial temperature of the fruit and cardboard is assumed to be 21 °C.

The simulations are performed using RANS equations with the shear stress (SST) k-ω turbulence model on the open source CFD code OpenFOAM 2.4.0 (Robertson 2016). All CFD models are meshed using tetrahedral cells. The latent heat of evaporation and heat of respiration have negligible effect on the cooling rate of the oranges and hence are not incorporated in the model. SIMPLE and merged PISO-SIMPLE (PIMPLE) algorithms are used for steady state and time-dependent simulations, respectively. A standard model for predicting the disparity in overall fruit quality over time is developed based on the kinetic rate law (Dermesonlouoglou et al. 2008):

$$ -\frac{\mathrm{dA}}{\mathrm{dt}}=\mathrm{kAn} $$
(8.5)

where t is the time [s], k is the rate constant [s−1], n is the order of the reaction and A is the change in overall fruit quality estimated by the simulated virtual cold chains. First order reactions are assumed for the overall quality change (A) of oranges. Therefore, Eq. (8.5) can be integrated as:

$$ \mathrm{A}=\mathrm{A}0\mathrm{e}-\mathrm{kt} $$
(8.6)

Arrhenius equation gives the temperature dependency of overall fruit quality loss (Delele et al. 2019b):

$$ \mathrm{k}\left(\mathrm{T}\right)=\mathrm{k}0{\mathrm{e}}^{\frac{-\mathrm{Ea}}{\mathrm{RT}}} $$
(8.7)

where k0 is a constant [d−1], Ea is the activation energy [J mol−1], R is the ideal gas constant [8.314 J mol−1 K−1], T is the absolute temperature [K].

3.4.4.3 Simulation Results

The average temperature history of all fruits reveals the differences amongst the five cold chains in a comprehensive manner. The cold disinfestation precooling (II) cold chain is observed to be the most efficiency strategy to lower the fruit temperature. Due to the effects of precooling, the baseline cold chain (I) and holding time after precooling (V) chain are also efficient to cool the fruit quickly to 3 °C. On the contrary, the ambient cooling (III) and loading (IV) cold chains take longer duration to cool the fruit due to lower air flow rates.

The quality degradation of all fruits, based on first order kinetics is illustrated in Fig. 8.6c. The remaining quality after baseline (I), cold-disinfestation precooling (II), ambient cooling (III), ambient loading (IV) and holding time after precooling (V) cold chains are 30%, 29%, 17%, 29%, and 25%, respectively. The ambient cooling cold chain has the lowest residual quality, almost 23% elevated quality loss as compared to the baseline cold chain. This may be attributed to the longer duration of initial cold storage (5 d) before shipment, leading to a significant quality loss. A maximum variation of 2% in quality loss is estimated between individual fruits in the cold-disinfestation after precooling (II) cold chain making it the most effective strategy. Conversely, a maximum difference in quality loss of 5% is observed among the fruits in ambient cooling (III) cold chain, making it the least effective strategy.

3.4.5 Case Study III – Performance Improvement of the Industrial Cooling Process of Large Beef Carcasses by CFD Modeling

Beef is usually stored in cold rooms as carcasses, before being processed to the consumer’s preferred size and shape, thereby maintaining hygiene, quality and visual appeal. During industrial air blast cooling in the cold rooms, the carcasses are exposed to the cooling air at a specific temperature, velocity, flow direction and relative humidity which determine the cooling rate of the beef; which in turn affects weight loss, moisture loss, shelf life, rate of biochemical reactions within the carcass and final meat quality (Hamoen et al. 2013). As both very fast and very slow cooling rates have side effects on final meat quality, modern slaughterhouses use controlled cooling methods with an aim to produce meat with desired quality in the shortest possible cooling time. The following case study is discussed in brief as it is fairly similar to the case study discussed in Sect. 3.3.3. on pre-cooling operation during cold storage.

Delele et al. (2019a) evaluated the optimization of industrial cooling of large beef carcasses using CFD. The CFD model allows combination of airflow, temperature, moisture transport, energy transport, weight loss and quality aspects to optimize the cooling efficiency (Kuffi et al. 2016). The study was performed using a validated model of beef carcass developed by Kuffi et al. [142] and solved using commercial CFD code ANSYS-CFX. The cooling problem was solved using the commonly used RANS equations based on the governing equations using a turbulence model. Further details on the model, mesh and computational boundary conditions can be found in Delele et al. (2019a). The study analyzed the effect of pre-cooling temperature and air flow rate on the cooling time quality loss of the beef carcass.

Simulation results indicated that precooling air temperature and duration have a major effect on the cooling time and weight loss, whereas air velocity was not considered a critical factor. Low air velocity was found to be optimal for both energy consumption and retaining overall meat quality. Additionally, low temperature was noted to be the optimum operating condition for the pre-cooling process. If quick drying of the product is desired, high velocity with high temperature is more appropriate with limitations of higher weight and colour loss. However, as low weight loss was aimed in the current study, low velocity and low temperature pre-cooling were deemed ideal. For further discussions on the simulation results, Delele et al. (2019a) can be referred. Therefore, the study summarises that comprehensive CFD models are capable of predicting the optimum operating conditions of industrial cooling of beef carcasses and the approach can be extended to similar cooling operations in the cold chain industry.

4 Challenges, Summary and Outlook

4.1 Challenges

AI and blockchain have been gaining increasing significance due to the recent change in food safety regulations. AI and blockchain focus on the prediction and prevention model rather than the reaction and response model for early prediction of future foodborne outbreaks and other food safety issues. Although the data of food traceability being stored in a decentralized blockchain ledger looks promising, it does not possess a verification system to check the authenticity of the data collected from RFID tags or barcodes. Additionally, as blockchain involves P2P interactions, there is a need to standardize the protocols used in blockchain and its integration with AI for ensuring transparency and data security.

The application of CFD simulations reveals that products can be processed and stored in more efficient systems thereby improving its quality and shelf life. Though CFD provides significant data on the performance of food processing operations and storage environments, the simulation process is time-consuming and requires powerful supercomputers with large storage databases. In recent years, 3D image data from computed tomography (CT) and magnetic resonance imaging (MRI) provides realistic high quality 3D models. However, most existing meshing tools can only operate with models developed by computer-aided design (CAD) tools and have difficulty meshing 3D images. Image-based meshing is expected to open new avenues of modeling in food processing and storage that were earlier challenging due to unavailability of suitable models thereby enabling enhanced food safety.

4.2 Summary

In this chapter, an overview on the current state-of-the-art of AI and blockchain technology in food supply chain management, and CFD for optimization of post-harvest cold storage rooms is reviewed. The applicability of AI and blockchain in gathering the data of agricultural practices and tracing of food products from ‘farm to plate approach’ is discussed. The role of CFD in food processing as an enabling tool for enhanced food quality and safety is outlined. As a case study, the application of AI in aflatoxin detection in nuts is presented using the Detox™ model by TOMRA. Additionally, the implementation of blockchain technology in the dairy industry is discussed along with an emerging case study of honey traceability. A case study on the application of CFD for optimization of pre-cooling conditions for dates storage in a cold room is reviewed, wherein it was observed that cold room with three deflectors proved to be the most suitable configuration with the best airflow and temperature distribution. In another case study, the development of a virtual cold chain method for tracking the temperature of individual fruits in the cold chain and its simulation using CFD is evaluated. The optimization of industrial pre-cooling of beef carcasses using a comprehensive CFD model is also reviewed as another case study.

AI-enabled blockchain, with its added advantage of decentralized, distributed data storage, enables better agri-food management with enhanced traceability and transparency. The food industry is also exploring the benefits of blockchain technology and next generation genome sequencing for traceability of pathogen outbreaks to ensure food safety. Even though CFD has been a conventional modeling tool in food processing for the last decade, recent computational advancements will enable CFD to be an obligatory tool for optimization of food quality and safety operations. Further, CFD can also facilitate food industries to expand and develop new process strategies corresponding to the demands in the market, while also maintaining high levels of product quality. Therefore, quantitative assessment of the quality and safety of food products is deemed to be highly essential for both the manufacturers and consumers.

4.3 Outlook

Future food safety guidelines to ensure food quality and safety insist on embracing advanced computational tools as an essential part of the global food supply-cum-processing chain. AI-enabled blockchain has the potential to address the challenges of sustainable development goals (SDG) to achieve food security, improve nutrition and promote sustainable agriculture by predicting the environmental effects on nutritional quality and safety of food. In this regard, there is a need to focus on the emerging concern of micropollutants such as heavy metals, pesticides and its end-to-end traceability in vegetables and seafoods across the food chain, in order to predict any foodborne outbreaks. Further, from a policy perspective, a stringent regulatory framework has to be mandated for providing the quality standards information for primary processed food products such as rice, cereals, fruits, vegetables etc. sold by the retail chain along with back-end traceability to locate the agricultural practices of fruits and vegetables. Additionally, usage of big data analytics, though currently in its infancy, will be highly useful in food safety and quality in near future, as it can improve the efficiency of the entire food processing chain by providing predictive insights, correlations, hidden patterns and taking real-time decisions.

CFD aids food manufacturers to stay in complete control of every aspect of food production from the initial to the final stage, thereby delivering a high quality product that is most desirable to the consumer. The continuous advancements in computational technology, parallel processing, advances in numerical methods and persistent effort from CFD researchers are the key factors that will make integration of CFD in food processing conceivable in the near future. Deep machine learning will also be an enabling tool to improve the speed, accuracy, applicability and user-friendliness of the CFD software. Although the modeling platforms of AI, blockchain and CFD have been rigorously adopted in other domains, it is still in its infancy in the agri-food supply chain sector and requires implementation supported by strong research. The advancements in traceability of agri-food products, effective maintenance of operating conditions, and monitoring the quality and integrity of foods pre- and post- processing using emerging advanced computational tools are key to minimize quality issues in the food industry to ensure overall food safety.