Skip to content
Alperen Uğur Erden

Alperen Uğur Erden

I teach cameras to find people, and I write down where they fail. Computer vision and machine learning, with PyTorch and OpenCV.

Looking for ML / computer vision internship or part-time remote work

Physics undergrad at Bilkent, graduating 2028.

Turkey (UTC+3)alperenugur04@gmail.com

I build systems that have to run when nobody is watching. The main one watches a greenhouse over a 4G line, and the person detector I trained for it has been live since 21 September 2026.

Getting there was mostly catching my own bad measurements. My first detectors only looked better because validation leaked, and one I deployed was rolled back. Now a gain has to beat the spread between training seeds before I call it one.

I also run thelecturenotes.com alone, a course site for Bilkent students. It rebuilds every day, and the daily build deploys only when its browser tests pass.

Case study: the greenhouse detector

What happened between my first fine-tuned detector and the one in production, in order. Most of the steps are about measurement.

  1. Julyfound

    A test that could not fail

    I went through a week of live alarms one by one. No frame in my offline negative set scored above the alarm threshold, so that test could never fail. The audit also turned up code bugs.

  2. Augustrolled back

    Better only on a leaky split

    My first fine-tuned detectors beat stock YOLO only on a leaky split. One I briefly deployed was rolled back when its whole gain came from the part of the test set closest to its training data.

  3. Septembertrained

    Teacher and student

    A D-FINE-X teacher labelled 125,900 frames. After dropping uncertain ones and mining static clutter as hard negatives, a 19.4M-parameter D-FINE-M student trained on 13,668 of them in 70 minutes on an RTX 4060 Ti.

  4. 21 Sepshipped

    Live, after a shadow run

    A shadow run raised zero extra alarms (740 live polls, 8,505 archive frames). An adapter left the production code untouched, separate score calibrations kept false alarms on the old scale, and it falls back to the old model if the new one keeps failing to start.

  5. 23 Sepwithdrawn

    A gain I took back

    A follow-up scored 0.0104 AUC higher on the September set, but its spread across three seeds was 0.0180, so I withdrew the claim. My first control run had the seed fixed at 0 and had never measured seed noise.

  6. 24 Sepfell back

    The fallback fired

    The fallback ran the older model for 54 minutes. It was not a crash: the counter counts starts, and six stop and start cycles of the GPU lease tripped it. No tracebacks since.

  7. 26 to 27 Sepmeasured

    A bigger check set

    I labelled another 1,000 frames in just over a day. 277 went into the check set, which grew from 249 frames with 15 positives to 518 with 99, and the seed spread fell from 0.0180 to 0.0034: most of the old spread was small-sample noise. A newer model looked good after two seeds and lost its edge on the third, and four later candidates did not beat v11 by more than the spread.

  8. 28 Sepshipped

    v11 live, day and night apart

    v11 beat the 21 September model on all four measures by more than the seed spread, and replaced it for people. At night it was no better, so day and night use separate score calibrations. The vehicle detector stays on the older model.

Person recall: stock YOLO11s against my 21 Sep detector

Bar chart. On all 2,918 test frames, at a 3.7% false-positive rate, stock YOLO11s found 49.8% of people and the 21 September model 94.1%. On night frames, both at a 0.50 threshold, stock YOLO11s found 38.1% and the 21 September model 93.5%.All test frames, at a 3.7% false-positive rateStock YOLO11s49.8%My detector (21 Sep, D-FINE-M)94.1%Night frames, both at a 0.50 thresholdStock YOLO11s38.1%My detector (21 Sep, D-FINE-M)93.5%
Note 2,918 frames I labelled myself, from July and August days that do not overlap training. Source: Greenhouse

Recall at a 2% false-positive rate: 21 Sep model against v11

Bar chart on 518 check frames, 99 with a person. The 21 September model found 83.8% of people and v11, averaged over three training seeds, found 89.6%. The gain is larger than the 3.0 point spread between seeds.21 Sep model83.8%v11, mean of three seeds89.6%
Note 518 frames I labelled, 99 with a person. 98 of them are from one afternoon and none from night. Source: Greenhouse

Rules I took from it

  1. Check that the test can fail.

    No frame in my offline negative set scored above the alarm threshold, so no model could have failed it. Greenhouse

  2. Call it a gain only if it is larger than the spread between seeds.

    A follow-up scored 0.0104 AUC higher against a spread of 0.0180, and my control run had never measured seed noise. Greenhouse

  3. Split on the unit that can leak, and count the overlap.

    31 of 120 radiomics patients have several lesions. My first grouped split quietly undid the grouping; now the code stops if a patient is on both sides. Radiomics analysis

  4. Write the plan down before the run.

    The repair experiments were committed with their hypotheses before they ran. Several failed, and they are reported. LLM repair paper

  5. Label each claim as measured, derived, assumed or from memory, then have it attacked.

    The first audit of my universe-model report found two numerical errors, and I withdrew both. Universe model

Other results

Each number comes with its caveat. The full write-ups are in the project entries below.

Player detection: AP50 on 32 held-out frames

Bar chart of AP50. A network trained on public data only 0.29, HOG with a linear SVM 0.66, my network trained from scratch on my labels 0.74, and the same network pretrained on public data and fine-tuned on my labels 0.79. The network scores are means over three seeds.Public data only0.29HOG + linear SVM (one run)0.66Network from scratch0.74Pretrained on public data, then fine-tuned0.79
Note 32 frames, 315 boxes, 16 venues. Each score has a 95% interval of about ±0.09, so the gap between the two networks is not established. All NumPy and CuPy code I wrote. Source: Football detection

Radiomics, my analysis: AUC against a label-shuffle control

Bar chart of AUC under patient-grouped cross-validation. Label-shuffle control over 753 permutations 0.51, close to chance. Random forest on mean density alone 0.90. Random forest on 18 texture features 0.985 plus or minus 0.018.Label-shuffle control (753 runs)0.51Random forest, mean density alone0.90Random forest, 18 texture features0.985 ± 0.018chance
Note Data and question are my collaborator's: 180 lesions, 120 patients, one centre. Both forests use the same patient-grouped folds, and ± is the standard deviation over 25 outer folds. The best shuffle run reached 0.69 in 753 (p at most 0.0013). It needs external validation. Source: Radiomics analysis

Test error saved by training on near-miss items rather than random ones

Bar chart in percentage points of test error, mean over eight paired draws. Addition with 600 training items: Qwen2.5-1.5B 0.87, Qwen2.5-1.5B on fresh draws 0.80, Phi-3.5-mini 0.70, Qwen2.5-3B 0.60. Other settings: subtraction 1.36, Qwen3-4B 0.10, Qwen2.5-1.5B with 4,800 items 0.20.Six-digit addition, 600 training itemsQwen2.5-1.5B+0.87Qwen2.5-1.5B, fresh draws+0.80Phi-3.5-mini+0.70Qwen2.5-3B+0.60Other settingsSubtraction, Qwen2.5-1.5B+1.36Qwen3-4B+0.10Qwen2.5-1.5B, 4,800 training items+0.20
Note Percentage points of test error, mean of eight paired draws. The 95% intervals exclude zero for the dark bars and include it for the two grey ones. Source: LLM repair paper

Projects

My own projects, not client work. Most of them run on servers I set up and look after myself.

Working on now

Two phone screens from the web app, in Turkish: a 3D map of the site with numbered camera pins and live temperature and humidity, and a month calendar of detected visits.

Computer vision · live system

Greenhouse person detection and monitoring

live; my detector since 21 Sep 2026, v11 since 28 Sep

Person detection and site control for a greenhouse, on a 4G line behind CGNAT. I trained the detector it now uses.

94.1% vs 49.8% person recall at a 3.7% false-positive rate, the 21 Sep model against stock YOLO11s

Details

Problem

The greenhouse needs an alarm when a person is there, day or night, and everything has to go over the 4G line. At the false-positive rate of that comparison (3.7%), stock YOLO11s found 49.8% of people.

Diagram of the greenhouse system. At the site, five DVR cameras, a PTZ camera whose picture has been frozen since 23 September, an ESP32 climate node and a smart plug for the irrigation pump connect to an old Android phone as the edge node, behind a 4G router with no inbound ports. A home server with an RTX 4060 Ti pulls from it over Tailscale, the only path, and runs ingest, the D-FINE-M detector, a DVR alarm referee, on-demand live view and a state API. The app reaches it through a Cloudflare Tunnel and Worker.
How the data moves. Moving the camera feed to the DVR sub-stream cut 4G traffic from 4.2 GB a day to a median of 2.2 GB. Open full size

What I did

  • The system: five DVR cameras, a PTZ camera frozen since 23 September, an ESP32 climate node, a smart plug that switches the irrigation pump from the app with an automatic shut-off, and a web app for alerts, live view and an event calendar. Detection runs on a home server: on its GPU when it is free, on the CPU while a batch job holds the card.
  • The measurement mistakes behind the detector, from a test that could not fail to a gain I took back, are in the case study.
  • What worked: a D-FINE-X teacher labelled 125,900 frames. After dropping uncertain ones and mining static scene clutter as hard negatives, a 19.4M-parameter D-FINE-M student trained on 13,668 of them in 70 minutes on an RTX 4060 Ti. It went live on 21 September 2026 after a shadow run with zero extra alarms (740 live polls and 8,505 archive frames), behind an adapter that left the production code untouched.
  • Before touching the 4G line I measured what lower resolution costs: at the same false-positive rate, recall was 95% at 1080p and 94% at 352x288. So detection moved to the DVR sub-stream.
  • On 28 September a newer model (v11), trained with another 702 frames I had labelled, took over person detection.
  • Built on-demand live view (HEVC to H.264 HLS), and a GPU lease that moves live inference to the CPU while a batch job has the card and back afterwards, even if the job crashes.
Four phone screens from the web app, in Turkish: a 3D map of the site with numbered camera pins and live temperature and humidity, a month calendar of detected visits, the climate tab with a 24-hour temperature chart and a frost check for the night, and the irrigation calendar.
The web app. Camera views are left out on purpose. Open full size

Result

  • On 2,918 frames I labelled myself, from days that do not overlap training, the 21 September model found 94.1% of people against 49.8% for stock YOLO11s, at a 3.7% false-positive rate. AUC 0.981 against 0.863. At night, both at a 0.50 threshold, 93.5% against 38.1%.
  • v11 against the 21 September model on 518 frames I labelled: recall at a 2% false-positive rate 89.6% against 83.8% (seed spread 3.0 points), AUC 0.984 against 0.976 (spread 0.001).
  • 4G traffic went from 4.2 GB a day to a median of 2.2 GB, with 1.5 to 3.3 GB over the 13 days from 22 September to 4 October.

Limits

  • Its negatives were drawn from frames an older model had called a person, which inflates the false-positive rate.
  • At night, on 163 empty frames, the false-alarm rate was 8.6% for the 21 September model and 4.9%, 10.4% and 9.8% for three seeds of v11. The vehicle detector stays on the 21 September model: v11 flagged a white wall as a vehicle on camera 5 in 261 frames, where the older model flagged none.
  • The score calibration for day frames was fitted on 1,218 frames that an AI assistant labelled, most of them by eye, not me. Both check sets are my labels, chosen by model scores.
  • The camera 3 archive was empty on four days between 24 September and 1 October, and all five DVR cameras went stale in four episodes on 2 October; causes unknown. Since v11 went live, detection ran on the CPU for about three quarters of the hours (a batch job holds the GPU), and polling averaged 17 s per camera against a design value of 8 s.

Tools

  • Python
  • PyTorch
  • D-FINE
  • ONNX Runtime
  • OpenCV
  • FFmpeg
  • HLS
  • ESP32
  • systemd
Top-down map of a football pitch with each tracked player drawn as a red dot and the camera position marked in one corner.

Computer vision · from-scratch engine

Player detection for amateur football, from scratch

ongoing, my main project since 1 Oct 2026

Finding players in fixed-camera amateur football video with models I write from scratch: NumPy and CuPy only, every derivative coded and checked by hand. The ball is not solved.

AP50 0.74 network written from scratch, mean of three seeds, on 32 held-out frames (one run's 95% interval 0.65 to 0.82)

Details

Problem

Venue cameras film amateur matches from a fixed position. My term project for a machine-learning course compares detection methods that must be written without any ML library, with every parameter derivative computed by my own code. The longer aim is pitch positions and tracking from the same cameras.

What I did

  • Labelled 283 frames with 2,511 player boxes: 1,272 drawn by hand, 427 corrected and 812 accepted from a pretrained detector's proposals.
  • Wrote the methods in NumPy and CuPy: a Gaussian-mixture background model fitted by EM, HOG with a linear SVM or logistic regression, and a small one-stage network in the CenterNet style, trained with gradients I derived by hand. A third method is not written yet. A test fails the build on any ML, autograd or image-library import, and every layer and loss is compared with finite differences; deliberately broken backward passes must fail the checker.
  • Wrote the layers underneath as well: a convolution kernel that trains the pitch-line network in 0.158 s per step against 0.157 s for PyTorch, a detector that runs in 4.6 ms per 720p picture against 11.1 ms, and an H.264 decoder that matches ffmpeg bit for bit on 1,521 of 1,524 video files.
  • Pitch geometry: self-calibration from the pitch lines was right on 14 of 15 development cameras that I checked by hand. The earlier method was right on 8 and passed 3 wrong ones.
  • The earlier July tracker (PyTorch and OpenCV, now paused) did fisheye correction, pitch calibration and offline tracklet stitching.

Result

  • On 32 held-out frames (315 boxes, 16 venues), AP50 is 0.74 for the network trained from scratch (mean of three seeds, 0.737 to 0.744) and 0.66 for HOG with a linear SVM. Logistic regression on the same features reaches 0.59.
  • Pretraining on public data and fine-tuning on my labels gives 0.79, and public data alone 0.29. With 10% of my frames, the network from scratch reaches 0.47 and the pretrained one 0.62 (seeds 0.55 to 0.72).

Limits

  • The evaluation set is 32 frames, so every score carries about ±0.09 (95% interval), and 17 of the 32 were labelled by correcting a detector's proposals. The 116-frame test split is only partly labelled (38 frames) and not scored.
  • The ball is not found: F1 within 8 pixels is 0.07 (interval 0.04 to 0.10) against a gate of 0.5. The calibration setting was picked among 8 runs on the same 15 cameras, so 10 held-out cameras decide it.
  • The July tracker raised IDF1 from 0.515 to 0.835 on a 2-minute window with 18 identities, but about half of the detections there carry no identity label and the hardest identities were left out, so it is optimistic. Over a full 32-minute match it fragments into 698 identities (538 at best).
  • These numbers are from 5 October. A batch of jobs runs until Saturday, so they will move.

Tools

  • Python
  • NumPy
  • CuPy
  • CUDA
  • C
  • finite-difference gradient checks

LLM evaluation · working paper

Which examples repair a small language model?

ongoing, working paper (not peer reviewed)

When a small language model makes mistakes, which few hundred examples should it be fine-tuned on? Pre-registered experiments on multi-digit addition and subtraction.

+0.6 to +0.9 points less test error from fine-tuning on near-miss correct items than on random ones, in four comparisons

Details

Problem

Fine-tuning on a few hundred examples is a common fix, and the obvious examples are the model's own errors. In six-digit addition every error traces to the column that failed, so I can count what each repair fixes and what it breaks.

What I did

  • Models: Qwen2.5-1.5B and 3B and Phi-3.5-mini. Each repair is a fresh LoRA adapter (rank 16) trained on 300 selected items plus 300 replay items. One forward pass gives every item a signed margin, its distance to the model's error boundary.
  • Committed the hypotheses, decision rules and analysis code before each run, with paired draws and corrections for multiple tests. For every repair I counted what it fixed and what it broke, by error sub-type.

Result

  • Training on items the model already gets right by a small margin (near-miss correct) lowered test error more than training on random items in four pre-registered comparisons (three primary, one secondary), by 0.60 to 0.87 percentage points, each 95% interval above zero. A fifth, one of 28 pairs in an earlier run, points the same way (0.83) but does not survive the correction.
  • On subtraction, a second task, near-miss correct items beat random ones by 1.36 points (0.83 to 1.89), also pre-registered.
  • Errors on Qwen-1.5B concentrate in two sub-types that share the cue "the column below sums to 9". Removing one from the near-miss set raised breakage of that sub-type by 16.5 points, and by 15.3 on a fresh test set.
  • Training on the model's own errors was worse than near-miss items on Qwen-1.5B, by 0.94 to 1.43 points. On Phi-3.5, errors mixed with near-miss replay beat near-miss alone by 0.78.

Limits

  • The effect fades with more data: with 4,800 training items the gap over random is 0.20 points (interval -0.05 to +0.44), and the gain falls by about 0.5 points for every doubling.
  • It did not replicate on Qwen3-4B (+0.10, interval -0.08 to +0.27). Whether the effect depends on the model is not established: my pre-registered rule says not to claim it.
  • My draft explains the effect as near-miss data keeping two carry rules in balance. That is not established: a follow-up that protected one sub-type cut its breakage by 8 points but raised total error by 0.9.
  • Restricting LoRA to layers 7 to 13 looked helpful in an exploratory run and failed its pre-registered test.
  • One task family, small models, LoRA only. Several pre-registered runs are still queued.

Tools

  • Python
  • PyTorch
  • Hugging Face Transformers
  • LoRA
  • CUDA

Physics · simulation

Universe model: a speculative cosmology tested against public data

ongoing since April 2026

A speculative model of the universe, a nest of shells that shrink, which I try to break with public data. So far it has mostly broken itself.

3 laws rejected constant, coasting and power-law shrinkage, each worse than flat ΛCDM against supernovae and BAO

Details

Problem

The model says the universe is a nest of shells that shrink and touch. I want to know whether public cosmology data can rule it out. It is a hobby model, and nothing here is a discovery.

What I did

  • Simulations in Python and CuPy for how touching shells interact, how the shrinking would show up in galaxy clustering, and what it does to supernova distances, tested against DESI galaxy clustering, Pantheon+ supernovae and DESI baryon acoustic oscillations (BAO).
  • Every claim in the report carries a label: measured, derived, assumed or from memory, and a separate pass tries to break each report before I trust it.
  • The code and analyses were written with AI coding assistants. I define the model and decide what counts as a test.

Result

  • The DESI symmetry test finds no anisotropy: chi-squared per degree of freedom is 0.80 to 1.60 across four samples, against 0.88 to 1.36 for random-catalogue controls.
  • The simplest shrinkage laws fail against supernovae and BAO together. Compared with flat ΛCDM, constant shrinkage (de Sitter) is worse by Δχ² of +15,250, coasting by +279 and a power law by +245.
  • To fit, the shrinking rate would have to follow the ΛCDM expansion history, which the model does not derive.

Limits

  • It makes no new prediction and does not explain dark energy. Its galaxy-rotation and solar-system tests fail, and the slope of about 4 it gives for the baryonic Tully-Fisher relation is what a random walk gives anyway.
  • The audit of my first report found a coding error (an amplitude of 0.026 that should be 0.0496) and an injection test that did not match the survey window. I withdrew both.
  • The symmetry test has low power, and one sample (emission-line galaxies, north) sits at 1.60, above every control, unexplained. The assumptions that make the model work, such as smooth phases and a stable shrink cycle, are assumed, not derived.

Tools

  • Python
  • CuPy
  • NumPy
  • public cosmology data

Live and looked after

thelecturenotes.com on a laptop and a phone. The laptop shows a MATH 101 study-notes page with a plot of secant lines closing in on a tangent. The phone shows the schedule builder with a week of sections and zero clashes.

Web platform · live

thelecturenotes.com

live since May 2026, run alone

A course site for Bilkent students, with about 3,000 past exams and notes and a schedule builder.

1,360 Google clicks in the four weeks to 4 Oct 2026, 451 of them on 14 to 16 Sep, during registration

site thelecturenotes.com

Details

Problem

The site shows sections and seat counts, and during registration they are only useful if they are current. I run it alone, so the checks run every day without me.

What I did

  • A page for every course, about 3,000 past exams and notes (mostly imported in bulk from existing archives, with new uploads moderated), and a schedule builder that flags section clashes and suggests electives that fit around required courses.
  • An LLM classifier that reads file content to catch material filed under the wrong course, and a vision step that transcribes scanned pages.
  • A daily pipeline pulls the university's public course and section data (972 courses, 1,971 sections this term), rebuilds 3,737 static pages, runs a 42-suite browser and data test gate, and deploys only when it passes.
  • Moved the Django 5 + PostgreSQL API off Fly.io onto my own server behind a Cloudflare Tunnel. Static pages are on Cloudflare Pages.
  • Used Search Console to find the problems: the wrong landing page, truncated titles, and course pages that did not link to each other. The median course page now links to 7 other courses, and the SEO test suite asserts zero broken internal links.
thelecturenotes.com on a laptop and a phone. The laptop shows a MATH 101 study-notes page with a plot of secant lines closing in on a tangent. The phone shows the schedule builder with a week of sections and zero clashes.
Left: LLM-drafted study notes. Right: the schedule builder. Open full size

Result

  • Search Console, four weeks to 4 October 2026: 1,360 clicks and 40,064 impressions at an average position of 7.0. Registration week was the peak, with 451 clicks on 14 to 16 September.
  • The test gate has already stopped a deploy that carried two real bugs.
  • Found and fixed a caching bug that had left seat and instructor data stale.
The schedule builder on a desktop screen: five courses laid out on a Monday to Friday grid, with totals for credits, ECTS and weekly hours above it, and zero clashes.
A five-course week in the schedule builder, with no clashes. Open full size

Limits

  • Study notes for 7 courses (90 sections) are LLM-drafted. I built the pipeline and the pages, not the maths in them, and the maths has not been independently checked.
  • The browser test gate runs in the daily pipeline. A deploy triggered by a push runs only the backend tests.

Tools

  • Python
  • Django
  • PostgreSQL
  • Docker
  • GitHub Actions
  • Cloudflare Pages
  • Cloudflare R2
Home page of yurttanayriliyorum.com, in Turkish: a headline asking what happens to your things when you leave the dorm, a school search box, and a row of university logos.

Web app · live

yurttanayriliyorum.com

live, last code change August 2026

A move-out marketplace for students, set up for 50 Turkish campuses and built solo on Cloudflare Workers and D1.

97 routes one Cloudflare Worker, about 4,900 lines

site yurttanayriliyorum.com

Details

Problem

Students moving out of dorms need a way to pass things on to other students at the same school, with sign-in limited to students.

What I did

  • One Cloudflare Worker (about 4,900 lines, 97 routes) on D1, with a subdomain per school, set up for 50 Turkish campuses.
  • Student-email OTP sign-in, with codes stored only as SHA-256 hashes keyed with a server secret, and rate limits.
  • KVKK notices (Turkey's data-protection law).
Home page of yurttanayriliyorum.com, in Turkish: a headline asking what happens to your things when you leave the dorm, a school search box, and a row of university logos.
The home page. Sign-in is a one-time code sent to a student email address. Open full size

Limits

I don't publish usage numbers for it, because the ones I have are not verified.

Tools

  • JavaScript
  • Cloudflare Workers
  • D1
  • SQL

Finished, paused or stopped

Four robustness panels from the manuscript draft: a confound bound for each texture feature; AUC of a logistic model and a random forest before and after removing the recorded scan protocol, on the 110 lesions where it was recorded; AUC as a growing share of labels is randomly flipped; and a learning curve over the number of training lesions.

Medical imaging ML · my analysis

Analysis for a collaborator's radiomics study

analysis done, manuscript is a draft

The clinical question and the lesion data are my collaborator's. I built the classification and validation, regrouped the folds by patient because the per-lesion split let a patient sit on both sides, and drafted the manuscript.

AUC 0.985 random forest, patient-grouped nested CV. The same model on mean density alone reaches 0.90.

Details

Problem

Sclerotic bone lesions on CT in a breast cancer cohort have to be sorted into metastases and bone islands, and my collaborator's question was whether texture adds anything over mean density. The data: 180 lesions (92 metastases, 88 bone islands) from 120 patients, single centre, contoured by two radiologists.

What I did

  • Built and compared the classification models on 18 texture features per lesion (an Olea Sphere export), under patient-grouped nested cross-validation, and drafted the manuscript.
  • Regrouped the folds by patient. The first version split per lesion because the table had no patient column. Once I had one, it showed that 31 of the 120 patients have more than one lesion, all of them metastasis patients, so the same patient could sit on both sides of a split.
  • My own first grouped split had a bug that quietly cancelled the grouping, and a code review caught it. The splitter now stops the run if any patient is on both sides. Tested both ways: none of 25 splits leaks, while a per-lesion split and a re-creation of the bug put the patient of about 48% of test lesions in the training folds.
  • Ran a label-shuffle control: 753 runs with the labels permuted by patient and the whole pipeline repeated.

Result

  • Random forest AUC 0.985 with patient-grouped folds (± 0.018 is the standard deviation over 25 outer folds; a bootstrap over patients gives 0.978, interval 0.955 to 0.993).
  • The same model on mean density alone reaches 0.90 under the same folds. As single features ranked by AUC, mean density gives 0.776 and one texture feature (NGTDM Contrast) 0.961.
  • The per-lesion version had reported 0.989. The leak was small here, but only the grouped number is defensible.
  • The label-shuffle control averaged about 0.51 and its best run reached 0.69. With 753 runs the smallest possible p-value is 0.0013, and no run came close.

Limits

  • Single centre, one consensus contour per lesion (reader agreement was not measured), and labels that come mostly from imaging follow-up, with little pathology.
  • Metastases are mostly vertebral (85 of 92 where recorded) and scanned with the thoracic protocol. Location, exam type and contrast phase were filled in for all 92 metastases but only 18 of the 88 bone islands, so I left them out of the models: on their own they reach AUC 0.99.
  • On the 110 lesions that have those fields, a random forest kept 0.94 to 0.96 after harmonising for contrast phase and removing the effect of exam type and contrast; a linear model fell to 0.62 to 0.72. The confound is bounded but not ruled out, so the result needs external validation.
Four robustness panels from the manuscript draft: a confound bound for each texture feature; AUC of a logistic model and a random forest before and after removing the recorded scan protocol, on the 110 lesions where it was recorded; AUC as a growing share of labels is randomly flipped; and a learning curve over the number of training lesions.
Robustness checks from my analysis, in the manuscript draft. Removing the recorded protocol hurts the linear model far more than the random forest, which bounds the confound but does not rule it out. Open full size

Tools

  • Python
  • scikit-learn
  • nested cross-validation
  • permutation tests
  • bootstrap

LLM agents · code on GitHub

llm-agent-runtime: autonomous agent daemon

paused since June 2026

An agent daemon that splits a goal into work packets and can change files on the machine; most of the code limits what it can do.

8 LLM backends from five providers; shell commands run in a bubblewrap sandbox

code llm-agent-runtime

Details

Problem

An agent that edits files and runs shell commands on a real machine needs limits that hold when the model gets things wrong.

What I did

  • A goal is split into work packets, and each packet is routed to a panel of eight LLM backends from five providers (five APIs and three CLI or subscription wrappers). The executor can change files on the machine.
  • Each packet gets its autonomy level when the goal is decomposed, before anything runs.
  • Shell commands run inside a bubblewrap sandbox with a writable-path allowlist, and the MCP client refuses write tools, such as sending email or creating files, unless the call is explicitly marked as a write.
  • A rule-based self-audit checks telemetry and repo state without calling an LLM.

Tools

  • Python
  • asyncio
  • SQLite
  • bubblewrap
  • multi-provider routing
  • sandboxed execution

LLM pipeline · code on GitHub

papers-net: multi-model research pipeline

stopped in July 2026, retired 27 Sep

A pipeline that sends one research problem to several LLM providers, scores their answers and logs every run.

9,403 runs May to July 2026, 4,817 successful

code papers-net-core

Details

Problem

I wanted to compare LLM providers on the same research problems and keep only the answers that survived scoring.

What I did

  • Each problem goes to several providers. Their answers are scored and merged, and the surviving results are kept as material for papers.
  • Every run is logged in SQLite, with a dashboard for run history and provider comparison.

Result

9,403 runs between May and July 2026 across five provider families (OpenAI, Google, Anthropic, DeepSeek, OpenRouter), 4,817 of them successful.

Limits

  • 4,586 runs failed, almost half.
  • Only 13 of the 1,206 answers that passed verification made it into a paper draft.

Tools

  • Python
  • SQLite
  • FastAPI
  • multi-provider orchestration

Embedded Linux · code on GitHub

Android 10 on a 2012 phone

shelved after August 2026

LineageOS 17.1 (Android 10) ported to a 2012 Galaxy S3 mini with a Linux 3.4 kernel and 2013 vendor blobs.

45 to 188 s to a full boot across runs, after tracking down more than ten root causes

code old-kernel-modern-android

Details

Problem

Get Android 10 running on a phone whose kernel and vendor blobs predate it by years, then see whether the phone can run detection on-device.

What I did

  • Ported LineageOS 17.1 and tracked down more than ten root causes on the way, among them a vendor kernel patch that randomised every mmap and fragmented the address space.
  • Measured on-device detection with YOLO-FastestV2 int8.

Result

  • A full boot in 45 to 188 s across the runs I logged.
  • Detection ran at 252 ms per frame on one thread, including JPEG decoding.

Limits

In the one football frame I tried, the detector found 1 of 20 players, so I judged it not usable for tracking.

Tools

  • AOSP build
  • init
  • HAL
  • binder
  • Linux kernel debugging

Other

Firmware-level diagnosis of a read-only NVMe SSD

not recovered

A 1 TB NVMe drive went read-only and stayed that way. I traced the failure to one of its 16 NAND dies, which fails erases at every boot, worked out the check the boot ROM applies to the loader (a SHA-256 over 30 pages) and got the controller to boot modified loaders. Reads still fail with that die excluded. Not recovered: the fix needs vendor firmware I don't have.

  • Linux
  • NVMe
  • PCIe
  • vfio
  • reverse engineering

Skills

Computer vision and ML

  • Computer Vision
  • Object Detection
  • Deep Learning
  • Machine Learning
  • Model Evaluation
  • Image Processing
  • Data Annotation
  • Statistics

Used in: Greenhouse, Football detection, Radiomics analysis, LLM repair paper

ML libraries and tools

  • PyTorch
  • OpenCV
  • ONNX Runtime
  • scikit-learn
  • NumPy
  • Pandas
  • FFmpeg

Used in: Greenhouse, Football detection, Radiomics analysis

LLMs

  • Large Language Models
  • AI Agents
  • Prompt Engineering
  • Ollama

Used in: LLM repair paper, llm-agent-runtime, papers-net, thelecturenotes.com

Backend and infrastructure

  • Django
  • FastAPI
  • REST APIs
  • PostgreSQL
  • SQL
  • Docker
  • Linux
  • systemd
  • Git
  • GitHub Actions
  • Cloudflare Pages, Workers, D1, R2

Used in: thelecturenotes.com, yurttanayriliyorum.com, Greenhouse

Languages

  • Python
  • SQL
  • JavaScript
  • Bash
  • LaTeX

Education

Bilkent University

B.S. in Physics · 2022–2028 (expected)

Relevant coursework: Artificial Intelligence (CS461), Machine Learning (CS464), Probability and Statistics (MATH230), Programming in Python (CS115), Advanced Calculus for Physics (MATH242).

  • Bilkent Comprehensive Merit Scholarship (full)
  • TÜBİTAK Undergraduate Scholarship in Basic Sciences
  • TEV Outstanding Achievement Scholarship

Papers

  • Texture Radiomics Outperforms Mean CT Attenuation for Sclerotic Bone Lesions

    Manuscript draft. The clinical question and data are my collaborator's; I did the analysis and drafted the text.

  • Minimizers of the Seidel Quadratic Form: Exact Optimum Counts for n ≤ 14

    Sole author, preprint.

    doi 10.5281/zenodo.22018437