{"id":1251,"date":"2025-06-17T13:38:00","date_gmt":"2025-06-17T13:38:00","guid":{"rendered":"https:\/\/smartdata.ece.ufl.edu\/?p=1251"},"modified":"2026-04-07T13:09:38","modified_gmt":"2026-04-07T13:09:38","slug":"dynamic-time-warping-for-temperature-compensation-repository","status":"publish","type":"post","link":"https:\/\/smartdata.ece.ufl.edu\/index.php\/2025\/06\/17\/dynamic-time-warping-for-temperature-compensation-repository\/","title":{"rendered":"Dynamic Time Warping for Temperature Compensation Repository"},"content":{"rendered":"\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-text-align-center wp-element-button\" href=\"https:\/\/codeocean.com\/capsule\/3915872\/tree\/v1\">Get the Code (Code Ocean)<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Guided wave Structural Health Monitoring (SHM) systems are powerful tools for detecting damage in structures like aircraft fuselages, pipelines, and bridges. However, one major obstacle persists: <strong>temperature variation<\/strong>. Even small temperature changes can significantly distort guided wave signals, often leading to <strong>false positives<\/strong> or <strong>missed damage<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter <strong>Dynamic Time Warping (DTW) Temperature Compensation<\/strong> \u2014 a robust, data-driven algorithm developed by <strong>Alexander Douglass<\/strong> and <strong>Dr. Joel B. Harley<\/strong> that aligns guided wave signals distorted by temperature, improving the accuracy and reliability of damage detection without requiring physical models or manual calibration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This <a class=\"\" href=\"https:\/\/codeocean.com\/capsule\/3915872\/tree\/v1\">CodeOcean capsule<\/a> contains a complete implementation of the DTW compensation algorithm, based on the research in:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Douglass, A. C. S., &amp; Harley, J. B. (2018).<\/strong> <em>Dynamic Time Warping Temperature Compensation for Guided Wave Structural Health Monitoring.<\/em> IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control, 65(5), 851\u2013861.<br><a>https:\/\/doi.org\/10.1109\/TUFFC.2018.2812697<\/a><\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2744\ufe0f? The Challenge: Temperature Effects in Guided Waves<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In guided wave SHM, a baseline signal (recorded under one temperature) is compared to a new signal (recorded at a different time and possibly a different temperature). But temperature changes can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Alter <strong>wave speeds<\/strong><\/li>\n\n\n\n<li>Shift <strong>arrival times<\/strong><\/li>\n\n\n\n<li>Cause <strong>dispersion and mode conversion<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This makes it hard to distinguish between <strong>actual damage<\/strong> and <strong>temperature-induced variations<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">? The Solution: Dynamic Time Warping (DTW)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Dynamic Time Warping is a classical algorithm used to align time series that may be out of sync\u2014used in applications from speech recognition to motion analysis. Douglass and Harley adapted DTW for SHM by <strong>non-linearly aligning temperature-distorted signals<\/strong> to their baseline, allowing for meaningful comparison.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Here&#8217;s how it works:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Let:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-3247bbe45b488ba37460cf6b911d42a1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#120;&#125;&#32;&#61;&#32;&#91;&#120;&#95;&#49;&#44;&#32;&#120;&#95;&#50;&#44;&#32;&#46;&#46;&#46;&#44;&#32;&#120;&#95;&#110;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"136\" style=\"vertical-align: -5px;\"\/>: baseline signal<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-2e30f7e61510289ac496c5f329490cd4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#121;&#125;&#32;&#61;&#32;&#91;&#121;&#95;&#49;&#44;&#32;&#121;&#95;&#50;&#44;&#32;&#46;&#46;&#46;&#44;&#32;&#121;&#95;&#109;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"135\" style=\"vertical-align: -5px;\"\/>: test signal (possibly at a different temperature)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">DTW finds an <strong>optimal alignment path<\/strong> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-ed7678864de5d2f3ff6739ada3fd00e9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> that minimizes the total warping cost: <p class=\"ql-center-displayed-equation\" style=\"line-height: 75px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-62271bb60eaa2e2fc4488095c104c1f7_l3.png\" height=\"75\" width=\"339\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#68;&#40;&#105;&#44;&#32;&#106;&#41;&#32;&#61;&#32;&#92;&#109;&#105;&#110;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#99;&#97;&#115;&#101;&#115;&#125;&#32;&#68;&#40;&#105;&#45;&#49;&#44;&#32;&#106;&#41;&#44;&#32;&#92;&#92;&#32;&#68;&#40;&#105;&#44;&#32;&#106;&#45;&#49;&#41;&#44;&#32;&#92;&#92;&#32;&#68;&#40;&#105;&#45;&#49;&#44;&#32;&#106;&#45;&#49;&#41;&#32;&#92;&#101;&#110;&#100;&#123;&#99;&#97;&#115;&#101;&#115;&#125;&#32;&#43;&#32;&#100;&#40;&#120;&#95;&#105;&#44;&#32;&#121;&#95;&#106;&#41;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Where:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-aa6aff88e1f9c3c2b6d324d656b03056_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#68;&#40;&#105;&#44;&#32;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"50\" style=\"vertical-align: -5px;\"\/> is the cumulative cost matrix,<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-adde33d72dbcb913df891fa4e7017733_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;&#40;&#120;&#95;&#105;&#44;&#32;&#121;&#95;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"61\" style=\"vertical-align: -6px;\"\/>) is a distance metric (e.g., squared error) between signal samples.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Once aligned, the signals can be directly compared for damage detection\u2014now robust to temperature changes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">? Results and Benefits<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In experimental tests on an aluminum plate with temperature variations between <strong>20\u00b0C and 60\u00b0C<\/strong>, the DTW algorithm:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reduced <strong>false alarm rates<\/strong><\/li>\n\n\n\n<li>Improved <strong>damage localization accuracy<\/strong><\/li>\n\n\n\n<li>Required <strong>no temperature sensors or prior modeling<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">? What\u2019s Inside the Capsule?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>? MATLAB code for Dynamic Time Warping alignment and compensation<\/li>\n\n\n\n<li>? Experimental guided wave datasets across varying temperatures<\/li>\n\n\n\n<li>? Signal alignment visualizations and detection performance metrics<\/li>\n\n\n\n<li>? Clear documentation and usage instructions<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Why Use This Algorithm?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>?\ufe0f <strong>Temperature-robust<\/strong>: Accurate signal comparison without explicit modeling<\/li>\n\n\n\n<li>? <strong>Model-free<\/strong>: No physical propagation models or temperature calibration required<\/li>\n\n\n\n<li>?\ufe0f <strong>Drop-in ready<\/strong>: Easily integrates into existing guided wave SHM systems<\/li>\n\n\n\n<li>\u26a1 <strong>Lightweight and fast<\/strong>: Efficient computation, even for large datasets<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">? Reference<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Douglass, A. C. S., &amp; Harley, J. B. (2018).<\/strong> <em>Dynamic Time Warping Temperature Compensation for Guided Wave Structural Health Monitoring<\/em>. <em>IEEE Transactions on Ultrasonics, Ferroelectrics, and Frequency Control<\/em>, 65(5), 851\u2013861.<br>? <a>https:\/\/doi.org\/10.1109\/TUFFC.2018.2812697<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">This capsule equips you with a robust and accessible tool to <strong>compensate for temperature effects<\/strong> in guided wave SHM\u2014unlocking more reliable damage detection across seasons, climates, and real-world environments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guided wave Structural Health Monitoring (SHM) systems are powerful tools for detecting damage in structures like aircraft fuselages, pipelines, and bridges. However, one major obstacle persists: temperature variation. Even small temperature changes can significantly distort guided wave signals, often leading to false positives or missed damage.<\/p>\n<p>Enter Dynamic Time Warping (DTW) Temperature Compensation \u2014 a robust, data-driven algorithm developed by Alexander Douglass and Dr. Joel B. Harley that aligns guided wave signals distorted by temperature, improving the accuracy and reliability of damage detection without requiring physical models or manual calibration.<\/p>\n","protected":false},"author":1,"featured_media":921,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[46,15,14,13,47,48],"class_list":["post-1251","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-resources","tag-dynamic-time-warping","tag-materials","tag-nondestructive-testing","tag-structural-health-monitoring","tag-temperature","tag-time-series"],"_links":{"self":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/comments?post=1251"}],"version-history":[{"count":4,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1251\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1251\/revisions\/1254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/media\/921"}],"wp:attachment":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/media?parent=1251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/categories?post=1251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/tags?post=1251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}