AC grid fault detection in on-board chargers enabling edge AI detection up to 95% accuracy
Deploy cost-effective edge AI solution on existing OBC control MCU to detect grid voltage anomalies
Application overview
?
EV/PHEV on-board chargers are vulnerable to AC grid faults with variable signatures that traditional threshold-based detection often missed, causing premature failures.
Our innovative approach leverages a Convolutional Neural Network (CNN) edge AI model trained on a proprietary grid-fault dataset. This is designed to run on the same TI MCU that also controls the OBC pwoer stage, enabling? accurate, reliable grid fault detection without additional cost. The result is superior OBC protection that can identify complex fault patterns.
Starting evaluation
Data collection
There are two primary methods to collect datasets for grid fault detection:
1) Using commercial grid monitoring devices
- Easiest approach due to devices automatically collecting and reporting grid data during adverse events our provided dataset was obtained using this method
2) Using grid-connected converters
- Deploy the same converter that will eventually run the detection algorithm?
- Operate in grid-connected mode for extended periods
Correctly identifying and tagging anomalous event intervals
Data quality assessment
The classification of AC grid faults presents significant challenges due to:
- High diversity in fault characteristics across datasets
- Absence of standardized fault classes
- Need to prioritize faults relevant to On-Board Charger (OBC) operation
To overcome these challenges, a proprietary semi-supervised annotation technique was developed that combines:
- Human expert annotationLeverages domain expertise to identify critical fault patterns
- Unsupervised hierarchical clustering
- Automatically groups similar fault patterns
- Helps identify natural categories in the data
The annotation quality is rigorously evaluated using dimensionality reduction visualization techniques which allows for verification of clear separation between fault classes and helps identify potential misclassifications or ambiguous cases.
This hybrid approach ensures fault categories are both technically meaningful for OBC operation and statistically distinguishable in the data.
Figure 1.1 - Cluster heatmap bad
Figure 1.2 - Cluster heatmap good
Figure 1.1 - Cluster heatmap bad
Build and train your model
?
With your dataset ready, explore, train, and evaluate models using the TI tinyML Model Zoo?
Find the right model for your needs
Access our library of optimized generic time-series models, scalable across performance and power requirements.
For this use case , refer to the model in the TI tinyML Model Zoo? under Examples → Grid fault detection.
Deploying your model
Start with our command line tools, our tinyml-modelzoo hosts a more extensive and flexible set of model-development tools, including Bring your own data (BYOD) or? Bring your own model (BYOM)
Choosing the right device for you
The C2000 MCU family delivers scalable performance for your broad AI need, including C29's Very Long Instruction Word (VLIW) parallel performance with F29H859TU-Q1, TinyEngine? NPU with TMS320F28P559SJ-Q1 and many others.
All the hardware, software and resources you’ll need to get started
Hardware
LAUNCHXL-F29H85X
C2000? real-time MCU F29H85x LaunchPad? development kit enable rapid development of Edge AI use case.
F29H85X-SOM-EVM
F29H85x controlSOM evaluation module enable rapid development of Edge AI use case.
LAUNCHXL-F28P55X
C2000? real-time MCU F28P55X LaunchPad? development kit enable rapid development of Edge AI use case.
Software & development tools
CCStudio? Edge AI Studio
Comprehensive set of tools for training, compiling and deploying a model to TI edge AI devices. A model selection tool is available to view pre-generated benchmarks of popular models.
CLI Tools
A command line interface for advanced users, who want to develop their own model. Use this end-to-end model development tool that contains dataset handling, model training and compilation.
F29-SDK
Foundational Software Development Kit (SDK) for F29 real-time MCUs.
Supporting resources
The starting guide shows developers which aspects they need to consider for building an Edge AI application on TI Processors, and the tools they may require to do so?