<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohamad Farhat on Medium]]></title>
        <description><![CDATA[Stories by Mohamad Farhat on Medium]]></description>
        <link>https://medium.com/@muhammedf33?source=rss-4de0401c1ca5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dql7u6kJqqAE6cNE</url>
            <title>Stories by Mohamad Farhat on Medium</title>
            <link>https://medium.com/@muhammedf33?source=rss-4de0401c1ca5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:10:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhammedf33/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Innovating Aviation Safety]]></title>
            <link>https://medium.com/alten-uk-innovation-lab/innovating-aviation-safety-e659f3346fad?source=rss-4de0401c1ca5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e659f3346fad</guid>
            <category><![CDATA[predictive-maintenance]]></category>
            <category><![CDATA[safety-management-system]]></category>
            <category><![CDATA[composite]]></category>
            <category><![CDATA[aerospace]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Mohamad Farhat]]></dc:creator>
            <pubDate>Wed, 30 Aug 2023 09:52:18 GMT</pubDate>
            <atom:updated>2023-08-30T09:52:18.155Z</atom:updated>
            <content:encoded><![CDATA[<h4>Machine Learning’s Role in Advancing the Detection of Barely Visible Impact Damage in Carbon Fibre Composites</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*FWYBirDuLHLwtoOvcE5DFw.png" /><figcaption>Figure 1</figcaption></figure><h3><strong>Introduction</strong></h3><p>Carbon Fibre Reinforced Polymers (CFRPs) are extensively utilized in the aerospace industry, owing to their remarkable properties. They offer exceptional strength and stiffness while maintaining a lightweight profile compared to conventional materials like Aluminium. This makes them an ideal choice for various aircraft components such as wings, fuselage sections, and control surfaces.</p><p>Throughout an aircraft’s lifespan, CFRP structures commonly encounter low-energy impacts, which can lead to damage known as Barely Visible Impact Damage (BVID). When undetected, BVID may jeopardize the structural integrity of CFRP components, with potential to induce catastrophic failure modes. Ensuring the timely detection and management of BVID is therefore critical for aircraft reliability and maintenance.</p><p>This project involved the utilization of machine learning techniques to analyse damage signals and identify BVID events. We attempt to replace traditional non-destructive testing (NDT) methods, like ultrasonic testing and X-ray imaging, with piezoelectric sensors. The main goal of the project was to showcase the practical application of machine learning in damage signal analysis, facilitating the efficient detection of BVID. Through the incorporation of budget-friendly piezoelectric sensors, we aimed to introduce an innovative and cost-effective approach to predictive maintenance.</p><h3><strong>Background</strong></h3><p>In the aerospace industry, non-destructive testing (NDT) is an essential practice for identifying damage within components without causing further harm. Traditional NDT methods have been widely utilized, each offering specific strengths as well as limitations.</p><p>Ultrasonic testing involves sending high-frequency sound waves into a material to detect internal irregularities. This technique provides valuable information about the material’s integrity, however it requires skilled technicians and specialized equipment. This can make the process relatively expensive and time-consuming. X-ray imaging is another widely employed NDT method that can reveal hidden defects within materials at a greater depth than ultrasound testing. By offering a comprehensive view of the internal structure, X-ray testing allows for the precise detection of flaws. Nevertheless, significant cost of X-ray testing is a significant concern, with expenses associated with X-ray sources, safety measures, and the need for trained personnel.</p><p>These limitations have prompted the exploration of alternative approaches to NDT in the aerospace industry. One such approach involves the integration of machine learning techniques, which hold the potential to address the challenges posed by traditional methods. By leveraging machine learning algorithms, NDT can be made more efficient, cost-effective, and capable of continuous real-time monitoring.</p><p>The project’s objective was to demonstrate the application of machine learning techniques to damage signal analysis, enabling efficient detection of Barely Visible Impact Damage (BVID) events. By utilizing low-cost piezoelectric sensors, our objective was to present an innovative and economical approach for predictive maintenance. Whilst acknowledging the importance of traditional NDT methods, the lab aimed to showcase the distinct benefits and improvements our proposed method brings to the field of aviation safety.</p><h3>Damage Extent Analysis</h3><h4>Dataset with signal analysis</h4><p>The dataset used in this study was obtained from <a href="https://www.nasa.gov/content/prognostics-center-of-excellence-data-set-repository">NASA Ames</a>[1] and is derived from fatigue aging experiments conducted on CFRP coupons. In this study, we extracted specific layup and specimen damage signals from the dataset for analysis. The actuator and sensor configuration on the coupon is shown in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*NpW9vdr1GSe5eUtsRzwVzA.png" /><figcaption>Figure 2 CFRP coupon with PZT actuators and sensors</figcaption></figure><p>Our implemented model operated on both raw signal data and features extracted from signal data, utilizing a variety of Machine Learning (ML) algorithms. The outcomes obtained varied depending on the number of target classes used in the evaluation process. Notably, when evaluating damage patterns, the model demonstrated enhanced efficacy in accurately classifying damage based on stress cycles, in contrast to visible cracks.</p><h4>Manual Feature Extraction Model</h4><p>The dataset comprised of two types of data: processed data and raw signals. To process the data, we applied two signal processing techniques, namely the Fast-Fourier Transform (FFT) and Cross-Correlation (Xcorr). The FFT converts the time series into the frequency domain, breaking down the signal into its constituent frequencies, while Xcorr returns the cross-correlation of two time series. Ten unique features such as mean, RMS, and Skewness were extracted from the FFT signals to train the machine learning algorithm. In contrast, only two extracted features (time delay and amplitude ratio) were used with Xcorr.</p><p>The features from the processed signals were then passed into the following machine learning models: Random Forest (RF), K-Nearest Neighbours (KNN), Decision Tree (DT), and Support Vector Machine (SVM). This was then repeated for multiple specimens with different layups in a range of different classes. The accuracy of the models can be seen in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*obXCjSz9Gjx3wGgszVV-hA.png" /><figcaption>Figure 3 ML models accuracy summary for Layup 1 Specimens 11 and 12 and Layup 2 specimen 11</figcaption></figure><p>Xcorr-based features showed consistently better results with multiple specimens than FFT-based features across the class ranges. Specifically, SVM with Xcorr features exhibited substantially enhanced accuracy in comparison to the other models.</p><h4>Automated Signal Processing Model</h4><p>Further, the lab investigated the potential of Neural Networks to enhance analysis, specifically exploring two distinct neural network architectures: Time-Series Convolutional 1D model, and InceptionTime. Leveraging the automatic feature extraction capability of neural networks, raw signal data was inputted into these models. Among the architectures explored, InceptionTime produced the highest accuracy. This model’s ability to perform automatic feature extraction and detect patterns in complex time series within the raw signal data allows it to classify damage patterns with a high level of accuracy. This was expected due to the model’s architecture being tailored towards time series data.</p><h3>Damage Localisation</h3><p>To enhance the scope of the project, damage localisation on CFRP components was investigated using piezoelectric signals. The dataset made use of a system of actuators and sensors, and as a result there were 36 unique paths which could be used to identify areas of prominent damage. This was achieved by employing a damage factor for each path, with a probability ellipse spatial distribution function. This distribution was used as a weighting for these damage factors when assessing the probability of damage at any given point within the composite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*FTb3E5zvnUyK1jUB8TpOrw.png" /><figcaption>Figure 4 X-ray image from dataset</figcaption></figure><p>Figure 4 above shows an X-ray image of a CFRP coupon after 90,000 stress cycles. This scenario was used as a reference for validating the accuracy of approaches to localising damage.</p><h4>Numerical Approach: Difference Method</h4><p>The initial approach for the damage factor was based on numerical relations between damaged and undamaged signals. The first numeric model made use of the squared sum of the difference between baseline and damaged piezoelectric signals to determine the extent of damage along a path. The results of this model were ultimately poor and didn’t accurately identify damaged areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*_Go-h32QNJFb72EAZjyq0w.png" /><figcaption>Figure 5 Signal Difference heatmap</figcaption></figure><p>Figure 5 above shows that the signal difference method generalises damage to the centre point, with an ellipse of damage forming — this denotes poor accuracy in identifying signal paths with a large amount of damage, and instead simply identifies the region of most overlap, with a small bias to damaged signals. This was not adequate for the aims of the project but validated the overall concept of the heatmap.</p><h4>Numerical Approach: Ratio Method</h4><p>A different approach described by De Fenza used a signal ratio-based comparison for the damage index, which yielded more accurate results. This method applied a Fast-Fourier transform and divided the sum of damaged signal points by the sum of undamaged signal points, producing a much clearer bias towards damaged regions of the workpiece.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*910sXq8Hn0M84w689BLKKQ.png" /><figcaption>Figure 6 Signal Ratio</figcaption></figure><p>Figure 6 above shows an improvement to results, with the heatmap correctly identifying the rough size and position of damage on the workpiece, vaguely tracing the shape of the damage observed on the X-ray.</p><h4>Machine Learning Approach: Path probability</h4><p>The first machine learning approach replaced numerically calculated damage factors with path damage probabilities from InceptionTime. These probabilities represent the likelihood a path intersects a damaged region of the component. This required the team to manually inspect the relevant X-rays and label each path with a 1 or a 0 according to whether the path intersected a damaged region. The labelled data was then fed into InceptionTime, and the probabilities for each path in the test set were extracted and used as the revised damage factors. The ellipse spatial distribution function was then used to estimate the probability of damage at each point. This method produced a far more accurate damage heatmap than both numerical methods. (See Figure 7)</p><h4>Machine Learning Approach: Continuous Wavelet Transform (CWT)</h4><p>The second machine learning approach involved performing single continuous wavelet transforms to convert the wave signals into 2D images. The paths were first manually labelled on the coupon depending on their proximity to damaged regions. The wavelet transform produced 36 images for each frequency, with each image corresponding to a single path. The ellipse methodology was then reused as before to generate heatmaps. Heatmaps for both machine learning approaches can be seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*xYNgw4_iIlRopsv41MkCnw.png" /><figcaption>Figure 7 ML Algorithm Heatmaps</figcaption></figure><p>Figure 7 above shows significantly improved accuracy in identifying both location and shape of damage on the coupon. Both machine learning methods replicated visible internal delamination regions with a high degree of accuracy, with the CWT method (shown on the right) displaying additional accuracy with a more refined shape for damage. This was a crucial validation of the team’s method for applying machine learning principles to this problem.</p><h3>Conclusion</h3><p>In conclusion, our innovative approach of combining raw signal data analysis with the application of ML algorithms has yielded promising results in accurately detecting and locating damage patterns. For damage detection, the team explored two distinct methods, automated signal processing and manual feature extraction. This helped to identify suitable models for identifying damage extent using signal data . The team found that automated signal processing models, namely InceptionTime, performed better with larger datasets, achieving an accuracy of 88% thus outperforming existing approaches. Additionally, the team’s damage localization methodology employed both numerical and machine learning approaches. When validated with X-ray images of damaged components, ML approaches were able to replicate damage regions with a higher accuracy compared to numerically calculated heatmaps.</p><p>In summary, our study showcases the potential of utilizing raw signal data alongside ML techniques to accurately detect and localise BVID in composites. As a result, these methods have huge potential for the aerospace industry, specifically with regards to manufacturing and predictive maintenance of components.</p><h3>Future Work</h3><p>One potential area of expansion could be to incorporate additional data to enhance the model’s generalization for various materials, such as aluminium. This expansion will ensure its versatility and effectiveness across different material types, thus enhancing the range of potential use cases. Additionally, the approaches in this study could be used to develop and host a comprehensive full-stack tool or application, providing an efficient and user-friendly experience when utilizing the model for damage detection and classification.</p><h3><strong>Team</strong></h3><p>This work was completed by the ALTEN UK Innovation Lab, who apply Data Science technologies to Engineering challenges.</p><p>The project team included: <a href="https://www.linkedin.com/in/alex-mcrae-570564175/">Alexander McRae</a>, <a href="https://www.linkedin.com/in/mohamad-farhat-bb5a57188/">Mohamad Farhat</a>, <a href="https://www.linkedin.com/in/jaswaanthiip/">Jaswaanthii Padmanabhan</a>, <a href="https://www.linkedin.com/in/daniel-ennis-6ab7151b1/">Daniel Ennis</a></p><p>Please reach out if this work excited you, if it sparked other ideas, or with any feedback!</p><h3>References:</h3><p>1. Abhinav Saxena, Kai Goebel, Cecilia C. Larrosa, and Fu-Kuo Chang “CFRP Composites Data Set”, NASA Prognostics Data Repository, NASA Ames Research Center, Moffett Field, CA</p><p>2. Dabetwar, Shweta &amp; Ekwaro-Osire, Stephen &amp; Dias, Joao. (2020). ASCE-ASME Journal of Risk and Uncertainty in Engineering System Part B Damage Classification of Composites Based on Analysis of Lamb Wave Signals Using Machine Learning. 10.13140/RG.2.2.15400.39680.</p><p>3. De Fenza, A., Sorrentino, A. and Vitiello, P., 2015. Application of Artificial Neural Networks and Probability Ellipse methods for damage detection using Lamb waves. <em>Composite Structures</em>, <em>133</em>, pp.390–403.</p><p>4. Ismail Fawaz, H., Lucas, B., Forestier, G., Pelletier, C., Schmidt, D.F., Weber, J., Webb, G.I., Idoumghar, L., Muller, P.A. and Petitjean, F., 2020. Inceptiontime: Finding alexnet for time series classification. <em>Data Mining and Knowledge Discovery</em>, <em>34</em>(6), pp.1936–1962.</p><p>5. Wang, Z., Yan, W. and Oates, T., 2017, May. Time series classification from scratch with deep neural networks: A strong baseline. In <em>2017 International joint conference on neural networks (IJCNN)</em> (pp. 1578–1585). IEEE.</p><p>6.Polytec. (2019, September 4). Aircraft Damage Detection using Laser Vibrometry. <a href="https://www.bing.com/aclk?ld=e8xouQYgBP8Q1aw2vxrOAiJDVUCUye_InXTZ4cwciAqwoCxT0FVs2ale6nJ7cdGBbgl-mn3OZk2q23BuH4KmSCPqyRF5Yf4GrrveXeXatFebCE5llAE79mBcZ-MlGf4HsUVLOLIcdaJwBJGm4IrWk6FVcymzLoXJogVVS85MsdHMHrFQ0y&amp;u=aHR0cHMlM2ElMmYlMmZjbGlja3NlcnZlLmRhcnRzZWFyY2gubmV0JTJmbGluayUyZmNsaWNrJTNmbGlkJTNkNDM3MDAwNzYxNDQzNjQ4NjQlMjZkc19zX2t3Z2lkJTNkNTg3MDAwMDgzNjY3MTgzMzUlMjZkc19hX2NpZCUzZDU5MzI3NDE0NiUyNmRzX2FfY2FpZCUzZDIwMDE4Mjg4Mzg1JTI2ZHNfYV9hZ2lkJTNkMTQ3MDE2MTM3MDIzJTI2ZHNfYV9saWQlM2Rrd2QtMzE5NTAwODI2JTI2JTI2ZHNfZV9hZGlkJTNkODE5ODI0NTQ1MTA3MDUlMjZkc19lX3RhcmdldF9pZCUzZGt3ZC04MTk4MjYxNDE5MDk5NCUzYWxvYy0xODglMjYlMjZkc19lX25ldHdvcmslM2RvJTI2ZHNfdXJsX3YlM2QyJTI2ZHNfZGVzdF91cmwlM2RodHRwcyUzYSUyZiUyZnd3dy5ncmFtbWFybHkuY29tJTJmYSUyZmNpdGF0aW9ucyUzZnV0bV9zb3VyY2UlM2RiaW5nJTI2dXRtX21lZGl1bSUzZGNwYyUyNnV0bV9jYW1wYWlnbiUzZDYyNzA4NDk2MyUyNnV0bV9jb250ZW50JTNkODE5ODI0NTQ1MTA3MDUlMjZ1dG1fdGVybSUzZGFwYSUyNTIwc3R5bGUlMjUyMGJpYmxpb2dyYXBoeSUyNmtleXdvcmRpZCUzZDgxOTgyNjE0MTkwOTk0JTI2dGFyZ2V0aWQlM2Rrd2QtODE5ODI2MTQxOTA5OTQlM2Fsb2MtMTg4JTI2YWRncm91cCUzZDEzMTE3MTc4MTc5NTE5NTElMjZkZXZpY2UlM2RjJTI2bWF0Y2h0eXBlJTNkcCUyNm5ldHdvcmslM2RvJTI2ZXh0ZW5zaW9uJTNkJTI2Y2xpY2tpZCUzZDc0ZTdmOGZmNjkwZTE2OGZlOTFiOWMyM2U3YWU1ZDRmJTI2Z2NsaWQlM2Q3NGU3ZjhmZjY5MGUxNjhmZTkxYjljMjNlN2FlNWQ0ZiUyNmdjbHNyYyUzZDNwLmRzJTI2JTI2bXNjbGtpZCUzZDc0ZTdmOGZmNjkwZTE2OGZlOTFiOWMyM2U3YWU1ZDRmJTI2dXRtX3NvdXJjZSUzZGJpbmclMjZ1dG1fbWVkaXVtJTNkY3BjJTI2dXRtX2NhbXBhaWduJTNkMjAyMyUyNTIwLSUyNTIwU2VhcmNoJTI1MjAtJTI1MjBUMSUyNTIwLSUyNTIwVW5pdGVkJTI1MjBLaW5nZG9tJTI1MjAtJTI1MjBDaXRhdGlvbnMlMjZ1dG1fdGVybSUzZGFwYSUyNTIwc3R5bGUlMjUyMGJpYmxpb2dyYXBoeSUyNnV0bV9jb250ZW50JTNkQVBBJTI1MjAtJTI1MjBCaWJsaW9ncmFwaHk&amp;rlid=74e7f8ff690e168fe91b9c23e7ae5d4f">AZoM.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e659f3346fad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alten-uk-innovation-lab/innovating-aviation-safety-e659f3346fad">Innovating Aviation Safety</a> was originally published in <a href="https://medium.com/alten-uk-innovation-lab">ALTEN UK Innovation Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contrail reduction and global heating mitigation through flight path optimisation]]></title>
            <link>https://medium.com/alten-uk-innovation-lab/contrail-reduction-and-global-heating-mitigation-through-flight-path-optimisation-7a8c9e784a27?source=rss-4de0401c1ca5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a8c9e784a27</guid>
            <category><![CDATA[global-warming]]></category>
            <category><![CDATA[radiative-forcing]]></category>
            <category><![CDATA[flightpath]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[contrail]]></category>
            <dc:creator><![CDATA[Mohamad Farhat]]></dc:creator>
            <pubDate>Tue, 09 May 2023 08:48:34 GMT</pubDate>
            <atom:updated>2023-05-09T08:48:34.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*Oidgy150Yc6ACES_m_nNhQ.png" /><figcaption>Figure 1 Contrails in the sky [17]</figcaption></figure><p>Clouds formed by aircrafts could be doing more harm to the environment than we think — here’s a tool that could help us avoid that.</p><h3>Introduction</h3><p>A study reviewing the aviation industry’s contribution to climate change between 2000 and 2018 <a href="https://www.sciencedirect.com/science/article/pii/S1352231020305689">concluded that contrails create 57%</a> of the sector’s warming impact [3]; significantly more than the CO2 emissions from burning fuel. Condensation trails, often known as contrails, are long, thin clouds that develop behind jet aircraft during flight. Water vapour condenses and turns into ice crystals when hot exhaust gases from aeroplane engines comes into contact with cold, humid air in the high atmosphere. There are specific conditions in the atmosphere that must be met for contrails to form, and a lot of studies have been done to accurately be able to predict the formation and persistence of contrails. Contrails have been seen since the beginning of aircraft, but only recently have their permanence and effects on the environment attracted scientific attention and public concern. By trapping heat in the atmosphere and enhancing the greenhouse effect, contrails have the potential to affect the global climate. This impact can be cooling or warming depending on the atmospheric conditions and time of day of the contrails forming, but the current overall effect of contrails is warming to the planet. Here we present a tool to quantify the contrail impact of a given flight path , along with presenting the user with the optimal path that the flight can take to cause the least contrail and fuel burn impact.</p><h3>Background</h3><p>Contrails have been studied heavily throughout the years which culminated in the creation of the Schmidt-Appleman criterion for contrail formation by Ulrich Schumann in 1996 [1]. This criterion specified the atmospheric conditions required that would allow contrails to form. Further studies by Schumann also delved into the persistence criterion for contrails, which allowed the estimation of their lives and the radiative forcing effects in a paper from 2012 [5]. This allowed the creation of a reliable system to be able to calculate and quantify the warming effect that contrails have on the environment, and compare it with the other carbon emissions that the aviation industry is responsible for. With IATA having a Fly Net Zero commitment to be achieved by 2050, calculating contrails and the radiative forcing from them, before avoiding them with alternative paths is already being assigned a contribution to aviation’s net zero targets.</p><h3>Objective</h3><p>The objective was to create a tool that could calculate the amount of carbon emissions caused by a flight from contrail formation and fuel consumption. This would then be combined with an optimization method to generate the most environmentally friendly flight path while respecting flight climb and descent rates. The tool would need to use the studies previously discussed to calculate the formation of the contrails across a flight path on a specific day. Then the tool should calculate the radiative forcing aspect of the contrails and convert it into a carbon emissions measurement to combine it with the fuel burned measure. This will allow us to get a complete picture of the carbon emissions of the entire flight. For this tool to be accurate and usable, it required daily global meteorological data, as well as flight paths that contained waypoint, longitude, latitude, altitude, and time information for all the flights we wanted to study.</p><h3>Weather Cells and Data Acquisition</h3><p>The implementation of a tool capable of determining contrail formation and lifetime required an array of data sources to be utilised. Firstly, a variety of short-range aircraft flightpaths were selected, with CSV files containing timestamps, altitudes, and speeds of aircraft retrieved from flightradar24 [16].<br> Once flightpath data was retrieved, weather station data from the University of Wyoming’s Radiosonde weather balloon data archive was used to create a triangular mesh, for which any point bound by the mesh contained interpolated weather data. A subset of this mesh for the area around the UK can be seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*XrJceon6RHZrQIRZ2ZFMfQ.png" /><figcaption>Figure 2 Weather Cell Mesh for UK area</figcaption></figure><p>To determine atmospheric conditions at any given point within this mesh, linear interpolation and barycentric co-ordinate weightings were used. This allowed for reasonable variation in conditions over the course of the flight and prevented arbitrary geographic cliff-edges when determining contrail formation. Given the University of Wyoming dataset contained discrete altitude measurements, it was necessary to implement a basic linear interpolation function. The code is designed to identify the three stations that enclose a flight waypoint, and retrieve the ambient temperature, dewpoint temperature at altitude readings immediately above and below the waypoint altitude. Once these datapoints are found, the atmospheric conditions at the waypoint altitude are found at all three stations using linear interpolation, before barycentric coordinate weightings are applied. A visual representation of this process can be seen in the figures below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7I2SQw6UJSTB7oIZ1s7xVA.png" /><figcaption>Figure 3 Linear interpolation for weather soundings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*jeBcLt2mDeldSqWny24Y5g.png" /><figcaption>Figure 4 <a href="https://codeplea.com/triangular-interpolation">https://codeplea.com/triangular-interpolation</a></figcaption></figure><p>Using the barycentric weightings, approximate conditions at the waypoint are found and can be applied to the Schmidt-Appleman Criterion.</p><h3>Contrail Formation and persistence</h3><h4>Contrail Formation</h4><p>A parameterised set of conditions for which contrail formation will occur has been extensively studied, and the current widely accepted theorem is the Schmidt-Appleman Criterion for Fuel Cells [1]. This theory’s purpose in the project was to provide a series of basic quantifiable conditions for contrail formation that could be determined with data for an arbitrary flightpath. The Schmidt-Appleman criterion uses a system of inequality conditions based on critical ambient temperatures to be determined by atmospheric relative humidity of water and aircraft engine parameters such as propulsive efficiency [1]; the relative humidity being determined by dewpoint and ambient temperature. If these inequality conditions are satisfied, then contrail formation can be determined:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*qCYpCRtrPNCxtPx8aWXpyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*b00r2x3x6gDacuwZI4bWZQ.png" /><figcaption>Figure 5 Schmidt-Appleman Mixing Line diagram the area between the mixing line and the saturation line is where contrails occur [14]</figcaption></figure><h4>Contrail Persistence</h4><p>Once the contrails are formed, the main factor in deciding whether they persist or not is the relative humidity of ice. When the relative humidity of ice is greater than 100% the contrails will persist [4]. Any contrail that did not meet the persistence criteria was ignored since it does not have a significant effect. The time of persistence of the contrail for this tool was assumed to be the time from the initial persistence until the contrail stops persisting.</p><h3>Impact</h3><p>The conditions for formation and persistence can be combined to calculate the impact of a contrail using the radiative forcing induced (radiative forcing is the difference between solar radiation entering and leaving the atmosphere). The parametrisation model used in this tool was derived by Ulrich Schumann [5].</p><p>The model divides radiative forcing into two principal components: longwave radiative forcing and shortwave radiative forcing. The constants in the equations are defined based on the assumption of the shape of the ice particle: for this tool the assumption was that the ice particle was spherically shaped. Using that assumption, the effective radius was also calculated using Greg McFarquhar’s 2001 study [7] which incorporated Ice water content values and temperature-dependent coefficients. For this OLR (outgoing longwave radiation) data was obtained from the National Oceanic and Atmospheric Administration [6], and solar zenith angle, solar direct radiation and reflected solar irradiance were obtained from the CAMS Radiation Service from Copernicus for each date and time that the tool was run [8].</p><p>The radiative forcing is then calculated by summing the longwave and shortwave components. A negative radiative forcing shows a cooling effect on earth’s climate, indicating that the contrail formation will reflect solar radiation while a positive value represents a net warming effect.</p><p>However, the radiative forcing number on its own does not provide insight into the full effect of a flight: a carbon emissions conversion needs to be used to convert the radiative forcing into a “kilograms of carbon” value that can be compared to the effect from fuel burnt. This enables us to combine both effects and generate a more thorough study on the effect of the entire flight. This will be required when deciding on the optimal path for the aircraft to take. To do this, a conversion factor based on the IPCC’s estimate of atmospheric doubling of CO2 was used [9]. This allowed the creation of a direct conversion from the radiative forcing obtained in the model to an applicable measure of CO2 in kilograms.</p><p>The second main part of the impact of aircraft in flight is the fuel consumption. For fuel calculations values like aircraft weight are essential so an aircraft type must be chosen. The main assumption in this section is that the aircraft being used is an Airbus A320. This is because the Airbus A320 is a common short haul flight aircraft and is used by British Airways for their flights hence making it a good example for the tools current use cases. The key pieces of information about the aircraft were obtained from a report regarding air traffic [10]. A function was created using standard aircraft fuel calculations for a turbofan engine, making use of thrust-specific fuel consumption and minimum required thrust [11]. The function interprets a flightpath dataframe with altitude, longitude, latitude, timestamp, and speed variables, and calculates fuel flow at various points in the flight, having determined the air density at altitude. The function finally produces an output of the amount of fuel burnt throughout the entire flight. A conversion factor is then used to convert that amount of fuel into a relevant kg of CO2 [12]. The fuel effect and radiative forcing effects are then summed to generate the full effect of the aircraft flight in terms of CO2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*lPEpXtIZrLdodi7QrrtFKQ.png" /><figcaption>Figure 6 Graph showing an example of a graph produced from the fuel function</figcaption></figure><h3>Heatmaps</h3><p>Using the understanding of contrail formation and its impact, the ability to create heat maps across the flight path is now possible. These heat maps would calculate the formation and persistence likelihood for areas surrounding the flightpath which will be necessary when calculating the emissions for the alternative proposed paths. The heatmap is generated by testing the formation and persistence criterion of contrails across the flight path at consistent interval altitudes within cruise levels. For the areas between the intervals, the formation and persistence were decided by the two intervals surrounding the area. The result of the heat map generation is as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*hlQmmOO0ZKxuzd_rt8d-FA.png" /><figcaption>Figure 7 heat map on a flight path the yellow areas signify a contrail forming region</figcaption></figure><p>Where the blue grid is representing of where the heatmap was applied. The yellow signifies where contrails form, and a red area would signify persistence in contrails. This heatmap is then one of the main components of the optimization part of the code, where the results from this heatmap are used to calculate the impact of radiative forcing from all the alternative paths.</p><h3>Flight path optimisation</h3><p>To finalise this project, all previous models were combined to calculate an optimised flight path with the lowest climate impact. This would be done by taking a flight path, calculating realistic alternative flight paths and their net CO2 impact, and selecting the path with the lowest impact.</p><p>The optimisation was achieved using a class of algorithms called Backtracking algorithms. These are well suited to finding all feasible paths through a connected graph. Feasible is defined by creating a suitable constraint that the algorithm must obey while searching through the paths. Backtracking works by finding a single feasible solution and backtracking until another is found, and so on until all solutions are found. To do this, a connected graph was created using the pre-defined heatmap altitudes to provide each waypoint in the flight path with several alternative altitudes, representing nodes in the graph.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*PKS-hUDQl_3o5ZcGa8pU5w.png" /><figcaption><em>Figure 8 of an example connected graph on which Backtracking has been applied to output all possible paths </em>[15]</figcaption></figure><p>The imposed constraint was an upper bound on the rate of aircraft climb or decent of 50 feet per second. This was deemed to be a reasonable limit for an aircraft that would capture all realistic alternative paths. Each calculated alternative flight path was then passed through two functions: Fuel CO2 impact and Radiative Forcing CO2 impact. A net CO2 impact was then calculated and the path with the lowest net impact was selected. That path was then compared to the original path’s CO2 impact to decide which of the two produced less CO2.</p><p>A list of all feasible alternative paths was produced, which was then passed through the two functions, and the CO2 emission in kg was calculated for each path. The path with the minimum CO2 emissions was then selected and compared to the original path to decide on the optimal flight path.</p><h3>User Interface</h3><h4>Client side</h4><p>The User interface for this web application employs HTML and CSS for style and the overall appearance. The user is provided with a form to select a flight: the day, month, and time of day must also be provided. These conditions will be applied to the flight path, weather cells, formation, persistence, impact, and optimisation calculations. A heatmap output is produced to indicate the points in time where the contrail persists for the original flight path, together with the CO2 emissions and fuel consumption.</p><p>An optimisation button when clicked will create a second plot to the optimised route and is placed next to the original for comparison.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*KLrCMKBiemvVhq0SPWn0bg.png" /><figcaption>Figure 9 Final Version of Web App</figcaption></figure><h4>Server side</h4><p>For the back end of the application, Python has been deployed. Flask, a web application framework in Python, is used to efficiently link the server side with the user interface. An API is used for retrieving flight and the weather required. (Section 2). Python libraries like SciPy have been used to decrease the calculation time. Delaunay triangulation has been used particularly for quickly determining weather stations to extract from the API. Before determining the effect, the generation of contrails is first determined, followed by the size of the contrail. Radiative Forcing (RF) is then evaluated. The conversion of the Radiative Forcing into CO2 pollution is the final step before optimisation.</p><h3>Conclusion</h3><p>Contrails, while appearing trivial, can have a substantial environmental impact and contribute to climate change. These long, thin clouds that form behind jet planes can last for hours and spread out to form cirrus-like clouds, trapping heat and contributing to the greenhouse effect. Contrails are a significant source of human-induced climate forcing, and their environmental impact is only expected to increase as air travel continues to grow.</p><p>This article tries to draw attention to the practically unnoticed impact that aeroplanes have on the world’s climate. Thus, it’s critical that we acknowledge the negative impacts of contrails and seek to find ways to lessen their negative effects on the ecosystem. One strategy for reducing the effects of contrails is to optimise flight patterns, which is what we tried to do above. We also invested in research to better understand the effects of contrails on the ecosystem. By taking action to address this issue, we can help to preserve the health of our planet and ensure a sustainable future for generations to come.</p><h3>Team</h3><p>This work was completed by the ALTEN UK Innovation Lab, who apply Data Science technologies to Engineering challenges.</p><p>The project team included: <a href="https://www.linkedin.com/in/mohamad-farhat-bb5a57188/">Mohamad FARHAT</a> , <a href="https://www.linkedin.com/in/jaswaanthii-padmanabhan-1b1325192/">Jaswaanthii PADMANABHAN</a> , <a href="https://www.linkedin.com/in/tejaswinica">Tejaswini CHENNIGARAYA ARUNKUMAR</a> , <a href="https://www.linkedin.com/in/alex-mcrae-570564175/">Alexander MCRAE</a> &amp; <a href="https://www.linkedin.com/in/daniel-ennis-6ab7151b1/">Daniel ENNIS</a></p><p>Please reach out if this work excited you, if it sparked other ideas, or with any feedback!</p><h3>References:</h3><p>[1] U. Schumann, “On condition for contrail formation from aircraft exhausts,” February 1996. [Online]. Available: <a href="https://elib.dlr.de/32128/1/mz-96.pdf">https://elib.dlr.de/32128/1/mz-96.pdf</a></p><p>[2] M. Cavcar, “The International Standard Atmosphere (ISA),” Eskisehir, Turkey. Available: <a href="http://fisicaatmo.at.fcen.uba.ar/practicas/ISAweb.pdf">http://fisicaatmo.at.fcen.uba.ar/practicas/ISAweb.pdf</a></p><p>[3] <a href="https://www.sciencedirect.com/science/article/pii/S1352231020305689">https://www.sciencedirect.com/science/article/pii/S1352231020305689</a></p><p>[4] <a href="https://core.ac.uk/download/pdf/11094433.pdf">Ulrich Schumann, On Contrail Cirrus (core.ac.uk)</a></p><p>[5] <a href="https://journals.ametsoc.org/view/journals/apme/51/7/jamc-d-11-0242.1.xml">https://journals.ametsoc.org/view/journals/apme/51/7/jamc-d-11-0242.1.xml</a></p><p>[6] <a href="https://psl.noaa.gov/data/gridded/data.olrcdr.interp.html">https://psl.noaa.gov/data/gridded/data.olrcdr.interp.html</a></p><p>[7] <a href="https://rmets.onlinelibrary.wiley.com/doi/10.1002/qj.49712757115">https://rmets.onlinelibrary.wiley.com/doi/10.1002/qj.49712757115</a></p><p>[8] <a href="https://atmosphere.copernicus.eu/sites/default/files/2022-01/CAMS2_73_2021SC1_D3.2.1_2021_UserGuide_v1.pdf">https://atmosphere.copernicus.eu/sites/default/files/2022-01/CAMS2_73_2021SC1_D3.2.1_2021_UserGuide_v1.pdf</a></p><p>[9] <a href="https://www.ipcc.ch/site/assets/uploads/2018/03/TAR-06.pdf">https://www.ipcc.ch/site/assets/uploads/2018/03/TAR-06.pdf</a></p><p>[10] <a href="https://www.carbonindependent.org/files/B851vs2.4.pdf">https://www.carbonindependent.org/files/B851vs2.4.pdf</a></p><p>[11] <a href="https://www.grc.nasa.gov/www/k-12/airplane/sfc.html">https://www.grc.nasa.gov/www/k-12/airplane/sfc.html</a></p><p>[12]<a href="https://www.iata.org/contentassets/922ebc4cbcd24c4d9fd55933e7070947/icop_faq_general-for-airline-participants.pdf">https://www.iata.org/contentassets/922ebc4cbcd24c4d9fd55933e7070947/icop_faq_general-for-airline-participants.pdf</a></p><p>[13]<a href="https://journals.ametsoc.org/view/journals/apme/51/7/jamc-d-11-0242.1.xml">https://journals.ametsoc.org/view/journals/apme/51/7/jamc-d-11-0242.1.xml</a></p><p>[14] <a href="https://www.researchgate.net/publication/244478376_The_use_of_Meteorological_Data_to_Improve_Contrail_Detection_in_Thermal_Imagery_over_Ireland">(PDF) The use of Meteorological Data to Improve Contrail Detection in Thermal Imagery over Ireland (researchgate.net)</a></p><p>[15] <a href="https://www.geeksforgeeks.org/find-paths-given-source-destination/?ref=lbp">Print all paths from a given source to a destination — GeeksforGeeks</a></p><p>[16] <a href="https://www.flightradar24.com/">Flightradar24: Live Flight Tracker — Real-Time Flight Tracker Map</a></p><p>[17] <a href="https://www.bbc.co.uk/news/business-58769351">https://www.bbc.co.uk/news/business-58769351</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a8c9e784a27" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alten-uk-innovation-lab/contrail-reduction-and-global-heating-mitigation-through-flight-path-optimisation-7a8c9e784a27">Contrail reduction and global heating mitigation through flight path optimisation</a> was originally published in <a href="https://medium.com/alten-uk-innovation-lab">ALTEN UK Innovation Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>