
Dr. Piyavach Khunsongkiet
NISE 2.5 Developer (Docker version)College of Arts, Media and Technology (CAMT), Chiang Mai University
NISE 2.5 turns tabular CSV data into strip images, builds k-fold datasets in a container, trains YOLOv8 for every dataset, mode and fold, and evaluates the models on held-out test data. Every step is a small, scriptable command.
A CSV row holds one number per feature, plus the class.
| sepal_l | sepal_w | petal_l | petal_w | class |
|---|---|---|---|---|
| 5.1 | 3.5 | 1.4 | 0.2 | setosa |
| 4.9 | 3.0 | 1.4 | 0.2 | setosa |
| 4.7 | 3.2 | 1.3 | 0.2 | setosa |
| ⋮ | ||||
| 7.0 | 3.2 | 4.7 | 1.4 | versic. |
| ⋮ | ||||
| 6.3 | 3.3 | 6.0 | 2.5 | virgin. |



A highlight video of the NISEv2 pipeline that NISE 2.5 builds on.
The NISEv2 paper pipeline, rebuilt so that any machine gets the same images and the same split.
Split and image generation run in one image with pinned libraries. The same split and seed give byte-identical images on Windows and Ubuntu.
iris, wine, breast cancer, automobile, ionosphere and 7 amphibians sets, each as grey / colour strips (algo 1 / 2) with or without PCA.
One command trains every group and fold, skips what is done, records time and metrics, and runs for days under PM2.
Accuracy, balanced accuracy, macro-F1 and a confusion matrix over all folds, measured on the test set rather than on validation.
Predict from a CSV or an image, or keep the model loaded and drop files into an inbox folder to get JSON results in ~50 ms.
An index.csv maps every box in a packed image back to its CSV row, with optional preview images that draw the boxes and row ids.
Generate the datasets in Docker, train YOLOv8 for every group and fold, evaluate on the test set and predict from a CSV row. The simulated terminal is a dry run: pick Windows or Linux and a step.
Docker generates the strip images and k-fold sets.
NISE 2.5 is the first version that runs on both operating systems. NISEv1 and NISEv2 are Windows only.
| Version | Windows | Linux (Ubuntu) |
|---|---|---|
| NISE 2.5 (Docker pipeline) | Supported | Supported |
| NISEv2 (2026) | Supported | Windows only |
| NISEv1 (2025) | Supported | Windows only |
Docker Desktop for image generation; training and evaluation in a Python venv. Use python. Tested on an RTX 5050 Laptop GPU.
Docker Engine for generation, a venv with ultralytics for training, and PM2 for multi-day runs. Use python3. Tested on an RTX 3090.
Docker is needed for generation. Training needs Python with ultralytics; long runs use PM2. The full manual is the project README.
cd ultralytics
python run_gen.py all # init data + build image + split + gen
python run_gen.py gen --preview # gen again with preview imagesResults are written to the Docker volume stripout. Existing splits are never overwritten.
python transfer.py export --what sets --algos 1,2 --k_list 8 --move--move deletes the copy from the volume only after the file count and size are verified.
python train_v2.py --datasets iris,wine --modes nopca --algos 1,2 --k_list 8
python train_v2.py --status # table: mAP, time, start / stop / interval
# long runs
pm2 start ecosystem.config.js --only strip-train
python train_v2_pm2.py --session-statuspython transfer.py export --what folder --path "*/split"
python evaluate_v2.py --group iris_nopca_algo1_k8
python evaluate_v2.py # every trained groupResults: predictions/eval_<group>.json and predictions/eval_summary.csv.
# once: CSV row to image to prediction
python predict_v2.py --group iris_nopca_algo1_k8 --fold 0 --input test_input.csv
# long running: drop files into watch/inbox/, read watch/outbox/*.result.json
python predict_watch_v2.py --group iris_nopca_algo1_k8 --fold 0pca mode cannot predict from raw CSV columns because the PCA parameters are not stored. Training mAP is measured on validation and is optimistic: use the evaluate output as the real result.| File | Purpose |
|---|---|
run_gen.py, gen_folds.py | Split into folds, build strip images and packed canvases (Docker) |
transfer.py, clear.py | Export / import the volume, move sets to another machine, clear data |
train_v2.py, train_config.json | Train every group and fold, manifest, resume / redo |
train_v2_pm2.py, ecosystem.config.js | Long runs under PM2 with session tracking |
evaluate_v2.py | Test-set accuracy, balanced accuracy, macro-F1, confusion matrix |
predict_v2.py, predict_watch_v2.py | One-shot and long-running prediction |
Last updated: November 24, 2026
NISE: A novel approach by Piyavach K., piyavach.k@camt.info and Waranya M., earthmahanan@gmail.com
This is our first work utilizing a transformation method that converts numerical data into images. In this research, we focused on exploring the feasibility and forecasting efficiency of NISE using YOLO. The results are presented in our published paper. Performance speed was not a primary consideration in this initial version, as our main goal was to demonstrate the concept. The processing speed depends largely on the YOLO model used, as noted in our discussion. We are currently working on improvements for future versions to enhance efficiency.
In the specific case of a more efficient and faster prediction implementation that we have not reported in this paper, after you run strip_pre.py you can go to our implementation on Google, which uses fewer epochs and is faster only for all types of numeric forecasting. In the case of text or other features that are not the first one, we will develop it in the future.
Download trained weights, datasets, and related files from Google Drive.
Open Google DriveRead our published paper on Springer
If you find this work helpful, please consider citing our paper.
The source code is now available on GitHub. The project was developed and tested on Windows, but with small modifications, it should also be possible to run it on Linux.
How to Run: Start by running strip_pre.py. The code contains step-by-step comments (steps 0 to 3) explaining how to create the NISE.
Note: The requirements file (python setup package > requirements.txt) is not yet prepared. However, all libraries used are standard and can be installed via pip. We apologize for any inconvenience.
Required libraries (we use 2 files to generate the NISE image: strip_pre.py and lib.py)
strip_pre.py will generate 5 k-fold image sets in the folders for 3 algorithms: output_k_fold, output_k_fold2, output_k_fold3 which produce ready to use for training, validating and testing for YOLOv5 format.
The trained weights, image k-folds, datasets, and related experimental files for every dataset and the 3 algorithms following the paper are available in this Google Drive folder.
Download Weights and Training FilesThe datasets are from UCI, including wine, iris, student performance, and breast cancer, as cited in our paper.
Download Dataset from Google Drive
A more efficient Numerical-to-Image learning pipeline for feature-based classification using YOLO. Published in the AIAI / EANN–EAAAI 2026 Conference Proceedings by Springer.
Automated preprocessing, k-fold generation, and multi-dataset training through a single runner script.
Designed to support more datasets and larger-scale experiments than NISEv1.
Standardized project folders, backups, generated outputs, and repeatable Windows installation steps.
The following setup was tested with Python 3.10, PyTorch 2.7.1, CUDA 12.8, and an NVIDIA RTX 5050 Laptop GPU.
sm_120.cd C:\yolo8_strip
py -3.10 -m venv venv
venv\Scripts\activatepython -m pip install --upgrade pip setuptools wheel
python -m pip --versionpython -m pip install typing-extensions==4.12.2python -m pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128python -c "import torch; print('Torch:', torch.__version__); print('CUDA:', torch.version.cuda); print('Available:', torch.cuda.is_available()); print('GPU:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'CPU')"A successful installation should report PyTorch 2.7.1+cu128, CUDA 12.8, GPU availability as True, and the detected NVIDIA GPU name.
python -m pip install -r requirements.txtrequirements.txt should not include the old CUDA 11.8 PyTorch entries, the local editable path from another computer, or the legacy Git-based pycocotools entry unless it is actually required.C:\yolo8_strip\ultralytics │ ├─ run_all_datasets.py ├─ strip_pre2.py ├─ run_plain_all.py │ ├─ wine.csv ├─ iris.csv ├─ breast-cancer-wisconsin1.csv ├─ Student_performance_data.csv ├─ adult.csv │ └─ backup ├─ wine │ ├─ output_kfold_data.json │ └─ output_strip_label_map.txt ├─ iris ├─ adult └─ ...
Activate the virtual environment and enter the Ultralytics project folder:
cd C:\yolo8_strip
venv\Scripts\activate
cd C:\yolo8_strip\ultralyticspython run_all_datasets.py --datasets iris --epochs 1000 --batch 2 --device 0 --clean_each_project --exist_okpython run_all_datasets.py --datasets iris --epochs 1 --batch 2 --device 0 --clean_each_project --exist_okpython run_all_datasets.py --datasets wine,iris,breast_cancer,student,adult --epochs 1000 --batch 2 --device 0 --clean_each_project --exist_ok--clean_each_project removes the current root-level generated k-fold and label-map files so that they are regenerated for the selected dataset.| Dataset argument | Expected CSV filename |
|---|---|
wine | wine.csv |
iris | iris.csv |
breast_cancer | breast-cancer-wisconsin1.csv |
student | Student_performance_data.csv |
adult | adult.csv |
Last updated: July 18, 2026
NISE is developed by a small research team working on software engineering and data analytics at Chiang Mai University.
Who built which version.

College of Arts, Media and Technology (CAMT), Chiang Mai University
College of Arts, Media and Technology (CAMT), Chiang Mai University
Master's student in Computer Science, Chiang Mai University
AIAI / EANN–EAAAI 2026 Conference Proceedings, Springer.
Read on SpringerLinkIEA/AIE 2025, Piyavach K. and Waranya M.
Read on SpringerLink