Yuki Kusachi Energy Device & Consulting

Web-DRT — EIS / DRT Analyzer

English 日本語 ☕ Buy me a coffee Launch Web-DRT →
🔒 100% Client-Side • Zero Data Upload • Offline-Capable

Web-DRT: Browser-Only EIS & DRT Analyzer

Deconvolve Electrochemical Impedance Spectroscopy (EIS) data into Distribution of Relaxation Times (DRT) spectra directly inside your browser. Built for battery and electrochemistry engineers working under strict corporate IT security policies.

Launch Web-DRT →

1. Verifiable Zero-Upload & Security Architecture

Why Web-DRT Exists

Following the philosophy of Excel-DRT (VBA Edition), Web-DRT brings professional-grade DRT inversion to environments where Excel macros are blocked or installing desktop software is prohibited.

  • Strict Browser CSP (connect-src 'none'): The application page (index.html) disables all outbound network requests and analytics beacons at the browser security policy level.
  • RAM-Only Web Worker Computation: Files and clipboard data stay strictly in browser memory inside a dedicated Web Worker thread. Nothing is written to cookies, disk storage, or remote servers.
  • Physical Air-Gap Testable: Open Web-DRT, disconnect Wi-Fi or LAN, and run your confidential EIS analysis completely offline—verified live by the header status badge and Privacy Inspector.
  • Zero External Binaries: Pure TypeScript/JavaScript numerical engine—no .exe, no macro files, and no unverified downloads.

2. Mathematical Formulation & Numerical Algorithm

2.1 Fundamental EIS–DRT Integral Relation

Any linear, causal, time-invariant electrochemical impedance spectrum can be represented as an ohmic series resistance plus a continuous distribution of Voigt RC elements :

By default (Excel-DRT Faithful Mode), Web-DRT discretizes onto logarithmically spaced grid points spanning using piecewise-linear / point-collocation Debye kernels:

Optional advanced settings also allow including high-frequency inductance , 1st/2nd-order derivative regularization, and modulus weighting.

2.2 Kramers-Kronig (KK) Consistency Filter

Before inversion, Web-DRT evaluates physical causality by fitting with Ridge-stabilized () Debye weights and comparing the predicted imaginary part against measurement:

Points exceeding the threshold (default 3.0%) are flagged as Excluded (KK) so noisy or drifting points do not generate artificial ghost peaks.

2.3 Tikhonov Regularization & Active-Set NNLS

Solving for is an ill-posed inverse problem. Web-DRT minimizes the Tikhonov-regularized objective under strict physical non-negativity inside a background Web Worker:

Default mode uses 0th-order Ridge regularization () matching Excel-DRT, solved via a warm-started Lawson-Hanson Active-Set NNLS solver across (step 0.2, 51 steps).

2.4 Normalized L-Curve Optimization & Peak Integration

Each step yields and . Both axes are normalized to and the optimal elbow point minimizes Euclidean distance to :

Because each grid element has units of resistance (), the polarization resistance of each detected peak region is the discrete sum .

3. Quick Usage Guide

  1. Load EIS Data: Drag and drop a .z (ZView/Scribner), .csv, or .txt/.tsv file, paste 3 columns from Excel, or click one of the 3 built-in samples.
  2. Verify Imaginary Sign: Web-DRT automatically detects Z'' (capacitive < 0) vs -Z'' (capacitive > 0) and lets you toggle or remap columns anytime.
  3. Watch Live Calculation: Click Run DRT Analysis to watch the L-curve and DRT spectrum form in real time without freezing your browser.
  4. Explore & Compare: Drag the λ Slider or click any point on the L-curve for instant re-inspection, then click + Pin Current to Compare to overlay multiple datasets.

4. Related Tools & Kindle Books

Excel-DRT (VBA Edition)

Original Excel VBA macro workbook for offline desktop DRT analysis without Python or external installs.

Kindle Book (English)

Practical Guide to EIS & DRT Analysis: From Fundamentals to Standalone Excel Implementation (ASIN: B0HPZ2T7JK)

View on Amazon.com →

Kindle 書籍(日本語版)

『EIS & DRT 解析実践ガイド: 基礎理論からExcelによる自作実装まで』 (ASIN: B0HPZ4KNJH)

Amazon.co.jp で見る →
🔒 完全クライアントサイド • データ外部送信ゼロ • オフライン動作

Web-DRT:ブラウザ完結型 EIS / DRT 解析ツール

電気化学インピーダンス分光(EIS)データから緩和時間分布(DRT)スペクトルをブラウザ上だけで算出する解析アプリです。Excelマクロ実行やソフト導入が制限された企業PC環境でも、機密データを一切外部送信せず安全に解析できます。

Web-DRT を起動する →

1. 外部送信ゼロを「検証・体感」できるセキュリティ設計

開発の背景と安心 UX

先行公開中の Excel-DRT(VBA版) の思想を発展させ、「より直感的に、マクロ不要で、かつセキュリティ上の疑念なく使える」ツールとして設計しました。

  • 厳格な CSP(connect-src 'none'): 解析アプリ本体(index.html)はアクセス解析タグを含め外部通信をブラウザレベルで全面禁止しています。
  • RAM のみ・Web Worker 実行: 数値計算はすべてブラウザ内のバックグラウンドスレッド(Web Worker)で実行され、Cookie やローカルディスクに EIS データを保存しません。
  • 物理遮断テスト対応: アプリを開いた状態で Wi-Fi / LAN を切断すると、ヘッダーのバッジが「オフライン動作実証中」に切り替わり、完全ローカル動作をその場で体感できます。
  • 検証インスペクター搭載: ヘッダーのセキュリティバッジをクリックすると、ページ読込後の通信回数(0回)や DevTools でのセルフ確認手順を確認できます。

2. 数理理論と実装アルゴリズム

2.1 EIS–DRT 積分方程式と Excel-DRT 忠実再現

Web-DRT の標準モードは Excel-DRT(DRT_core.bas)の定数・数式を忠実に再現しています。有効データの周波数範囲を対数等間隔 100 点の緩和時間グリッドに離散化し、デバイ要素とオーミック抵抗 を同時に推定します。

また、折りたたみ式の詳細オプションから、高周波インダクタンス の同時推定、1次・2次微分正則化、 重み付けも選択可能です。

2.2 KK-Filter・Tikhonov正則化・正規化 L-Curve

  • KK-Filter: 実部 から Kramers-Kronig 整合性を検証し、残差が閾値(デフォルト 3%)を超える異常点を除外してゴーストピークを抑制します。
  • Active-Set NNLS: 非負制約 の下で (ステップ 0.2、51点)をスキャンし、L-curve の変化をリアルタイムに可視化します。
  • 最適 λ 自動選定とピーク積分: 正規化 L-curve の原点最短距離(エルボー点)を自動選択し、検出された各ピークの寄与抵抗 と構成比(%)を自動集計します。

3. 使い方(4ステップ)

  1. データ入力: .z(ZView / Scribner)・.csv・.txt/.tsv ファイルのドロップ、Excel からのコピー&ペースト、または3種類の組み込みサンプルを選択します。
  2. 符号規約と列の確認: Z''(容量性が負)と -Z''(容量性が正)を自動判定し、必要に応じて1クリックで切り替えられます。
  3. リアルタイム解析: 「DRT 解析を実行」を押すと、L-curve と DRT スペクトルがリアルタイムに形成されていきます(実行中いつでもキャンセル可能)。
  4. 探索と比較: 解析完了後は λ スライダーや L-curve 上の点クリックで即座にフィッティングを確認でき、「比較に追加」で複数データの重ね描きも可能です。

4. 参考文献・Citation・ライセンス

参考文献

  • T. Reshetenko and A. Kulikovsky, "Understanding the distribution of relaxation times of a low–Pt PEM fuel cell," Electrochimica Acta, 391, 138954 (2021).
  • C. Plank et al., "A review on the distribution of relaxation times analysis: A powerful tool for process identification of electrochemical systems," Journal of Power Sources, 594, 233845 (2024).
  • Hirofumi Sumi, "緩和時間分布(DRT)法による電気化学インピーダンス解析とその応用," Denkikagaku, 90 (3), 279-286 (2022).
  • Z. Wang et al., "DRTtools: Freely Accessible Distribution of Relaxation Times Analysis for Electrochemical Impedance Spectroscopy," ACS Electrochemistry, 1 (12), 2680–2689 (2025).

Cite This Tool (BibTeX)

@misc{kusachi2026webdrt,
  author = {Yuki Kusachi},
  title = {Web-DRT: Browser-Only EIS and Distribution of Relaxation Times Analyzer},
  year = {2026},
  url = {https://www.edandc.com/Web-DRT/},
  note = {Yuki Kusachi Energy Device \& Consulting}
}
License: Released under the MIT License. Free for academic and commercial use inside your browser with zero server-side tracking or data transmission.