<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transformers | Abhiroop Chintalapudi - AI Researcher</title><link>https://shadowscythe03.github.io/tags/transformers/</link><atom:link href="https://shadowscythe03.github.io/tags/transformers/index.xml" rel="self" type="application/rss+xml"/><description>Transformers</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 01 Apr 2024 00:00:00 +0000</lastBuildDate><image><url>https://shadowscythe03.github.io/media/logo_hu_f3e4bd98189c9234.png</url><title>Transformers</title><link>https://shadowscythe03.github.io/tags/transformers/</link></image><item><title>Multimodal Pain Classification (m-PainAttnNet)</title><link>https://shadowscythe03.github.io/projects/mpainattnnet/</link><pubDate>Mon, 01 Apr 2024 00:00:00 +0000</pubDate><guid>https://shadowscythe03.github.io/projects/mpainattnnet/</guid><description>&lt;p&gt;Automated pain assessment using physiological signals offers an objective alternative to self-reporting. m-PainAttnNet extends
to a &lt;strong&gt;multimodal setting&lt;/strong&gt;, fusing ECG, EMG, and EDA signals through attention mechanisms to classify pain into 5 intensity levels. Evaluated on the BioVid Heat Pain Database (87 participants).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key result: 98.8% accuracy on 5-class pain intensity classification&lt;/strong&gt;, with cross-session robustness &amp;gt;75%.&lt;/p&gt;
&lt;h2 id="architecture"&gt;Architecture&lt;/h2&gt;
&lt;p&gt;The model stacks three learned components:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Multi-Scale CNN (MSCN)&lt;/strong&gt; — extracts temporal features at short, medium, and long scales from 1D physiological signals; dropout 0.4–0.5 for regularisation.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Squeeze-and-Excitation ResNet (SEResNet)&lt;/strong&gt; — channel-wise attention recalibrates feature importance; residual connections maintain gradient flow; output dimensionality reduced to 30 channels.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Transformer Encoder&lt;/strong&gt; — 2-layer encoder, 6 attention heads; captures long-range temporal dependencies with layer normalisation and feed-forward networks.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="multimodal-fusion-strategies"&gt;Multimodal Fusion Strategies&lt;/h3&gt;
&lt;p&gt;Three fusion points were evaluated:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Early fusion&lt;/strong&gt;: concatenate modalities before MSCN&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Late fusion&lt;/strong&gt;: process each modality independently, combine at the final layer&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Attention fusion&lt;/strong&gt;: learn weighted modality combinations (best results)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="results"&gt;Results&lt;/h2&gt;
&lt;h3 id="ablation-over-architecture-components"&gt;Ablation over architecture components&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Architecture&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;F1-Score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MSCN only&lt;/td&gt;
&lt;td&gt;70.2%&lt;/td&gt;
&lt;td&gt;70.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MSCN + SEResNet&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98.8%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98.8%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MSCN + Transformer&lt;/td&gt;
&lt;td&gt;~93%&lt;/td&gt;
&lt;td&gt;~93%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full m-PainAttnNet&lt;/td&gt;
&lt;td&gt;97.1%&lt;/td&gt;
&lt;td&gt;97.1%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;SEResNet&amp;rsquo;s channel attention provided the single largest accuracy jump (~28 pp). The full model trades a marginal accuracy drop for better generalisation.&lt;/p&gt;
&lt;h3 id="modality-ablation-full-model"&gt;Modality ablation (full model)&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Modalities&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ECG only&lt;/td&gt;
&lt;td&gt;96.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECG + EMG&lt;/td&gt;
&lt;td&gt;97.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ECG + EMG + EDA&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;98.8%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="dataset"&gt;Dataset&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;BioVid Heat Pain Database&lt;/strong&gt; — 87 participants, 5 pain levels (0–4: none to very high), synchronised ECG, EMG (trapezius, corrugator, zygomaticus), and EDA recordings across multiple sessions.&lt;/p&gt;
&lt;h2 id="technical-stack"&gt;Technical Stack&lt;/h2&gt;
&lt;p&gt;PyTorch · NumPy · SciPy · Scikit-learn · K-fold cross-validation · Google Colab (GPU)&lt;/p&gt;
&lt;h2 id="project-report"&gt;Project Report&lt;/h2&gt;
&lt;iframe
src="https://docs.google.com/viewer?url=https://raw.githubusercontent.com/shadowscythe03/projects/main/m-PainAttnNet/G15_Final_Project_Draft_Abhiroop.pdf&amp;embedded=true"
width="100%"
height="850px"
style="border: 1px solid #e5e7eb; border-radius: 8px; display: block; margin: 1rem 0;"&gt;
&lt;/iframe&gt;
&lt;p&gt;
·
&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Course&lt;/strong&gt;: CS6530 — Advanced Topics in AI, IIT Hyderabad (Jan–Apr 2024) · Supervised by Prof. Nagarajan Ganapati&lt;/p&gt;</description></item><item><title>Semantic Segmentation of Aerial Drone Images</title><link>https://shadowscythe03.github.io/projects/aerial-segmentation/</link><pubDate>Wed, 01 Nov 2023 00:00:00 +0000</pubDate><guid>https://shadowscythe03.github.io/projects/aerial-segmentation/</guid><description>&lt;p&gt;A systematic benchmark of four segmentation architectures on the
— 400 high-resolution aerial images (up to 4000×6000 px) with pixel-level labels across 23 urban classes. The goal: understand the accuracy–cost tradeoff across CNN and transformer approaches under real GPU memory constraints.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Best result: UNet at 86.4% accuracy&lt;/strong&gt;, outperforming DeepLabV3+ (~80%), Swin Transformer (~82%), and SegNet (~75%).&lt;/p&gt;
&lt;h2 id="dataset"&gt;Dataset&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Semantic Drone Dataset&lt;/strong&gt; — 400 images, 350 train / 50 test, 23 semantic classes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Structures&lt;/strong&gt;: building, wall, fence, bridge&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nature&lt;/strong&gt;: tree, vegetation, grass, water&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Infrastructure&lt;/strong&gt;: road, sidewalk, parking, rail track&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Objects&lt;/strong&gt;: car, truck, person, bicycle&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Environment&lt;/strong&gt;: sky, ground, terrain&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Images were downscaled to 384×512 for training due to GPU memory constraints (original 4000×6000 px).&lt;/p&gt;
&lt;h2 id="architectures"&gt;Architectures&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Params&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;Inference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;UNet&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~34.6M&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;86.4%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Fast&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Swin Transformer&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;~82%&lt;/td&gt;
&lt;td&gt;Slow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepLabV3+ (ResNet-50)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;~80%&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SegNet (VGG)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;~75%&lt;/td&gt;
&lt;td&gt;Fast&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;All models trained with Adam (lr=0.001), sparse categorical crossentropy, up to 500 epochs with early stopping; convergence around epoch 300–400.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Key tradeoffs:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UNet&amp;rsquo;s encoder–decoder with skip connections gave the best overall accuracy with fast inference.&lt;/li&gt;
&lt;li&gt;Swin Transformer captured finer details thanks to global attention but at high compute cost.&lt;/li&gt;
&lt;li&gt;SegNet was the most memory-efficient via pooling-index upsampling.&lt;/li&gt;
&lt;li&gt;DeepLabV3+ with ASPP is best suited for full-resolution inference when memory allows.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Known limitation:&lt;/strong&gt; all models struggled with small objects (vehicles, pedestrians &amp;lt;60% accuracy) due to downscaling; patch-based inference at full resolution would close this gap.&lt;/p&gt;
&lt;h2 id="technical-stack"&gt;Technical Stack&lt;/h2&gt;
&lt;p&gt;TensorFlow 2.x / Keras · NumPy · OpenCV · Google Colab (T4 GPU) · TensorBoard&lt;/p&gt;
&lt;h2 id="project-report"&gt;Project Report&lt;/h2&gt;
&lt;!-- TODO: Upload your project report PDF and replace the src URL below.
Recommended: upload as a GitHub Release asset on this repo, then use:
https://docs.google.com/viewer?url=&lt;raw-pdf-url&gt;&amp;embedded=true --&gt;
&lt;iframe
src="https://docs.google.com/viewer?url=https://raw.githubusercontent.com/shadowscythe03/projects/main/aerial_sem_seg_FINAL_SUBMISSION/6-final_report.pdf&amp;embedded=true"
width="100%"
height="850px"
style="border: 1px solid #e5e7eb; border-radius: 8px; display: block; margin: 1rem 0;"&gt;
&lt;/iframe&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Course&lt;/strong&gt;: CS5480 — Deep Learning for Vision, IIT Hyderabad (Aug–Nov 2023) · Supervised by Prof. Summohana Channapayya&lt;/p&gt;</description></item></channel></rss>