{"id":160079,"date":"2025-04-02T16:31:52","date_gmt":"2025-04-02T11:01:52","guid":{"rendered":"https:\/\/www.electronicsforu.com\/?p=160079"},"modified":"2025-05-02T16:15:45","modified_gmt":"2025-05-02T10:45:45","slug":"engine-fault-detection-ai","status":"publish","type":"post","link":"https:\/\/www.electronicsforu.com\/electronics-projects\/engine-fault-detection-ai","title":{"rendered":"AI Vehicle Predictive Maintenance"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"178\" height=\"163\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2024\/07\/efy-tested-1.jpg\" alt=\"\" class=\"wp-image-143513\"\/><\/figure><\/div>\n\n\n<p>Modern vehicle engines emit distinct sounds when operating normally or malfunctioning. AI-driven continuous monitoring detects abnormalities early, preventing costly breakdowns. <\/p>\n\n\n\n<p>This system leverages Google Teachable Machine to train an AI model to differentiate between normal and faulty engine sounds. Designed for predictive maintenance, the system offers a low-cost, efficient solution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"p\">POC Video Tutorial<\/h2>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"dSxeBM0IiNb1vXan48jLOl3GCkDm2cVh95ZTUyAfHtFY7rPs\"><iframe loading=\"lazy\" title=\"Vehicle Predictive Maintenance (Engine Fault Detection) with AI | Electronics For You\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/rLk92QcKZMk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#p\">POC Video Tutorial<\/a><\/li><li><a href=\"#teachable-machine-model\">Teachable Machine Model<\/a><\/li><li><a href=\"#creating-the-ai-model-using-teachable-machine\">Creating the AI model using Teachable Machine<\/a><\/li><li><a href=\"#modifying-the-teachable-machine-code\">Modifying the Teachable Machine Code<\/a><\/li><li><a href=\"#testing-and-running-the-system\">Testing and Running the System<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"teachable-machine-model\"><strong>Teachable Machine Model<\/strong><\/h2>\n\n\n\n<p>A machine learning model is trained to recognise normal and abnormal engine sounds. It runs in a browser, continuously monitoring the engine\u2019s sound. If an anomaly is detected, it immediately triggers an alert.<\/p>\n\n\n\n<p>When the AI model detects an abnormal condition, it sends an HTTP request to the <a href=\"https:\/\/indus.electronicsforu.com\/\">IndusBoard Coin<\/a>. The IndusBoard Coin, acting as a web server, receives and processes the alert.<\/p>\n\n\n\n<p>The IndusBoard Coin hosts a webpage that visually displays the system status. If a fault is detected, the page turns red and shows an alert message. Simultaneously, the IndusBoard Coin activates a blinking LED as a warning indicator.<\/p>\n\n\n\n<p>Fig. 1 shows the webpage UI running the trained ML model. Fig. 2 shows the prototype with an IndusBoard Coin. The components required to build this system are listed in the Bill of Materials table. Fig. 3 shows the ML model being trained in Teachable Machine.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"374\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Webpage-UI-running-the-trained-ML-model.jpg\" alt=\"Teachable Machine Model Webpage UI running the trained ML\" class=\"wp-image-160088\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Webpage-UI-running-the-trained-ML-model.jpg 800w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Webpage-UI-running-the-trained-ML-model-500x234.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Webpage-UI-running-the-trained-ML-model-696x325.jpg 696w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Fig. 1: Webpage UI running the trained ML model<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"442\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Authors-prototype-5.jpg\" alt=\"Prototype of Engine Fault Detection by Sound\" class=\"wp-image-160089\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Authors-prototype-5.jpg 600w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Authors-prototype-5-500x368.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Authors-prototype-5-570x420.jpg 570w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Authors-prototype-5-80x60.jpg 80w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><figcaption class=\"wp-element-caption\">Fig. 2: Author\u2019s prototype of Engine Fault Detection by Sound<\/figcaption><\/figure><\/div>\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td colspan=\"3\"><strong>Bill of Materials<\/strong><\/td><\/tr><tr><td><strong>Component<\/strong><\/td><td><strong>Specification<\/strong><\/td><td><strong>Quantity<\/strong><\/td><\/tr><tr><td>IndusBoard Coin<\/td><td>Coin V2 development board<\/td><td>1<\/td><\/tr><tr><td>Laptop<\/td><td>For simulation<\/td><td>1<\/td><\/tr><tr><td>Car engine<\/td><td>Any working vehicle engine or motor for testing<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"641\" src=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Training-the-ML-model-in-the-Teachable-Machine.jpg\" alt=\"AI based Predictive Maintenance for Vehicles\" class=\"wp-image-160090\" srcset=\"https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Training-the-ML-model-in-the-Teachable-Machine.jpg 1000w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Training-the-ML-model-in-the-Teachable-Machine-500x321.jpg 500w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Training-the-ML-model-in-the-Teachable-Machine-655x420.jpg 655w, https:\/\/www.electronicsforu.com\/wp-contents\/uploads\/2025\/03\/Training-the-ML-model-in-the-Teachable-Machine-696x446.jpg 696w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Fig. 3: Training the ML model in the Teachable Machine<\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"creating-the-ai-model-using-teachable-machine\"><strong>Creating the AI model using Teachable Machine<\/strong><\/h2>\n\n\n\n<div class=\"mepr_error\"><div class=\"prime-members\">\n<h4><strong>OOPS! THIS IS EFY PRIME CONTENT...<br \/>\n<\/strong><span style=\"color: #333333;font-family: Verdana, BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;font-size: 14px\">which means that you need to be an EFY PRIME subscriber to read it.<\/span><\/h4>\n<p>EFY PRIME content is our best content. Hence, you need to make a small investment to access all of our content including EFY Prime content.<\/p>\n<p>If you're already an EFY PRIME member, feel free to login below.<\/p>\n<p>Else, <strong><a href=\"https:\/\/www.electronicsforu.com\/plans\/efy-prime-subscription-plans\" target=\"_blank\" rel=\"noopener\">CLICK HERE<\/a><\/strong> to invest in an EFY Prime account and become our VIP customer who can access all our content, and that too without the clutter of ads!<\/p>\n<p>BENEFITS OF EFY PRIME MEMBERSHIP:<br \/>\n(1) Zero Clutter AD free experience<br \/>\n(2) Super-fast user experience<br \/>\n(3) Focussed reading experience with no distractions<br \/>\n(4) Access to all our content including our Best-of-Best which is EFY Prime\n<\/p><\/div>\n<\/div><div>\n<div class=\"mp_wrapper mp_login_form\">\n                  <!-- mp-login-form-start -->     <form name=\"mepr_loginform\" id=\"mepr_loginform\" class=\"mepr-form\" action=\"https:\/\/www.electronicsforu.com\/login\" method=\"post\">\n            <div class=\"mp-form-row mepr_username\">\n        <div class=\"mp-form-label\">\n                              <label for=\"user_login\">Username<\/label>\n        <\/div>\n        <input type=\"text\" name=\"log\" id=\"user_login\" value=\"\" \/>\n      <\/div>\n      <div class=\"mp-form-row mepr_password\">\n        <div class=\"mp-form-label\">\n          <label for=\"user_pass\">Password<\/label>\n          <div class=\"mp-hide-pw\">\n            <input type=\"password\" name=\"pwd\" id=\"user_pass\" value=\"\" \/>\n            <button type=\"button\" class=\"button mp-hide-pw hide-if-no-js\" data-toggle=\"0\" aria-label=\"Show password\">\n              <span class=\"dashicons dashicons-visibility\" aria-hidden=\"true\"><\/span>\n            <\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n            <div>\n        <label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Remember Me<\/label>\n      <\/div>\n      <div class=\"mp-spacer\">&nbsp;<\/div>\n      <div class=\"submit\">\n        <input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary mepr-share-button \" value=\"Log In\" \/>\n        <input type=\"hidden\" name=\"redirect_to\" value=\"\/wp-json\/wp\/v2\/posts\/160079\" \/>\n        <input type=\"hidden\" name=\"mepr_process_login_form\" value=\"true\" \/>\n        <input type=\"hidden\" name=\"mepr_is_login_page\" value=\"false\" \/>\n      <\/div>\n    <\/form>\n    <div class=\"mp-spacer\">&nbsp;<\/div>\n    <div class=\"mepr-login-actions\">\n      <a href=\"https:\/\/www.electronicsforu.com\/login?action=forgot_password\">Forgot Password<\/a>\n    <\/div>\n\n      \n    <!-- mp-login-form-end --> \n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Modern vehicle engines emit distinct sounds when operating normally or malfunctioning. AI-driven continuous monitoring detects abnormalities early, preventing costly breakdowns. This system leverages Google Teachable Machine to train an AI model to differentiate between normal and faulty engine sounds. Designed for predictive maintenance, the system offers a low-cost, efficient solution. POC Video Tutorial Teachable Machine [&hellip;]<\/p>\n","protected":false},"author":33369,"featured_media":160089,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,6070,11962,11851],"tags":[12682,110],"class_list":{"0":"post-160079","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-electronics-projects","8":"category-hardware-diy","9":"category-advanced-projects","10":"category-efy-prime","11":"category-super-innovative-projects","12":"tag-apr-2025","13":"tag-electronics-projects"},"_links":{"self":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/160079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/users\/33369"}],"replies":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/comments?post=160079"}],"version-history":[{"count":2,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/160079\/revisions"}],"predecessor-version":[{"id":162574,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/posts\/160079\/revisions\/162574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media\/160089"}],"wp:attachment":[{"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/media?parent=160079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/categories?post=160079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.electronicsforu.com\/wp-json\/wp\/v2\/tags?post=160079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}