DEEPCRAFT Studio 01: Overview
1.1 Understanding DEEPCRAFT™ Studio & the Workflow
1.1 Understanding DEEPCRAFT™ Studio & the Workflow
This section introduces DEEPCRAFT™ Studio, the hardware and software environment used in this course, and the end-to-end workflow that all subsequent labs follow. Although the teaching board is the PSoC™ 6 AI Kit, the tool and the workflow are deliberately described in an MCU-agnostic way, so the same material applies to other targets such as the PSoC™ Edge E84 AI Kit and, in principle, any microcontroller.
1.1.1 What is DEEPCRAFT™ Studio?
DEEPCRAFT™ Studio is Infineon's end-to-end Edge AI / Machine Learning (ML) development platform, formerly known as Imagimob Studio. It excels at sensor time-series TinyML applications and can convert a trained model into C source code that is flashed into an MCU — exactly matching the PSoC™ 6 AI Kit used in this course. This material is based on version 5.16.7527.0.
A useful teaching framework is Infineon's Build / Bring / Buy, which describes what the tool can do:
- Build: collect your own data and train your own model (the main path demonstrated here).
- Bring: import a model trained elsewhere (e.g., TensorFlow/Keras .h5), then optimize it and generate edge C code.
- Buy: use ready-made pre-trained models from DEEPCRAFT™ Ready Models / Starter Models.
Supported ML project types include Classification, Regression, and Object Detection. Typical applications are audio event detection, voice control, gesture recognition, fall detection, predictive maintenance, material detection, and — with radar — presence detection and people counting.
1.1.2 Teaching Environment: Target Boards and Software
This course uses Infineon AI evaluation kits as its teaching hardware. The primary board is the PSoC™ 6 AI Kit; the course also targets the more capable PSoC™ Edge E84 AI Kit, which adds a neural processing unit (NPU) and a camera, enabling image/vision AI in addition to sensor time series. Both boards are driven by the same DEEPCRAFT™ Studio workflow.
Board A — PSoC™ 6 AI Kit (CY8CKIT-062S2-AI)
The primary teaching board is the Infineon CY8CKIT-062S2-AI (PSoC™ 6 AI Evaluation Kit). Its on-board sensors for data collection are:
| Sensor | Part Number | Typical Use |
|---|---|---|
| MEMS Microphone | — | Audio event detection, voice/keyword spotting |
| 6-axis IMU | BMI270 | Motion/gesture recognition, fall detection |
| Magnetometer | BMM350 | Orientation/heading |
| Barometric Pressure (DPS) | DPS368 | Pressure/altitude |
| 60 GHz Radar | BGT60TR13C | Presence detection, people counting, gesture |
The PSoC™ 6 MCU has no dedicated NPU, so this board targets sensor time-series TinyML — audio, motion, and radar — rather than image classification.
Board B — PSoC™ Edge E84 AI Kit (KIT_PSE84_AI)
The PSoC™ Edge E84 AI Kit (KIT_PSE84_AI) is built around the PSoC™ Edge E84 MCU (PSE846GPS2DBZC4), a dual-CPU programmable system-on-chip with three compute engines:
- 400 MHz Arm® Cortex®-M55 — primary application processor
- 200 MHz Arm® Cortex®-M33 — low-power operations
- 400 MHz Arm® Ethos™-U55 NPU — neural-network accelerator
The Ethos™-U55 NPU, together with the bundled USB 2.0 camera module and an on-board image sensor, makes real-time image/vision AI — such as object detection and people counting — practical on this board. It also carries an AIROC™ CYW55513 Wi-Fi + Bluetooth® combo for connectivity, 16 MB QSPI flash and 16 MB PSRAM, a MIPI-DSI display connector, a speaker interface, and a KitProg3 on-board programmer/debugger. Its sensors and AI inputs are:
| Sensor / Input | Part Number | Typical Use |
|---|---|---|
| USB 2.0 Camera / Image Sensor | — | Image/vision AI (object detection, people counting) |
| Analog Microphone (×2) | IM73A135V01 | Audio (I2S) — event detection, voice |
| Digital Microphone (×2) | IM73D122V01 | Audio (PDM) — event detection, voice |
| 6-axis IMU | BMI270 | Motion/gesture recognition, fall detection |
| 3-axis Magnetometer | BMM350 | Orientation/heading |
| Barometric Pressure | DPS368 | Pressure/altitude |
| Humidity & Temperature | SHT40-AD1B-R2 | Environmental sensing |
| 60 GHz Radar | BGT60TR13C | Presence detection, people counting, gesture |
In short, the PSoC™ 6 AI Kit covers sensor time-series TinyML (audio, motion, radar), while the PSoC™ Edge E84 AI Kit covers the same modalities and adds NPU-accelerated image / vision AI. The DEEPCRAFT™ Studio workflow and most labs in this course apply to both boards; only sensor initialization, the deployment target, and — for vision models — the camera input differ.
Both kits ship pre-flashed with streaming firmware, so plugging in USB is enough to stream sensor data into Studio. Model training runs in the cloud (Imagimob Cloud) and does not use local compute; the signed-in Active Team (cloud team account) is shown at the top-right of the window.
1.1.3 Overall Workflow
Whatever ML problem you tackle, the DEEPCRAFT™ Studio workflow breaks into the six stages below. Each stage is explained against the real screens later in this article:
1. Collect → 2. Label → 3. Preprocess → 4. Train (Cloud) → 5. Evaluate → 6. Code Gen → Deploy to MCU
Stages 2 to 6 are essentially board-independent. Only data collection (which sensor you read) and the final deployment (board/sensor initialization and flashing) depend on the target hardware. This is why the same six-stage workflow applies to any MCU — whether the PSoC™ 6 AI Kit, the PSoC™ Edge E84 AI Kit, or another board. The one modality that needs specific hardware is image/vision AI, which requires an NPU-class board such as the PSoC™ Edge E84 AI Kit; for a sensor time-series model (audio, motion, radar) the choice of board barely changes the workflow.
1.1.4 What DEEPCRAFT™ Studio Can Do — Feature Overview
The sections above frame the workflow; this section inventories the concrete capabilities. The key reason a single tool can support any microcontroller is that Code Generation emits a self-contained C model (model.c/model.h) that communicates with your firmware through a small, hardware-independent Edge API. Only two things are board-specific: reading the sensor and the final flash/deploy step.
| Capability | Board-specific? | What it does and key tools |
|---|---|---|
| Data Collection | Partly (sensor only) | Stream from on-board sensors, a PC microphone or camera, or multiple sensors at once (sensor fusion); or import existing datasets (“Bring Your Own Data”). Works with Infineon kits or any board. |
| Data Labeling | No | Manual labeling and ML-assisted labeling; inspect class balance with the data-distribution view. |
| Preprocessing | No | Built-in DSP operators for feature extraction: FFT, Mel filterbank, DCT, Hann smoothing, power-to-dB, sliding window, and more. |
| Model Training | No (runs in the cloud) | Cloud or local training with job tracking. Algorithms: Classification, Regression, and Computer Vision (built-in Ultralytics YOLO for object detection). |
| Model Evaluation | No | Confusion matrix, accuracy/recall / F1 for classifiers; MSE / R² / MAPE, Q-Q and residual plots for regression; Grad-CAM plus window visualization for explainability. |
| Code Generation | Target is selected | Converts the trained model to self-contained C and auto-selects an Edge API style — Function (IMAI_compute), Queue (IMAI_enqueue / IMAI_dequeue), or Callback. Accepts TensorFlow/Keras 2.x .h5 input. |
| Deployment | Yes (init + flash) | Deploy to supported boards (PSoC™ 6, PSoC™ Edge, AURIX™, Traveo™, XMC7200) or any board — only sensor/clock initialization and flashing change. |
| Graph UX | No | Visualizes the entire pipeline as a node graph; you can evaluate models and generate code directly on it. |
| Accelerators & Ready Models | No | Pre-trained starter models and project templates to jump-start a build; plus adjacent products: Model Converter, Ready Models, and Training. |
For vision/image AI, object detection and other image models require an NPU-class board, such as the PSoC™ Edge E84 AI Kit (Ethos™-U55 NPU + camera); the PSoC™ 6 AI Kit handles sensor time-series (audio, motion, radar) only. Every other capability in the table is shared by both boards.
Teaching takeaway: design each lab so the portable core (collect concept → label → preprocess → train → evaluate → code-gen) is taught once, and only the board-specific glue — sensor initialization and the deployment target — is swapped when moving from the PSoC™ 6 AI Kit to the PSoC™ Edge E84 AI Kit or any other MCU.
1.2 Start Page and Project Types
At launch, Studio shows the Welcome page with three starting points: DEEPCRAFT™ Studio Accelerators (download a complete sample project with a dataset, preprocessing, and a model), Collect data (start by gathering data), and Start from scratch (build a custom model from an empty project).

[Fig. 01] Welcome start page (three cards)
When you create a new project, the New Project dialog appears. The left pane is split into Studio Accelerators (production-ready proof-of-concept examples) and Templates (which demonstrate a single component, such as data collection or model evaluation); both contain datasets, preprocessing, trained models, and documentation. Project types include Classification, Object Detection, Regression, Image Classification, and Graph UX (Generic / Evaluation / Data Collection).

[Fig. 02] New Project dialog (project type selection)
When to use: to collect data for a classifier, pick the Graph UX Data Collection or Live Data Collection; to study a complete example, download a Ready Model from Accelerators. Limitation: a project's type is fixed once created, so different problems (classification vs. regression, etc.) require separate projects.
1.3 Connecting the Board: Node Explorer and Boards
Connect the board's PSoC™ 6 USB connector (J2) to the PC with a Type-C cable. In the Node Explorer on the right (if hidden: View > Node Explorer), expand Boards at the bottom to see PSOC 6 AI (CY8CKIT-062S2-AI) with its Microphone, IMU, Magnetometer, DPS, and Radar. A green dot before the board name means it is connected (protocol v2 firmware).

[Fig. 03] Node Explorer → Boards expanded, showing the board and its sensors
The upper Library section of Node Explorer is the node library (Annotation, Capture Devices, Machine Learning, Signal Processing, Math, Tracks, Utilities, etc.) used to build graphs on the Graph UX canvas.
Limitation: If the board does not appear under Boards, it most likely has the older v1 protocol firmware. Go to Tools > Options > Graph UX > Capture Nodes and select Protocol Version 2, or re-flash the new streaming firmware.
1.4 Data Collection: Graph UX and the Dataset Node
Data collection happens on the Graph UX canvas. The easiest way to start is with a Live Data Collection template project, which already wires a sensor node to a Dataset node. To use the board's own sensors, drag Microphone / IMU / Radar from Node Explorer → Boards onto the canvas and connect it to the Dataset input.

[Fig. 04] Graph UX canvas: sensor node → Dataset node
The Dataset node is the heart of the new Graph UX — where data is collected, imported, labeled, and managed. The recording steps are:
- Double-click the Dataset node on the canvas to open the Dataset window.
- Stay on the Sessions tab, click + Add Session to open the timeline view.
- Click Record in the timeline toolbar to start; make a sound or signal into the sensor, then click Record again to stop. The clip is saved automatically as a session.

[Fig. 05] Dataset window → Sessions tab (Import / + Add Session)

[Fig. 06] Timeline view and the Record toolbar

[Fig. 07] Recorded audio waveform
Key point: the Record button lives in the timeline toolbar after you open the Dataset, not in the main toolbar. The grayed-out ► in the main toolbar runs full model inference and is enabled only when a trained model exists — it is unrelated to data collection. Limitations: audio sample rate can be 8 or 16 kHz; IMU/magnetometer at 50/100/200/400 Hz; microphone, IMU, magnetometer, and pressure can be combined in one session, but radar must be recorded separately.
1.5 Data Labeling: Tracks and Labels
You must define classes before you can apply labels. The order is:
- In the Dataset window, switch to the Tracks tab and use Add Label on the Labels track to add each class (here: Clap, silence, baby_cry).
- Go back to the Sessions tab and double-click a session to open it in the timeline.
- Drag horizontally across the waveform to select a region → right-click → Add Label → pick a class from the list. The region gets a colored label.

[Fig. 08] Tracks tab: Labels track and its classes

[Fig. 09] Applying a label on the waveform (e.g. Clap)
Note: the system automatically adds a 0. None (background / unlabeled) class, so if you define 3 classes, the Labels Shape becomes [4] (number of classes + 1). Limitation (this version): real-time collection and labeling in the Dataset node is most mature for audio; other sensors can connect but have been tested less.
1.6 Dataset Overview: the Data Tab
In a classic four-tab project, the Data tab summarizes the whole dataset: the top table lists each Class and its distribution and duration across Train / Validation / Test; below is the full session list (Name, Set, Status, Label/Data Track, Sample Shape, Frequency, Length, Labeled %, etc.). The bottom buttons are Add Data, Prepare Data, Redistribute Sets, Rescan Data, Clear All.
[Fig. 10] Data tab: dataset distribution and session list
When to use / limitation: a warning such as “Set does not contain labels from all classes” indicates that the class distribution across Train/Validation/Test is uneven; use the Redistribute Sets tool to rebalance. The split directly affects the trustworthiness of later evaluation (see a real example in Section 1.9).
1.7 Preprocessing: the Preprocessor (Feature Extraction)
The Preprocessor tab turns raw signals into the features the model consumes. For this baby_cry example (16 kHz audio), the chain is a standard log-Mel spectrogram feature extraction. The + / × / ▲ / ▼ buttons on the right add, remove, and reorder layers. Each layer is described below:
| Layer | Purpose / Meaning | Settings (this example) | Output Shape @ rate |
|---|---|---|---|
| Sliding Window | Cut the continuous signal into fixed-length frames | Window 512, Stride 160 | [512] @ 100 Hz |
| Hann smoothing | Apply a Hann window to reduce spectral leakage | Symmetric = False (periodic, for spectral analysis) | [512] @ 100 Hz |
| Real DFT | Real discrete Fourier transform into the frequency domain | Axis 0 | [257,2] @ 100 Hz |
| Frobenius norm | Take the magnitude of each frequency bin (magnitude spectrum) | Axis 0 | [257] @ 100 Hz |
| Mel Filterbank | Compress into Mel bands, closer to human hearing | 30 filters, 200–7000 Hz, HTK formula | [30] @ 100 Hz |
| Clip | Set a floor so the next log step never hits negative infinity | Min ≈ 3.16e-4 | [30] @ 100 Hz |
| Logarithm | Convert to log scale, giving log-Mel | base 0 (natural log) | [30] @ 100 Hz |
| Sliding Window (2nd) | Stack multiple frames into one time-frequency feature map for the model | Window [40,30], Stride 300 | [40,30] @ 10 Hz |

[Fig. 11] Preprocessor tab: the preprocessing layers
So the model ultimately consumes a 40-frame × 30-Mel-band time-frequency image, fed at 10 Hz. When to use / limitations: each Stride must be an integer multiple of the previous layer's output size; otherwise, an error occurs. Feature design (number of filters, frequency range) directly affects model size and accuracy.
1.8 Building and Training the Model
1.8.1 Building and Configuring the Model: Training
The Training tab configures the model and training parameters. The Model Generation dropdown at the bottom offers three ways to build a model: Generate Models (auto-generate candidates), Create Custom, and Import Architecture (H5) (import a Keras architecture). The All Models list on the left shows the model and hyperparameters; the Selected Model pane on the right shows the architecture layer by layer (toggle Show Layer Details).

[Fig. 12] Training tab: model list and layer-by-layer architecture

[Fig. 13] Model Generation dropdown (three ways to build)
Key hyperparameters of this model, babycry-rm-v2.0:
| Parameter | Meaning | Value | Notes |
|---|---|---|---|
| Batch Size | Number of samples per weight update | 128 | Affects convergence stability and memory |
| Epochs | Number of passes over the whole dataset | 10 | Works with Patience for early stopping |
| Learning Rate | Step size of each update | 0.00400 | Too large diverges, too small is slow |
| Weight Decay | Weight regularization to curb overfitting | 0.00100 | — |
| Patience | Epochs with no validation improvement before early stop | 20 | Avoids overfitting |
| Parameters | Total model parameters | 18,898 | Small, MCU-friendly |
The model itself is a typical lightweight CNN: input [40,30] → Reshape → several blocks of Convolution 2D + Batch Normalization + ReLU (the first Conv uses stride 2 to downsample) → Global Average Pooling 2D (flattens the feature map into a vector, greatly reducing parameters — MCU-friendly) → Dense → Softmax producing 2-class probabilities.
Click Start Training to begin cloud training (next section).
1.8.2 Cloud Training: New Training Job and Job Monitor
Clicking Start Training opens the New Training Job (Send training job to Cloud) dialog — a key point: DEEPCRAFT™ Studio trains in the Imagimob Cloud, not locally. Fields include Job Name/Description, Team (cloud team), Use GPU, Available Compute Minutes (cloud quota), and under Advanced, Generate Labels (auto-labeling) and Generate Gradcam (explainability heatmaps).

[Fig. 14] New Training Job dialog (sent to the cloud)
After OK, the job monitor appears, showing status (In Progress → Completed) with tabs for Training / Validation / Test Statistics, Loss Plot, Job Details, Job Logs. It also warns “Job will expire and be deleted in…” — cloud jobs are temporary (deleted after ~13 days); use Extend time to prolong, and download results promptly.

[Fig. 15] Cloud training job monitor (In Progress)
Quota note: the free tier includes about 3000 compute minutes per month (measured on a standard CPU instance), reset monthly. This small model used only about 35 minutes (see Job Details) — very economical.
1.9 Model Evaluation: Statistics and Confusion Matrix
After training, the results row shows Train / Validation / Test Accuracy and F1Score, and Download retrieves the model files (babycry-rm-v2.0.h5, min/max, test input wav / output data, predictions folder, etc.). .h5 is the standard model format shared by DEEPCRAFT™ Studio and TensorFlow/Keras.

[Fig. 16] Training completed and Download Model Files dialog
Each dataset tab has two sub-views: Confusion Matrix and Statistics (F1, Precision, Recall, TP/FN/FP/TN, etc.).
Training Statistics
[Fig. 17] Training Statistics → Confusion Matrix
Validation Statistics


[Fig. 18.1] Validation Statistics
Test Statistics

[Fig. 18.2] Test Statistics
An important teaching point (don't look at Accuracy alone): this result hides a classic ML trap. Compare the overall metrics with the baby_cry single-class F1 across the three datasets:
| Dataset | Overall Accuracy | Overall F1 | baby_cry class F1 |
|---|---|---|---|
| Training | 92.47% | 92.58% | 72.28% |
| Validation | 93.01% | 93.20% | 72.29% |
| Test | 98.99% | 99.36% | 13.11% |
The Test overall F1 reaches 99.36% and looks perfect, yet the baby_cry class F1 is only 13.11%. The reason is a heavily imbalanced test set — background (unlabeled) samples vastly outnumber baby_cry, so the overall metric is inflated by the majority class. Two lessons follow: (1) with imbalanced data, don't look at Accuracy alone — check each class's F1 / Precision / Recall; (2) the Train / Validation / Test split must be reasonable (recalling the Redistribute Sets tool from Section 1.6).
Other tabs: Job Details records Compute Minutes Used, Worker Node, Job Support ID, etc.; Job Logs is the raw cloud training log.

[Fig. 19] Job Details (Compute Minutes Used, etc.)
1.10 Code Generation, Deployment, Settings & Summary
1.10.1 Generating C Code: Code Generation
Once the model is trained and downloaded into the project, double-click the .h5 model file; the left pane then shows Preprocessor / Network / Evaluation / Model Config / Code Gen / Settings. Click Code Gen to reach the code-generation settings. Main parameters:
- Architecture: the target architecture, here Any (ANSI C99).
- Output Name / Output Directory: output file name and folder (here model / Gen).
- C Prefix: prefix for the generated C API function names, here BABYCRY_NN_.
- Build: build scope, here Preprocessor and Network (preprocessing + network).
Click Generate Code to produce model.c / model.h and a report in the Gen folder.

[Fig. 20] Code Gen tab and its settings
The Code Generation Report lists the model's memory footprint on the MCU — critical for embedded development:
| Memory item | Size | Efficiency | Description |
|---|---|---|---|
| Buffers | 93.8 KB (RAM) | 80% | Compute scratch buffers |
| State | 8.2 KB (RAM) | 100% | State (sliding windows, etc.) |
| Readonly | 75.4 KB (Flash) | 100% | Read-only data such as weights |

[Fig. 21] Code Generation Report (memory footprint)
The report also notes a C Queue API (no timestamp tracking), input dimension [1] float32, output dimension [2] float32, 24 layers total. The PSoC™ 6 (CY8C624A) has 1 MB SRAM / 2 MB Flash, so this model (~102 KB RAM, ~75 KB Flash) fits comfortably.
1.10.2 Deploying to PSoC™ 6
The generated model.c / model.h are deployed to the board with ModusToolbox™ (v3.4 or later recommended). Infineon provides code examples for the PSoC™ 6 AI Kit — DEEPCRAFT™ Studio Deploy Model: Audio / Motion / Radar — where you simply replace the example's model.c / model.h with the files you generated. Full deployment steps are left to a later hands-on LAB.
1.10.3 The Settings Tab
The Settings tab (Unit Directories) specifies where to search for .imunit unit files. It lets you add external units to define your own preprocessing layers or custom TensorFlow layer types (for advanced extensions). Browse Unit Library… opens the existing unit library. For typical Ready Model teaching, leave it at the default.

[Fig. 22] Settings tab (Unit Directories)
1.10.4 Summary and Limitations
Using baby_cry detection as the example, this article walked through the full DEEPCRAFT™ Studio flow: collect → label → preprocess → cloud training → evaluate → generate C code → deploy. Key takeaways and limitations:
- Training runs in the cloud, bound by a monthly compute-minutes quota; cloud jobs expire automatically, so download results promptly.
- Don't evaluate on Accuracy alone: with imbalanced data, overall metrics mislead — always inspect per-class F1 / Precision / Recall, and use Redistribute Sets for the split.
- Preprocessing and model design directly determine the edge memory footprint; techniques such as Global Average Pooling can greatly reduce it.
- In this version, real-time Dataset collection is most mature for audio; radar must be recorded alone, and other sensors are less tested.
The upcoming hands-on LABs build on this workflow, guiding students through the end-to-end creation of a custom edge AI model.