Current milestone · 2.5

Reproducible numerical-to-image pipeline with Docker and YOLOv8

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.

Windows 10 / 11 Linux (Ubuntu) Docker
GitHub Manual

A CSV row holds one number per feature, plus the class.

NISEiris · algo 1
iris.csv · 150 rows
sepal_lsepal_wpetal_lpetal_wclass
5.13.51.40.2setosa
4.93.01.40.2setosa
4.73.21.30.2setosa
⋮
7.03.24.71.4versic.
⋮
6.33.36.02.5virgin.
4 features3 classes150 rows
numbers in, no pixels yet
row 1 → 4 tiles
  • 5.1→ 104
  • 3.5→ 138
  • 1.4→ 91
  • 0.2→ 89
grey = (value − L) / (H − L) × 255
L, H = the feature's min − range … max + range
strip → canvas 640 × 640
One strip
strip
Strip centred on a canvas
test image
Many strips packed on a canvas
training pack
sample images from gen_folds.py
YOLOv8 · iris_nopca_algo1_k8 · fold 0
epoch1/ 1000
val mAP50-950.00
fold 0 ✓fold 1 ✓fold 2 ✓fold 3 ✓fold 4 ✓
1.27 s/epoch · best.pt per fold (curve illustrative)
Detect · YOLO finds every strip
Packed strips with detection boxes
setosaversicolorvirginica
one box + class per strip (illustrative labels)
Predict · tabular row in, class out
Predict
Virginica0.91
virginica
versicolor
setosa
CSV row → strip → model → class + confidence (illustrative output)

NISEv2 in action

A highlight video of the NISEv2 pipeline that NISE 2.5 builds on.

What is in 2.5

The NISEv2 paper pipeline, rebuilt so that any machine gets the same images and the same split.

🐳

Docker generation

Split and image generation run in one image with pinned libraries. The same split and seed give byte-identical images on Windows and Ubuntu.

🧩

12 datasets, 4 variants

iris, wine, breast cancer, automobile, ionosphere and 7 amphibians sets, each as grey / colour strips (algo 1 / 2) with or without PCA.

🚂

Resumable training

One command trains every group and fold, skips what is done, records time and metrics, and runs for days under PM2.

📊

Test evaluation

Accuracy, balanced accuracy, macro-F1 and a confusion matrix over all folds, measured on the test set rather than on validation.

⚡

Prediction service

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.

🔎

Traceable images

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.

Docker version · 2.5

Run the whole pipeline from one terminal

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.

Windows 10 / 11 Linux (Ubuntu) Docker
PowerShell
mock-up · simulated run

Docker generates the strip images and k-fold sets.

Platforms

NISE 2.5 is the first version that runs on both operating systems. NISEv1 and NISEv2 are Windows only.

VersionWindowsLinux (Ubuntu)
NISE 2.5 (Docker pipeline)SupportedSupported
NISEv2 (2026)SupportedWindows only
NISEv1 (2025)SupportedWindows only
🪟

Windows

Docker Desktop for image generation; training and evaluation in a Python venv. Use python. Tested on an RTX 5050 Laptop GPU.

🐧

Linux (Ubuntu)

Docker Engine for generation, a venv with ultralytics for training, and PM2 for multi-day runs. Use python3. Tested on an RTX 3090.

Quick start

Docker is needed for generation. Training needs Python with ultralytics; long runs use PM2. The full manual is the project README.

1

Generate the datasets

cd ultralytics
python run_gen.py all              # init data + build image + split + gen
python run_gen.py gen --preview    # gen again with preview images

Results are written to the Docker volume stripout. Existing splits are never overwritten.

2

Move the training sets out of Docker

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.

3

Train

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-status
4

Evaluate on the test set

python transfer.py export --what folder --path "*/split"
python evaluate_v2.py --group iris_nopca_algo1_k8
python evaluate_v2.py                       # every trained group

Results: predictions/eval_<group>.json and predictions/eval_summary.csv.

5

Predict

# 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 0
Heads upThe pca 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.

Project layout

FilePurpose
run_gen.py, gen_folds.pySplit into folds, build strip images and packed canvases (Docker)
transfer.py, clear.pyExport / import the volume, move sets to another machine, clear data
train_v2.py, train_config.jsonTrain every group and fold, manifest, resume / redo
train_v2_pm2.py, ecosystem.config.jsLong runs under PM2 with session tracking
evaluate_v2.pyTest-set accuracy, balanced accuracy, macro-F1, confusion matrix
predict_v2.py, predict_watch_v2.pyOne-shot and long-running prediction

Last updated: November 24, 2026

IEA/AIE 2025

Extending YOLO for Feature-Based Classification via Numerical-to-Image Transformation

NISE: A novel approach by Piyavach K., piyavach.k@camt.info and Waranya M., earthmahanan@gmail.com

Proposed in IEA/AIE 2025 · Last updated: August 7, 2025

Windows only

Object and goal

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.

Project Resources

💻

Source Code

The project source code is hosted on GitHub.

Open GitHub Repository
📦

Weights and Dataset

Download trained weights, datasets, and related files from Google Drive.

Open Google Drive

Download Links

Paper available

Read our published paper on Springer

If you find this work helpful, please consider citing our paper.

Source code

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.pyosjson
lib.pystatisticscv2 (pip install opencv-python)numpyPIL (Pillow)sklearn (decomposition, preprocessing, metrics)shutilpathlibglobcollections.Countermathpandasmatplotlib

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.

View Source Code on GitHub
Weights

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 Files
Datasets

The datasets are from UCI, including wine, iris, student performance, and breast cancer, as cited in our paper.

Download Dataset from Google Drive
Future work
  • We plan to use MobileNet as our base model for improved efficiency and performance.
  • We are currently testing NISE on Google Teachable Machine using the MobileNet architecture which we think in our case it be better performace. It is also look possible and also can be useable in actual work.
Teachable Machine Example
References
  1. Africa, A.D., Velasco, J.: Development of a urine strip analyzer using artificial neural network using an android phone. ARPN Journal of Engineering and Applied Sciences 12, 1706–1713 (03 2017)
  2. Bochkovskiy, A., Wang, C.Y., Liao, H.Y.M.: Yolov4: Optimal speed and accuracy of object detection. ArXiv abs/2004.10934 (2020), https://api.semanticscholar.org/CorpusID:216080778
  3. Cortes, C., Vapnik, V.: Support-vector networks. Machine learning 20(3), 273–297 (1995)
  4. Cortez, Paulo Cerdeira A. Almeida F., M.T., J., R.: Wine Quality. UCI Machine Learning Repository (2009)
  5. Cover, T., Hart, P.: Nearest neighbor pattern classification. IEEE Transactions on Information Theory 13(1), 21–27 (1967)
  6. El Ghmary, M., Ouassine, Y., Ouacha, A.: License Plate Character Recognition System Using YOLOv5, pp. 588–594 (03 2023)
  7. Fisher, R.A.: Iris. UCI Machine Learning Repository (1936)
  8. Jocher, G.: Ultralytics yolov5 (2020), https://github.com/ultralytics/yolov5
  9. Kim, S.C., Cho, Y.S.: Predictive system implementation to improve the accuracy of urine self-diagnosis with smartphones: Application of a confusion matrix-based learning model through rgb semiquantitative analysis. Sensors 22, 5445 (07 2022)
  10. Mishra, S., Sarkar, U., Taraphder, S., Datta, S., Swain, D., Saikhom, R., Panda, S., Laishram, M.: Principal component analysis. International Journal of Livestock Research p. 1 (01 2017)
  11. Ng, W.K., Choi, S., Ravishankar, C.: Lossless and lossy data compression (06 1998)
  12. Pei, C.: Research on the influencing factors of student performance. Theoretical and Natural Science 51, 26–33 (09 2024). https://doi.org/10.54254/2753-8818/51/2024CH0131
  13. Ragab, M., Jadid Abdulkadir, S., Muneer, A., Alqushaibi, A., Sumiea, E., Qureshi, R., Al-Selwi, S., Alhussian, H.: A comprehensive systematic review of yolo for medical object detection (2018 to 2023). IEEE Access PP, 1–1 (01 2024)
  14. Rajpurkar, P., Hannun, A.Y., Haghpanahi, M., Bourn, C., Ng, A.Y.: Cardiologist-level arrhythmia detection with convolutional neural networks (2017), https://arxiv.org/abs/1707.01836
  15. Raza, A., Shaikh, M., Siddiqui, O., Ali, A., Khan, A.: Enhancing agricultural pest management with yolo v5: A detection and classification approach. UMT Artificial Intelligence Review 3 (12 2023)
  16. Redmon, J., Divvala, S., Girshick, R., Farhadi, A.: You only look once: Unified, real-time object detection. In: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). pp. 779–788 (2016)
  17. Redmon, J., Farhadi, A.: Yolov3: An incremental improvement. ArXiv abs/1804.02767 (2018), https://api.semanticscholar.org/CorpusID:4714433
  18. Wolberg, William, M.O.S.N., Street, W.: Breast Cancer Wisconsin (Diagnostic). UCI Machine Learning Repository (1993), DOI: https://doi.org/10.24432/C5DW2B
  19. Wu, X., Kumar, V., Quinlan, J.R., Ghosh, J., Yang, Q., Motoda, H., McLachlan, G.J., Ng, A., Liu, B., Philip, S.Y., et al.: Top 10 algorithms in data mining. Knowledge and information systems 14(1), 1–37 (2008)
  20. Zhang, Y., Guo, Z., Wu, J., Tian, Y., Tang, H., Guo, X.: Real-time vehicle detection based on improved yolo v5. Sustainability 14, 12274 (09 2022)
Published in 2026

NISEv2: Efficient Numerical-to-Image Learning via Multi-Object YOLOv8 Training

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.

The paper is available online through SpringerLink. The NISEv2 source code and requirements.txt are available on Google Drive.

What is new in NISEv2?

⚡

Faster Workflow

Automated preprocessing, k-fold generation, and multi-dataset training through a single runner script.

📈

Larger Datasets

Designed to support more datasets and larger-scale experiments than NISEv1.

🧪

Reproducible Experiments

Standardized project folders, backups, generated outputs, and repeatable Windows installation steps.

Windows Installation

The following setup was tested with Python 3.10, PyTorch 2.7.1, CUDA 12.8, and an NVIDIA RTX 5050 Laptop GPU.

ImportantCUDA 12.8 is required for newer NVIDIA Blackwell GPUs such as the RTX 5050 Laptop GPU. Older CUDA 11.8 builds do not support compute capability sm_120.
1

Create and activate a virtual environment

cd C:\yolo8_strip
py -3.10 -m venv venv
venv\Scripts\activate
2

Upgrade the Python packaging tools

python -m pip install --upgrade pip setuptools wheel
python -m pip --version
3

Install typing extensions

python -m pip install typing-extensions==4.12.2
4

Install PyTorch with CUDA 12.8

python -m pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128
5

Verify GPU support

python -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.

6

Install the remaining libraries

python -m pip install -r requirements.txt
The NISEv2 requirements.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.

Expected Project Structure

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
   └─ ...

Run NISEv2 on Windows

Activate the virtual environment and enter the Ultralytics project folder:

cd C:\yolo8_strip
venv\Scripts\activate
cd C:\yolo8_strip\ultralytics

Example: run the Iris dataset

python run_all_datasets.py --datasets iris --epochs 1000 --batch 2 --device 0 --clean_each_project --exist_ok

Quick GPU and pipeline test

python run_all_datasets.py --datasets iris --epochs 1 --batch 2 --device 0 --clean_each_project --exist_ok

Run multiple datasets

python run_all_datasets.py --datasets wine,iris,breast_cancer,student,adult --epochs 1000 --batch 2 --device 0 --clean_each_project --exist_ok
Using --clean_each_project removes the current root-level generated k-fold and label-map files so that they are regenerated for the selected dataset.

Supported Dataset Names

Dataset argumentExpected CSV filename
winewine.csv
irisiris.csv
breast_cancerbreast-cancer-wisconsin1.csv
studentStudent_performance_data.csv
adultadult.csv

Last updated: July 18, 2026

Profile

The people behind NISE

NISE is developed by a small research team working on software engineering and data analytics at Chiang Mai University.

Team

Who built which version.

Portrait of Dr. Piyavach Khunsongkiet

Dr. Piyavach Khunsongkiet

NISE 2.5 Developer (Docker version)

College of Arts, Media and Technology (CAMT), Chiang Mai University

Software EngineeringApplied Data Analytics
piyavach.k@camt.info

Dr. Waranya Mahanan

NISEv2 Packing researcher

College of Arts, Media and Technology (CAMT), Chiang Mai University

Data Analytics
earthmahanan@gmail.com

Wangboon Bualoilom

NISE 2.5 Developer (Windows and experiments)

Master's student in Computer Science, Chiang Mai University

Data Analytics

NISE publications

2026

NISEv2: Efficient Numerical-to-Image Learning via Multi-Object YOLOv8 Training

AIAI / EANN–EAAAI 2026 Conference Proceedings, Springer.

Read on SpringerLink
2025

Extending YOLO for Feature-Based Classification via Numerical-to-Image Transformation

IEA/AIE 2025, Piyavach K. and Waranya M.

Read on SpringerLink