Manufacturing Engineer & Data Analyst with 18 years of experience, specializing in data analysis, open source contribution, and business automation.
Jump to — Robotics · Baseball websites · Baseball analytics · Realtime open data · Document OCR · Open source · Competitions · Mobile and web apps · PyPI · Learning projects · Tech stack · Career · Patents · Contact
stackchan-lab — M5 Stack-chan Development Log (Active)
How the voice loop runs
Stack-chan (M5STACK-K151) on a self-hosted Raspberry Pi 5 server — 19 server tools · 11 device tools over MCP · sings 16 cheer songs · stock firmware
| Stage | |
|---|---|
| Speech in | sherpa-onnx / ReazonSpeech, on the Pi |
| Reply | hosted 120B model, free tier |
| Speech out | Open JTalk on the Pi (0.27s / sentence), tuned for a small speaker |
| Tools | weather, markets, news, quake / typhoon, trains, baseball, cheer songs, … |
| Device tools | camera, head, LED, volume, screen, battery |
| Interrupting | server stops audio and listens at a silent point |
| Latency | spoken sentence by sentence while the reply streams |
| Shipping | Pi polls main, tests on staging, swaps in, rolls back on failure |
What went wrong, and what it turned out to be
| Symptom | Cause |
|---|---|
Pairing failed (No devices found) |
factory firmware nine releases behind; USB was the only way in |
| Kept talking to the stock server | hand-written NVS key padded with 0xFF instead of 0x00 |
| OOM-killed at 7GB, twice | VAD never fired on an always-streaming mic |
| Speech in slow motion | some real sentences synthesise slow; the server re-splits them |
| Rhythm would not come back | the measuring method was the limit; timed against note onsets, it sings |
| Speech quieter than singing | speech energy sits below 500Hz, which the speaker cannot play |
More in the server notes.
Write-up: stackchan-lab · Private: stackchan-logs 🔒 · stackchan-cache 🔒
M5Stack CoreS3 (ESP32-S3) / Raspberry Pi 5 / Python (aiohttp, WebSocket) / sherpa-onnx + ReazonSpeech / Open JTalk / MCP / Opus
rpi5-infra 🔒 (private, config record)
What it records, and what it leaves out
Config record for the robot's Pi 5, so it can be rebuilt after an SD failure.
| Recorded | firewall, systemd units, cron, listening ports, running services |
| Left out | secrets and credential files |
Raspberry Pi OS / systemd / ufw / cron / Tailscale
Minami Baseball OB — Alumni Association Site (In Production)
| PC (Light) | Game Results |
![]() |
![]() |
Architecture & features
11 active users · 44 pages · 23 DB tables · 19 e2e tests · ¥0/mo (159 files, ~22500 LOC)- 5-tier RBAC: Next.js Middleware + Supabase RLS
- Member pipeline: Google Form → Apps Script → GitHub Actions → Supabase; no names in Git
- Custom CMS: editors, soft delete, change history, audit logs
- 686 match records (1955–present)
- Security: RLS on all tables, CODEOWNERS, secret scanning
- Silent-fail monitoring: hourly health check, auto-opened issues, email alerts
Next.js 15 / TypeScript 5.8 / Tailwind CSS 4 / Supabase / Vercel / GitHub Actions / Google Apps Script / GA4
Yokohama Funnies — Amateur Baseball Team Site (In Production)
Architecture & features
Forked from Minami Baseball OB — 23-player roster · 48 pages · 32 DB tables · 19 e2e tests · ¥0/mo (175 files, ~24700 LOC)
- 5-tier RBAC with Google OAuth
- Approve by merge: a form request becomes a PR; merging grants the role
- Stats schema: per-game batting / pitching / attendance → 打率 / OPS / ERA / WHIP
- Stat input: spreadsheet migration, then scorebook photos read by Claude Code (Opus 5.5) and checked by arithmetic before saving
- Security & monitoring: RLS, gitleaks, hourly health check
Technical Documentation · Scorebook → stats how-to (JP) · Runbook 🔒
Next.js 15 / TypeScript 5.8 / Tailwind CSS 4 / Supabase / Vercel / GitHub Actions / Google Apps Script
About this section
Organised like a club's data-science group. MLB Statcast and public NPB stats, free tiers only; forecasts are pre-registered.
4 projects — Win Probability · Team Simulation · Next-Pitch · Pitch × Swing
| Project | What it answers | Links |
|---|---|---|
| MLB Win Probability Engine | Win probability from 915K plate appearances + a Claude bench coach | Live · Result |
| NPB Team Simulation | Monte Carlo season simulation | Live · Result |
| Next-Pitch Forecast | Which pitch type comes next? Beats usage tables for 97.5% of pitchers | Results |
| Pitch Shape × Swing Shape (in progress) | Does pitch shape vs swing shape change the outcome? | Plan & results |
Tracking-data player evaluation — 11 analyses of Japanese MLB pitchers and Ohtani.
All analyses
| Analysis | Key Finding | Article |
|---|---|---|
| Kikuchi Slider Revolution (2019-2025) | SL 17%→37% after Astros trade | Zenn / DEV.to / Kaggle |
| Senga Ghost Fork (2023-2025) | FO whiff rate 58%→39% | Zenn / DEV.to / Kaggle |
| Imanaga 2nd Year (2024-2025) | 3-pitch concentration (97%) | Zenn / DEV.to / Kaggle |
| Darvish Evolution (2021-2025) | SL/ST halved, CU became putaway pitch | Zenn / DEV.to / Kaggle |
| Ohtani Spray Chart | pybaseball's spraychart() in one line | Zenn |
| Ohtani Heatmap | Stadium in matplotlib + hit density | Zenn |
| 2022-2024 analyses (5) | WBC 2023, Ohtani 2022-2023, 2024 HR race | Folder |
| 2026 update | Four pitchers' arsenals 2019-2026 as GIFs | Folder |
6 projects — NPB Prediction · Foreign Players · Aging Curve · KPI Carry-over · Condition · Jev
| Project | What it answers | Links |
|---|---|---|
| NPB Season Prediction | Player projections: Bayesian ensemble (Marcel + Stan/Ridge + ML) | Live · Article JP / EN |
| NPB Foreign Player Study | Does MLB Statcast predict a foreign player's first NPB season? | Repo |
| Aging Curve & Development Tracker | Stan aging model + each hitter against his expected band | Repo · Tracker |
| Which KPIs Carry Over | Which numbers repeat next season? Skill does, luck does not | Article JP / EN |
| Player Condition Monitoring | Can an injury be seen early? Arm IL signal found (AUC 0.61) | Ohtani / All hitters / Anomaly |
| Jev as a Baseball Prior | Can a decision-only AI forecast next-season wOBA zero-shot? | Article JP / EN |
Prediction accuracy & details
| System | Key Metric | Articles |
|---|---|---|
| NPB 2026 | Out-of-sample: beats both floors, ≈ Marcel alone | JP / EN |
| NPB 2026 Teams | Median-wins MAE 5.83; win ranges too narrow | Result |
| NPB 2021 Backtest | MAE 10.90W | Repo |
| MLB WP Engine | Held-out 2026 Brier 0.158 | Live |
| Baseball MLOps | wOBA MAE .0287 (Marcel .0326) / xFIP MAE 0.483 (Marcel 0.558) | Live |
4 tools — Scouting Dashboards · WBC 2026 · Bat Tracking · Amateur Stats
| Tool | For whom / what | Links |
|---|---|---|
| Scouting dashboards | Leaderboards and pitch reliability on the dbt marts | Looker · Tableau |
| WBC 2026 Scouting | 37 Statcast apps, 19 countries, in the browser | All 37 / Japan Pitchers |
| MLB Bat Tracking Dashboard | Leaderboard, comparison, lineup builder | Live |
| Amateur team stats | Real team stats read from paper scorebooks | Site · How-to (JP) · Runbook 🔒 |
5 projects — Data Pipeline · Pitch API · Baseball MLOps · savant-extras · Kaggle Datasets
| Project | What it does | Links |
|---|---|---|
| MLB Data Pipeline | Public HF dataset, refreshed weekly + dbt / DuckDB marts | HF Dataset |
| Next-Pitch Forecast API | Free JSON API, refreshed daily in season | API |
| Baseball MLOps Pipeline | 5-model ensemble from the W&B registry | Live |
| savant-extras | PyPI package for Baseball Savant leaderboards | PyPI |
| Gated Kaggle datasets | Statcast + bat tracking (2.14M pitches), published only when checks pass | Statcast |
Baseball Skeleton Analysis — 3D skeletons from Driveline OpenBiomechanics C3D data
| Pitching Skeleton (3D C3D) | Hitting Skeleton (3D C3D) |
![]() |
![]() |
Finding & articles
Trunk rotation vs pitch speed: r=0.425. Bug fix PR #384 to ezc3d. Article (JP) / Article (EN)
- One-camera pitching pose — what one camera can measure (in progress)
- Handwritten scorebook reading — see Document OCR
- Ask the marts in Japanese — spoken MLB questions → DuckDB, on Stack-chan
| Japan Geohazard Monitor | Persian Gulf Ship Tracker |
![]() |
|
| Forecasting the first (isolated) mainshock: honest AUC 0.778, goal 0.90 + monitoring dashboard | Vessel tracking via AIS + Sentinel-1 radar, all on GitHub Actions · map |
Real-time API / WebSocket → SQLite → FastAPI + Leaflet.js — All projects
Earth Vital Signs — sea ice, CO2, temperature, El Niño, rebuilt daily
Japan Road Traffic — ~2,000 highway counters, archived daily before the source drops them
Japan Geohazard Monitor — Earthquake prediction research
Evaluation and the Kumamoto InSAR result
| Sudden (isolated) mainshocks, 2,280 cells | AUC |
|---|---|
| honest axis (headline; dropped rows as negatives) | 0.778 |
| main SUDDEN-ALL axis (verdicts read here) | 0.787 |
| climatology alone (main axis) | 0.753 |
- Target: the first earthquake, an isolated M≥6 with nothing larger before it; goal AUC 0.90 (0.122 to go). Older 0.90-0.92 figures were pooled with aftershocks and are not sudden-mainshock skill
- Evaluation: walk-forward, 37 windows, 1989–2026, plus a pre-1990 arena; 68 non-catalogue pilot groups read since round 960, none at the gate yet; prospective tests on 2027+ windows
- Rules: pre-registered, frozen scripts, compared against permutation floors — RESEARCH-LOG.md
- Data: public HF dataset, weekly CI; licensed inputs in geohazard-restricted-inputs 🔒
- InSAR: 2026 Kumamoto M7.1 displacement from Sentinel-1 (details)
Japan Wildlife Sightings — Bear and wildlife sighting open data, normalized · map
What is collected, and what is withheld
- 27 sources, 79,394 records in one schema, rebuilt daily
- Only what licences allow is published (40,241 records) — docs/licenses.md
- Map: MapLibre GL JS over GSI tiles, no external CDN
Approach
No cloud OCR, no generative model; the same page always reads the same.
Handwritten Scorebook OCR (open source, active)
Where it stands
Paper scorebook photos → at-bat data · OpenCV on a Raspberry Pi 5 · constraint solver · 33 graded sheets
| Configuration | Score |
|---|---|
| Shipped default | 366 / 396 = 92% |
| No grid facts handed over | 363 / 396 = 92% |
| Every recognition in-house | 321 / 396 = 81% (with ledger), 283 / 396 = 71% (none) |
| Hardest mark class: template → + solver | 76% → 93% |
| Consecutive held-out sheets | 31 |
| Paid vision model on the same corners | 370 / 396 = 93% |
| Real output | my team's 2026 batting stats |
What the last rounds changed
| Change | Result |
|---|---|
| Inning columns read off the paper, not the ledger | truth reachable on all 31 sheets (was 3) |
| "Max three outs per inning" made a price, not a gate | +36 corners in-house |
| Adversarial review of that claim | first run was mis-flagged; re-measured |
| Nine fixes for spurious marks | all null |
Code: baseball-scorebook-reader (MIT) · Write-up: docs · Notation guide (JP) · Ground truth with names: private 🔒 · Blog: DEV.to / Qiita (JP)
Document Extraction Lab (active)
Getting data out of documents (PDFs, scans, images), one topic per folder. Self-made or public samples only.
| Topic | Status |
|---|---|
| glyph-table: PDFs whose text cannot be copied | evaluated against OCR, 4 Claude models and two related OSS tools on self-made samples and a real monthly report: 0 silent errors, unknown shapes flagged with "?" |
Reported upstream (2026-11): pdf-glyph-mapping #10 (4 breaks reproduced on the author's data, two one-line fixes proposed) · CUNY pdf-accessibility-app #92 (look-alike substitutions pass unflagged) · #93 (characters missing from Japanese screen-reader text; fixed upstream in OCRmyPDF 17.13.0, only the lock needs bumping)
PDFs with no extractable text, without a per-call AI API
Characters drawn as vector outlines, so there is no text to copy. The usual answer is to send every page to a generative-AI API. Here a generative model only drafts a glyph → character table once, a human checks it, and every run after that is a lookup.
| Point | What it means |
|---|---|
| Cost per run | none: no API calls, works offline |
| Hallucination | none: only characters in the table come out; an unknown shape stays unassigned |
| Not "no errors" | a wrong table entry repeats every run (one unchecked entry: 200 silent errors in 11 months), so drafts from 4 models are compared and a person checks only where they disagree (11% of entries) |
| Thin data | characters seen only a few times are named, so they get checked by eye |
| Measured | self-made samples (17 conditions, English/Japanese) and a real government monthly report: 0 silent errors; full-page OCR misread thousands (results) |
| vs. generative AI | top models also read the real report without errors; the difference is cost per page and the same answer every run |
(218 PRs / 171 Merged) across 49 repositories. See [oss-contributions](https://github.com/yasumorishima/oss-contributions) for full details.
PR review: CodeRabbit, with one central config in coderabbit 🔒 (docs-only PRs stay quiet), and CodeQL on public repos and forks, with coverage and triage notes in codeql 🔒.
PR highlights (click to expand)
| Repository | PR | Description |
|---|---|---|
| dfinity/icp-js-core | #1270 | Candid decode error messages |
| line/line-bot-mcp-server | #369 | Add get_follower_ids tool |
| pyomeca/ezc3d | #384 | Fix __eq__ early return bug |
| codeforjapan/mapprint | #556 | Share buttons on the disaster print map |
| codeforjapan/mapprint | #564 | Deterministic list order |
| codeforjapan/mapprint | #563 | 2026 Kumamoto earthquake paper map |
| codeforjapan/BirdXplorer | #281 | Statement timeouts for the API |
| hotosm/openaerialmap | #289 | STAC ingester dropping the wrong record |
| apache/fineract-backoffice-ui | #321 | Accounting screen translations |
| daisy/MathCAT | #665 | Chemistry assertions that could never fail |
| daisy/MathCAT | #720-1118 | Japanese speech rules, 99 merged PRs, now in main (#936) |
| daisy/MathCAT | #746 | Japanese navigation announcements for blind readers |
| PHPOffice/PHPPresentation | #897 | PHP 8.4/8.5 static analysis, 144 findings fixed |
| project-inclusive/OpenFisca-Japan | #479-484 | Six welfare benefits added |
| MobilityData/gtfs-validator | #2177 | Require stop IDs on transfers |
| sugarlabs/musicblocks-v4 | #774 | Palette interactions with tests |
| AtsushiSakai/PythonRobotics | #1408 | CI on Python 3.14 |
| optuna/optuna | — | Hyperparameter optimization framework |
| pandas-dev/pandas | — | Data analysis library |
| jldbc/pybaseball | #514 | Bug fixes & pandas 3 compatibility |
team-mirai — Civic Tech OSS (26 PRs (14 Merged / 4 Open / 8 Closed))
| Repository | Highlights |
|---|---|
| action-board | 48 unit tests, RPC tests, breadcrumb nav, cache fix + 5 more |
| mirai-gikai | seed permission fix, Safari/iOS ruby spacing |
| fact-checker | X API investigation + 5 PRs |
Notebooks Expert | 🥉 14 Bronze Notebook Medals
Active: Santa 2026 (search, 129/3085) · Generalist Gaming Agent (agent, 266/316)
Finished 2026: Kaggriculture (agent, 6047/10148) · ROGII Wellbore Geology (2545/6125) · PS S6E6 (F1 0.95939) · Stanford RNA 3D Folding 2 · BirdCLEF+ 2026
Bronze Medal Notebooks (14)
| Notebook | Topic |
|---|---|
| savant-extras Defense & Pitching Quality | Defense & pitching quality |
| MLB Statcast Spray Charts for WBC 2026 | WBC 2026 spray + zone charts |
| March Machine Learning Mania 2026 | NCAA prediction (LightGBM) |
| NFL Geometric Rules Baseline | Rules only, RMSE 2.921 |
| CAFA 6 Baseline | Protein function (PyTorch MLP) |
| Dataset | Description |
|---|---|
| 🥈 MLB Bat Tracking Leaderboard (2024-2025) | 452 batters, 19 swing metrics |
| 🥈 WBC 2026 Scouting | 306 players, 20 countries |
Other datasets (9)
| Dataset | Description |
|---|---|
| Earth Vital Signs - Daily Climate Indicators | Climate indicators, rebuilt daily (repo) |
| Japan Road Traffic Volume (Hourly Archive) | ~2,000 highway counters (repo · starter) |
| ABS Challenges: Triple-A 2025 to MLB 2026 | 15 challenge boards · JP / EN |
| Baseball Savant Leaderboards (2024-2026) | 20 leaderboards |
| Japanese MLB Players Statcast (2015-2026) | 38 players, 198k pitches |
| MLB Pitcher Arsenal (2020-2026) | 5,716 pitcher-seasons · notebook |
| MLB Statcast + Bat Tracking (2024-2026) | Every pitch 2024-2026 (2.14M) |
| XC BirdCLEF 2026 Target Recordings (URLs) | Xeno-canto URLs |
| BEATs iter3+ AS2M Pretrained | Audio checkpoint for offline notebooks |
Active: 5th Air Combat AI Challenge (to 2026-12-04) · 3rd MLIT Geospatial Data Challenge — foot-traffic forecasting for new stores (to 2027-01-12)
Finished 2026: NEDO Baggage-Loading Optimization (167/591) · NIR Moisture Prediction · AI Engineering Challenge (LLM / RAG)
DrivenData Competitions — GitHub Actions + GPU pipeline · latest: On Top of Pasketti
2 apps — Daily Diary (Google Play) · Fire Tablet Google Play Helper
| App | Description | Link |
|---|---|---|
| Daily Diary | Flutter, 10 languages, offline-first, screen-reader checked in CI, Play Age Signals for age-appropriate ads, released to Google Play from CI on a version bump | Google Play |
| Fire Tablet Google Play Helper | Step-by-step APK install guide for Fire OS | Live |
icrc167-android — Internet Identity login for native Android (Active)
Seven things that were measured rather than assumed
ICRC-167 for Android: sign in with Internet Identity and call canisters directly, no backend.
| Question | What the measurement said |
|---|---|
| Does the URL fragment survive an App Link? | Yes, byte-exact |
| Does the device test prove anything? | Only the negative cases do |
| Is the hash right? | Now pinned to the spec's worked example |
| Do negative tests reach their check? | Not at first; now pinned with a mutation in CI |
| Testable before Internet Identity? | Yes, with a locally signed chain |
| Do published vectors settle the rules? | No, they predate the subnet-type rule |
| Does the certificate bind to the canister? | Not on its own |
Demo passed on a real phone (2026-09-14) · passkey issue dfinity/internet-identity#4334
Kotlin / Android / BLS12-381 · Ed25519 · ECDSA P-256 / CBOR / GitHub Actions
6 packages (click to expand)
| Package | Description |
|---|---|
| savant-extras | 17 Baseball Savant leaderboards |
| baseball-field-viz | Field drawing, spray and zone charts |
| kaggle-notebook-deploy | Deploy Kaggle Notebooks via git push |
| kaggle-wandb-sync | Sync W&B offline runs from Kaggle |
| signate-deploy | SIGNATE workflow via GitHub Actions |
| signate-wandb-sync | SIGNATE scores to W&B |
4 projects — Sansuu, Shogi & Sora · OpenClaw Bot · alexa-rpi5 · Slide Decks
| Project | Description |
|---|---|
| Sansuu, Shogi & Sora | Arithmetic, shogi, planetarium, toddler games · usable without sight · Live |
| OpenClaw Twitter Bot | Pi 5 + Gemini auto-tweet bot (stopped) · Article (JP) |
| alexa-rpi5 🔒 | Pi 5 → Fire TV Cube control hub |
| Slide Decks with Claude Code 🔒 | Notes on HTML / PDF slides with Claude Code |
Past Projects
| Project | Description |
|---|---|
| GAS Calendar Tool | Batch calendar registration |
| Dune Analytics | JPYC Stablecoin Dashboard |
| selenium-to-playwright 🔒 | Playwright automation + night batch |
| Archived Projects | Selenium, business tools, etc. |
Python · ML · DuckDB · BigQuery · Streamlit · Next.js · Flutter · GitHub Actions
| Category | Technologies |
|---|---|
| Data Analysis & ML | Python, pandas, scikit-learn, LightGBM, XGBoost, CatBoost, PyTorch, DuckDB, W&B |
| Data Platform | Hugging Face Datasets, SQLite, BigQuery sandbox (dbt) |
| Data Sources | Baseball Savant (Statcast), pybaseball, USGS, NASA Earthdata, AIS |
| Web & Dashboards | Streamlit, Next.js, TypeScript, Supabase, Vercel |
| Mobile App | Flutter, Dart |
| Automation & DevOps | GitHub Actions, Google Apps Script, VBA, Power Query |
| Tools | Claude Code, Kaggle, Colab, Excel, Looker Studio, Tableau Public |
| Manufacturing | Statistical Quality Control, Process Engineering |
- 2024 - Present: Quality Management @ a semiconductor distributor
- 2008 - 2024: Semiconductor Manufacturing Process Engineer
- 2008 - 2014: Toppan Printing
- 2014 - 2017: Toshiba → Toshiba Memory (now Kioxia)
Stencil mask and manufacturing method thereof — Patent No. 6307851, Inventor · Google Patents (JP6307851B2)
- Site: https://yasumorishima.github.io
- Blog: DEV.to (EN) / Zenn (JP) / Quarto Blog (EN)
- Claude Code notes: claude-code-notes (index of my Claude Code write-ups + small verified snippets)
- Kaggle: https://www.kaggle.com/yasunorim
- Wantedly: https://www.wantedly.com/id/yasunori_morishima_b
- LinkedIn: https://www.linkedin.com/in/morishima-yasunori-b70229241








