{"id":1221,"date":"2025-06-10T02:59:21","date_gmt":"2025-06-10T02:59:21","guid":{"rendered":"https:\/\/smartdata.ece.ufl.edu\/?p=1221"},"modified":"2026-04-07T13:09:38","modified_gmt":"2026-04-07T13:09:38","slug":"k-svd-dictionary-learning-for-damage-detection-repository","status":"publish","type":"post","link":"https:\/\/smartdata.ece.ufl.edu\/index.php\/2025\/06\/10\/k-svd-dictionary-learning-for-damage-detection-repository\/","title":{"rendered":"K-SVD Dictionary Learning for Damage Detection 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 wp-element-button\" href=\"https:\/\/codeocean.com\/capsule\/6788699\/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\"><strong>K-SVD Dictionary Learning for Damage Detection<\/strong> is a baseline-free, data-driven approach for detecting structural damage using guided ultrasonic waves. Developed by <strong>Supreet Alguri<\/strong> and <strong>Dr. Joel B. Harley<\/strong>, this method eliminates the need for pristine baseline measurements\u2014a major limitation in many real-world Structural Health Monitoring (SHM) systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This <a class=\"\" href=\"https:\/\/codeocean.com\/capsule\/6788699\/tree\/v1\">CodeOcean capsule<\/a> provides a reproducible implementation of the algorithm, as described in the paper:<\/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>Alguri, K. S., Melville, J., &amp; Harley, J. B. (2018).<\/strong> <em>Baseline-free guided wave damage detection with surrogate data and dictionary learning<\/em>. The Journal of the Acoustical Society of America, 143(6), 3320\u20133331. <a href=\"https:\/\/doi.org\/10.1121\/1.5042240\">https:\/\/doi.org\/10.1121\/1.5042240<\/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\">? The Challenge: Baseline-Free Damage Detection<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most guided wave damage detection methods rely on <strong>baseline signals<\/strong>\u2014measurements from an undamaged structure. But in real-world environments, obtaining such baselines is often impractical or impossible due to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Aging infrastructure<\/strong><\/li>\n\n\n\n<li><strong>Limited access to pristine states<\/strong><\/li>\n\n\n\n<li><strong>Environmental variability over time<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This algorithm solves that problem<\/strong> by learning the characteristics of undamaged behavior directly from current (possibly damaged) data\u2014<strong>no prior baseline required.<\/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: Dictionary Learning via K-SVD<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The method uses the <strong>K-SVD algorithm<\/strong> to learn a dictionary of atoms (signal features) that represent the undamaged wavefield behavior. If a new signal <strong>cannot be well-represented<\/strong> by this learned dictionary, it&#8217;s likely that <strong>damage is present<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step-by-step:<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Collect signals<\/strong> from a sensor network on the structure.<\/li>\n\n\n\n<li><strong>Learn a dictionary<\/strong> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-592deb6be656598bd9244d42b68fba48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#68;&#32;&#92;&#105;&#110;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#82;&#125;&#94;&#123;&#110;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#75;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"82\" style=\"vertical-align: -1px;\"\/> using the K-SVD algorithm:\n<ul class=\"wp-block-list\">\n<li>Solve: <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-ed56b7dc0130e3c7be9a5fc5c84b18ac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#105;&#110;&#95;&#123;&#68;&#44;&#32;&#88;&#125;&#32;&#92;&#124;&#89;&#32;&#45;&#32;&#68;&#88;&#92;&#124;&#95;&#70;&#94;&#50;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#115;&#46;&#116;&#46;&#125;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#124;&#120;&#95;&#105;&#92;&#124;&#95;&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#84;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"298\" style=\"vertical-align: -6px;\"\/>\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-42ae22abcaa05c2d6c2fdc3746446019_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#89;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>: matrix of training signals<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-996ff7036e644e89f8ac379fa58d0cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>: sparse coefficients<\/li>\n\n\n\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-5cc0883377e1daf995d90c7b93cf1854_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: -3px;\"\/>\u200b: sparsity constraint<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Compute reconstruction error<\/strong> for new measurements:\n<ul class=\"wp-block-list\">\n<li>For a new signal <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-38461fc041e953482219abf5d4cce1cb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\"\/>, solve: <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-82355735d92522dd7031fc557ee60217_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#105;&#110;&#95;&#120;&#32;&#92;&#124;&#121;&#32;&#45;&#32;&#68;&#120;&#92;&#124;&#95;&#50;&#94;&#50;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#115;&#46;&#116;&#46;&#125;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#124;&#120;&#92;&#124;&#95;&#48;&#32;&#92;&#108;&#101;&#113;&#32;&#84;&#95;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"258\" style=\"vertical-align: -5px;\"\/>\u200b<\/li>\n\n\n\n<li>If the error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/smartdata.ece.ufl.edu\/wp-content\/ql-cache\/quicklatex.com-627e59a0a79afea0b6734a4ef99d06a6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#121;&#32;&#45;&#32;&#68;&#120;&#92;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"70\" style=\"vertical-align: -5px;\"\/> exceeds a threshold, <strong>damage is detected<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\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 This Capsule?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 Full MATLAB implementation of K-SVD and sparse coding<\/li>\n\n\n\n<li>? Synthetic and experimental guided wave datasets<\/li>\n\n\n\n<li>? Tools for computing reconstruction errors and generating detection maps<\/li>\n\n\n\n<li>? Documentation and examples for ease of use<\/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\">? Why Use This Method?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>? <strong>No baseline required<\/strong> \u2014 Learn \u201chealthy\u201d behavior directly from operational data.<\/li>\n\n\n\n<li>\u26a1 <strong>Robust to variability<\/strong> \u2014 Handles environmental and operational changes without false positives.<\/li>\n\n\n\n<li>? <strong>Data-driven<\/strong> \u2014 Uses machine learning to discover signal patterns without physical modeling.<\/li>\n\n\n\n<li>? <strong>Portable and scalable<\/strong> \u2014 Suitable for both small and large structures.<\/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>Alguri, K. S., Melville, J., &amp; Harley, J. B. (2018).<\/strong> <em>Baseline-free guided wave damage detection with surrogate data and dictionary learning<\/em>. <em>The Journal of the Acoustical Society of America<\/em>, 143(6), 3320\u20133331.<br>? <a href=\"https:\/\/doi.org\/10.1121\/1.5042753\" data-type=\"link\" data-id=\"https:\/\/doi.org\/10.1121\/1.5042753\">https:\/\/doi.org\/10.1121\/1.5042753<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>K-SVD Dictionary Learning for Damage Detection is a baseline-free, data-driven approach for detecting structural damage using guided ultrasonic waves. Developed by Supreet Alguri and Dr. Joel B. Harley, this method eliminates the need for pristine baseline measurements\u2014a major limitation in many real-world Structural Health Monitoring (SHM) systems.<\/p>\n<p>This CodeOcean capsule provides a reproducible implementation of the algorithm, as described in the paper:<\/p>\n","protected":false},"author":1,"featured_media":846,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[17,16,14,40,13],"class_list":["post-1221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-resources","tag-eigenmodes","tag-linear-algebra","tag-nondestructive-testing","tag-sparse-wavenumber-analysis","tag-structural-health-monitoring"],"_links":{"self":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1221","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=1221"}],"version-history":[{"count":3,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1221\/revisions"}],"predecessor-version":[{"id":1414,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/posts\/1221\/revisions\/1414"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/media\/846"}],"wp:attachment":[{"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/media?parent=1221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/categories?post=1221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdata.ece.ufl.edu\/index.php\/wp-json\/wp\/v2\/tags?post=1221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}