Handout - Integration Python Based Ai Models Slides PDF
Handout - Integration Python Based Ai Models Slides PDF
Ryotaro ABE
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
3
Corporate Profile
FY2024 consolidated sales
TS TECH Co., Ltd.
(Prime Market, Tokyo Stock Exchange
Name: TS TECH Securities Code: 7313 )
Consolidated
net sales
\441.7
billion
■ President Masanari Yasuda 【Sales breakdown】
Automobile business 93.1%
■ Established Dec. 5, 1960 Motorcycle business 1.8%
Other 5.1%
■ Head office Asaka-shi, Saitama
■ Lines of business
Manufacture and sale of automobile seats;
automobile interiors; motorcycle seats; Seats
and resin-based products for motorcycles 84.9%
■ Consolidated number of employees
14,719
4
Lines of Business
Automobile business Motorcycle business
Business
▲Automobile
seats ▲▼Motorcycle seats
fields
▲Lighting
▲Door trim components
Harley-Davidson
Volkswagen
5
Internal Structure of a Multifunction Seat
Electronic
Main components components
Frame Side airbag
Occupant posture sensor
Safety features
Power slide
Comfort features
Power reclining
Power height adjuster
Air lumbar support
Ventilation system
6
Agenda
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
7
Proposing New Value for Cabin Space
Safety/Security HMI
・Intuitive Communication(five senses)
・Occupant Protection Evolution ・Arrangement-compatible operation
・Privacy
Environment Health
・Sensing
・Sustainable Materials
・Postural Improvement
・Easy Disassembly
Human
・Motion Sickness Reduction
・Recycling・Maintenance
・Hardware Evolution
・Coordinating User Experience Energy
Spatial Value ・Exploration of Human Nature
Saving
・Immersive Experience
with Five Senses ・Human-centered
・Mass Customization Heating/Cooling
8
Challenges for New Value
Automotive OEM
Interior Parts
Manufacturer
“Cabin Space”
with New Value
Startup Companies
Other Industries
We need …
Cooperation with companies with diverse development cultures
9
Integrate functionality using MATLAB®/Simulink®
Interior Parts
mfr.
Startup Other
FUNC:3 FUNC:4 FUNC:5
Companies Industries
FUNC:2 FUNC:7
10
Agenda
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
11
Development Background
Safety/Security HMI
・Intuitive Communication(five senses)
・Occupant Protection Evolution ・Arrangement-compatible operation
・Privacy
Environment Health
・Sensing
・Sustainable Materials
・Postural Improvement
・Easy Disassembly
Human
・Motion Sickness Reduction
・Recycling・Maintenance
・Hardware Evolution
・Coordinating User Experience Energy
Spatial Value ・Exploration of Human Nature
Saving
・Immersive Experience
with Five Senses ・Human-centered
・Mass Customization Heating/Cooling
・・・
Detect Feature Calculation Model
R-Peak (HRV analysis) Estimation
RRI
Fatigue Level
Fatigue
Vigor
t
14
Challenges in Algorithm Development
90% ?
80% ?
Stack in a Improve
We need …
15
Agenda
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
16
Challenges in Implementation of Real Time System
Require C
x
Joint Development
eventually…
Port to C
ECU Verification
Port again
Deliverables
Modify
Porting to C takes time …
ECU
17
Flow to Real-time Implementation
③Implementation in Simulink
④Operation Check Implementation
RRI AI
Extractor Model
⑤Model Modifications Simulink Model
for Code Generation
⑥Implementation in ECU Auto Code Generation
ECG RRI AI
Output
Acquisition Extractor Model (CAN)
ECU
18
Hardware Configuration
analog CAN
ECG CAN
Sensor Interface
PC
Raspberry Pi
19
Flow to Real-time Implementation
③Implementation in Simulink
④Operation Check Implementation
RRI AI
Extractor Model
⑤Model Modifications Simulink Model
for Code Generation
⑥Implementation in ECU Auto Code Generation
ECG RRI AI
Output
Acquisition Extractor Model (CAN)
ECU
20
Porting from Python to MATLAB
std()
Why?
21
Differences in Default Settings
∑ 𝑿𝒊 − 𝝁 𝟐 ∑ 𝑿𝒊 − 𝝁 𝟐
𝝈= 𝝈=
std() 𝒏 𝒏−𝟏
Standard Deviation Invariant
Standard Deviation
22
Consistency Check
Feature
Value 1
Feature
Value 2
・・・
・・・
Fatigue
Level
Python
MATLAB
23
Implementation in Simulink
Fatigue
RRI Extraction
Estimation
Feature
RRI Value 1
Feature
Value 2
・・・
・・・
MATLAB Fatigue
Simulink Level
24
Flow to Real-time Implementation
③Implementation in Simulink
④Operation Check Implementation
RRI AI
Extractor Model
⑤Model Modifications Simulink Model
for Code Generation
⑥Implementation in ECU Auto Code Generation
ECG RRI AI
Output
Acquisition Extractor Model (CAN)
ECU
25
Modifying the Model – Variable-Sized Array
・・・ 75 peaks
The # of peaks
Heart Rate 57[bpm] is not consistent.
1 2 3 4 5 54 55 56 57
ECG
・・・ 57 peaks
Specify
Maximum array size
26
Modifying the Model – IO/Communication Model
Communication
Estimate Model Model
IO Model
Just Press!
C Code Generation
Analog
Signal Raspberry pi
Processing +
CAN HAT
A/D
Conversion
ECU
28
Current Real-Time Estimation System
RRI AI Output
ECG (CAN)
Acquisition Extractor Model
ECU With Consulting
RRI AI Output
ECG (Bluetooth) Only Us
Acquisition Extractor Model
ECU
Update
Notify users
via tablet
29
Agenda
1. Our Company
2. Products We Aim for
3. Estimation of Fatigue Level
4. Implement Algorithm in ECU
5. Conclusion
30
Conclusion
Conclusion
Realize a service that combines machine learning algorithms
built in Python with other functions in real-time using Simulink.
Future Work
Enhance development flow targeting vehicle OS.
31