๐Ÿง  Samizo-Lab AITL Controller (A-type)

Back to Portal (EN)

A lightweight educational implementation of the
AITL layered control architecture,
designed to clearly distinguish:

Inner Loop : PID Controller  
Middle Loop: FSM (Finite State Machine, Safety & Mode Supervision)  
Adaptive Assist Layer: NN / RL (bounded, runtime optional)  
LLM: Offline / Non-Real-Time Design Assistant (A-type)

Language GitHub Pages ๐ŸŒ GitHub ๐Ÿ’ป
๐Ÿ‡บ๐Ÿ‡ธ English GitHub Pages EN GitHub Repo EN

๐Ÿ“ Official Architecture Definition & Reliability Boundary of AITL Controller (A-Type)

This page defines the design rationale, operating assumptions,
and verified reliability limits of the AITL architecture.


โš ๏ธ Important Architectural Clarification

In practical runtime systems, the valid control configurations are:

โŒ LLM is never placed inside the real-time control loop

LLM is used exclusively outside real-time operation for:


๐ŸŽฏ Project Intent

This project demonstrates a clear and modular control-design methodology,
not the pursuit of:

Instead, the emphasis is on:


๐Ÿ— AITL (A-type) Design Philosophy

Intelligence is layered โ€”
but responsibility is never ambiguous.


This controller is intended as a reference architecture,
suitable for:

It is not intended as a drop-in production controller,
nor as a demonstration of autonomous AI control.


๐Ÿ“Š Demo Result โ€” AITL Full Demo (Ideal / Conceptual)

This figure is generated by:

demos/05_aitl_full_demo.py

โ–ถ Full AITL Ideal Output

AITL Full Demo Ideal

Note
This demo visualizes the conceptual integration of the AITL architecture
under ideal conditions and does not imply that all components
operate simultaneously in real time.


๐Ÿ“„ Technical Document (PDF)

๐Ÿ‘‰ aitl-controller-a-type.pdf


๐Ÿงฑ 1. Project Structure

AITL-CONTROLLER-A-TYPE/
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ controllers/
โ”‚   โ”‚   โ”œโ”€โ”€ pid.py
โ”‚   โ”‚   โ”œโ”€โ”€ fsm.py
โ”‚   โ”‚   โ”œโ”€โ”€ hybrid.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ””โ”€โ”€ llm.py
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ core/
โ”‚       โ””โ”€โ”€ base.py
โ”‚
โ”œโ”€โ”€ demos/
โ”‚   โ”œโ”€โ”€ 01_pid_step_response.py
โ”‚   โ”œโ”€โ”€ 02_fsm_mode_switch.py
โ”‚   โ”œโ”€โ”€ 03_hybrid_pid_fsm_demo.py
โ”‚   โ”œโ”€โ”€ 04_hybrid_fsm_llm_demo.py
โ”‚   โ”œโ”€โ”€ 05_aitl_full_demo.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ 12_vi_current_control_sales_demo.py
โ”‚   โ”‚   โ””โ”€ Vโ€“I current control comparison under aging & disturbance
โ”‚   โ”œโ”€โ”€ 13_aging_sweep_delta_t.py
โ”‚   โ”‚   โ””โ”€ reliability metrics sweep (ฮ”t, max|e| vs aging)
โ”‚   โ””โ”€โ”€ 15_fsm_explainability_demo.py
โ”‚       โ””โ”€ FSM explainability & audit-ready transition rationale
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ aitl_full_demo_ideal.png
โ”‚   โ”œโ”€โ”€ aitl_full_demo_ideal.pdf
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ 12_vi_current_control_sales_demo.png
โ”‚   โ”‚   โ””โ”€ waveform comparison (Fixed PID / PIDร—FSM / AITL)
โ”‚   โ”œโ”€โ”€ 13_aging_sweep_delta_t.png
โ”‚   โ”‚   โ””โ”€ quantitative reliability & safety metrics
โ”‚   โ””โ”€โ”€ 15_fsm_explainability_demo.png
โ”‚       โ””โ”€ explainable FSM mode switching visualization
โ”‚
โ”œโ”€โ”€ tests/
โ”‚
โ”œโ”€โ”€ paper.pdf
โ””โ”€โ”€ README.md

โš™๏ธ 2. AITL Architecture Overview

๐Ÿ” 2.1 PID Layer

Role:
๐Ÿ›ก๏ธ Provides deterministic stability and baseline performance in real time.


๐Ÿ”€ 2.2 FSM Layer

Switching logic:

normal โ†’ high   (if |error| > threshold_high)  
high   โ†’ normal (if |error| < threshold_low)

๐Ÿงฉ Provides explainable and auditable control-mode transitions.

Role:


๐Ÿง  2.3 Adaptive Assist Layer (NN / RL, A-type)

โš ๏ธ Note (Runtime Validity):
The recommended runtime configurations are
PID ร— FSM and PID ร— FSM ร— NN/RL (bounded).


๐Ÿงพ 2.4 LLM (Offline Design Assistant, A-type)

๐Ÿšซ Strict prohibitions:


๐ŸŽฎ 3. Included Demos

Script Description
01_pid_step_response.py Basic PID response (baseline behavior)
02_fsm_mode_switch.py FSM threshold-based mode switching
03_hybrid_pid_fsm_demo.py PID ร— FSM hybrid control (runtime reference)
04_hybrid_fsm_llm_demo.py Offline design-support demo (LLM is not in the real-time loop)
05_aitl_full_demo.py Conceptual AITL integration demo (ideal condition visualization)
ย  ย 
12_vi_current_control_sales_demo.py Vโ€“I current control comparison under aging & disturbance (Fixed PID / PID ร— FSM / AITL)
13_aging_sweep_delta_t.py Reliability metrics sweep vs aging (ฮ”t, max e)
15_fsm_explainability_demo.py FSM explainability demo (why and when modes switched)

Note:
Demos 12, 13, and 15 provide quantitative and explainable evidence
supporting reliability-related design conclusions.


๐Ÿƒ 4. Running the Main Demo

cd demos
python 05_aitl_full_demo.py

Output:

../data/aitl_full_demo_ideal.png

๐ŸŽ“ 5. Educational Value


๐Ÿšง 6. Future Plans (Clarified)

Note (Scope Clarification):
LLM is not planned as a self-optimizing runtime controller.
Any use of LLM is restricted to offline analysis, design review, and documentation.


๐Ÿ” Reliability Investigation โ€” Plant Aging

Purpose (Normative):
This investigation provides design evidence to identify
the operational reliability boundary of A-Type.
It does not modify runtime control authority.

Beyond ideal conditions, the AITL controller was evaluated under
severe long-term plant degradation, modeled as
friction aging equivalent to 1000 days.

The objective of this investigation is not to claim superiority,
but to identify the operational boundary of adaptive control.

The primary focus is temporal reliability:


Representative Result โ€” Aging Sweep (ฮ”t vs Aging)

Reliability metrics vs aging


Interpretation (Design-Relevant, Not Marketing)

This result demonstrates that:

Crucially, this means:

AITL is effective only within a clearly identifiable operating region.

Outside that region, adaptation must be restricted or stopped by design.


Why This Result Matters

This analysis does not argue that AITL is universally better.

Instead, it establishes that:

In other words, the result answers:

โ€œUntil when is AITL safe to use?โ€

โ€”not merely โ€œDoes it work?โ€


Design Implication

This finding directly motivates a reliability-first extension:

The reliability investigation provides the evidence layer that makes B-Type a necessary architectural evolution,
not a conceptual add-on.


Further Details

Detailed waveforms, quantitative metrics, and explainable supervisory logic
are documented separately.

๐Ÿ‘‰ Full reliability analysis (reproducible evidence):


One-Line Summary

AITL is not always beneficial โ€” and that fact is measurable.

This investigation identifies the operating region
where adaptive control should be applied โ€” and where it should not.


๐ŸŸข B-Type: Reliability-First AITL (Design Extension)

The A-Type results demonstrate that adaptive control has a finite reliability boundary.
Beyond a certain aging or degradation range, continued adaptation may degrade
temporal reliability (ฮ”t) rather than improve performance.

B-Type is a design extension that transforms this empirical boundary into an explicit operational rule by introducing a dedicated reliability permission layer.


What B-Type Adds (Conceptual)

B-Type does not aim to maximize performance.
Instead, it determines whether adaptation is permitted based on monitored reliability conditions.

Typical monitored quantities include:


Core Idea

A-Type proves adaptation capability.
B-Type enforces adaptation responsibility.

Adaptive tuning is enabled only when reliability metrics satisfy design-time acceptance criteria. If these conditions are violated, the system restricts adaptation and falls back to a conservative operating mode (e.g., fixed-gain PID control).


๐Ÿ‘‰ B-Type Design Documentation (architecture & guard logic)
โ†’ docs/b_type/


๐Ÿ›ก๏ธ True Robust Control โ€” Operating Robustness as a Design Process

While A-Type demonstrates adaptive capability
and B-Type enforces reliability and responsibility,

True Robust Control addresses a deeper question:

How should robustness itself be operated
before theoretical guarantees collapse?

This theme extends the AITL framework by treating robustness
not as a fixed design result, but as an operational capability.


What Is Added Beyond A-Type and B-Type

True Robust Control introduces the following design concepts:


Position Within the AITL Framework

Layer Primary Role
A-Type Demonstrates adaptive capability
B-Type Restricts adaptation for reliability
True Robust Control Operates robustness as a dynamic design process

A-Type asks: Can the system adapt?
B-Type asks: Should the system adapt?
True Robust Control asks: How should robustness be operated?

These layers are complementary, not competing.


Documentation

๐Ÿ“˜ True Robust Control โ€” Design Documentation
โ†’ docs/true_robust_control/

This section is recommended when:


๐Ÿ‘ค 7.ใ€€Author

๐Ÿ“Œ Item Details
Name Shinichi Samizo
Expertise Semiconductor devices (logic, memory, high-voltage mixed-signal)
Thin-film piezo actuators for inkjet systems
PrecisionCore printhead productization, BOM management, ISO training
GitHub GitHub

๐Ÿ“„ 8. License

Hybrid License

๐Ÿ“Œ Item License Description
Source Code MIT License Free to use, modify, and redistribute
Text Materials CC BY 4.0 or CC BY-SA 4.0 Attribution required; share-alike applies for BY-SA
Figures & Diagrams CC BY-NC 4.0 Non-commercial use only
External References Follow the original license Cite the original source properly

๐Ÿ’ฌ 9.ใ€€Feedback

Suggestions, improvements, and discussions are welcome via GitHub Discussions.

๐Ÿ’ฌ GitHub Discussions