<?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 Buse Bilgin on Medium]]></title>
        <description><![CDATA[Stories by Buse Bilgin on Medium]]></description>
        <link>https://medium.com/@BuseBilgin?source=rss-7bad1d0bb61f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lZIoL4dOu9e5TPKV12Q9Gg.jpeg</url>
            <title>Stories by Buse Bilgin on Medium</title>
            <link>https://medium.com/@BuseBilgin?source=rss-7bad1d0bb61f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 19:47:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BuseBilgin/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[From Neurons to Networks: Unveiling Neural Dynamics Through Hodgkin-Huxley Simulations]]></title>
            <link>https://medium.com/turkcell/from-neurons-to-networks-unveiling-neural-dynamics-through-hodgkin-huxley-simulations-049c072f2081?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/049c072f2081</guid>
            <category><![CDATA[bioelectronics]]></category>
            <category><![CDATA[hodgkin-and-huxley]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Sun, 12 May 2024 09:57:14 GMT</pubDate>
            <atom:updated>2024-05-12T09:57:14.983Z</atom:updated>
            <content:encoded><![CDATA[<p>Bioelectronics, a fascinating intersection between biology and electronics, is an ever-evolving field that promises to revolutionize our understanding and interaction with biological systems. At the core of this discipline lies the exploration and manipulation of electrical processes in biological tissues, particularly nerve cells, which are pivotal for numerous biomedical applications ranging from prosthetics to neural therapy.</p><p>During my graduate studies, I delved into the practical applications of bioelectronics by undertaking two projects centered around the Hodgkin-Huxley (HH) model. This model is a cornerstone in neuroscience, renowned for its precise depiction of nerve action potentials. Action potentials are the fundamental means through which neurons communicate, and understanding them is essential for advancements in neuroprosthetics and other neural engineering applications.</p><p>The primary goal of my projects was to simulate nerve action potentials using the HH model, enhancing our comprehension of how various electrical stimuli can influence neuronal behavior. This exploration was not only a testament to the versatility of the HH model but also an opportunity to contribute to the broader field of neuroscience through computational simulation. The insights gained from these simulations have potential implications in medical technology, particularly in designing devices that can interact with the human nervous system in sophisticated ways.</p><p>In the following sections, we will explore the specific methodologies employed in these projects, the results obtained, and their implications for the future of bioelectronics and neuroscience!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*syJTh1At8WfN-Z0Tkfa-5w.png" /><figcaption>Generated by Dall-E</figcaption></figure><h3>Background on the Hodgkin-Huxley Model</h3><p>The Hodgkin-Huxley model, named after Alan Hodgkin and Andrew Huxley, who developed it in the early 1950s, is an essential theoretical framework in neuroscience. This model was formulated to describe how neurons generate and propagate electrical signals known as action potentials. It revolutionized our understanding by quantitatively describing the ionic mechanisms underlying these electrical phenomena in neurons, particularly in the squid giant axon. For their groundbreaking work, Hodgkin and Huxley were awarded the <strong>Nobel Prize in Physiology or Medicine in 1963</strong>.</p><h3>Understanding the Model’s Fundamentals</h3><p>At its core, the Hodgkin-Huxley model is based on the concept that <strong>the movement of ions across the neuronal membrane</strong>, through specialized proteins known as <em>ion channels</em>, is critical for the generation of action potentials. The model specifically addresses the dynamics of <strong>potassium </strong>(K+) and <strong>sodium </strong>(Na+) ions, which play pivotal roles in the depolarization and repolarization phases of the action potential.</p><p>The model uses a set of nonlinear differential equations to represent the electrical characteristics of the neuron’s membrane. These equations describe:<br>- The membrane’s voltage as a function of ionic currents.<br>- The conductance of sodium and potassium ions, which vary with both time and membrane voltage.<br>- A leakage current that accounts for other ions passing through the membrane.</p><p>These components are combined to compute the change in membrane voltage over time, capturing the exquisite dance of ionic fluxes that give rise to the action potential.</p><h3>Model Application and Relevance</h3><p>The Hodgkin-Huxley model’s significance extends beyond its original application to squid neurons. It serves as a foundational model for all types of excitable cells, including human neurons. Researchers and clinicians use adaptations of this model to study a variety of neuronal behaviors and disorders, and to design medical devices that interact with neural tissue, such as pacemakers and neural prosthetics.</p><p>In bioelectronics, the Hodgkin-Huxley model provides crucial insights into how electrical stimulation affects neuronal behavior. This understanding is vital for developing effective therapeutic strategies that employ neural stimulation, offering hope for treating conditions like epilepsy, depression, and other neurological disorders.</p><p>By employing the Hodgkin-Huxley model, I aimed to extend its applications and explore how modifications to the model could enhance our understanding of neuron dynamics under various simulation conditions. This not only reaffirms the model’s enduring relevance but also showcases its adaptability to complex bioelectronic applications.</p><h3>Exploring Neuronal Dynamics with the Hodgkin-Huxley Model</h3><p><strong>Objectives and Methodology<br></strong>Let’s start with the hands-on application of the Hodgkin-Huxley model to understand how different types of electrical stimuli affect neuronal action potentials. The primary focus was on using both <strong>square wave</strong> and <strong>sinusoidal stimulation</strong> currents to explore their impacts on the neuronal behavior under controlled simulation conditions.</p><p>Using a detailed simulation setup on MATLAB, I implemented the Hodgkin-Huxley equations to calculate the changes in membrane voltage, ionic currents, and gating variables (m, h, n) in response to these stimuli. The simulations were carefully designed to mimic realistic neuronal conditions, providing insights into the dynamics of neuronal excitability and the mechanisms of action potential generation and propagation.</p><h3>A) Square Wave Stimulation:</h3><p>Let’s implement a square wave stimulation to our neurons! The stimulation current has a constant value for 0.2 ms and is zero elsewhere. The obtained results are shown in Figure 2. First of all, it is seen that there are two pulses applied to the membrane, however just the first stimulation can trigger the channels and cause voltage to pass the threshold level. The second stimulus cannot cause the change in the membrane voltage due to the short time interval between two stimuli. From the figure it is seen that the m gate are activated with the depolarization. This activation leads to the further depolarization, and this causes an <a href="http://In Ramachandran, V. S. (2002). Encyclopedia of the human brain. San Diego, Calif:  Academic Press."><strong>autocatalytic positive feedback</strong> that increase this small depolarization into an action potential</a>. The <br>threshold current needed to activate a channel is related with the current required to trigger this positive feedback. However, the h (i.e. becomes smaller) and n (i.e. its activation increases with the size of an outward potassium current) gates react to oppose depolarization. Moreover, we see that the m gate is the most sensitive gate to a voltage change, in other words, its value is changing faster than the other ones. This means that the rapid rising phase of the action potential occurs before the stabilizing influences of the h and n gates can engage to bring the membrane voltage back to near resting potential. The speed of h and n gates determine the width of the action potential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_kJ6UPmZ2tAlSLSOHqbFLw.png" /><figcaption>Figure 2. Computed Membrane Action Potential Using the Hodgkin-Huxley Method.</figcaption></figure><p>The explained relationship between the gating variables also affects the ionic conductance and the current, which are shown in Figure 3. First of all, K+ channels are slower to activate or open than the Na+ channels. Since K+ channels are slow to activate, they are also slow to deactivate. Even the membrane voltage has turned to the resting potential, some of the K+ channels are still open, and this causes to occur a more negative membrane voltage that initially had. After all the K+ channels are closed, the membrane potential returns to the resting potential (i.e. the hyper-polarizing occurs after the potential). Due to this speed effect, the conductance of K+ channels are also increased and decreased slower than Na+ channels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_I18Kz_pfiIZoLOo_hsIA.png" /><figcaption>Figure 3. Computed Ionic Conductance and Currents Using the Hodgkin-Huxley Method.</figcaption></figure><p>This simulation revealed how brief, intense stimuli could trigger action potentials by rapidly changing membrane potentials. The study highlighted the critical thresholds needed for action potential initiation and how subsequent stimuli within short intervals affect the neuronal response.</p><h3>B) Sinusoidal Stimulation:</h3><p>By varying the frequency of sinusoidal currents, the project demonstrated the frequency-dependent behavior of neurons. To see the effect in the stimulation current with respect to time on the membrane voltage, instead of a square-waved current, a sinusoidal stimulation is implemented to the membrane model with four different frequencies.</p><p>The two main parameters differs between the two current definitions. First, the latter case does not have any dramatic change in the current. In addition, the applied current varies between the positive and the negative values. Before comparing the number of spike and the stimulus frequency, I first compare the individual membrane voltage profiles using two different cases: <strong>1 and 10 Hz</strong>. The calculated membrane voltage is shown in Figure 4. The first spike is due to the capacitance over the membrane, and is not related with the membrane activation. It is seen that positive sinusoidal current causes the generation of spikes in the membrane voltage (15 spikes). Since the frequency of the signal is 1 Hz, there is just one period fits in the one second simulation therefore there is not any <br>repetition of the spikes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*z9oIMZauWlp8-3d4fBCTFQ.png" /><figcaption>Figure 4. Computed Membrane Action Potential under Sinusoidal Stimulation Current with 1 Hz Frequency</figcaption></figure><p>When we increase the frequency to 10 Hz, we end up with the voltage profile shown in Figure 5. At each positive region, we again show spikes on the membrane voltage (3 spikes), and due to the increase in the frequency, it repeats itself in each period of the signal. In other words, the number of spikes in one period is decreased with increased frequency, but the total number of spikes over on second simulation is increased. Moreover, due to the applied negative stimulation current, the membrane voltage becomes more negative than the resting potential during these periods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*dXc7DXeg71ffJ3-FpWAKlw.png" /><figcaption>Figure 5. Computed Membrane Action Potential under Sinusoidal Stimulation Current <br>with 10 Hz Frequency</figcaption></figure><p>When we compare the total number of spikes occurs in one second of simulations with the stimulus signal frequency, we obtain the relationship given in Figure 6. In order to understand the trend clearly, I also fitted a cubic polynomial using the calculated values. It is seen that the speed of spike count increase is getting slower when we increase the frequency further. In other words, a change in the frequency affects the number of spikes in the membrane voltage more significantly for the smaller frequencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*MWHUiGpEQwzuCexfUEib6Q.png" /><figcaption>Figure 6. Comparison of the Stimulus Frequency and Spike Count</figcaption></figure><h3><strong>Time Interval Between the Stimulus and Action Potential</strong></h3><p>Previous analyzes show that <strong>there is a time difference between the stimulus voltage and the peak of the action potential</strong>. In order to analyze this time difference and its relation with the stimulus current amplitude, three different current with different amplitudes are tested under the same conditions. The squarewaved stimulus is used for the analyzes. First of all, 50 uA/cm2 current is used for the analyzes. The obtained membrane voltage is shown in Figure 7. There is a <strong>1.45 ms</strong> time differences between the stimulus current and the peak of the activation voltage. The reason of the time difference is that there is a current density needed to create the positive feedback loop explained previously. It is also seen that the second stimulation current cannot create an activation voltage due to the short time interval (i.e. gates cannot reach their steady-state conditions).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*f27BTGLfDylHxaUYeVLRoQ.png" /><figcaption>Figure 7. Computed Membrane Action Potential and the Time Interval Between the Peak of the Obtained Potential and the Stimulation Current with I = 50 mA/cm2</figcaption></figure><p>When we increase the current amplitude to 200 uA/cm2, the time interval is decreased to <strong>0.66 ms</strong>. The obtained result is shown in Figure 8. Since we increase the amplitude of the stimulation current, the time needed to reach the needed current density is decreased; therefore, the activation voltage is increased more rapidly. There is one another interesting outcome of this change: <strong>the generation of the second activation voltage</strong>. In other words, there is also a relationship between the current strength and the <br>time interval between the pulses needed to generate the second stimulus, which will be discussed in the next section!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*b-xyiBummeHaHe2tvvUTGQ.png" /><figcaption>Figure 8. Computed Membrane Action Potential and the Time Interval Between the Peak <br>of the Obtained Potential and the Stimulation Current with I = 200 mA/cm2</figcaption></figure><p>Lastly, we increase the current amplitude to 500 uA/cm2, the results is shown in Figure 9. We see that the time interval drops to <strong>0.39 ms</strong>. However, <strong>the speed of the decrease in the time interval is slightly diminished</strong> when we work with the high current levels, which is the similar with the previous analyzes. Since we are modeling the biological systems and the number of ions are limited in the environment, there should be a limit (i.e. that causes the saturation level). Therefore, when we increase our parameters further, their effect on the membrane characteristic will be decreased; and I assume that after some level, the system will be saturated and its properties cannot be upgraded further with the increase of the current amplitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*SWSxk9ALGBQk2BBxLKTR0g.png" /><figcaption>Figure 9. Computed Membrane Action Potential and the Time Interval Between the Peak of the Obtained Potential and the Stimulation Current with I = 500 mA/cm2</figcaption></figure><h3>Stimulus Time Interval</h3><p>In the previous sections we saw that the second stimulus cannot generate an activation voltage due to the short time intervals. Also, we proved that there is a relationship between the current amplitude and the minimum time interval. This means that <strong>there is a minimum time interval needed to be given between the two pulses in order to trigger another activation in the membrane voltage</strong>. In order to see the effect of the current amplitude on the minimum time interval, three different current amplitude are used. The minimum time interval is obtained using the trial-and-error method, no specific algorithm was implemented to analyze the optimal time interval.</p><p><em>Note: The time difference values on the graphs have typos, so the correct ones are written in the text. Sorry for that!</em></p><p>Firstly, let’s apply 50 uA/cm2 amplitude of current and obtain a membrane voltage which is shown in Figure 10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*WTB4QK7vEDKoUOHfAoYS-g.png" /><figcaption>Figure 10. Computed Membrane Action Potential and the Time Interval Between the Two Action Potential under I = 50 mA/cm2</figcaption></figure><p>The minimum time interval between the stimuli signal in order to obtain another activation voltage is <strong>14.75 ms</strong>. Based on the previous analyzes, we can assume that when we increase the current strength, this time interval will be decreased. To prove our hypothesis, we can increase the current amplitude to 200 uA/cm2, and the obtained voltage profile is shown in Figure 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*CmpK1f5iLVsjEf8gfZ9u2w.png" /><figcaption>Figure 11. Computed Membrane Action Potential and the Time Interval Between the Two Action Potential under I = 200 mA/cm2</figcaption></figure><p>The time difference is reduced to 7.<strong>85 ms</strong>, as we assumed. When we increase the amplitude to 500 uA/cm2, shown in Figure 12, the time difference is reduced to <strong>5.25 ms</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*dy2Kw7T5jgyKvePfUN2ANg.png" /><figcaption>Figure 12. Computed Membrane Action Potential and the Time Interval Between the Two <br>Action Potential under I = 500 mA/cm2</figcaption></figure><p>First observation that we can make is that <em>the increase in the current strength cause a decrease in the time interval</em>, which is expected with the same reason as in the previous case. Secondly, <em>the decrease speed of the time interval is reducing with the increase in the current strength</em>, which is also the same obtaining with the latter analyzes. There is another important finding that we obtained with this analyzes: <strong><em>the second stimulus has a slower increase profile than the first one</em></strong>. In order to understand the reason of this behaviors, we need to analyze the gating variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*uchaMnhNPBP9J8oFD671Dg.png" /><figcaption>Figure 13. Activation Voltages and Gating Variables with Different Current Amplitudes</figcaption></figure><p>The activation voltages and gating variables are shown in Figure 13. It is seen that when the applied current strength is low, the activation speed of m is slower comparing the first stimulus. Moreover, due to the small time interval of high current strength scenario, not all the K+ channels can be closed, and this causes a spike observed in the voltage profile. In order to see how m gating variable behaves with longer time interval, analysis with 50 uA/cm2 is repeated with 17.75 ms time interval, and the obtained result is shown in Figure 14. It is seen that the time needed to activate the m gate is reduced with increased time interval. <strong>It means that besides the time interval needed to generate a second activation potential, there is a time needed to totally relax the m gate to obtain the same activation speed</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*SWikyPjlCV8QCK3ocDgxgA.png" /><figcaption>Figure 14: Activation Voltages and Gating Variables with Longer Time Interval Under I = 50 uA/cm2</figcaption></figure><h3>Anode Break Excitation</h3><p>All of the previous calculations are completed using the equal initial membrane and resting potential values, right? What happens when we decrease the initial membrane voltage, and make it lower than the resting potential? In order to see the behavior of our model, we decrease the membrane potential to -105 mV, and repeat the analysis with the square-wave shaped stimulation current, shown in Figure 15–16.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dBF4qqpDzrqdVy4rhotANw.png" /><figcaption>Figure 15. Computed Membrane Action Potential Using the Hodgkin-Huxley Method.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0N72q3pPq5_YtNFmL6xnaw.png" /><figcaption>Figure 16. Computed Ionic Conductance and Currents Using the Hodgkin-Huxley Method.</figcaption></figure><p>We see something strange: <strong>the activation voltage is generated after the stimulus current is turned off!</strong> Moreover, the m gate is not activated fast, as in the previous case. <a href="http://HODGKIN, A. L., &amp; HUXLEY, A. F. (1952). A quantitative description of membrane  current and its application to conduction and excitation in nerve. The Journal of  physiology, 117(4), 500–544. https://doi.org/10.1113/jphysiol.1952.sp004764">In the original paper</a> written by Hodgkin and Huxley, this process is described as follows:</p><blockquote><em>The basis of the anode break excitation is that anodal polarization decreases the potassium conductance and removes inactivation of the sodium channel. These effects persist for an appreciable time so that the membrane potential reaches its resting value with a reduced outward potassium current and an increased inward sodium current. The total ionic current is therefore inward at V = 0 and the membrane undergoes a depolarization which rapidly becomes regenerative.</em></blockquote><p>This process is called the <strong>anode-break excitation</strong>. The main mechanism that controls this process is the <strong>h gate</strong>. We see that the h gate starts with a value close to 0.6, which is its initial value; but then its value is increased up to 0.8 levels. After the stimulus ends, the h-gate value is started to decrease slowly. After the transmembrane voltage reach its resting state, the sodium current is larger than at rest because h gate has a larger value than its value at rest. This causes <em>the depolarization of the membrane voltage </em><strong><em>more</em></strong>, then <br>it reaches its threshold level and creates the action potential. Besides the h gate, the value of n gate is also decreased, in other words n gate is closed during the hyperpolarizing stimulus, however the n gate is slightly faster than the h gate, the h gate is the main gate causes the anode-break excitation.</p><p>The Hodgkin-Huxley model remains a foundational pillar in neuroscience, offering profound insights into the electrical behavior of neurons. As we advance into an era where the integration of biological principles into technology becomes increasingly crucial, this model’s relevance extends beyond academic research into the burgeoning field of bioelectronics. Its detailed representation of ion channel dynamics makes it an invaluable tool for developing more effective neural prosthetics and brain-machine interfaces, which require precise manipulation of neural activity. Furthermore, as neuromorphic computing continues to evolve, the principles derived from the Hodgkin-Huxley model provide essential guidance for designing hardware that mimics neural processing capabilities. By bridging the gap between biological understanding and technological innovation, the Hodgkin-Huxley model not only enhances our grasp of neuronal function but also empowers the creation of advanced technologies that could transform medical treatments and computational paradigms!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=049c072f2081" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turkcell/from-neurons-to-networks-unveiling-neural-dynamics-through-hodgkin-huxley-simulations-049c072f2081">From Neurons to Networks: Unveiling Neural Dynamics Through Hodgkin-Huxley Simulations</a> was originally published in <a href="https://medium.com/turkcell">turkcell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the Black Box: Harnessing Explainable AI in Telecommunications]]></title>
            <link>https://medium.com/turkcell/unlocking-the-black-box-harnessing-explainable-ai-in-telecommunications-4cfedf03d191?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cfedf03d191</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[explainable-ai]]></category>
            <category><![CDATA[telecommunication]]></category>
            <category><![CDATA[6g]]></category>
            <category><![CDATA[5g]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Sat, 11 Nov 2023 18:35:29 GMT</pubDate>
            <atom:updated>2023-11-14T10:44:48.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*__sbVuJlvEHzZ7tiO0IeKg.png" /><figcaption>This image was created with the assistance of DALL·E.</figcaption></figure><p>In recent years, Artificial Intelligence (AI) has become a cornerstone in the evolution of telecommunications. From optimizing network operations to enhancing customer experiences and predictive maintenance, AI technologies are reshaping the landscape of this industry. With the autonomous networks that will come into our lives with 6G, AI will become a native part of the network. However, understanding their decision-making processes becomes challenging and essential as these systems become more complex.</p><p>The telecommunications sector, being highly dynamic and customer-centric, requires not just advanced AI solutions but also a deep understanding of how these solutions arrive at their decisions. This need for transparency is <strong>not just a matter of trust and clarity for customers and operators but also a compliance requirement in many regulatory environments</strong>. Explainable AI (XAI) emerges as a key to unlocking these ‘AI black boxes’, providing insights into the functioning of otherwise opaque models.</p><h3>Transforming Communications through Artificial Intelligence</h3><p>The telecommunications industry has witnessed a remarkable transformation with the advent of AI. This technology has brought about significant advancements in various areas, fundamentally changing how services are delivered and maintained. AI-driven solutions enhance efficiency and enable telecom companies to offer innovative and personalized services to their customers.</p><p>One of the primary applications of AI in telecommunications is <a href="https://www.ericsson.com/en/network-automation/network-optimization"><strong>network optimization</strong></a>. AI algorithms can analyze vast amounts of data from network traffic, predict potential downtimes, and suggest optimal configurations. This ensures a more robust and reliable network and aids in proactive maintenance, reducing costs and improving service quality.</p><p>AI plays a crucial role in enhancing <a href="https://www.ibm.com/thought-leadership/institute-business-value/en-us/report/telecoms-customer-service"><strong>customer experience</strong></a>. By leveraging technologies like natural language processing and machine learning, telecom companies can offer personalized recommendations, more intelligent chatbots for customer service, and more responsive support systems. This personalization is about providing services and understanding customer needs and preferences, leading to higher satisfaction and loyalty.</p><p>Another significant application of AI in telecommunications is <a href="https://ieeexplore.ieee.org/document/9951889"><strong>security and fraud detection</strong></a>. With increasing cyber threats, AI algorithms are instrumental in identifying unusual patterns and potential security breaches, safeguarding user data, and maintaining trust.</p><p>Despite these advancements, implementing AI in telecommunications has its challenges. Issues such as <em>data privacy</em>, the need for <em>extensive and diverse datasets</em> for training AI models, and the <em>complexity of integrating AI</em> into existing infrastructures pose significant challenges. Additionally, as AI systems become more intricate, understanding and explaining their decisions becomes increasingly important, especially in contexts where <strong>transparency </strong>and <strong>compliance </strong>are paramount.</p><h4>The Role of Explainable AI</h4><p>This is where XAI comes into play. XAI provides insights into the workings of AI models, making it easier for stakeholders to trust and understand AI-driven decisions. This transparency is crucial for customer trust, regulatory compliance, and improving AI models through better interpretability.</p><h3>Decoding AI Decisions in Telecommunications: A Closer Look at LIME and SHAP</h3><p>Let’s understand XAI first. XAI is the name given to the general techniques used to understand the decisions made by an AI model. It should not be confused with data analysis techniques. The primary purpose here is to <strong>try to understand the reason for the decision made by AI</strong>, whether it is wrong or right.</p><p>XAI can be examined under two main groups: <strong>self-interpretable models</strong> and <strong>post-hoc explanations</strong>. <em>Self-interpretable models</em> — as the name suggests — do not have the black box structure of the model itself but are models designed in the form of a white box. One of the best examples is the decision tree model. Since the decision-making steps of the model are determined by the conditions assigned to the variables, the decision-making mechanism of the model can be understood by looking at the model structure. <em>Post-hoc explanations</em> are models that analyze the model’s decision-making mechanism by looking at the inputs and outputs. These models are generally divided into two: <em>global </em>and <em>local</em>. Global models perform a general analysis of the effect of features on the decision after being trained with a data set. On the other hand, local models analyze the reason for the decision made for a single example.</p><p>Let’s look at post-hoc explanations. I want to focus on two popular approaches: <strong>Local Interpretable Model-agnostic Explanations (LIME)</strong> and <strong>Shapley Additive Explanations (SHAP)</strong>.</p><h4>Understanding LIME (Local Interpretable Model-agnostic Explanations):</h4><p>LIME is an innovative approach designed to explain the predictions of any machine learning classifier in an interpretable and faithful manner. By focusing on individual predictions, LIME perturbs the input data, generating new samples around a point of interest, and observes how the model’s predictions change. This <em>local </em>approach allows for an in-depth understanding of model behavior in specific cases, making it easier to trust and validate the AI’s decision-making process, especially in critical and complex scenarios common in telecommunications.</p><h4>Deciphering SHAP (Shapley Additive exPlanations):</h4><p>SHAP, on the other hand, offers a more holistic approach. It is grounded in game theory and provides a unified measure of feature importance that is both accurate and consistent. By breaking down a prediction to quantify the impact of each feature, SHAP offers an interpretable overview of how the model operates in general, revealing the significance of different input variables in the decision-making process. This <em>global </em>perspective is crucial for identifying broader trends and biases in AI models.</p><h4>Comparison and Use Cases in Telecommunications:</h4><p>While LIME and SHAP offer insights into AI models, they serve different purposes. LIME’s local explanations are invaluable for <strong>troubleshooting </strong>and <strong>understanding </strong>specific predictions, such as why a particular network fault was predicted, or why a customer was flagged for a specific service. With its global perspective, SHAP is instrumental in <strong>strategic decision-making</strong>, like understanding overall customer behavior patterns or identifying systemic issues in network performance.</p><h4>Bridging the Gap Between AI and Human Understanding:</h4><p>Ultimately, LIME and SHAP may act as bridges between complex AI algorithms and human understanding, ensuring that the decisions made by AI systems in telecommunications are accurate but also interpretable and justifiable. This understanding is crucial for building trust among stakeholders and for the responsible use of AI in this critical sector.</p><h3>Case Study — Applying LIME and SHAP</h3><h4>Dataset</h4><p>I analyzed the models using an open dataset from ITU AI/ML in the 5G Challenge for <a href="https://www.kaggle.com/datasets/gauravduttakiit/qos-prediction-challenge-aiml-in-5g-challenge/?select=VariableDefinitions.csv">QoS Prediction</a>. The dataset comprises 42 features and the target value (downlink throughput). I used an XGBoost model for training. You can also find the codes and dataset in <a href="https://github.com/bilginbuse/Explainable-AI-for-Telecom/tree/main"><strong>my GitHub repo</strong></a>.</p><h4>Self-interpretable Approach:</h4><p>First, let’s look at the self-interpretable approach with the help of predefined functions in the XGBoost library. The provided importance score indicates each feature&#39;s relative value or usefulness in building the boosted decision trees inside the model. This is also extremely useful for feature selection!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*EsihRzLo8kmIGt_gE58v_w.png" /></figure><h4>Implementation of LIME:</h4><p>To understand specific predictions made by our AI model, we apply LIME. Since LIME is a local model, I selected a random variable from the dataset and used the LIME model to understand the source of the decision made by the XGBoost model. The most essential features are similar to the self-interpretable models; however, the order differs. This is an expected situation because the feature importance analysis of the two methods is quite different from each other. Since LIME is a local analysis method, we can observe that the result changes when we analyze each variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*87f0AgrfEyeM5OVlHiFinw.png" /></figure><h4>Implementation of SHAP:</h4><p>SHAP is employed to understand the model’s decision-making process better. By applying SHAP, we can quantify the contribution of each feature across all predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*5YRSR-8SIzVh0-bxjlpVNA.png" /><figcaption>The global explanation of the model using SHAP.</figcaption></figure><p>Besides the global explanation, SHAP can also create dependency plots. You can visualize the relationship between different features and their effect on the decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*coO0T5aXWSOwr6ewdHUonw.png" /><figcaption>The dependency analysis using SHAP.</figcaption></figure><p>Lastly, SHAP can also be used for local explanations, like LIME.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*SPQVa9P3M4Voksk5SqYqkQ.png" /><figcaption>The local explanation of the model using SHAP.</figcaption></figure><h4>Let’s Compare!</h4><p>While both LIME and SHAP enhance the interpretability of ML models, they serve different needs. LIME is more suited for cases where understanding individual predictions is crucial, such as diagnosing specific anomalies or errors. SHAP, in contrast, is better for understanding the model as a whole, which is helpful for auditing model performance and fairness. Due to the model’s complexity, it <a href="https://arxiv.org/ftp/arxiv/papers/2309/2309.02417.pdf">generally takes too much time</a> to calculate the Shapley values. However, the <a href="https://arxiv.org/pdf/2006.05714.pdf">kernel optimization</a> problem must be carefully solved for the LIME implementation.</p><p>In practice, the choice between LIME and SHAP often <strong>depends on the specific requirements</strong> of the task at hand and the trade-offs between <em>local and global explanations, computational resources</em>, and <em>the level of interpretability</em> needed. Often, using both in tandem can provide a more comprehensive understanding of AI models in telecommunications and other sectors.</p><h4>Conclusion</h4><p>This article embarked on a journey through the evolving landscape of AI in telecommunications, emphasizing the pivotal role of XAI tools like LIME and SHAP. The insights from the case study underscore the essential nature of explainability in AI systems within the telecommunications sector. As AI continues to drive innovation and efficiency, explaining and understanding AI decisions becomes paramount. Explainable AI, through methods like LIME and SHAP, provides a pathway to leverage AI’s power while maintaining accountability and clarity. This approach is vital for advancing AI adoption in a way that is both sustainable and beneficial for all stakeholders.</p><p>As we move forward, integrating XAI tools will likely become a standard practice in AI development and deployment in telecommunications. This will enhance the quality of services and operations and pave the way for more ethical and fair AI systems. Future research and development in this domain should focus on improving the efficiency and accessibility of these tools, making them more adaptable to various AI models and applications.</p><p>In conclusion, the journey towards a more transparent and trustworthy telecommunications AI is challenging and necessary. By embracing explainable AI, we can ensure that the advancements in this field are grounded in understanding, trust, and responsibility, ultimately leading to a more innovative and customer-centric future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cfedf03d191" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turkcell/unlocking-the-black-box-harnessing-explainable-ai-in-telecommunications-4cfedf03d191">Unlocking the Black Box: Harnessing Explainable AI in Telecommunications</a> was originally published in <a href="https://medium.com/turkcell">turkcell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Deep Dive #3: Bias & Variance Dilemma]]></title>
            <link>https://medium.com/turkcell/machine-learning-deep-dive-3-bias-variance-dilemma-47ccad714cf7?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ccad714cf7</guid>
            <category><![CDATA[bias]]></category>
            <category><![CDATA[variance]]></category>
            <category><![CDATA[bias-variance-tradeoff]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 08:37:22 GMT</pubDate>
            <atom:updated>2023-11-14T10:44:33.086Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! I wanted to share with you the last article of 2022, just days before the new year. Today we will talk about two parameters that we need to think about no matter which artificial intelligence model we work with: <strong>bias </strong>and <strong>variance</strong>. Wish you pleasant reading, and of course, may the New Year see you loving, giving, and living!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*VJP6kgrho6s-3OEu.png" /><figcaption>Courtesy: <a href="https://www.ibm.com/topics/underfitting">https://www.ibm.com/topics/underfitting</a></figcaption></figure><h3>Bias: Missing the Details</h3><p>The bias is defined as the <strong>discrepancy </strong>between the values predicted by the ML model and the actual value. The bias error results from incorrect learning algorithm assumptions. An algorithm with a high bias may <em>fail to recognize important relationships</em> between features and goal outputs. <strong>Inadequate data trends capture</strong>, the possibility of <strong>underfitting</strong>, <strong>overgeneralization</strong>, <strong>oversimplification</strong>, and a <strong>high error rate</strong> are the major features of a high-bias model. Being highly biased causes significant inaccuracy in <strong>both training and testing data</strong>.</p><h3>Variance: Drowning in Details</h3><p>The variance of the model is the <strong>spread </strong>in the model’s forecast for a particular data point, which reveals the distribution of our data. The variance results from the training set’s sensitivity to slight variations. An algorithm that simulates the random noise in the training data may provide high variation. Simply said, variance is the model prediction’s ability to vary, or <em>how much the ML function may change based on the input data set.</em> <strong>Noise </strong>in the data set, the probability of <strong>overfitting</strong>, <strong>complex </strong>models, and an attempt to bring all data points <strong>as close as possible</strong> are features of a high-variance model.</p><h3>The Bias — Variance Tradeoff</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/0*W4x8zMo8yLYpDT9w.png" /><figcaption>Courtesy: <a href="https://www.geeksforgeeks.org/ml-bias-variance-trade-off/">https://www.geeksforgeeks.org/ml-bias-variance-trade-off/</a></figcaption></figure><p>Variance and bias are <strong><em>mutually exclusive</em></strong>. An ML model <strong>cannot have both a low bias and a low variance</strong>. Small changes in the dataset might result in more significant changes in a shallow model and this <strong>increases the variance</strong>. Conversely, a complex model generally enables a better fit to the underlying function; as a result, <strong>bias reduces</strong>. This is known as <strong><em>the bias/variance dilemma</em></strong>, which applies to all machine learning systems. The model should be <em>flexible </em>to reduce bias, even though this could result in <em>high variance</em>. The low variance could <em>prevent us from obtaining a good fit</em> for the data and result in excessive bias. Low bias results when a data engineer tweaks the ML algorithm to better fit a particular data set, but variance goes up. This increases the likelihood of erroneous predictions while making the model fit the data set. The same holds true when building a high-bias, low-variance model. Although the likelihood of incorrect predictions will be reduced, the model will still not accurately match the data set. <strong>The ideal model is the one that balances bias and variation in the best possible way</strong>.</p><h3>Underfitting &amp; Overfitting</h3><p>Underfitting happens when a model is overly <strong>simplistic</strong>, which can happen when there is <strong>insufficient regularization</strong>, <strong>training time</strong>, or <strong>input features</strong>. <strong><em>Low variance and high bias</em></strong> are reliable signs of underfitting. <em>Underfitted models are typically simpler to recognize than overfitted ones because this behavior can be observed while utilizing the training dataset</em>.</p><p>Overfitting happens when a model tries to <strong>overmatch </strong>the data and the outliers. When working with extremely complicated models, this can happen since the model will virtually always match the provided data points and perform well on training datasets. <strong><em>High variance and low bias</em></strong> are reliable signs of underfitting. If there is an overfit, the model would <strong>not be able to generalize</strong> the data point in the test data set to accurately anticipate the outcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*DqdE5pWBuLuK1TC3.png" /><figcaption>Courtesy: <a href="https://www.mihaileric.com/posts/bias-variance-tradeoff/">https://www.mihaileric.com/posts/bias-variance-tradeoff/</a></figcaption></figure><p>Bias and variance should be balanced so that the model never overfits or underfits. Therefore, it is essential to comprehend bias and variance in order to understand how prediction models behave.</p><p>If you want to talk about machine learning or about my article, you can contact me via my <a href="https://www.linkedin.com/in/buseebrem/">LinkedIn account</a>. Stay tuned for the next paper of the series!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ccad714cf7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turkcell/machine-learning-deep-dive-3-bias-variance-dilemma-47ccad714cf7">Machine Learning Deep Dive #3: Bias &amp; Variance Dilemma</a> was originally published in <a href="https://medium.com/turkcell">turkcell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Countdown to CES 2023: 10 Tips for Getting the Most Out of the Event]]></title>
            <link>https://medium.com/@BuseBilgin/countdown-to-ces-2023-10-tips-for-getting-the-most-out-of-the-event-5b6bf3dcc576?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b6bf3dcc576</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ces-2023]]></category>
            <category><![CDATA[technology-news]]></category>
            <category><![CDATA[ces]]></category>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 09:14:27 GMT</pubDate>
            <atom:updated>2022-12-15T08:44:44.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Consumer Electronics Show (CES) is one of the world&#39;s most anticipated and followed tech events. CES is just for you if you want to experience the latest version of new and trending technologies with more than 100 thousand technology lovers! The most important achievement I learned at this enormous event, which I attended as an exhibitor in 2022, was the following: Preparing is essential to avoid the inexperience of being a first-timer at CES! Based on my observations, I have listed 10 suggestions that I strongly recommend the firstcomers to do before they go to, during, and at the end of CES. Happy reading!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*GTIOwExxqlLAZeul.jpg" /><figcaption>Courtesy: <a href="https://phys.org/news/2018-01-takeaways-consumers-electronics.html">https://phys.org/news/2018-01-takeaways-consumers-electronics.html</a></figcaption></figure><h3>1- Preparation: Let’s Do Our Homework</h3><p>To get maximum efficiency from a gigantic event like CES, it is essential to make preliminary preparations before going to the fair. Otherwise, it will be very difficult to complete the things we want to go/see by walking spontaneously. Especially if you have specific technologies in your focus area, specific products you want to see, and events you want to attend, it will be very important for you to prepare. If you’re going as a participant, the best thing you can do is <strong>set priorities</strong>. When you plan the field trip, you should consider that the booths of the companies that are the center of attention by everyone will be very crowded. At CES 2022, the test drive of BMW’s new car required a waiting time of <em>15–20 minutes</em> long— and everyone said that 2022 was a non-crowded year for CES! It will be much easier to plan your trip if you create your list according to your priority (for example, you can divide it into 3 categories such as what <em>must-see, curious about, </em>and <em>it’s okay to see</em>). If you are attending as an exhibitor, it will be very productive for you to prioritize the companies you want to meet and make an appointment with these companies <strong><em>months in advance</em></strong>. Don’t forget that especially big companies’ schedules fill up early, early bird gets in the way! The most important note is to take the most comfortable shoes you have with you since CES means walking between booths and long standings. To make your planning, you can learn the design of the fair area and the locations of the companies <a href="https://www.ces.tech/exhibits/exhibitor-directory.aspx"><strong>here</strong></a><strong>.</strong></p><h3>2- Receive Your Badge: The Art of Finding the Least Crowded Badge Distribution Point</h3><p>We made our preparations and arrived in Las Vegas, what’s next? The first thing you’re going to do is to get your badge. It is not possible to enter the fairground without a badge, so you should keep an eye on your badge during CES. Considering that hundreds of people will be in the queue to take the badge to attend the fair, receiving the badge can become a problem in itself — especially if you’re someone like me who doesn’t like to wait in line. As you can imagine, the pickup locations in the fairground are usually very crowded. Instead, you can choose the locations inside the hotels and get your badge quickly. You can find all badge pickup locations <a href="https://www.ces.tech/logistics/in-person/badge-pickup.aspx"><strong>here</strong></a>.</p><h3>3- Don’t Miss Socializing Opportunities</h3><p>At CES, you will be side by side with hundreds of thousands of technology lovers like you, a real nerd paradise! You will have the chance to meet a lot of people in the shuttles, fairgrounds, and booths: take advantage of all these opportunities. You can’t predict who you might come across, don’t miss any opportunity. Everyone is smiling and there for the same purpose as you, feel free to make small talk with everyone!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*II8CZl_hPDAN9Rh3.jpg" /><figcaption>Courtesy: <a href="https://www.reviewjournal.com/business/conventions/ces/ces-2019-to-bring-180k-attendees-traffic-woes-to-las-vegas-next-week-1565098/">https://www.reviewjournal.com/business/conventions/ces/ces-2019-to-bring-180k-attendees-traffic-woes-to-las-vegas-next-week-1565098/</a></figcaption></figure><h3>4- Product Launches — Experience Every Technology Possible</h3><p>CES is an event where almost all of the companies that lead the technology take part. Many companies introduce their new or concept products here. This means that you will have the opportunity to<strong> experience many interesting technologies</strong>! From new car designs to augmented reality platforms, from robot cafes to virtual concert venues, many different technologies will be waiting for you at the fairground. The best thing you can do is to try as much technology as you can! You can see the featured exhibitors <a href="https://www.ces.tech/exhibits/featured-exhibitors.aspx"><strong>here</strong></a>. Don’t forget to determine the most anticipated products by following CES on social media and adding them to your list!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ErUjIoAUykrR4ZZ9.jpg" /><figcaption>Courtesy: <a href="https://audioxpress.com/news/ces-2023-will-focus-on-how-innovation-is-addressing-global-challenges">https://audioxpress.com/news/ces-2023-will-focus-on-how-innovation-is-addressing-global-challenges</a></figcaption></figure><h3>5- Be Sociable — Ready to Hand out Lots of Business Cards?</h3><p>As I just mentioned, you will have the opportunity to meet hundreds of companies, from the world’s largest tech companies to startups passionately researching technologies that can shape the future: it’s not an opportunity to be ignored! While visiting the CES, you can meet people who can be partners in the project you are working on, or you can find different career opportunities. So be prepared for networking! Take plenty of business cards with you, or even better, create a QR business card. Prepare your resume to be sent quickly when someone asks you to. There will be other companies and startups interested in the technologies you are interested in or working on, do not forget to visit them and leave your information to them and get their information.</p><h3>6- Follow CES Events</h3><p>In addition to the fairground, many different events take place at CES such as keynote speeches by the biggest players in new technologies, keynotes of companies, and conference sessions. But remember that you have limited time! Unfortunately, you won’t have time to attend everything, so planning is essential. If you research everything thoroughly and go that way, you can minimize the regret you feel about the things you couldn’t attend at the end of the fair. You can find the featured keynotes <a href="https://www.ces.tech/sessions-events/keynotes.aspx"><strong>here</strong></a>. Additionally, you can access the event calendar of CES <a href="https://www.ces.tech/schedule.aspx"><strong>here</strong></a>.</p><h3>7- Arrange Meetings with Investors</h3><p>If you are going to promote your company and product, or if you have a novel idea, CES is a unique opportunity for you. In addition to technology lovers, many individual and corporate investors are also following CES closely. Eureka Park area is an area visited by many investors. You should search for investors who will visit via the mobile application of CES according to their interests and request a meeting. If you contact the investors <strong>in advance</strong>, you can increase your chances of meeting, remember that you will be with many entrepreneurs in a very large fairground and you will have to make extra efforts to stand out. Besides investors, you can also find regional contacts to enter different markets. If you have plans to meet with investors or find new contacts, make sure you and your company are all set. People who are seriously interested in you may request documents such as your pitch deck or financial documents at that moment or in a few days, if you do not want to miss this opportunity, be at your booth with everything ready!</p><h3>8- Champions League: Master the Elevator Pitch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/0*hIr1ROaYF7aXl-wd.jpg" /><figcaption>Courtesy: <a href="https://www.reddit.com/r/memes/comments/5i33vr/worst_elevator_pitch_ever/">https://www.reddit.com/r/memes/comments/5i33vr/worst_elevator_pitch_ever/</a></figcaption></figure><p>Have you developed a product and thought it could be integrated into a large company’s product? Do you have a new head-up display technology to be integrated into cars and want to make your voice heard in big companies? CES is the perfect venue for that! You can even get the chance to meet not just with the employees of these companies, but with the managers who are directly in the decision-making authority. Or do you want to arrange an interview at a company you would love to work for? To do this, you need to attract the attention of company officials in a short time. Make sure to practice your <strong>elevator pitch</strong> to make the most of these opportunities! Prepare the striking speech that will introduce yourself/your product in 2 minutes and convince the other party how it will benefit!</p><h3>9- The Miraculous Power of Following-up</h3><p>When CES is over, you will have plenty of contact information and business cards. You should send follow-ups so that you do not lose contact with the people you met. You can even go more organized by <strong>taking short notes or voice recordings</strong> about the person you met and received the business card from. After talking to too many people, people can get confused with each other. It is very important to plan for taking small notes and putting them on the calendar so that you can keep track of when and what to write. Evenings are the perfect time to make these arrangements. If you summarize that day every day, you will be able to follow everything regularly at the end of CES.</p><h3>10- Bonus: A Little Sightseeing - You Can’t Come Here and Not See the Canyons</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*ImcTiGGfHlJw-wjb.jpg" /><figcaption>Courtesy: <a href="https://www.lowerantelope.com/">https://www.lowerantelope.com/</a></figcaption></figure><p>After experiencing all kinds of technology and learning about many different technologies for 3–4 days, you should do something a little different. You should not leave Las Vegas without seeing natural beauties such as the Grand and Antelope Canyons. I highly recommend experiencing these natural beauties with day trips from Las Vegas! You should not have any hesitations about whether it will be cold in January, a very pleasant trip awaits you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b6bf3dcc576" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Deep Dive #2: Linear Regression]]></title>
            <link>https://medium.com/turkcell/machine-learning-deep-dive-2-linear-regression-ddfb6928ef7?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddfb6928ef7</guid>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Sun, 04 Dec 2022 05:27:04 GMT</pubDate>
            <atom:updated>2023-11-14T10:44:19.112Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the second article of the “Machine Learning Deep Dive” biweekly series! This week we will talk about linear regression and compare different approaches: <strong>Ordinary Least Square</strong> and <strong>Gradient Descent</strong>. As in the first article, there will be a separate GitHub repository containing sample codes and examples prepared from the scratch and/or using the open-source Python libraries. Wish you pleasant reading!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LnCN4_rOM37FqbHZGW0WtQ.png" /></figure><h3>Regression 101: What is Regression?</h3><p>Anyone interested in machine learning has heard of these two words: regression and classification. Since these two methods are used for different types of analyses, it is important to know their differences. <strong>Classification </strong>is the method used to classify data into specific groups, to determine which class the data belongs to: i.e. filtering e-mails as spam or not. <strong>Regression</strong>, on the other hand, is the method used to estimate the discrete values of the data: i.e. weather forecast. The two main categories of regression models are linear models and non-linear types of regressions. Regression is a widely used model in many scientific and engineering disciplines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9kWuhKJXCd8MzAJFSUgmw.png" /></figure><h3>Linear Regression: Simple but Effective</h3><p><strong>Linear regression</strong> is a supervised learning technique that makes an attempt to predict the relationship between two variables, the <em>dependent </em>and <em>independent </em>variables, by <em>fitting a linear equation</em> to the observed data. So what do we mean by that? Finding a linear relationship that exemplifies the given data actually means finding a linear line that best represents the dataset. Considering the simplest scenario, we can construct a basic linear line using the following equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/0*sOV80V0yarYJ6nsG" /></figure><p>If we find the intercept and coefficient values using the dataset (X) and labels (y), we can determine the most appropriate linear line. After calculating these two unknowns, we have the basic information necessary to make new predictions. All we need to do is to find the value that the new data intercepts with the linear regression line. Sounds logical, doesn’t it? The most critical thing here is the selection of the intercept and coefficient parameters to best represent the dataset. But how do we make this choice? There are two different ways to do this: one is using the entire dataset in a single step to make this estimation while the other iteratively completes this process. Let’s dive into these methods and learn more about them!</p><h3>#1: Ordinary Least Square: One-Step Solution</h3><p>Let’s revisit our purpose: we want to create a line such that the difference between the obtained estimates and the actual values is minimal (or even zero if possible), in other words, we want to find the best b values. <strong>OLS </strong>allows us to find the best b parameters by minimizing the <strong>squared errors</strong> of the distance of each sample’s estimation from the true value — we are using the squared error since the negative and positive distances should not impact the optimization differently. If we refresh our dusty knowledge of linear algebra to calculate the B values, we get the following equation (if you want to follow the calculations step by step, check out <a href="https://mitpress.mit.edu/9780262043793/introduction-to-machine-learning/">Ethem Alpaydın’s book</a>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/0*q_GSB-pOe76yL_dd" /></figure><p>And, that’s it! I was wondering if anything caught your attention. The OLS method allows us to calculate all the parameters we are looking for in a single step, we do not need to use any iterations. Additionally, by solving the equation, the entire process becomes quite straightforward and simple to understand. Besides the advantages, OLS also has some disadvantages. <strong>Multicollinearity </strong>undermines this definition since a change in one variable affects the other variables in a way that also affects the dependent variable. As a result, <em>the model is less effective and the coefficient estimates are less precise</em>. In addition, multiplying the entire matrix at once can be a problem when <em>the dataset is large.</em></p><p>OLS is a method frequently used in linear regression. In fact, <a href="https://scikit-learn.org/stable/modules/linear_model.html"><em>the linear regression function of the Scikit-Learn library</em></a> is OLS based.</p><h3>#2: Gradient Descent: The Star of Machine Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*uvFN4Sbvp5g7Vicx.png" /><figcaption>Courtesy: <a href="https://www.mltut.com/stochastic-gradient-descent-a-super-easy-complete-guide/">https://www.mltut.com/stochastic-gradient-descent-a-super-easy-complete-guide/</a></figcaption></figure><p>GD is an <strong>iterative </strong>optimization algorithm that is widely used in many different machine learning models. In contrast to OLS, gradient descent avoids attempting to solve any closed-form equations. It starts with a <strong>random solution set</strong> and achieves the best parameters by <em>iteratively changing them</em>. At each step, the parameters are updated and the effect of this change on the error is evaluated. So how do we know how to update to get the best parameter set? For this, we need to define a loss and an update function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/0*VJ4NAPD6_sTFfxmh" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/0*58aQsQIUvDuLcxI5" /></figure><p>The GD algorithm generates random b values in the first step and starts the optimization. It makes an estimation using these b values and compares the results with the real values using the loss function (J). We can better understand the working principle of GD using the figure above. In the figure, the x-axis shows the variables of our model, and the y-axis shows the cost value we obtained. This graph is a frequently used graph to represent the solution space. Our aim is to find the values that give the minimum cost. For example, let’s assume that the random b values we created take us to the leftmost place on the graph. We will calculate the derivative from that starting point, and then we may use a tangent line to determine how steep the slope is. The modifications to the parameters, such as the weights and bias, will be guided by the slope. The slope will be steeper at the starting point, but when additional parameters are generated, the steepness should steadily diminish until it hits the point of convergence, which is the lowest point on the curve. The <strong>α </strong>in the update function, which is called the learning rate, controls how big steps we will take while updating. If we select a <em>small learning rate</em>, it might take <strong>too much time to reach the convergence point</strong>, or we might <strong>stuck into a local minimum point</strong>. Conversely, if we go with a <em>large learning rate</em>, we might <strong>not reach the minimum point</strong>. Therefore, careful selection of the learning rate significantly affects the performance of the algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7RYds6aFalW9Uj88.jpg" /><figcaption>Courtesy: <a href="https://www.ibm.com/cloud/learn/gradient-descent">https://www.ibm.com/cloud/learn/gradient-descent</a></figcaption></figure><p>If you want to develop a GD-based linear model using Scikit-Learn, you can use the <a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.SGDRegressor.html"><strong>SGDRegressor function</strong></a>.</p><h3>Python Implementation: Let’s Get Our Hands Dirty!</h3><p>Let’s write some code now! I have prepared a GitHub repository with the code of the Linear Regression algorithm based on <strong>Ordinary Least Square and Gradient Descent</strong> written from scratch and using the predefined functions of the <a href="https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html">Scikit-Learn library</a>. You can perform performance analysis by comparing the results of two applications with each other. You can find the repository <a href="https://github.com/bilginbuse/Linear-Regression"><strong>here</strong></a>.</p><p>If you want to talk about machine learning or about my article, you can contact me via my <a href="https://www.linkedin.com/in/buseebrem/">LinkedIn account</a>. Stay tuned for the third paper of the series!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddfb6928ef7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turkcell/machine-learning-deep-dive-2-linear-regression-ddfb6928ef7">Machine Learning Deep Dive #2: Linear Regression</a> was originally published in <a href="https://medium.com/turkcell">turkcell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning Deep Dive #1: Bayesian Decision Theory]]></title>
            <link>https://medium.com/turkcell/machine-learning-deep-dive-1-bayesian-decision-theory-7622a179a619?source=rss-7bad1d0bb61f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7622a179a619</guid>
            <category><![CDATA[naive-bayes-from-scratch]]></category>
            <category><![CDATA[naive-bayes]]></category>
            <category><![CDATA[naive-bayes-in-python]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Buse Bilgin]]></dc:creator>
            <pubDate>Sat, 19 Nov 2022 18:55:37 GMT</pubDate>
            <atom:updated>2023-11-14T10:44:00.620Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the first article of the “Machine Learning Deep Dive” biweekly series. Each article will consist of a theoretical summary based on <a href="https://mitpress.mit.edu/9780262043793/introduction-to-machine-learning/">Ethem Alpaydın’s Machine Learning</a> book. For each method, there will be a separate GitHub repository containing sample codes and examples prepared from the scratch and/or using the open-source Python libraries. Wish you pleasant reading!</p><h3>Introduction: For Those Who Miss Probability Theory</h3><p><strong>Naive Bayes</strong> is one of the simple, powerful, and fast classification algorithms, and a good starting point for Machine Learning! It is based on the <strong>Bayes Theorem </strong>which explains the connection between conditional probabilities of statistical quantities. This model is based on a strong (and improbable in real data) assumption: <em>every pair of features is conditionally independent</em>. However, the method performs surprisingly well on data even where this assumption is false. So, let’s dive in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*abOXJEshUxsP6Nu6_3f6Lw.png" /><figcaption>Courtesy: <a href="https://data-flair.training/blogs/bayes-theorem-data-science/">https://data-flair.training/blogs/bayes-theorem-data-science/</a></figcaption></figure><p>To understand the Bayesian Decision algorithm, we need to first understand the theory in the background (“winter is coming” for those who don’t like probability theory). Let’s think of a random process where we can’t predict exactly what the outcome will be in any given situation: like flipping a coin. In such cases, we can only talk about possibilities. The result is controlled by what we called the <em>unobservable variables </em>(i.e. the composition of the coin, its initial position, the force, etc.). Since the unobservable variables cannot be observed, it is not a piece of useful information that we can use to predict future results. The best we can do is to try to build a model on the <em>observable variables</em>. When we consider the toss scenario, this value is the results of the experiment: heads or tails. Now, our goal is crystal clear: to create an algorithm where we can predict the result of future experiments from the results obtained from the previous experiments.</p><p>If we tossed the coin 10 times and 6 of them were heads, the probability of tossing a head is P(H) = 0.6. The probability that we calculate using the results of the previous events is called the <strong>prior probability.</strong> Although it helps us to gain important insight related to the previous experiments, it is insufficient on its own as it does not involve the result of the current experiment when making a future prediction. We need to enrich our calculation with additional parameters to increase the consistency of our future predictions.</p><p>There is another parameter in probability theory that we frequently encounter and that can be a solution to our problem: <strong>likelihood</strong>. The main difference between probability and likelihood is that while the likelihood is attached to <strong>hypotheses</strong>, the probability is attached to <strong>potential outcomes</strong>. Likelihood tells us <em>how likely the result is to be C given a set of circumstances x</em>. When we combine the prior probability and the class likelihood, we can see the picture as a whole — which is exactly what Thomas Bayes did! And here comes Bayesian Decision Theory!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*nja-2BWcPbETTSz8.png" /></figure><p>We’re already familiar with the variables on the numerator, but there is a new player in the denominator: evidence. <strong>Evidence </strong>is described as the number of times x has occurred, regardless of which class it belongs to. Evidence normalizes the calculated posterior probabilities to sum up to 1. After we calculate the posterior probabilities, we choose the class with the highest posterior probability for making predictions.</p><h3>Losses and Risks: Unsymmetric Situations</h3><p>In some scenarios, the decisions are not equally good or costly. If we think about the familiar scenario of the COVID-19 pandemic, diagnosing a healthy person as positive and an infected person as negative have totally different practical outcomes. When this is the case, we need an additional parameter that can take this kind of risk into account during the loss calculation: <strong>risk</strong> and <strong>action </strong>parameters. In other words, we need to define a function that calculates the risk according to the selected action (α) using the loss (λ) incurred from not selecting other classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/0*Zn7H8XtmB4_uj1RN" /></figure><p>Our goal is to <em>choose the class that has the minimum risk</em>. What about the loss parameter λ? The loss can be determined in a number of ways. One of the popular approaches is called “0/1 loss”. The 0/1 loss method selects the loss parameters using a very simple algorithm: If the prediction is true, then there is no loss (λ = 0); if not, the loss parameter is set to λ = 1. This implementation enables simplification in the risk function. We can rewrite the risk function for the 0/1 loss approach as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/0*BdLnZHelth-8gaZZ" /></figure><p>So, in order to reduce risk, we should select the most probable class. As you can guess, this is one of the simplest postprocessing methods to go from the posteriors to risks and to take the action to minimize them.</p><p>But sometimes this method may not work. In some cases, the cost of making a mistake can be very high, so our goal may be to reduce the error rate to zero. Let’s think about the shipping process, none of us want a product we ordered to go to another address as a result of an error in the machine-learning model. In such cases, we need to define an additional action: <strong>reject </strong>(αₖ₊₁). The number of classes has increased from K to K+1. The classes from k=1 to k=K are the usual classes, while the K+1 class is the reject class. The reject class has a loss of λ, which is a value between 0 and 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*b-aDr0iZc64oKH12" /></figure><p>Isn’t the equation like the combination of loss definitions we’ve seen before? When we look into the risk of reject, it is the same relation as the first loss definition that we defined, on the contrary, the risk of choosing a class is the same as the 0/1 loss calculation. The optimal decision rule is to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*03LWrlnLV4nljCkH" /></figure><p>This entire strategy makes sense if 0 &lt;λ&lt; 1. We always reject if λ = 0; a reject is equivalent to a correct classification. If λ ≥ 1, we never reject because a rejection is just as expensive as an error, if not more so.</p><h3>Python Implementation: Let’s Get Our Hands Dirty!</h3><p>Let’s write some code now! I have prepared a GitHub repository with the code of the Bayesian Decision algorithm written from scratch and using the predefined functions of the Scikit-Learn library. You can perform performance analysis by comparing the results of two applications with each other. You can find the repository <a href="https://github.com/bilginbuse/Bayesian-Decision"><strong>here</strong></a>.</p><p>If you want to talk about machine learning or about my article, you can contact me via my <a href="https://www.linkedin.com/in/buseebrem/">LinkedIn account</a>. Stay tuned for the second paper of the series!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7622a179a619" width="1" height="1" alt=""><hr><p><a href="https://medium.com/turkcell/machine-learning-deep-dive-1-bayesian-decision-theory-7622a179a619">Machine Learning Deep Dive #1: Bayesian Decision Theory</a> was originally published in <a href="https://medium.com/turkcell">turkcell</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>