<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://himsriv24.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://himsriv24.github.io/" rel="alternate" type="text/html" /><updated>2026-07-23T07:37:31+00:00</updated><id>https://himsriv24.github.io/feed.xml</id><title type="html">Himanshu Kumar, Ph.D.</title><subtitle>Assistant Professor at IIT Indore | Biomedical Signal Processing | Neurotechnology | Machine Learning &amp; Deep Learning</subtitle><author><name>Himanshu Kumar, Ph.D.</name><email>himanshu@iiti.ac.in</email><uri>https://bsbe.iiti.ac.in</uri></author><entry><title type="html">Why Three-Phase Seizure Segmentation Matters in SEEG</title><link href="https://himsriv24.github.io/posts/2026/03/three-phase-seizure-segmentation/" rel="alternate" type="text/html" title="Why Three-Phase Seizure Segmentation Matters in SEEG" /><published>2026-03-24T00:00:00+00:00</published><updated>2026-03-24T00:00:00+00:00</updated><id>https://himsriv24.github.io/posts/2026/03/three-phase-seizure-segmentation</id><content type="html" xml:base="https://himsriv24.github.io/posts/2026/03/three-phase-seizure-segmentation/"><![CDATA[<p>The central clinical question in drug-resistant focal epilepsy is not only <em>where</em> a seizure begins, but also <em>how</em> it evolves over time. In stereotactic EEG (SEEG), the transition from seizure onset to propagation and then to termination carries information that can help separate the true seizure onset zone from regions that are recruited later.</p>

<p>In our recent work, I focused on <strong>three-phase seizure segmentation</strong>: identifying ictal onset, intra-ictal transition, and seizure termination directly from SEEG recordings. Rather than treating seizures as a single undifferentiated event, this framing emphasizes their temporal structure and makes the analysis more useful for presurgical interpretation.</p>

<h2 id="why-segmentation-matters">Why segmentation matters</h2>

<p>Clinical review of intracranial EEG is still heavily dependent on expert visual inspection. That process is valuable, but it is also time-intensive and can vary across readers. A phase-based computational framework can support that review by providing consistent temporal boundaries that are interpretable and easy to audit.</p>

<p>Precise phase segmentation also helps with downstream analysis. Once onset, transition, and termination are localized in time, it becomes easier to study propagation dynamics across channels, compare seizure organization across patients, and relate electrophysiology to surgical hypotheses.</p>

<h2 id="why-we-used-changepoint-detection">Why we used changepoint detection</h2>

<p>A seizure is a dynamic signal, so changepoint detection is a natural fit. In this project, I used envelope-based multivariate features together with the <strong>Pruned Exact Linear Time (PELT)</strong> algorithm to detect boundaries between seizure phases. The goal was not only good performance, but also a method that remains physiologically interpretable.</p>

<p>The feature set combines signal energy and spectral structure, including RMS envelope, relative bandpower, line length, and spectral entropy. That combination gives the model access to amplitude shifts, rhythmic structure, and changes in signal complexity without turning the pipeline into a black box.</p>

<h2 id="what-i-find-promising-about-this-direction">What I find promising about this direction</h2>

<p>What I find most promising is that the framework supports both <strong>temporal precision</strong> and <strong>clinical interpretability</strong>. If an algorithm proposes a boundary, it should be possible to inspect the relevant channels, understand the feature behavior, and decide whether the output is clinically meaningful.</p>

<p>That balance matters in epilepsy research. Methods that are accurate but opaque are harder to trust in high-stakes settings. Methods that are interpretable but too weak to be useful do not help enough. I am interested in approaches that move both of those constraints in the right direction.</p>

<h2 id="looking-ahead">Looking ahead</h2>

<p>This line of work connects naturally to broader questions about seizure propagation, seizure onset zone localization, and representation learning from intracranial EEG. The published paper is one step in that direction, and I expect future work to build on it with richer multichannel modeling and tighter integration with clinical decision support.</p>

<p>If you are interested in the paper itself, it is now online via <a href="https://doi.org/10.1007/s10439-026-04097-7">Springer</a> and is also listed on my <a href="/publications/">publications page</a>.</p>]]></content><author><name>Himanshu Kumar, Ph.D.</name><email>himanshu@iiti.ac.in</email><uri>https://bsbe.iiti.ac.in</uri></author><category term="epilepsy" /><category term="SEEG" /><category term="signal-processing" /><summary type="html"><![CDATA[The central clinical question in drug-resistant focal epilepsy is not only where a seizure begins, but also how it evolves over time. In stereotactic EEG (SEEG), the transition from seizure onset to propagation and then to termination carries information that can help separate the true seizure onset zone from regions that are recruited later.]]></summary></entry><entry><title type="html">Why Changepoint Detection Fits SEEG Analysis</title><link href="https://himsriv24.github.io/posts/2026/03/changepoint-detection-seeg/" rel="alternate" type="text/html" title="Why Changepoint Detection Fits SEEG Analysis" /><published>2026-03-22T00:00:00+00:00</published><updated>2026-03-22T00:00:00+00:00</updated><id>https://himsriv24.github.io/posts/2026/03/changepoint-detection-seeg</id><content type="html" xml:base="https://himsriv24.github.io/posts/2026/03/changepoint-detection-seeg/"><![CDATA[<p>One reason I keep returning to changepoint methods in epilepsy research is that the underlying signals are fundamentally <strong>temporal</strong>. In stereotactic EEG (SEEG), clinically relevant events are not only defined by spatial location, but also by transitions in dynamics: onset, spread, reorganization, and termination.</p>

<p>That makes changepoint detection a natural methodological choice. Rather than asking a model to label every time point independently, a changepoint framework asks a more structured question: <strong>when does the signal statistically change in a meaningful way?</strong></p>

<h2 id="why-this-framing-is-useful">Why this framing is useful</h2>

<p>SEEG recordings often contain abrupt or progressive shifts in amplitude, rhythmic organization, spectral content, and synchrony across channels. Those transitions are exactly what clinicians inspect visually when they review seizures. A changepoint model tries to formalize that process.</p>

<p>This is appealing for two reasons. First, it produces outputs that are easy to interpret: proposed boundary times. Second, it keeps the analysis close to the temporal logic of the clinical problem instead of forcing the data into a less natural classification setup.</p>

<h2 id="what-makes-it-hard">What makes it hard</h2>

<p>Of course, not every change in the signal is clinically meaningful. Intracranial EEG is noisy, patient-specific, and heterogeneous across seizures. A useful changepoint system has to distinguish true physiological transitions from incidental fluctuations.</p>

<p>That is why feature design matters. If the input representation captures relevant seizure dynamics, then changepoint detection becomes much more informative. If the features are poorly matched to the phenomenon, even a sophisticated optimization algorithm will return boundaries that are technically valid but clinically unhelpful.</p>

<h2 id="why-interpretability-matters-here">Why interpretability matters here</h2>

<p>I am especially interested in changepoint methods because they sit in a productive middle ground. They are more formal and scalable than pure visual review, but they do not have to become opaque black-box predictors.</p>

<p>If a model identifies a seizure onset boundary, we should be able to inspect the channels and the feature trajectories that drove that decision. In a clinical context, that level of transparency is not optional. It is part of what makes a computational result worth trusting.</p>

<h2 id="looking-ahead">Looking ahead</h2>

<p>I expect changepoint methods to remain useful not only for seizure phase segmentation, but also for studying propagation structure, functional reorganization, and other temporally evolving phenomena in intracranial EEG.</p>

<p>For me, the key question is not whether changepoint detection should replace clinical expertise. It should not. The question is how to build tools that make temporal structure easier to quantify, inspect, and use.</p>]]></content><author><name>Himanshu Kumar, Ph.D.</name><email>himanshu@iiti.ac.in</email><uri>https://bsbe.iiti.ac.in</uri></author><category term="SEEG" /><category term="signal-processing" /><category term="epilepsy" /><summary type="html"><![CDATA[One reason I keep returning to changepoint methods in epilepsy research is that the underlying signals are fundamentally temporal. In stereotactic EEG (SEEG), clinically relevant events are not only defined by spatial location, but also by transitions in dynamics: onset, spread, reorganization, and termination.]]></summary></entry><entry><title type="html">Common Pitfalls in SEEG Machine Learning</title><link href="https://himsriv24.github.io/posts/2026/03/common-pitfalls-seeg-ml/" rel="alternate" type="text/html" title="Common Pitfalls in SEEG Machine Learning" /><published>2026-03-19T00:00:00+00:00</published><updated>2026-03-19T00:00:00+00:00</updated><id>https://himsriv24.github.io/posts/2026/03/common-pitfalls-seeg-ml</id><content type="html" xml:base="https://himsriv24.github.io/posts/2026/03/common-pitfalls-seeg-ml/"><![CDATA[<p>Machine learning in EEG and SEEG can look deceptively straightforward: preprocess the signals, extract features or train a network, and report accuracy. In practice, many pipelines fail because the modeling choices are cleaner than the data assumptions underneath them.</p>

<p>Here are a few pitfalls I think are especially important.</p>

<h2 id="1-leakage-across-patients-or-seizures">1. Leakage across patients or seizures</h2>

<p>The most common failure mode is still data leakage. If windows from the same seizure or patient appear in both training and test sets, performance can become artificially optimistic very quickly.</p>

<p>In epilepsy applications, patient-level separation is usually the right default. A model that performs well only because it has already seen a very similar seizure from the same person is not telling us much about generalization.</p>

<h2 id="2-treating-labels-as-more-precise-than-they-really-are">2. Treating labels as more precise than they really are</h2>

<p>Many neuroscience labels are approximate, noisy, or based on human interpretation. Seizure onset time, propagation boundaries, emotional state labels, and cognitive annotations often carry uncertainty that standard pipelines ignore.</p>

<p>That does not mean the labels are unusable. It means the model evaluation should reflect their limitations. If the ground truth is inherently uncertain by a few seconds, then a metric that pretends otherwise can be misleading.</p>

<h2 id="3-ignoring-temporal-structure">3. Ignoring temporal structure</h2>

<p>EEG and SEEG are not just collections of independent samples. The order of events matters. Transitions matter. Context matters.</p>

<p>Pipelines that flatten everything into disconnected windows can miss the very structure that makes the problem interesting. Even when window-based analysis is necessary, it helps to think carefully about what temporal information is being discarded.</p>

<h2 id="4-optimizing-for-performance-without-interpretability">4. Optimizing for performance without interpretability</h2>

<p>High accuracy is attractive, but in biomedical settings it is rarely enough on its own. Clinicians and collaborators usually want to know <em>why</em> a system made a prediction, which channels were informative, and whether the output aligns with known physiology.</p>

<p>This is one reason I often prefer methods that preserve some connection between features, signal dynamics, and decision boundaries. A model that is slightly less accurate but substantially easier to interpret can be more valuable in practice.</p>

<h2 id="5-underestimating-preprocessing-choices">5. Underestimating preprocessing choices</h2>

<p>Referencing scheme, filtering, artifact handling, channel selection, and segmentation strategy can change results substantially. These steps are sometimes treated as routine housekeeping, but they are often part of the scientific question itself.</p>

<p>A pipeline is only as defensible as its preprocessing assumptions. If those assumptions are weak or poorly documented, the downstream machine-learning results are harder to trust.</p>

<h2 id="final-thought">Final thought</h2>

<p>The hardest part of EEG and SEEG machine learning is usually not the model architecture. It is making sure the data split, label definition, temporal framing, and evaluation criteria actually match the problem you claim to solve.</p>

<p>That is where most of the real rigor lives.</p>]]></content><author><name>Himanshu Kumar, Ph.D.</name><email>himanshu@iiti.ac.in</email><uri>https://bsbe.iiti.ac.in</uri></author><category term="EEG" /><category term="SEEG" /><category term="machine-learning" /><category term="deep-learning" /><summary type="html"><![CDATA[Machine learning in EEG and SEEG can look deceptively straightforward: preprocess the signals, extract features or train a network, and report accuracy. In practice, many pipelines fail because the modeling choices are cleaner than the data assumptions underneath them.]]></summary></entry></feed>