Chapter 1
Why Use AI for Simulation and Model-Based Design?
Using Simulink® models throughout your development process, an approach called Model-Based Design, is a proven way to develop complex systems with efficiency and reduced risk. Adding AI techniques to your workflow can save time and improve your designs—and you don’t need to be an AI expert to do it.
There are four main reasons for using AI for simulation and Model-Based Design:
- Improve Accuracy: Improve algorithm accuracy by using high-quality training data to build an AI algorithm.
- Tame Complexity: Use AI to replace algorithms that would be computationally complex or impossible to model with other methods.
- Save Time: Use AI to create reduced-order models of systems when high-fidelity models derived from first principles would take too long to build or simulate.
- Work together: Integrate AI models developed in open-source frameworks or MATLAB into system-level designs using Simulink.
- Develop an AI model for an algorithm that will eventually be deployed on an embedded system. For a deep dive into an example, see Chapter 2.
- Use AI for data-driven plant or environment modeling. The data used to train the AI model could come from hardware or from a high-fidelity simulation model that is too computationally intensive for system-level simulation. For a deep dive into an example of how AI can be used to create a reduced-order model of a high-fidelity component, see Chapter 3.
In many instances, an AI model can be used for both use cases. Another option is to leverage Simulink as a dynamic environment for reinforcement learning, a branch of machine learning (ML).
Integrating AI into Model-Based Design for embedded algorithm development enables you to:
- Experiment with multiple AI models of an algorithm and rapidly compare tradeoffs in accuracy and on-device performance.
- Evaluate AI models of algorithms for compliance with system requirements before they are deployed.
- Run your AI models alongside other models within a simulated environment to uncover system integration issues.
- Test scenarios that would be difficult, expensive, or dangerous to run on hardware or in a physical environment.
Using AI for data-driven reduced-order modeling, you can:
- Speed up slow high-fidelity model simulations.
- Accelerate the design using the AI-based reduced-order model early in the design process and use a high-fidelity simulation model later in the design process to validate the results.
- Perform hardware-in-the-loop testing by verifying your controller design without the complete system hardware.
- Spend more time exploring edge cases, iterating on the design, and evaluating alternatives.
How will you use AI in your system-level design work?
Engineers in every industry can use AI without being AI experts. MathWorks provides easy-to-use interfaces, apps, and examples to make AI approachable.
You can use AI techniques for machine learning and deep learning within familiar vertical applications and learn how to apply these techniques to industry-specific problems.
In this case, a team created an AI-based controller for closed-loop powertrain control.
In this case, a team created a Simulink model of an entire fleet of aircraft to reduce lifecycle costs and increase readiness. The model depends on accurate predictions of fleet performance and maintenance downtime. The team developed a high-fidelity Simulink model of the fleet and then trained an AI model using output data from the Simulink model across a range of scenarios to enable fast analysis.
In this case, a team created a dynamic shaker rig to help racecar teams make pre-race, track-specific adjustments to improve racing performance. AI models are part of a complex virtual model used to simulate shaker rig performance.
In this case, a team developed an algorithm that uses AI to automatically detect seizures in video data of patients with epilepsy. Physicians typically monitor patients using electroencephalogram and visual cues, but the approach is labor-intensive and inconvenient for patients.
To support smart manufacturing using robotic systems, such as a robotic welding system, a team developed an AI algorithm for estimating the position and orientation of the piece to be welded. The algorithm was used in a simulation alongside other algorithms to create a digital twin of the robotic system.
In this case, an AI model predicts the power demand placed on the fuel cell system. The team used this and other algorithms together to build a system-level simulation of a next-generation fuel system.
In this case, a team used AI to analyze onboard camera and sensor data for navigation and farm management decisions in a smart electric tractor.
In this case, a team created and trained a neural network that implements digital predistortion in a communication system. They also simulated the algorithm with the analog part of the system to understand overall system performance before deploying it.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)