I am a medical doctor and biomedical researcher applying machine learning and computational analysis to digital pathology, single-cell transcriptomics, and clinical evidence synthesis. My M.D. thesis combined macrophage experiments, qPCR, ELISA, and statistical analysis across 60 participants, followed by first-author biomedical reviews in neurodegeneration, autoimmunity, and neurodevelopment.

Alongside medicine and biomedical research, I build and self-host Python research tools, LLM/agent workflows, and reproducible web services on Linux servers, pairing model APIs and coding agents with test suites and data audits so the tooling stays reliable.

Publications
2026/04
Published Translational stem cell therapy for neurodegeneration and CNS trauma: a focused review
Khosrofar R*, Nafei P*, et al. · Molecular Biology Reports 53:842
2026/09
Published The gut microbiome in autoimmune disease: mechanisms, interactions, and therapeutic potential
2026/10
Published Recent advances in autism spectrum disorder research on epigenetics and personalised medicine
Khosrofar R, et al. · International Journal of Developmental Neuroscience 86(6):e70184
under review
Under review Engineering exosomes for glioblastoma nanomedicine: tumor biology, drug delivery and therapeutic applications
Khosrofar R (first author) · review article
Projects

Note: all Python code is mine; C++ code was written by AI, with my role limited to the idea, direction and organization.

crowcall: voice and data over radioInteract
Python · C++ · Flask/SocketIO · codec2 · aicodix OFDM modem

An audio-based messenger for text, files and compressed voice over radio. It combines codec2 voice compression with an OFDM modem (protocol v3 with source/destination framing and CRC32), while a Flask/SocketIO interface handles messages, archives and transmit/receive status.

The idea is that ordinary audio can carry digital messages with no internet in between. It also suits my interest in signal processing and in getting things to work on simple hardware.

Open project
DLA Lab: C++ diffusion-limited aggregation in PythonInteract
C++ · Boost R-tree · pybind11 · Python · Flask · CMake

A refactored C++ core built from Michael Fogleman's MIT-licensed dlaf, keeping the random-walk and Boost R-tree loop in compiled 2D/3D C++ while exposing parameter sweeps, instrumentation and visualization to Python through GIL-releasing pybind11 bindings.

Adds deterministic per-model RNG, in-memory parent/attempt tracking, optional drift or vortex biases, a standalone native CLI, a Python command-line lab and a Flask browser UI.

Open project
Horizon: Schwarzschild and Kerr black-hole ray tracerInteract
WebGL2 · GLSL · JavaScript · Python · pytest

An interactive numerical ray tracer for idealized Schwarzschild and Kerr spacetimes. A WebGL2 fragment shader traces null geodesics in real time with bounded progressive averaging, while JavaScript integrates a freely moving observer or an accelerating pilot's worldline in the ship's local frame.

A separate Python reference solver and automated GPU validation suite check observer aberration, frequency shifts, camera projection and horizon termination against analytic limits rather than relying on visual inspection alone.

Open project
LabForge
Flask · SQLite · NumPy/SciPy/statsmodels · PubMed/Europe PMC/ClinicalTrials.gov/OpenAlex/Crossref
Working demo; active development

I'm building a workbench for the parts of research that tend to end up scattered across spreadsheets and scripts: finding papers, screening studies, checking bias and analyzing data. I want one place where the decisions and their outputs stay together, from the literature search to the figures and a reproducible analysis.

It's unfinished. In the live demo you can load a sample dataset, run statistical tests with assumption checks, make figures and try meta-analysis. Supported file formats include SPSS, CSV and Excel.

Open project Source
Shortcut PathologyInteract
Python · PyTorch · Flask · PathMNIST · Camelyon17-WILDS · Phikon · HEST

Can a pathology model score well while relying on the wrong clues? It uses a small neural network for tissue images, which runs live on my own server so you can watch it compute.

First, a small ring was stamped onto most training images of one tissue type. The model stays almost as accurate as a clean one, yet the ring alone can tip its answer; you can drag the ring onto an image and see where each model looks. Second, the same network scores near-perfect on unseen patches from familiar slides but clearly lower on a hospital it has never seen, where staining differs. A stain lab lets you recolor a patch and watch the predictions change.

A frozen pretrained foundation model, Phikon, drops by only about 0.02 AUROC at a new hospital, yet a linear probe on its features still names the hospital 98% of the time, and a cut-off tuned on four hospitals finds only about a third of the tumors at the fifth. Predicting gene expression from kidney cancer sections shows the same dependence on what is held out: random spots score a correlation of 0.65, whole sections 0.31.

Results come with intervals. It is not a diagnostic tool.

Open project Source
Macrophage stimulation from gene expressionInteract
Python · PyTorch · scikit-learn · Flask

I compared regularized logistic regression, gradient boosting and a small PyTorch network on 28 macrophage profiles from seven donors (GSE46903). Test donors are kept out of training, and gene selection and preprocessing use only the training data. A five-gene panel from my thesis provides a fixed benchmark.

The report lets you inspect predictions, training traces and confidence on errors, with results and PyTorch code available to download. This is a small study, mostly an exercise in programming on biological data; seven donors leave a lot to confirm in a separate cohort.

Open project Source
Macrophage programs in carotid plaqueInteract
Flask · scanpy · Harmony · SciPy · GEO GSE260657

A reanalysis of public single-cell data from 15 carotid plaques (GSE260657), following a question from my thesis: which macrophage states carry the cholesterol-transport gene program most strongly? The lipid-associated state has the highest score in this dataset. The walkthrough covers filtering, donor effects, how cells were assigned to states, and how the gene program is scored.

The live comparison counts either patients or individual cells as independent observations, and that choice alone changes how strong the evidence looks. I also document two mistakes that initially flattered the results: a circular gene-panel comparison and a mixed-model fit that failed despite reporting success. Cholesterol efflux itself would still need to be measured in a functional assay.

Open project
NeuroRegen Tracker
Flask · ClinicalTrials.gov API v2 · Chart.js

A dashboard for keeping up with registered cell-based treatment studies in neurodegeneration and CNS injury. It pulls records from ClinicalTrials.gov, with filters for cell type, recruitment status and trial phase, plus charts and CSV export.

I built it as a companion to literature reviews: a way to see what is registered and where recruitment stands. Each query is cached for six hours, so the numbers can lag by that much. The dashboard reflects registry records; it does not assess whether a treatment works.

Open project Source
Delphi: multi-channel LLM assistant
Python · aiogram · Flask · SQLite · Alembic · OpenRouter · faster-whisper · systemd

A live Telegram and browser chat service running on Oracle Cloud behind Nginx and Cloudflare. Both channels share conversation history, per-user allowances and a quota/billing ledger; users sign into the browser interface with short-lived six-character codes issued from Telegram.

Provider responses stream durably with progressive Telegram edits, word-safe splitting and millisecond request/delivery traces. Separate allowances cover image questions and local speech transcription via faster-whisper. An isolated admin hostname handles user grants and audit review behind password plus TOTP MFA, supervised across four systemd units (web, worker, purge and timer).

Self-hosted AI, agent and cloud stack
Oracle Cloud (ARM64) · Python · aiohttp · OpenRouter · Hermes Agent · Nginx · systemd · uv

The automation and server infrastructure running this domain and its side services on one ARM64 VPS. It includes local-ai-proxy (a single-dependency aiohttp server exposing OpenRouter behind an OpenAI- and Ollama-compatible loopback API), phonon (a local speech-recognition server kept warm by a systemd timer), and nitter-watch (a CLI/JSON feed tool through CloakBrowser built for my self-hosted Hermes Agent).

Every service runs from its own uv environment under a single deploy script (portfolio.sh) that validates HTML, checks Nginx configs with automatic rollback, generates Markdown mirrors and runs live endpoint health checks, paired with a whole-box bootstrap script and automated UFW/ipset blocking.

SyncAux: synchronized multi-device audio
C++ · Kotlin (Android) · JNI · ffmpeg · CMake

A LAN peer-to-peer music player that keeps multiple devices locked to one playback clock. An active master decodes any format ffmpeg reads and broadcasts timestamped chunks; desktop, Android and browser listeners buffer ahead (default 3 s) and play against the master clock, with join passwords, C/JNI bindings and Android media notifications.

ThothMatrix: printable Data Matrix cold storage
Python · Reed-Solomon RS(255) · CBOR · zxing-cpp · Poppler

Stores arbitrary files as printable Data Matrix pages and reconstructs the original file from scanned or photographed sheets. Payloads are split into fixed chunks with optional DEFLATE compression, striped with Reed-Solomon RS(255) erasure parity across pages, and paired with repeated CBOR manifests and registration rails.

The decoder rectifies photographed pages under configurable registration modes (safe, balanced or unsafe) and checks the recovered output against the stored SHA-256 digest.

stegfs 3: steganographic file store
C · libgcrypt · FUSE · Python · ASan/UBSan

A rewrite of stegfs with a new on-disk format: files live inside a random-looking image in redundant copies and can be located and decrypted only with both their path and password. A wrong password returns the same error as a missing file.

Ships with an image builder (mkstegfs), a CLI with repair/verification (stegfsctl), a FUSE mount driver (stegfs-fuse) and an interactive shell (stegsh), backed by unit, crash-matrix, fuzz and FUSE tests under AddressSanitizer and UBSan.

Other systems & experiments: DocForge (Markdown-to-PDF foundry with Flask editor, batch mode and CLI), Quiet SoC (Amber 23 Verilog computer with hardware CORDIC and wireframe GPU), Orbital Watch (native C/OpenGL 3.3 globe renderer; web build), and motioncam 2.0 (rolling-RAM Linux iGPU webcam recorder).
Experience
02.2026 - present
Independent Software Engineering & Research
Istanbul, Turkey

Built and deployed production LLM services, agent tooling, internal Flask workbenches, static WebGL2 simulations and biomedical ML walkthroughs on Oracle Cloud (ARM64), alongside first-author review manuscripts.

11.2023 - 01.2026
Medical Doctor
Outpatient clinics & Tabriz Valiasr Hospital

Outpatient and hospital patient care, differential diagnosis and laboratory interpretation.

03.2023 - 09.2023
Research Assistant
Physiology Department, Tabriz University of Medical Sciences

Experimental data analysis, statistical modelling and biomedical literature synthesis.

2021 - 2023
Software Developer (2021-2022) & Linux System Administrator (2022-2023)
Zharfnegar Co.

Application development in Python and web tooling, followed by Debian/Linux server administration, service supervision, networking and deployment maintenance.

Education
09.2015 - 08.2023
Doctor of Medicine (M.D.)
Tabriz University of Medical Sciences

Medical training, clinical placements and a thesis combining macrophage experiments (qPCR, ELISA, n = 60) with statistical analysis. Assessed as master's-level equivalent in the German anabin database (A5) and the Danish assessment database.

08.2023
System Administration and IT Infrastructure Services
Coursera · Certificate
08.2023
IT Security: Defense against the digital dark arts
Coursera · Certificate
Skills & tools
LLMs & agentsDaily AI-assisted development with verification (Claude, Gemini, Antigravity, self-hosted Hermes Agent); OpenRouter API routing and streaming; tool/webhook automation; local inference with llama.cpp and faster-whisper; embeddings, vector search and PDF retrieval.
SoftwarePython (Flask, aiogram, aiohttp, SocketIO, asyncio, pytest); JavaScript and WebGL2; C, C++ and Kotlin/JNI; SQLite and Alembic; REST APIs and third-party integrations; Git; codec2 and OFDM signal processing.
Systems & cloudOracle Cloud Infrastructure (OCI ARM64 VPS provisioning and migration); Debian/Ubuntu Linux administration; Nginx, Gunicorn, Cloudflare and TLS; systemd services and timers; UFW/ipset firewalling; uv environment management.
Machine learningPyTorch and scikit-learn; digital pathology and gene-expression classification; held-out donor/hospital evaluation; attribution maps (Grad-CAM, integrated gradients); calibration and confidence intervals.
Data & statisticsExperimental data analysis; pandas, NumPy, SciPy, statsmodels and matplotlib; meta-analysis; single-cell analysis with Scanpy; automated querying of PubMed, OpenAlex, Crossref and clinical-trial registries.
Computer visionPretrained object and person detectors with OpenCV deployed on self-managed Linux servers; Intel iGPU video pipelines.
Clinical & labOutpatient and hospital care, differential diagnosis and lab interpretation; primary cell culture, macrophage differentiation, ELISA, qPCR and venous blood sampling.
ScientificLiterature searching and evidence synthesis; first-author manuscript writing; figures and data visualization; peer review; scientific translation.
TrainingCoursera training in system administration and IT security; preparation for LFCS.
LanguagesEnglish (C1) · Turkish (B2) · Persian (native) · Azerbaijani (native) · German (A1).