<?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 Rafaa Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Rafaa Ahmed on Medium]]></description>
        <link>https://medium.com/@rafaesam0?source=rss-8b8f32b0a3e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wpI8LR4ROkLdgpAX.jpg</url>
            <title>Stories by Rafaa Ahmed on Medium</title>
            <link>https://medium.com/@rafaesam0?source=rss-8b8f32b0a3e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:55:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafaesam0/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[End-to-End Web3 dApp]]></title>
            <link>https://medium.com/@rafaesam0/end-to-end-web3-dapp-141ea4393be5?source=rss-8b8f32b0a3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/141ea4393be5</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[web3-dapp]]></category>
            <category><![CDATA[algorand]]></category>
            <dc:creator><![CDATA[Rafaa Ahmed]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 19:46:46 GMT</pubDate>
            <atom:updated>2022-06-19T19:46:46.468Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Business Overview:</strong></h3><p>We want to build a decentralized app “dApp” that’s basically generate and distribute <strong>Non-Fungible Tokens</strong> “<strong>NFTs</strong>” as certificates that will represent the successful completion of a weekly challenge to trainees in 10 Academy. But we need to return a step back and understand the fundamental concept behind <strong>web3</strong> and what we mean by<strong> NFTs</strong></p><blockquote><strong>Web3</strong> is the stack of protocols that enable fully decentralized applications, such as blockchains, smart contracts, oracles, crypto wallets, storage networks, … etc.</blockquote><blockquote><strong>Non Fungible Tokens</strong> “<strong>NFTs</strong>” are <strong>unique</strong> assets represented on the blockchain. Also defined as a financial security consisting of digital data stored in a blockchain, a form of distributed ledger. Digital art and collectibles are examples of NFTs.</blockquote><p>There are many blockchains platform, in this blog we will focus only in <a href="https://www.algorand.com/">Algorand</a> blockchain.</p><blockquote><strong>Algorand</strong> is a decentralized, permissionless public blockchain based on the Proof-of-Stake consensus and fueled by a utility token ALGO.</blockquote><figure><img alt="Algorand Market Stats" src="https://cdn-images-1.medium.com/max/730/1*VQSecMwYlyJCViO2XR-a7A.png" /><figcaption>Algorand Market Stats</figcaption></figure><p>The total number of accounts in Algorand is 23,548,065 according to the <em>AlgoExplorer </em><a href="https://algoexplorer.io/top-statistics">data</a>. Now we have an idea about Algorand, we can move to the next steps in this project which is to create an NFTs.</p><h3><strong>Technology used in this project</strong></h3><p>For the backend I used Flask and pyscript for the frontend</p><h3><strong>Implementation</strong></h3><p>After cloning the <a href="https://github.com/algorand/sandbox.git">algorand/sandbox</a> you will be able to create a token, assets, .. etc. Next is to build frontend serve the login and connect it to backend service</p><p><strong>Future Plans</strong></p><p>Finish the frontend design and deployment</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=141ea4393be5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[African Language Speech Recognition]]></title>
            <link>https://medium.com/codex/african-language-speech-recognition-f6b7b16e5457?source=rss-8b8f32b0a3e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6b7b16e5457</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[rsa]]></category>
            <category><![CDATA[cnn-model]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Rafaa Ahmed]]></dc:creator>
            <pubDate>Fri, 10 Jun 2022 19:06:40 GMT</pubDate>
            <atom:updated>2022-06-23T13:10:26.507Z</atom:updated>
            <content:encoded><![CDATA[<p>If you think of the easiest way to communicate with people surrounding you, spontaneously it’s <strong>speaking</strong>!! As the world developing everyday as the ways of communication developed, for that <strong>machine</strong> is the best tool to be used in this process..</p><p>Automatic <strong>S</strong>peech <strong>R</strong>ecognition “<strong>ASR</strong>” is the technology that allows human beings to use their voices to speak with a computer interface in a way that resembles normal human conversation, and the most advanced version of currently developed ASR technologies is called <strong>N</strong>atural <strong>L</strong>anguage <strong>P</strong>rocessing “<strong>NLP</strong>”. Even thought there are many matured speech recognition systems available e.g. Google Assistant, Amazon Alexa. However, all of those voice assistants work for limited languages only!</p><p>Now we have the World Food Program wants to deploy an intelligent form that collects nutritional information of food bought and sold at markets in two different countries in Africa — <strong>Ethiopia</strong> and <strong>Kenya</strong>, this requires selected people to install an app on their mobile phones, and whenever they buy food, they use their voice to activate the app to register the list of items they just bought in their own language. The intelligent systems in the app are expected to live to transcribe the speech-to-text.</p><blockquote>In this blog we will learn how to build a <strong>deep learning model</strong> that is capable of <strong>transcribing a speech to text</strong> for both <strong>Amharic</strong> and <strong>Swahili</strong> languages.</blockquote><p>For this project we will be working with audio &amp; text files, but before we start looking at the data let’s first refresh some basic concepts about sound, and see how we can implement deep learning models to such data.</p><p><strong>Sound</strong> is created via the vibration of air. All sounds we hear are combinations of high and low pressure that we often represent in a waveform, In this image we can see how to convert the waveform into array by sampling, so we can implement deep learning!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*6vO5UzCfhZaC3hZfocXe0Q.png" /></figure><h3>Data</h3><ul><li>Amharic: <a href="http://Speech Recognition ASR format (~20hr training and ~2hrs test)">Speech Recognition ASR format (~20hr training and ~2hrs test)</a></li><li>Swahili: <a href="http://Speech Recognition ASR format (~10hr training and ~1.8hrs test)">Speech Recognition ASR format (~10hr training and ~1.8hrs test)</a></li></ul><h3>Data Preprocessing Steps with Python</h3><p><strong>Loading audio</strong> to do preprocessing of audio data in Python we used package called <a href="https://librosa.org/doc/latest/index.html">librosa</a>, it allows us to load audio in our notebook as a numpy array for analysis and manipulation then we were able to <strong>load transcriptions</strong> as given both from the Swahili and Amharic datasets, for the Amharic, most of the transcriptions are a single characters, which are actually parts of the word. While for the Swahili text we noticed that the stop words are what form a major chunk of the data, which means we got to do more cleaning, For instance this is how Amharic text looks like after cleaning:</p><pre>[&#39;የተለያዩ የትግራይ አውራጃ ተወላጆች ገንዘባቸውን አዋጥተው የልማት ተቋማትን እንዲመሰርቱ ትልማ አይፈቅድም&#39;,<br> &#39;የጠመንጃ ተኩስ ተከፈተና አራት የኤርትራ ወታደሮች ተገደሉ&#39;,<br> &#39;ላነሷቸው ጥያቄዎች የሰጡትን መልስ አቅርበነዋል&#39;,<br> &#39;እብዱ አስፋልቱ ላይ የኰለኰለው ድንጋይ መኪና አላሳልፍ አለ&#39;,<br> &#39;ጠጁን ኰመኰመ ኰመኰመና ሚስቱን ሲያሰቃያት አደረ&#39;,<br> &#39;ድንቹ በደንብ ስለተኰተኰተ በጥሩ ሁኔታ ኰረተ&#39;,<br> &#39;በድህነቱ ላይ ይህ ክፉ በሽታ ስለያዘው ሰውነቱ በጣም ኰሰሰ&#39;,<br> &#39;በሩን እንዲህ በሀይል አታንኳኲ ብዬ አልነበረም እንዴ&#39;,<br> &#39;በለጠች የበየነ የበኩር ልጅ ነች&#39;,<br> &#39;የቆላ ቁስልና ቁርጥማት በጣም አሰቃቂ በሽታዎች ናቸው&#39;]</pre><p><strong>Resampling </strong>Speech data is represented in an array consists of a sequence of numbers, each represents a measurement of the intensity or amplitude of sound at particular moment. Number of similar measurements is determined by <strong>sampling rate</strong> which defines the number of samples per second taken from a continuous signal to make a discrete signal. We chose a standard sampling rate of 44,100Hz.</p><p>Then we have to <strong>convert channels</strong>, some of the sound files are mono while most of them are stereo. Since the Neural network model expects all items to have the same dimensions, we converted the mono files to stereo using function called convert_channels, where we shift the audio data to the left in the array forming a duplicate of the original, and save it.</p><p><strong>Augmentation</strong> of data helps to generate more data from our existing data, we used numpy’s roll function to generate time shifting. This help our model to generalize to a wider range of input.</p><h3><strong>Feature Extraction:</strong></h3><p>Commonly used features that are directly fed into neural network architectures are spectrograms and Mel-Frequency Cepstral Coefficients (MFCCs).</p><p><strong>Spectrogram </strong>is a visual illustration of the spectrum of frequencies of an audio signal as it varies with time. Hence it includes both time and frequency aspects of the signal, and obtained by applying the Short-Time Fourier Transform (STFT) on the signal. It’s usually depicted as a heat map. In this image the vertical axis shows frequencies, and the horizontal axis shows the time of the clip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*RFQd9JgzsgEa5NMni9lBYA.png" /><figcaption>Spectrogram</figcaption></figure><p><strong>Mel-Frequency Cepstral Coefficients MFCC</strong> of a signal are a small set of features (usually about 10–20) which concisely describe the overall shape of a spectral envelope. It models the characteristics of the human voice.</p><p><strong>Acoustic Modelling </strong>is used in ASR to represent the relationship between an <a href="https://en.wikipedia.org/wiki/Audio_signal">audio signal</a> and the <a href="https://en.wikipedia.org/wiki/Phonemes">phonemes</a> or other linguistic units that make up speech. The model attempts to map the audio signal to the basic units of speech such as phonemes. In our case we use store audio features function to perform our acoustic modeling and majorly the basic structures that we developed and shall translate into our model for learning, are chroma_stft, spec_cent, spec_bw, rolloff, zcr and of course the mfcc features. for example this for Swahili</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QHxqn20hk4XglGdgVqDL2A.png" /></figure><h3>Model Architecture</h3><p>Now the audio input data &amp; corresponding labels in an array format, it is easier to apply NLP techniques. We can convert audio files labels into integers using label Encoding for machines to learn. The labeled dataset will help us in the neural network model output layer for predicting results. These help in training &amp; validation datasets into nD array.</p><p>At this stage, we apply other pre-processing techniques like dropping columns, normalization, etc. to conclude our final training data for building models. Moving to the next stage of splitting the dataset into train, test, and validation is what we have been doing for other models. We can leverage CNN, RNN, LSTM,CTC etc. deep neural algorithms to build and train the models for speech applications like speech recognition. The model trained with the standard size few seconds audio chunk transformed into an array of n dimensions with the respective labels will result in predicting output labels for test audio input. As output labels will vary beyond binary, we are talking about building a multi-class label classification method.</p><blockquote><strong>Deep learning</strong> can be defined as a machine learning technique to solve problems by providing the inputs and desired outputs and letting the computer find the solution, using a neural network. We want to build a deep learning model that converts speech to text.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*-4hROFl4dJkTgstyhK5b0g.png" /></figure><p>Deep Learning Architecture -CNN -RNN-LSTM &amp; CTC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*4KO8Nj8Rb0tPQH-OyCxMjA.png" /></figure><p><strong>Evaluation*</strong></p><p><strong>Model Space Exploration*</strong></p><p><strong>Recording &amp; Prediction*</strong></p><p><strong>Metrics — Word Error Rate WER*</strong></p><p><strong>Conclusion</strong></p><p>For this project we compared different neural network models. The best prediction we got was from CNN</p><p><strong>*</strong>Future work will be looking again at the evaluation and loss function, compare models and find the best prediction.</p><p>References:</p><p><a href="https://github.com/rafaesam/nlp_swahili_amharic.git">https://github.com/rafaesam/nlp_swahili_amharic.git</a></p><p><a href="https://heartbeat.comet.ml/the-3-deep-learning-frameworks-for-end-to-end-speech-recognition-that-power-your-devices-37b891ddc380">https://heartbeat.comet.ml/the-3-deep-learning-frameworks-for-end-to-end-speech-recognition-that-power-your-devices-37b891ddc380</a></p><p><a href="http://programming pytorch for deep learning reference “Programming PyTorch for Deep Learning by Ian Pointer (O’Reilly). Copyright 2019 Ian Pointer, 978-1-492-04535-9.”">“Programming PyTorch for Deep Learning by Ian Pointer (O’Reilly). Copyright 2019 Ian Pointer, 978–1–492–04535–9.”</a></p><p><a href="https://usabilitygeek.com/automatic-speech-recognition-asr-software-an-introduction/">Automatic Speech Recognition (ASR) Software - An Introduction - Usability Geek</a></p><p><a href="https://www.youtube.com/watch?v=RX_ptt44mq4">https://www.youtube.com/watch?v=RX_ptt44mq4</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6b7b16e5457" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/african-language-speech-recognition-f6b7b16e5457">African Language Speech Recognition</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>