<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alexander Kovalev on Medium]]></title>
        <description><![CDATA[Stories by Alexander Kovalev on Medium]]></description>
        <link>https://medium.com/@koval.alvi?source=rss-b1e53ef9d919------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m8LQHFbNYVVLd-BPTJjGdg@2x.jpeg</url>
            <title>Stories by Alexander Kovalev on Medium</title>
            <link>https://medium.com/@koval.alvi?source=rss-b1e53ef9d919------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 03:41:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@koval.alvi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[tasty neuro papers | december 2024]]></title>
            <link>https://medium.com/the-last-neural-cell/tasty-neuro-papers-december-2024-642a06be78d6?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/642a06be78d6</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[neuroscience]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 16:50:32 GMT</pubDate>
            <atom:updated>2024-12-27T16:52:32.150Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lraSaJHTGFGCW-wA" /></figure><h3>1. MiSO: Optimizing brain stimulation to create neural population activity states</h3><p>what: closed-loop framework combining cross-session alignment.</p><ul><li>train CNN to predict brain’s activity from stimulation</li><li>use simple e greedy optimization to find optimal brain stimulation patterns</li></ul><p>paper: <a href="https://openreview.net/pdf?id=Gb0mXhn5h3">https://openreview.net/pdf?id=Gb0mXhn5h3</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AVADBenpHWQJ5Ioy" /></figure><h3>2. Evoking stable and precise tactile sensations via multi-electrode intracortical microstimulation of the somatosensory cortex</h3><p>what: multi electrode stimulation works better than single-electrode :)</p><p>paper: <a href="https://www.nature.com/articles/s41551-024-01299-z">https://www.nature.com/articles/s41551-024-01299-z</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VT-ycrxv85NtFHLf" /></figure><h3>3. Moving beyond the motor cortex: a brain-wide evaluation of target locations for intracranial speech neuroprostheses</h3><p>what: collect large sEEG dataset and find out that we can use not only motor cortex for speech decoding.</p><ul><li>novel sEEG dataset covering 3249 electrodes across 30 participants, enabling brain-wide analysis</li><li>strongest decoding in Heschl’s gyrus, inferior insula, and (sub)central sulcus bilaterally</li></ul><p>paper: <a href="https://www.biorxiv.org/content/10.1101/2024.11.29.626019v1">https://www.biorxiv.org/content/10.1101/2024.11.29.626019v1</a></p><p>dataset: <a href="https://osf.io/ak3dp/">https://osf.io/ak3dp/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ll-7yLf60mahAofL" /></figure><h3>4. Brain-JEPA: Brain Dynamics Foundation Model with Gradient Positioning and Spatiotemporal Masking NeurIps 2024 Spotlight</h3><p>what: new SOTA foundation model for fMRI data.</p><p>they used functional connectivity as additional information and smart masking during model training.</p><p>paper: <a href="https://arxiv.org/abs/2409.19407">https://arxiv.org/abs/2409.19407</a></p><p>code: <a href="https://github.com/Eric-LRL/Brain-JEPA">https://github.com/Eric-LRL/Brain-JEPA</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8jwwv0OfBK4Dok5t" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=642a06be78d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/tasty-neuro-papers-december-2024-642a06be78d6">tasty neuro papers | december 2024</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling RT-1: A Groundbreaking AI Model for Everyday Tasks]]></title>
            <link>https://medium.com/the-last-neural-cell/unveiling-rt-1-a-groundbreaking-ai-model-for-everyday-tasks-93d58c3810ef?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/93d58c3810ef</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[review]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 15:42:08 GMT</pubDate>
            <atom:updated>2023-04-15T15:43:08.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6oppnaBo97fxWkfDt4Uiw.gif" /></figure><h3>Introduction:</h3><p>In recent years, the field of artificial intelligence has made remarkable strides, particularly in training AI models to carry out a diverse array of tasks. In this paper review, we’ll explore a novel approach that enables an AI model, RT-1, to perform everyday tasks using a hand manipulator based on text instructions. This innovative model has the potential to revolutionize the way AI integrates into our daily lives.</p><h3>A Step-by-Step Methodology:</h3><p>To develop an efficient and reliable AI model, the authors employed a method known as imitation learning. This technique involves training the agent — in this case, RT-1 — using pre-trained language and image models, coupled with a decoder for predicting actions. The process can be broken down into several key components:</p><ol><li>The model takes in text instructions and generates sentence embeddings using a pre-trained T5 model.</li><li>Six images representing the robot’s environment are processed via EfficientNet, integrating the text embeddings as detailed in the paper.</li><li>Finally, the RT-1 model processes the multimodal (text and images) features using a decoder-only model.</li></ol><h3>Training and Dataset:</h3><p>The authors utilized a supervised training approach, where the primary goal was to predict the next action, much like a human annotator. The dataset included 130,000 demonstrations across 744 unique tasks. During the training process, RT-1 was given six frames, which resulted in 48 tokens (6x8) derived from the image and text instructions.</p><h3>Key Observations and Findings:</h3><p>The study revealed several noteworthy insights that can help improve AI models for everyday tasks:</p><ol><li>Auto-regressive methods tend to slow down the process and yield poorer performance.</li><li>Discretizing the action space allows for solving classification problems instead of regression, making it possible to sample from the prediction distribution.</li><li>Continuous actions tend to perform worse in comparison to discretized ones.</li><li>Computing input tokens only once and applying overlapped inference can enhance efficiency.</li><li>Data diversity is more critical than data quantity when it comes to improving the model’s performance.</li></ol><h3>Conclusion and Future Outlook:</h3><p>The RT-1 model showcases impressive results in carrying out everyday tasks based on text instructions, demonstrating the immense potential of AI in our daily lives. As AI models like RT-1 continue to advance and display greater capabilities in handling complex tasks, it’s only fitting to consider giving them human names, such as “Robert” for RT-1, as a testament to their growth and sophistication. This paper not only provides valuable insights into AI development but also paves the way for further research and innovation in the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVSSGOFumN39iljiZ0p8Cg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93d58c3810ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/unveiling-rt-1-a-groundbreaking-ai-model-for-everyday-tasks-93d58c3810ef">Unveiling RT-1: A Groundbreaking AI Model for Everyday Tasks</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MAE. Masked Autoencoder is all you need for any modality — Paper Summary]]></title>
            <link>https://medium.com/the-last-neural-cell/08-summary-masked-autoencoder-is-all-you-need-for-any-modality-3ced90dd0a26?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ced90dd0a26</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[self-supervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 16:00:14 GMT</pubDate>
            <atom:updated>2022-09-09T10:51:45.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>MAE. Masked Autoencoder is all you need for any modality — Method Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*8eH637ctcbK_X741aKXKbg.png" /><figcaption>Advanced deep learning technology explains how it works</figcaption></figure><h3>⚡ Introduction</h3><p>To solve complicated tasks machine learning algorithm should understand data, extracting from it useful features. Usually training generalizing models requires a lot of annotated data. However it is expensive and in some cases impossible.</p><p>Masked Autoencoder technique allows to train model on unlabeled data and obtain surprisingly good feature representation for all common modalities.</p><p><a href="https://arxiv.org/abs/1810.04805">BERT - MAE for text.</a><br><a href="https://arxiv.org/pdf/2111.06377.pdf">MAE - image</a> <br><a href="https://arxiv.org/pdf/2205.14204.pdf">M3MAE - image + text</a> <br><a href="https://arxiv.org/pdf/2207.06405v2.pdf">MAE that listen - audio spectrograms </a><br><a href="https://arxiv.org/pdf/2203.12602.pdf">VideoMAE - video</a></p><h3>🔎 Contents</h3><ol><li>Explanation of MAE approach.</li><li>Recipe for all domains.</li><li>Crazy experimental results for all type of data.</li></ol><h3>⚡ Briefly</h3><p>Masked Autoencoder is great and simple technique for pretraining transformer on any modality. It allows to get high level representation of data which is very helpful for adopting such model on any downstream task( transfer learning, finetuning).</p><h3>🚀 Motivation</h3><p>Self-supervised learning is an approach to get informative representation of data without any labels. Standard self-supervised learning techniques usually use advanced augmentation strategies. However there are modalities such as text, audio, brain signals etc. for which choosing augmentation might be a very tricky task.</p><p>Masked autoencoder, in contrast, allows not to think about augmentation. You just need data, a lot of data and computational resources.</p><blockquote><em>💡</em> <em>Masked autoencoder solves reconstruction task: predict the whole chunk of data based on a masked sample.</em></blockquote><p>In case you masked around 70 % of data, model learns good high level representation for doing such task and profit.</p><h3>⚙️ How does MAE work?</h3><p>Let us illustrate a MAE working principle. Take a look at the picture below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*wiwFq5xJltFwA4tw9oaMMA.png" /><figcaption>Figure 1. MAE for image self-supervised learning</figcaption></figure><p>First, pre-training involves masking out a lot of patches (e.g., 75%). Encoders are applied only to visible patches. Then, after the encoder, mask tokens are introduced, and the full set of encoded patches and mask tokens is decoded by a small decoder that reconstructs the original image. For recognition tasks, the encoder is applied to uncorrupted images (full sets of patches) after pre-training.</p><p><strong>Recipe for any common modality:</strong></p><ol><li>Take data sample.</li><li>Divide this sample in regions (patches for image, word for text and so on)</li><li>Apply random masking with high ratio (75% is a good starting point)</li><li>Keep only visible parts and feed them into the transformer encoder. <em>For introduction to vision transformers you can jump to our </em><a href="https://medium.com/the-last-neural-cell/vit-vision-transformer-paper-review-13e0e8891bd3"><em>first summary</em></a><em>.</em></li><li>Apply decoder to full set of masked and processed visible tokens. Train model to reconstruct masked tokens.</li><li>Do steps (1–5) many times</li><li>???</li><li>Profit! You have a good model, which is able to extract meaningful features from your data 😍</li></ol><p>Next you can use the pretrained encoder, which learned useful representations of your data, for any downstream task.</p><p>💡<em>Note that after training unmasked (full) samples can be fed into the model due to the transformer architecture which does not depend on length of the data.</em></p><h3>🔬 What MAE is capable of?</h3><p>MAEs can be easily adapted to different data modalities. Below you can find illustrations on use of MAE in video and audio applications. If you are inspired by these, don’t hesitate and adopt such technique for your data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yYwPRbZZMrhsHSXBW7Swtg.png" /><figcaption>MAE for audio spectrogram</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YMuMNfGmJ_Qa7qs06nDIlA.png" /><figcaption>MAE for video</figcaption></figure><p>Here you can find authors comment about their technique for audio and video modalities:</p><p><strong>Audio modality</strong></p><blockquote><em>We have explored a simple extension of MAE to audio data. Our Audio-MAE learns to reconstruct masked spectrogram patches from audio recordings and achieves state-of-the-art performance on six audio and speech classification tasks. We have drawn four interesting observations: First, a simple MAE approach works surprisingly well for audio spectrograms. Second, we find that it is possible to learn stronger representations with local self-attention in the decoder. Third, we show that masking can be applied to both pre-training and fine-tuning, improving accuracy and reducing training computation</em></blockquote><p><strong>Video modality</strong></p><blockquote><em>To do video self-supervised learning, VideoMAE uses a masked autoencoder and a </em><strong><em>plain ViT</em></strong><em> backbone. Compared to contrastive learning methods, VideoMAE has a much shorter pre-training time (</em><strong><em>3.2x</em></strong><em> speedup). In future research on self-supervised video training, VideoMAE might be a good starting point.</em></blockquote><h3>🔥 Experimental insights:</h3><p>It is intriguing that all these MAE techniques beat SOTA result in their corresponding domains.</p><p><strong>Image results</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JohtI7BXyRU3pTm-6csvRw.png" /><figcaption>Reconstruction results for image MAE</figcaption></figure><p><strong>Audio results</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJPfc-wfKcUWRGSLw7nA9Q.png" /><figcaption>Reconstruction results for audio spectrogram MAE</figcaption></figure><p><strong>Results for video.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*7BeOawSLLqRM3dlDxtiJ4w.png" /><figcaption>This figure emphasizes that MAE increase performance in the absence a access to lot of data</figcaption></figure><p><strong>Training details</strong></p><p>Here I add add information about training details. You can use it as starting point in you investigation. Loss function (MSE) is calculated only on invisible tokens.</p><p><strong>Image</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EBV558YaatFtotnqLPCMA.png" /></figure><p><strong>Video</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*iPeWUCWsjRUZHxtMm4u6Sg.png" /></figure><h3>❓ Pros and cons</h3><p><strong>Pros</strong></p><ul><li>Easy to apply for any modalities and maybe even multiple at once</li><li>Allows to adopt transformer for your specific task</li></ul><p><strong>Cons</strong></p><ul><li>This approach works only with transformer and do not work well using different architectures.</li><li>It requires a lot of data and computational resources.</li></ul><h3>📝 My notes</h3><p>This is a really cool, powerful technique that can be used for any domain, and here’s why I think that works. During reconstruction, the model should capture high level representations of input samples in order to reconstruct 70% of the data. This is the only way a decoder can obtain the original image.</p><p>Some thought about further utilization of this idea.</p><ul><li>It is a good opportunity to start using transformers to solve neuroscience problems. In addition, we can forget about convolutions 😊</li><li>Using MAE, we can represent multivariate time series as audio and provide the same pretraining. This might help a lot in solving downstream tasks with a small amount of labeled data.</li><li>The transformer generalizes well and can provide interpretation for hidden transformations.</li><li>Add an additional loss function and restriction. This will allow us to train the model to make reconstructions and divide representations for different people or groups.</li></ul><h3>🧬 Possible development &amp; Perspectives</h3><ul><li>Multimodality → <em>MultiMAE: Multi-modal Multi-task Masked Autoencoders</em></li><li>We can study how multi modal neurons influecne on perfomance. So it migght be promising area for collaboration with neuroscience.</li><li>Combine contrastive learning( augs) with MAE → Contrastive Masked Autoencoders are Stronger Vision Learners → <a href="https://arxiv.org/pdf/2207.13532.pdf">https://arxiv.org/pdf/2207.13532.pdf</a></li></ul><p>😉 Stay tuned and see you in our <a href="https://medium.com/the-last-neural-cell"><strong>medium publication</strong></a></p><p><strong>Author:</strong> <a href="https://medium.com/u/b1e53ef9d919?source=post_page-----c0485eb6d31c--------------------------------">Alexander Kovalev</a></p><p><strong>Collaborator:</strong> <a href="https://medium.com/u/d73c89f3c373?source=post_page-----c0485eb6d31c--------------------------------">Alexey Timchenko</a></p><p><strong>Our telegram channel:</strong> <a href="http://t.me/bci_papers">the last neural cell</a></p><p><em>If you would like to use this material, please refer to the main “the last neural cell” publication or the author. A lot of work is done for creating concise summaries of interesting papers on a non-commercial basis.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfA_VmYqJh-NtS08SrWWRA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ced90dd0a26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/08-summary-masked-autoencoder-is-all-you-need-for-any-modality-3ced90dd0a26">MAE. Masked Autoencoder is all you need for any modality — Paper Summary</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brain Computer Interface for Decoding Speech in a Paralyzed Person. Paper Review]]></title>
            <link>https://medium.com/the-last-neural-cell/brain-computer-interface-for-decoding-speech-in-a-paralyzed-person-paper-review-a9ff5e43399b?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9ff5e43399b</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[brain-computer-interface]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 17:14:07 GMT</pubDate>
            <atom:updated>2022-03-31T15:35:14.093Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Brain Computer Interface for Decoding Speech in a Paralyzed Person — Paper Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*rcILmteZ2ocaZG5Z7wmZ3Q.png" /><figcaption>For title</figcaption></figure><h3>🧐 At a glance:</h3><p>Anarthria (the inability to articulate speech) makes it hard for paralyzed people to interact with the world. The opportunity to decode words and sentences directly from cerebral activity (ECoG) could give such patients a way to communicate.</p><p>Authors build AI model to predict word from neural activity. They achieve 98% accuracy for speech detection and 47% for word classification from 50 classes.</p><p><em>Neuroprosthesis for Decoding Speech in a Paralyzed Person with Anarthria — </em><a href="https://www.nejm.org/doi/full/10.1056/NEJMoa2027540?query=featured_home#article_citing_articles&amp;uccLastUpdatedDate=2021-11-23%2016%3A00%3A17.28%20%2B0000&amp;uccLastUpdatedDate=2021-11-23%2016%3A00%3A17.28%20%2B0000&amp;uccLastUpdatedDate=2021-11-23%2016%3A00%3A17.28%20%2B0000&amp;uccLastUpdatedDate=2021-11-23%2016%3A00%3A17.28%20%2B0000&amp;uccLastUpdatedDate=2021-11-23%2016%3A00%3A17.28%20%2B0000">paper</a> 2021</p><h3>🤿 Motivation:</h3><ul><li>Authors divides speech decoder into two submodules: speech detection and word classification. The first predicts offset of speech and the second predicts “imagined words” probabilities.</li><li>Then they construct 50 sentences from 50 words and train language model to predict next word from previous ones.</li><li>Combining predictions with language model allows to achieve low word error rate.</li></ul><h3>🍋 Main Ideas.</h3><p><strong>Experiments settings</strong></p><ul><li>Set up ECoG with 16 * 8 electrodes on the left sensorymotor region.</li><li>Ask patient to produce in the head a word which he sees on the screen. (isolated word setting). Thus we are labeling the data to train the model.</li></ul><p><strong>Data preprocessing</strong></p><ul><li>Common average rereferencing.</li><li>Extract high gamma ( 70–150 Hz) from each electrode and get its envelope. ECoG gamma frequencies are suggested as good features for movement and speech prediction.</li><li>Apply z-score for each electrodes with large window (30 sec) — this is done to account for signal shifts during the time course of the experiment.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*tYnmQRlI_leWk0fasZDeDQ.png" /></figure><h3>🤖Models</h3><p><strong>Speech detection model.</strong></p><ul><li>Use LSTM model for prediction probability of imagined speech being produced (detect the speech attempt). Then the apply thresholding for getting t*</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*dIeXNnawk6tCKiS8NSskww.png" /></figure><p><strong>Word classification model.</strong></p><ul><li>Authors used convolution + LSTM for 50 class prediction.</li><li>This model gets input window with size [t*-1 , t* +3] for further classification.</li><li>Kaggle trick was applied: train 10 such models and average outputs of them. As a result they improve performance. Unfortunately I did not find information about accuracy for each model separately.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S34kxM4kQbO2X_mTty34Hw.png" /></figure><h3>📈 Experiment insights / Key takeaways:</h3><p><strong>Investigate influence of brain regions for prediction each model.</strong></p><ul><li><strong>Speech detection</strong>: Dorsal part of sensorimotor cortex. It is related in speech intention.</li><li><strong>Word classification</strong>: Ventral part of sensorimotor cortex. It is language specific region.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbAjadQLqh1IVgsVIn60cg.png" /></figure><p><strong>Results</strong>:</p><ul><li>Speech detection: 98 % , Word classification: 47.1 %</li><li>Word error rate in sentence prediction: 60 %</li><li>Word error rate in sentence prediction with language model 25.6 %</li></ul><h3>✏️ My Notes:</h3><ul><li>Good idea to use dictionary of the 50 most frequent words because it allows people to cover basic communication needs</li><li>Using pretrained language model only on 50 possible sentence seems like a trick and hack. Model just overfits on these sentences. We should consider accuracy w/o language model!</li><li>Use ensemble of 10 ANN is “Kaggle” like trick.</li><li>It is hard to say about stability if we compare performance of models which was trained on different amount of data (they compared stability adding more historical data to train the model)</li></ul><p><strong>Further investigation:</strong></p><ul><li>For checking stability we should train model on some data and then use these weights for prediction after some time.</li><li>We can use different architecture for speech detection. End to end binary classification. Fully Temporal convolution architecture. Obtain the same thresholding.</li><li>Use advanced transformer models instead RNN for temporal aggregation in word classification stage.</li><li>It is essential to combine speech detection and word classification because I think they may same features.</li><li>It is interesting to use true language predictive model that could operate not on limited 50 sentence set, but dynamically suggest most probable words based on history (1, 2, … last words)</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsJj6bKLr_lQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsJj6bKLr_lQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsJj6bKLr_lQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e0a2aa6da961a4cbde35571ff00bd0f/href">https://medium.com/media/9e0a2aa6da961a4cbde35571ff00bd0f/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRmzctjlHrK8IWO-N2a6xQ.png" /></figure><p>This review was made with <a href="https://medium.com/u/d73c89f3c373">Alexey Timchenko</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9ff5e43399b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/brain-computer-interface-for-decoding-speech-in-a-paralyzed-person-paper-review-a9ff5e43399b">Brain Computer Interface for Decoding Speech in a Paralyzed Person. Paper Review</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding imagined and spoken speech using ECoG: insights from neuroscience.]]></title>
            <link>https://medium.com/the-last-neural-cell/decoding-imagined-and-spoken-speech-using-ecog-insights-from-neuroscience-89fc3949ec91?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/89fc3949ec91</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[brain]]></category>
            <category><![CDATA[speech]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Fri, 28 Jan 2022 20:46:34 GMT</pubDate>
            <atom:updated>2022-03-23T12:12:34.787Z</atom:updated>
            <content:encoded><![CDATA[<h3>Decoding imagined and spoken speech using ECoG: insights from neuroscience — Paper Summary</h3><p><strong>#03 Review.</strong></p><p><strong>Imagined speech can be decoded from low- and cross-frequency intracranial EEG features. Paper review.</strong></p><h3>🧐 At a glance:</h3><p>Brain computer interfaces (BCI) let you use your brain activity to control devices. You can manage a computer, a prosthesis, and even a speech vocoder.</p><p>In the present day, researchers are actively investigating the capabilities of such interfaces. In this paper researchers investigated the possibility of developing “language prostheses”.</p><p><strong>paper: </strong><a href="https://www.nature.com/articles/s41467-021-27725-3"><strong>link</strong></a><br><strong>code: </strong><a href="https://zenodo.org/record/5702872#.YfQxuOpBwak"><strong>link</strong></a><br><strong>data: </strong>not availabe. But you can try to ask authors. →<strong> </strong><a href="https://www.nature.com/articles/s41467-021-27725-3#data-availability"><strong>link</strong></a></p><h3>🤿 Motivation:</h3><p>This article is about decoding imagined speech. Speech retrieval is one of the most significant and challenging tasks in BCI. We can observe significant progress in explicit (overt) speech decoding. In other words, a person says the words out loud and we can tell from the brain activity what they said.</p><p>However, it’s more difficult to decode imagined speech. There’s a problem in that it’s not clear <strong>where</strong> to measure brain activity and <strong>how</strong> to process it (which features and signs to use). These are the questions the authors try to answer:</p><ul><li>What brain regions have the best decoding potential?</li><li>What’s the most informative neural feature?</li></ul><blockquote><em>It is important to </em><strong><em>identify the regions</em></strong><em> specifically correlated with </em><strong><em>imagined speech</em></strong><em> in the context of development of a DS-BCI that are </em><strong><em>independent of movement</em></strong><em> and therefore not overt speech production and are independent of stimuli and </em><strong><em>therefore not speech perception.</em></strong></blockquote><h3>🍋 Main Ideas</h3><h4><strong>Neuroscience views:</strong></h4><p>Actually, it’s not easy to say how speech is made in our brains. Several theories exist.</p><ul><li><strong>Motor hypothesis</strong>. Imagined speech and overt speech have similar an articulatory plan in our brain.</li><li><strong>Abstraction hypothesis</strong>. We can produce imagined speech without explicit motor plan.</li><li><strong>Flexible abstraction hypothesis</strong>. Imagined speech is phonemic based (sound of language). In this case, the neural activity depends on how each person imagines speech: subarticulation or perceptual.</li></ul><h4>Experiments description. What they did?</h4><p>Electrocorticography (ECoG) — electrodes placed directly on the brain (like EEG but without annoying scalp). It is an invasive procedure.</p><p>Patients with ECoG perform language tasks. There are 3 studies with different experimental protocols and different ECoG positions. In this task, you should imagine/speak/listen certain words after a clue.</p><figure><img alt="Experiment visual description." src="https://cdn-images-1.medium.com/max/1024/1*pMUDaT1VjFJnh6RKffFAsg.png" /></figure><h4><strong>Feature extraction.</strong></h4><ul><li>Frequence decomposition. Extract 4 frequency bands.</li><li>Cross-frequency coupling (CFC) allows to link activities that occur at different rates (frequencies). Authors use link between phase and amplitude from different bands.</li></ul><h4><strong>Analysis.</strong></h4><ul><li>Compare brain activity during different task (listen vs speak vs imagine)</li><li>Determine influence of each region and feature for word decoding accuracy.</li></ul><h3>📈 Experiment insights / Key takeaways:</h3><ul><li>Researchers found that overt and imagined speech production had different dynamics and neural organization. The biggest difference between them was that high-frequency activity (BHA)in the superior temporal cortex increased during overt speech, but decreased during imagined speech. The high frequency band is the best for telling the difference between real and imagined.</li><li>It means means that transition in language decoding from overt to imagined speech might be tricky. (We can not train model on overt speech and use it for imagined speech decoding.)</li></ul><h4><strong>Difference and similarity.</strong></h4><ul><li><strong>Superior temporal lobe</strong> : BHA increased during overt but decreased during imagined.</li><li><strong>Motor sensory region</strong>: BHA increase in both case.</li><li><strong>Left inferior and right anterior temporal lobe</strong>: Strong CFC in the between theta phase in both cases.</li></ul><h4><strong>Decoding features part.</strong></h4><ul><li>They showed that high frequency band (BHA) provides best perfomance for overt speech decoding.</li><li>Low frequency bands help decode imagined and overt speech approximately on the same level.</li><li>Beta-band is a good feature for decoding imagined speech. In terms of power and CFC. Decoding imagined speech is possible due to CFC.</li><li>Decoding worked better if we use not only articulatery one (motor sensory cortex). It is defined by phonemic rather than motor level only.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BhSus3zU8MhjwIWNHPZJQ.png" /><figcaption>These graph represent which features help to decode word. ( Overt left and imagined right).</figcaption></figure><h4><strong>ECoG signal analysis.</strong></h4><p><strong>Signal processing</strong></p><ul><li>DC shifts HP filter on 0.5 Hz + Notch filter 60, 120 and so on.</li><li>Common average re reference + downsample to 400 Hz (antialising).</li><li>Morlet Wavelet transform with extraction 4 bands: theta (4–8 Hz), low-beta (12–18 Hz), and low-gamma (25–35 Hz), broadband high-frequency activity (BHA) (80–150 Hz)</li></ul><p><strong>Cross frequency copling</strong></p><ul><li>They use phase-amplitude cross frequency coupling. Perform between the phase of one band and the amplitude of a higher frequency band. This is a measure of interaction of different frequency bands and in this case the measure of locking of higher frequency oscillation to lower frequency phase.</li></ul><h3>✏️ My Notes:</h3><p>Firstly, I think it is important that the authors studied the neuroscience side of language decoding and did not focus on algorithm development. However decoding accuracy is not very high and it is interesting to apply advanced ML algorithm for their datasets.</p><p><strong>Improvements and next steps:</strong></p><ul><li>It is essential to develop adaptive algorithms. The position of the ECoG differs significantly.</li><li>It is interesting to explore how neural networks can be implemented for automatic coupling. Transformers should be investigated for that purpose.</li><li>For CFC calculation. It might be useful to use transfer entropy (or other causality metrics) between some phases and amplitudes. It is a time-resolved algorithm.</li><li>Also we can use dynamic PAC time-resolved algorithm for online CFC extraction. <a href="https://www.sciencedirect.com/science/article/pii/S1053811917306195">site</a></li></ul><p>This review was made in collaboration with <a href="https://medium.com/u/d73c89f3c373">Alexey Timchenko</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89fc3949ec91" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/decoding-imagined-and-spoken-speech-using-ecog-insights-from-neuroscience-89fc3949ec91">Decoding imagined and spoken speech using ECoG: insights from neuroscience.</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ViT. Vision transformer paper review.]]></title>
            <link>https://medium.com/the-last-neural-cell/vit-vision-transformer-paper-review-13e0e8891bd3?source=rss-b1e53ef9d919------2</link>
            <guid isPermaLink="false">https://medium.com/p/13e0e8891bd3</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[progress]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Alexander Kovalev]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 12:06:40 GMT</pubDate>
            <atom:updated>2022-03-23T12:15:49.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>ViT. Vision transformer — Paper Summary</h3><p>#01 Review. <br>“An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale”</p><p>Tags: #ML#CV</p><p>🧐 <strong>Short view.</strong><br>The authors provide the first evidence of transformer encoder application for image classification. The intuitive is the following: describe image as a sequence of vectors, feed a lot of data and see what happens. Spoiler: they beat previous SOTA results with model pretrained on largescale image datasets.</p><p>github — <a href="https://github.com/google-research/vision_transformer">https://github.com/google-research/vision_transformer</a><br>paper — <a href="https://arxiv.org/abs/2010.11929">https://arxiv.org/abs/2010.11929</a>]</p><p>🤿 <strong>Motivation.</strong></p><p>- Transformers dominate in solving NLP tasks.<br>- Can we adopt this approach to image and replace standard CNN approaches?<br>- Transformer has more global receptive field in comparison with CNN models. It might be helpful for any kind of tasks.</p><p>The authors tested these hypotheses on commonly used large image datasets</p><p>🍋 <strong>Main Ideas.</strong></p><p>[For visualization purposes see figure 1 in attached poster]</p><p>1) Patch extraction <br>Apply sliding window for 16x16 extraction windows. Then we flat into N=16*16*3D vectors. <br>Then use linear embeddings for mapping into certain size of tokens.</p><p>2) Learnable position embedding:<br>It is necessary to retain 2D space information. Authors use learnable position embeddings instead of using fixed position embeddings (e.g. sin, cos). Also they show that learnable embeddings work better than fixed.<br>❕ Positional embeddings — vectors which we add to sequence of tokens to code the position information<br>3) Learnable classification token [CLS].</p><p>Concatenate additional learnable token to image tokens. Motivation is that token can capture global information aggregated from the other tokens.</p><p>📈 <strong>Experiment insights</strong>.</p><ul><li>First, Vision Transformers dominate ResNets on the performance/computation trade-off. ViT uses approximately 2–4 less computation to attain the same performance (average over 5 datasets)</li><li>Second, hybrids slightly outperform ViT at small computational budgets, but the difference vanishes for larger models. This result is somewhat surprising, since one might expect convolutional local feature processing to assist ViT at any size. Third, Vision Transformers appear not to saturate within the range tried, motivating future scaling efforts</li><li>Position embedding can not work with variable input size. They do 2D-interpolation of positional embeddings for fine tuning on smaller or bigger data sets.</li><li>It is possible to analyze weight in CLS token and obtain semantically consistent areas.</li><li>They tested self supervised → do not work well (but better than w/o)</li></ul><p>Training parameters:</p><ul><li>Linear learning rate warmup and decay<br> — Adam with batch = 4096, high weight_decay = 0.1 → improves transferability.<br> — Dataset description.<br> — ImageNet — 1k classes 1.3m images<br> — ImageNet21–21k calsses with 14M images<br> — JFT — 18k classes with 303M images( high resollution)</li></ul><p>✏️ <strong>My Notes. How can we use it for brain signals analysis?</strong></p><ul><li>The application of transformers to image classification shows their potential to be applied to other fields as well. Especially it can be used in time-series analysis as self-attention captures the interaction between input components. As well as the CLF token — which should capture features describing global class attributes.</li><li>Capacity of transformer models is so large that we can approximate much more complicated functions than CNN. All we should do is just feed enough data! As a result everything should work well.</li><li>We can try to adopt this model for brain signals analysis:<br> — We can represent brain activity as a sequence of tokens (electrode feature vector on each time step)<br> — The problem is how do we get so much data to pretrain the model? Maybe it is not essential as the complexity of approximated functions in BCI research requires less parameters.</li></ul><p>Made in collaboration with <a href="https://medium.com/u/d73c89f3c373">Алексей Тимченко</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeIDBKki0ufbihgQLU0ihg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13e0e8891bd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-last-neural-cell/vit-vision-transformer-paper-review-13e0e8891bd3">ViT. Vision transformer paper review.</a> was originally published in <a href="https://medium.com/the-last-neural-cell">the last neural cell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>