Nithishhariharan M. Creative technologist building XR simulations, real-time 3D and interactive web, and the models and contracts that run underneath them.


Most of my work starts as something invisible: a procedure in a nurse's hands, 01 a risk hidden in four lab values, 02 a promise between two strangers. 03 I make those things you can see, hold and test.

The line you are following is one circuit, modelled on the blood circuit from my dialysis simulator. It runs through every project below.

Selected work

3 projects + this one · 2023 — 2026


  1. 01Hemodialysis VR SimulatorXR simulationUnity 2022.3 · C# · XR Interaction Toolkit2025 — 2026
  2. 02CKD Risk EngineApplied ML × XRPython · ONNX · Unity Sentis 2.1.3Jan — Apr 2026
  3. 03EscroChainSmart contractsSolidity · OpenZeppelin SafeMath · React2023 — 2024
  4. 00This siteCreative developmentThree.js · GLSL · Anime.js2026
01 Hemodialysis VR Simulator

01XR simulation— Hemodialysis VR Simulator

An immersive Unity simulator where trainees assemble a hemodialysis circuit, run the machine and rehearse emergencies with their hands, not from a manual.

Role
Developer: machine logic, fluid systems, XR interaction
When
2025 — 2026
Stack
Unity 2022.3 · C# · XR Interaction Toolkit · Blender · TextMeshPro
  1. 01 Problem

    Dialysis machines are complex and unforgiving, and hands-on time with a real one is scarce. A 2025 study in Scientific Reports (Rettinger et al.) found VR/AR training outperformed conventional machine training.

  2. 02 Idea

    Rebuild the whole room. Let a trainee perform the real sequence of set up, prime, connect and run, and make mistakes where they cost nothing.

  3. 03 Build

    Three scenes (main menu, training, emergencies), XR sockets for every consumable, a working machine panel, voice guidance, and an in-headset AI assistant.

  4. 04 Result

    A working multi-scene simulator that later became the front-end for project 02: a high-risk CKD result launches this training.

The machine panel, as built in Unity

Press the buttons. The screenshot and the dialyzer behind this page respond.

Simulator, T1 Test step: T1 Test: the machine runs its self-check before anything touches the lines.
Simulator, Prime step: Prime: saline is pushed through the circuit to clear the air. The lines turn blue.
Simulator, Start step: Start: the pump runs and the extracorporeal circuit is live.
Simulator, Blood step: Blood: the patient is connected and the lines fill red. FlowingMaterialEffect.cs drives the motion.
Blood the patient is connected and the lines fill red. FlowingMaterialEffect.cs drives the motion.

Build

  1. 01

    Circuit assembly

    Seven consumables snap onto XR sockets in clinical order. Each placement fires its own voice cue through SocketAudioOnPlace.cs, and grabbed parts change material (XRGrabMaterialChange.cs).

  2. 02

    Machine panel

    T1 Test, Prime, Start and Blood each drive the machine screen through VideoButtonController.cs and change the state of the lines.

  3. 03

    Fluid without fluid simulation

    The tubing appears to flow because a material's texture offset scrolls every frame. That is cheap enough for standalone VR. The line running through this page uses the same trick in GLSL.

  4. 04

    Emergencies & Ask AI

    A separate scene for needle dislodgement and high-pressure alarms, plus an in-headset voice assistant that explains equipment (for example, what a dialyzer actually filters).

Training scene: a wall lists the seven components to place in order while the trainee holds a dialyzer and saline bag.

Placement order, enforced by sockets

  1. 1Arterial chamber & line
  2. 2Venous chamber & line
  3. 3Dialyzer
  4. 4Saline bag
  5. 5Bicarbonate cartridge
  6. 6Acid concentrate
  7. 7Heparin syringe
Video Training room walkthroughYouTube ↗
Video Main menu walkthroughYouTube ↗

One idea, two engines

Fluid without fluid simulation.

In the simulator, the tubing looks alive because a material's texture offset advances every frame. That costs almost nothing, which matters on a standalone headset. The circuit on this page is the same idea moved into a fragment shader.

Read the Unity source
FlowingMaterialEffect.cs · Unity
public class FlowingMaterialEffect : MonoBehaviour
{
  public Material material;
  public float flowSpeedX = 0.1f;
  public float flowSpeedY = 0.1f;
  private Vector2 currentOffset;

  void Update()
  {
    currentOffset = material.GetTextureOffset("_MainTex");
    currentOffset.x += flowSpeedX * Time.deltaTime;
    currentOffset.y += flowSpeedY * Time.deltaTime;
    material.SetTextureOffset("_MainTex", currentOffset);
  }
}
shaders.ts · this page
// liquidFrag: the circuit on this page
// u runs along the tube; uTime * uFlow is
// the same scrolling offset, per fragment.
float phase = u * uLength / 1.35
            - uTime * uFlow;
float band = smoothstep(0.35, 1.0,
             sin(phase * 6.2831) * 0.5 + 0.5);
c = mix(c, c * 1.22 + 0.04, band * 0.35);
02 CKD Risk Engine

02Applied ML × XR— CKD Risk Engine

Early chronic kidney disease screening from four routine lab values, stratified into Low, Medium and High risk, exported to ONNX and executed in real time in Unity. A high-risk result opens the dialysis training.

Role
ML pipeline, ONNX conversion, Unity Sentis integration. Team of two with Navena RK; guided by Dr. Pradeep G.
When
Jan — Apr 2026
Stack
Python · ONNX · Unity Sentis 2.1.3 · scikit-learn · C# · SHAP
  1. 01 Problem

    CKD progresses silently. Elderly patients with metabolic syndrome carry 2–3× the risk and are usually caught late. Most published models only answer yes or no, and none connect screening to clinical training.

  2. 02 Idea

    Screen with four cheap, routine predictors, return a risk tier a clinician can act on, and run it where the training happens.

  3. 03 Build

    NHANES data → feature selection → eleven models under temporal validation → logistic regression → pure-op ONNX → Unity Sentis worker inside the VR scene.

  4. 04 Result

    Internal AUC 0.886 and external AUC 0.861, beating the base paper by 2.6% and 3.6%. Unity output matches Python on every verified case.

Build · from survey data to a headset

Eight steps, two runtimes, one model.

  1. 01 · Data

    NHANES 2011–2020

    14,419 participants

  2. 02 · Clean

    Merge on SEQN

    RF imputation · z-score

  3. 03 · Select

    Boruta + LASSO

    VIF < 5 → 4 features

  4. 04 · Compare

    11 algorithms

    Temporal validation 2021–22

  5. 05 · Choose

    Logistic regression

    L2 · 5-fold nested CV

  6. 06 · Export

    .pkl → ONNX

    MatMul · Add · Sigmoid

  7. 07 · Deploy

    Unity Sentis 2.1.3

    CPU worker · real time

  8. 08 · Act

    Risk tier

    High → VR training

0.886

Internal AUC

+2.6% vs base paper

0.861

External AUC

+3.6% · newer patients

0.025

Generalisation drop

Lowest of eleven

10/11

Models beat the base paper

Internal AUC

Try the model

Same four inputs as the headset. The curve behind this page is the model.

78
28.0
7.5
0.17

Load a verified case · deck value

P(CKD)

52.7%

High risk> 50%

  • Nephrology referral
  • Start VR hemodialysis training

Deck (Unity = Python): 52.2% · this port: 52.7%

In the headset this launches dialysis training. Go to it ↑

A JavaScript port of the trained logistic regression. Coefficients come from the project. The deck doesn't publish the scaler, so the feature normalisation was calibrated against the nine verified cases (max deviation 0.5 percentage points). A demonstration, not medical advice.

The decision

Why the simplest model won.

Random Forest scored highest on held-out data from the same years (0.911), then lost 0.070 AUC on patients from 2021–22. Logistic regression lost 0.025, the smallest drop of all eleven. It is also explainable to a clinician, and it compiles to four ONNX operations that Unity Sentis runs anywhere.

Eleven models, one question: how much do they lose on newer patients?

  • Internal AUC · NHANES 2011–20
  • External AUC · NHANES 2021–22
  • Base paper (Du et al. 2025)
Logistic Regression selected−0.025
AdaBoost−0.028
Neural Network−0.029
Gradient Boosting−0.036
XGBoost−0.038
CatBoost−0.040
LightGBM−0.045
Voting Ensemble−0.050
SVM (RBF)−0.053
Random Forest−0.070
KNN−0.089
View as table
ModelInternal AUCExternal AUCDrop
Logistic Regression0.88610.86080.0253
AdaBoost0.88480.85650.0283
Neural Network0.88750.85860.0289
Gradient Boosting0.89080.85530.0355
XGBoost0.89330.85570.0376
CatBoost0.89140.85180.0396
LightGBM0.89650.85130.0452
Voting Ensemble0.90580.85590.0499
SVM (RBF)0.80760.75500.0526
Random Forest0.91110.84090.0702
KNN0.88920.80020.0890

Verification

Unity = Python.

The ONNX model running in Unity was checked against Python onnxruntime on nine patient profiles across all three tiers. The outputs were identical.

CKDPredictor.cs · Unity Sentis 2.1.3
runtimeModel = ModelLoader.Load(modelAsset);
worker = new Worker(runtimeModel, BackendType.CPU);

norm[i] = (raw[i] - means[i]) / stds[i];
var t = new Tensor<float>(new TensorShape(1, 4), norm);
worker.SetInput("float_input", t);
worker.Schedule();

var probs = (worker.PeekOutput("probabilities")
             as Tensor<float>).ReadbackAndClone();
float probCKD = probs[0, 1];
Nine verified cases · deck slide 16
AgeBUNUAUHRUnity = PythonThis pageTier
6610.03.50.070.4%0.4%low
6814.04.80.091.5%1.5%low
7016.05.20.103.0%3.0%low
7218.05.90.126.7%6.7%low
7522.06.80.1521.2%21.0%medium
7726.07.20.1640.0%40.0%medium
7828.07.50.1752.2%52.7%high
8032.07.80.1872.4%72.9%high
8235.08.00.2085.2%84.9%high
Inside the headset: the assessment returns 52.2%, high risk, with a button to start the VR simulation.
Case 7 in the headset: 52.2% · high risk → start VR simulation
03 EscroChain

03Smart contracts— EscroChain

A decentralized escrow protocol for two parties who don't trust each other. A factory deploys one escrow per deal, and the money stays locked until the deal completes or both sides agree to walk away.

Role
Solo: contracts, factory, React dApp. BCA final-year project, guided by Ms. B. Lavanya.
When
2023 — 2024
Stack
Solidity · OpenZeppelin SafeMath · React · ethers.js · MetaMask · Polygon
Links
  1. 01 Problem

    Online, someone has to go first: ship the goods or send the money. Middlemen solve that by charging fees and holding custody.

  2. 02 Idea

    Give both sides skin in the game. The buyer stakes twice the price and the seller stakes the price. Walking away costs as much as cheating would earn.

  3. 03 Build

    DescrowFactory deploys and indexes a Descrow per deal. Modifiers (onlyParties, onlyBuyer, onlyActive) guard every call, and the React front-end listens for ContractStateChanged events.

  4. 04 Result

    Deployed to the Polygon Mumbai testnet and driven through MetaMask, with stakes and cancellations visible on the block explorer.

Run a deal

Play both sides. The rules are the contract's.

Buyer

0x009fFbd2…

Wallet
0.02 MATIC
Staked?
No
Cancelled?
No

Unlocked

In contract0.00 MATIC

Nothing is locked yet. Each side stakes to commit.

Seller

0x61701769…

Wallet
0.01 MATIC
Staked?
No
Cancelled?
No

Transaction log

  1. ◆DescrowFactory.createContract()price 0.01 MATIC

Why the buyer stakes twice

Make stalling expensive.

A contract can't see a parcel arrive, so it doesn't try to. Instead, both sides post a bond: the buyer deposits the price plus an equal bond, and the seller matches the price. Until the deal finishes or both agree to cancel, everyone's money is stuck, so finishing honestly is the cheapest move for both.

OutcomeBuyerSeller
Buyer confirmsThe honest path pays both.1× back2× (price + bond)
Both cancelWalking away together costs nothing.2× back1× back
One side stallsStalling locks your own money too.0 until resolved0 until resolved

Contract surface · from the deployed ABI

  • DescrowFactorycreateContract(buyer, seller, price)deploys one escrow per deal
  • DescrowFactorygetContractsByParty(address)view
  • Descrowstake()payable · buyer 2×, seller 1×
  • DescrowrevokeStake()only before lock
  • Descrowcancel()refund when both cancel
  • DescrowrevokeCancellation()withdraw a cancel request
  • Descrowconfirm()onlyBuyer · settles
  • DescrowgetStatus()view · ContractStatus struct

Factory 0xF618…DAB1 on Polygon Mumbai, a testnet since retired. Guards: onlyParties · onlyBuyer · onlyActive · SafeMath.

Toolkit

By evidence,
not by percentage.

Hover or focus a tool to see where it was actually used, here and on the circuit behind this page. Or start from a project.

Real-time 3D & XR

Web & interaction

Data & ML

Blockchain

Systems

Nithishhariharan M in glasses and a white shirt, looking to one side in front of an autumn painting.
Thanjavur · 2026

About

I'm Nithish, a developer from Thanjavur in Tamil Nadu, finishing a Master of Computer Applications at SASTRA University.

I like the moment a system stops being a diagram and becomes something you can touch: a dialysis machine you prime with a controller, a risk model that answers inside a headset, a contract that holds money until both sides keep their word.

That usually means crossing disciplines inside one project: modelling in Blender, behaviour in C#, training in Python, the interface in JavaScript. What I keep coming back to is interactive systems, games and VR in Unity, and the modern web.

Based
Thanjavur, Tamil Nadu, India
MCA
SASTRA Deemed University · 2024 — 2026
BCA
PMIST University · 2021 — 2024

Chronology · 2019 → now

  1. 2019–21Maxwell Matric. HSS Higher secondary, Thanjavur.
  2. 2019First public repo Nitho.BOT — a JavaScript bot kept running 24/7.
  3. 2021–24BCA — PMIST Bachelor of Computer Applications.
  4. 2023–24EscroChain Escrow protocol on Polygon. BCA final-year project.
  5. 2024–26MCA — SASTRA Master of Computer Applications.
  6. 2025Hemodialysis VR Unity XR training simulator.
  7. 2026CKD Risk Engine ML screening deployed inside VR. MCA final-year project.
  8. 2026This site Three.js, GLSL, Anime.js, React.

End of the line. The circuit closes here.

If you're building something in XR, real-time 3D or the interactive web, I'd like to hear about it. Email is fastest.

Thanjavur — IST

10.79°N 79.14°E

⌘K index · X x-ray

Back to the start ↑

00 · This site

Three.js r186 with hand-written GLSL, Anime.js 4, React 19 and TypeScript on Vite. One canvas, one animation loop, no downloaded 3D. The circuit is a closed Catmull–Rom spline baked into a float texture, so its cells ride it entirely on the GPU. The flowing bands are the simulator's texture-offset trick, rewritten as a shader.

© 2026 Nithishhariharan M