<?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 Harsh Ambekar on Medium]]></title>
        <description><![CDATA[Stories by Harsh Ambekar on Medium]]></description>
        <link>https://medium.com/@harshpendkar?source=rss-6a18362ac6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CqXFNyM_uMK9-NHi</url>
            <title>Stories by Harsh Ambekar on Medium</title>
            <link>https://medium.com/@harshpendkar?source=rss-6a18362ac6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:52:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshpendkar/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[Tomato Leaf Disease Detection using Convolutional Neural Networks (CNN)]]></title>
            <link>https://medium.com/@harshpendkar/tomato-leaf-disease-detection-using-convolutional-neural-networks-cnn-a06ce3edbc4d?source=rss-6a18362ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a06ce3edbc4d</guid>
            <dc:creator><![CDATA[Harsh Ambekar]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 09:39:31 GMT</pubDate>
            <atom:updated>2023-11-24T09:39:31.056Z</atom:updated>
            <content:encoded><![CDATA[<p>Tomato, a versatile and widely cultivated fruit, plays a significant role in global agriculture and culinary traditions. However, tomato plants are susceptible to various diseases that can severely impact crop yields and quality. Early and accurate disease detection is crucial for timely intervention and crop management. In recent years, deep learning techniques, particularly convolutional neural networks (CNNs), have emerged as powerful tools for disease detection in various crops, including tomatoes.</p><blockquote><strong>The Challenge of Tomato Leaf Disease Detection</strong></blockquote><p>Tomato plants are susceptible to various diseases, such as Early Blight, Late Blight, and Septoria Leaf Spot. Recognizing the visual symptoms of these diseases on tomato leaves is critical for timely intervention.</p><p>Tomato leaf diseases manifest in a variety of symptoms, including discoloration, spots, lesions, and wilting. These symptoms can vary depending on the specific disease and may overlap, making manual identification challenging and prone to errors. Traditional methods, such as visual inspection and laboratory tests, are often time-consuming and labor-intensive, limiting their effectiveness in large-scale agricultural settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/1*yB2zVblXPlmj4oKa8Eivjw.png" /></figure><blockquote><strong>Convolutional Neural Networks (CNN)</strong></blockquote><p>CNNs are a class of deep neural networks well-suited for image recognition tasks. Their ability to learn hierarchical features makes them ideal for detecting patterns in images, such as those associated with plant diseases.</p><h3>The CNN Architecture for Tomato Leaf Disease Detection</h3><blockquote>A typical CNN architecture for tomato leaf disease detection consists of several layers:</blockquote><p><strong>1. Convolutional layers</strong>: These layers extract features from the input image.</p><p><strong>2. Pooling layers</strong>: These layers reduce the dimensionality of the feature maps while retaining essential information.</p><p><strong>3. Fully connected layers</strong>: These layers classify the extracted features into healthy or diseased categories.</p><blockquote>The Benefits of Using CNNs</blockquote><p>CNNs offer several advantages for tomato leaf disease detection:</p><p><strong>· Accuracy</strong>: CNNs can achieve high accuracy in classifying tomato leaf images, outperforming traditional methods.</p><p><strong>Speed</strong>: CNNs can process large numbers of images quickly, enabling real-time disease detection.</p><p><strong>· Scalability</strong>: CNNs can be trained on large datasets, making them adaptable to diverse agricultural environments.</p><blockquote><strong>Results</strong></blockquote><p>In the testing phase, we check how well our CNN model performs using important measures like accuracy, precision, and recall. Accuracy tells us how often the model gets its predictions right overall. Precision focuses on the model’s accuracy in identifying positive cases without making too many mistakes. Recall looks at the model’s ability to catch and correctly label all instances of diseased tomato leaves, avoiding missing any.</p><p>By looking at results on a separate testing dataset, different from what the model learned from, we can see how well it works on new cases. This helps us understand if the model can correctly identify and classify different tomato leaf diseases in the real world. These measurements help us figure out how dependable and effective our CNN model is for spotting tomato leaf diseases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*nTWrWTOzCYuVhPPSASvXmA.png" /></figure><blockquote><strong>Challenges</strong></blockquote><p><strong>Limited Data:</strong> Having not enough diverse pictures of tomato leaf diseases can make it harder for the model to learn effectively.</p><p><strong>Class Imbalance:</strong> If there are too many images of one type of disease and too few of another, the model might get better at recognizing the more common disease but struggle with the less common ones.</p><p><strong>Environmental Variations:</strong> Changes in things like lighting, humidity, or soil conditions can affect how diseases look on tomato leaves. If the model is trained with a narrow set of conditions, it might not work well in different environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a06ce3edbc4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hate Speech Detection Using Decision Tree]]></title>
            <link>https://medium.com/@harshpendkar/social-media-platforms-particularly-twitter-have-revolutionized-the-way-we-communicate-offering-601f91885850?source=rss-6a18362ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/601f91885850</guid>
            <dc:creator><![CDATA[Harsh Ambekar]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 09:02:18 GMT</pubDate>
            <atom:updated>2023-11-24T12:03:25.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OA3dyWOuugKEgnsMovAfvg.jpeg" /></figure><p>Social media platforms, particularly Twitter, have revolutionized the way we communicate, offering a global stage for sharing thoughts and opinions.</p><p>Unfortunately, this freedom of expression has also led to the rise of hate speech, a pervasive issue that threatens the inclusivity of online spaces.</p><p>In this blog post, we will explore the development of a Hate Speech Detection System using Decision Trees, specifically tailored to the unique challenges posed by the brevity and complexity of language on Twitter, utilizing a dataset of 15,000 entries from Kaggle.</p><blockquote>The Need for Detection</blockquote><p>Hate speech detection is important for several compelling reasons, reflecting the broader impact it has on individuals, communities, and society at large. Here are some key reasons why the development and implementation of effective hate speech detection systems are crucial:</p><ol><li>Protection of Individuals and Groups</li><li>Preservation of Online Spaces</li><li>Social Harmony and Cohesion</li></ol><blockquote><strong>Theoretical Components</strong></blockquote><p><em>3.1 Data Preprocessing:</em></p><ul><li>Cleaning: Removing URLs, mentions, and special characters to distill tweets to their essence.</li><li>Tokenization: Breaking down tweets into individual words for analysis.</li><li>Stopword Removal and Stemming: Eliminating common words and reducing words to their base form.</li></ul><p><em>3.2 Feature Engineering:</em></p><ul><li>Word Frequencies: Counting the occurrence of each word to highlight prevalent terms.</li></ul><p><em>3.3 Model Training:</em></p><ul><li>Splitting the dataset into training and testing sets.</li><li>Training the decision tree model to learn patterns associated with hate speech.</li><li>Evaluating the model’s performance using metrics such as precision, recall, and F1 score.</li></ul><p><em>3.4 Interpretability of Decision Trees:</em></p><ul><li>Understanding the decision-making process of the model.</li><li>Visualizing decision trees to comprehend the hierarchy of features.</li><li>Iterative refinement based on interpretability insights.</li></ul><p>Advantages of Decision Trees:</p><ul><li>Interpretability: Decision trees provide clear, interpretable rules for identifying hate speech, enhancing transparency.</li><li>Efficiency: The ability of decision trees to handle large datasets and make real-time predictions aligns with the fast-paced nature of Twitter.</li></ul><blockquote>Efficient new models to catch hate speech</blockquote><p>Detecting some hate speech is straightforward for both AI and humans. Slurs and hateful symbols represent obvious attacks on a person’s race or religion. But many instances of hate speech are more complex. Combining text and images makes it harder for AI to grasp whether the intended meaning is offensive even when a human might find it obvious. Hate speech can also be disguised with sarcasm or slang, or with seemingly innocuous images that are perceived differently in different cultures, regions, and languages.</p><p>To better handle these challenges, we’ve built and deployed a new reinforcement learning framework called Reinforced Integrity Optimizer (RIO). Rather than relying on a static (and thus limited) offline dataset, RIO directly uses online, real-world data from our production systems to optimize the AI models that detect hate speech. RIO works on the entire machine learning development life cycle, from data sampling to A/B testing.</p><p>In traditional AI systems, engineers optimize these steps in two separate processes: offline optimization and online experimentation. Offline, engineers can use a variety of tools to help pick the right train/test mix and the right neural architecture, but they’re based only on offline metrics, like precision and recall. The model is then also optimized offline, using A/B testing to figure out the model’s impact on online user and business metrics.</p><p>RIO takes a completely different approach. It optimizes all the steps in this process together and uses actual production performance metrics to tweak the offline components. This level of end-to-end optimization allows for significantly better performance and faster iteration. Instead of doing the work offline and then applying it to production to see if it works as anticipated, the online system tackles the real challenge.</p><p>RIO enables us to focus our model training on violations of our hate speech policy that were previously missed by our production models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=601f91885850" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Hate Speech on Twitter with Decision Trees]]></title>
            <link>https://medium.com/@harshpendkar/detecting-hate-speech-on-twitter-with-decision-trees-e77bd54e41ef?source=rss-6a18362ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e77bd54e41ef</guid>
            <dc:creator><![CDATA[Harsh Ambekar]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 02:10:53 GMT</pubDate>
            <atom:updated>2023-11-24T02:10:53.139Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction: Social media platforms, particularly Twitter, have revolutionized the way we communicate, offering a global stage for sharing thoughts and opinions. Unfortunately, this freedom of expression has also led to the rise of hate speech, a pervasive issue that threatens the inclusivity of online spaces. In this blog post, we will explore the development of a Hate Speech Detection System using Decision Trees, specifically tailored to the unique challenges posed by the brevity and complexity of language on Twitter, utilizing a dataset of 15,000 entries from Kaggle.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e77bd54e41ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speech Recognition Algorithms]]></title>
            <link>https://medium.com/@harshpendkar/introduction-b93c61038374?source=rss-6a18362ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b93c61038374</guid>
            <dc:creator><![CDATA[Harsh Ambekar]]></dc:creator>
            <pubDate>Tue, 02 May 2023 13:12:43 GMT</pubDate>
            <atom:updated>2023-05-03T06:55:25.961Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Introduction:</strong></blockquote><p>Speech recognition, also known as automatic speech recognition (ASR), is the ability of a computer or machine to recognize and understand spoken language. It involves processing a spoken utterance and converting it into written text or a machine-readable command. The technology has evolved significantly over the years and has become a key component of many everyday applications, such as virtual assistants, dictation software, transcription services, and voice-controlled devices. The process of speech recognition involves several steps, including preprocessing the speech signal, extracting relevant features from the signal, training a machine learning model to recognize speech, and recognizing new speech samples in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*-mMq4r44vaQNQPp1.png" /></figure><blockquote><strong>Algorithms used for modeling:</strong></blockquote><blockquote><strong>Hidden Markov Models:</strong></blockquote><p>Hidden Markov Models (HMMs) are a type of statistical model that have been widely used in speech recognition since the 1980s. HMMs model the probability distribution of speech sounds or phonemes as a sequence of hidden states, and use transition probabilities between these states to model the temporal dynamics of speech.</p><p>Here’s how HMMs work in more detail:</p><p>1. State representation: HMMs represent a sequence of speech sounds or phonemes as a sequence of hidden states. Each state represents a specific sound or phoneme, but the actual identity of the sound is unknown.</p><p>2. Probability distribution: For each state, HMMs model the probability distribution of the acoustic features that correspond to that sound or phoneme. This distribution is typically modeled as a Gaussian mixture model (GMM), which captures the variability in the acoustic features.</p><p>3. State transitions: HMMs model the temporal dynamics of speech by defining transition probabilities between the hidden states. These transition probabilities reflect the likelihood of moving from one state to another in the sequence of speech sounds.</p><p>4. Observation sequence: Given an observation sequence of acoustic features, HMMs use the Viterbi algorithm to find the most likely sequence of hidden states that generated that observation sequence. This is done by computing the probability of each possible sequence of hidden states and selecting the one with the highest probability.</p><p>5.Training: HMMs can be trained using the Baum-Welch algorithm, which is a form of expectation-maximization (EM) algorithm. The Baum-Welch algorithm estimates the parameters of the model, including the state transition probabilities and the parameters of the GMMs, based on a set of training data.</p><p>HMMs have been shown to work well for isolated word recognition, but can struggle with continuous speech recognition and modeling long-term dependencies. They are computationally efficient and have been widely used in speech recognition systems due to their effectiveness and ease of implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*EWf7tB8rp6d8tS_in9-qsg.png" /></figure><blockquote><strong>Conclusion:</strong></blockquote><p>In conclusion, speech recognition algorithms have revolutionized the way we interact with computers and technology. From virtual assistants to automated customer service systems, speech recognition has become an essential tool in various industries.</p><p>There are several algorithms used in speech recognition, including Hidden Markov Models (HMMs), Gaussian Mixture Models (GMMs), Dynamic Time Warping (DTW), and Deep Neural Networks (DNNs). Each algorithm has its strengths and weaknesses, and the choice of algorithm depends on the specific application and available resources.</p><p>The speech recognition process involves several steps, including signal preprocessing, feature extraction, acoustic modeling, language modeling, and decoding. Each step requires careful consideration and optimization to achieve high accuracy and efficiency in speech recognition.</p><p>While there have been significant advancements in speech recognition technology, there are still challenges to be addressed, such as noise robustness, speaker variability, and natural language understanding. However, with continued research and development, speech recognition algorithms will continue to improve and transform the way we communicate with technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b93c61038374" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image Processing in Robotics]]></title>
            <link>https://medium.com/@harshpendkar/image-processing-in-robotics-4f22d64544ab?source=rss-6a18362ac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f22d64544ab</guid>
            <dc:creator><![CDATA[Harsh Ambekar]]></dc:creator>
            <pubDate>Mon, 01 May 2023 19:03:15 GMT</pubDate>
            <atom:updated>2023-05-01T19:05:16.575Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Introduction:</em></strong></p><p>Robotics vital topic of image processing involves the study and manipulation of digital images in order to extract valuable information. Robotics can use it for a variety of things, such as object detection, tracking, recognition, and localisation. Robotics, computer vision, and machine learning all come together in the complicated topic of image processing.</p><p>Image processing is utilized in the field of robotics to provide robots the ability to see and comprehend their surroundings by analyzing visual information. This entails the use of cameras and other sensors to take pictures of the robot’s surroundings, which are then processed to draw out pertinent data. Image processing, for instance, can be used to find and identify items in a robot’s surroundings, such as people, furniture, or other robots. This information can then be used to guide the robot’s movements or actions.</p><p>In general, image processing is essential for allowing robots to function freely and engage in meaningful interactions with their surroundings. Robots will be able to complete increasingly complicated jobs with higher accuracy and efficiency as image processing techniques continue to progress in the field of robotics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*42dT03-E3UhU3RUE.jpg" /></figure><p><strong><em>Importance of Image Processing in Robotics:</em></strong></p><p>Robots need image processing to be able to sense and comprehend their surroundings through visual data, making it a crucial part of robotics. The following are some of the main justifications for image processing’s significance in robotics.</p><p>1. Detecting and identifying objects in a robot’s environment, such as people, cars, and other robots, can be done using image processing algorithms. The robot can use this knowledge to travel, avoid hazards, and interact with its surroundings.</p><p>2. Map-making and localization: Image processing can also be used to assist robots in mapping their surroundings and locating themselves within them. Numerous applications, such as autonomous navigation and exploration, depend on this.</p><p>3. Image processing can let robots communicate and interact with humans more effectively. Algorithms for emotion recognition, for instance, can be used to identify and recognize human faces whereas algorithms for facial recognition can be used to recognize human faces and respond appropriately.</p><p>4. Inspection and quality control: Image processing can be used to check items for flaws and make sure they adhere to quality standards in manufacturing and other industries.</p><p>5. Increased productivity and efficiency: Image processing can boost the effectiveness and productivity of robots by allowing them to observe and comprehend their surroundings. For companies that deploy robots in their operations, this could result in cost savings and improved competitiveness.</p><p>Overall, image processing plays a critical role in enabling robots to interact with their environment and perform complex tasks with greater accuracy and efficiency. As robotics technology continues to advance, image processing is likely to become even more important in enabling robots to perform a wide range of applications in a variety of industries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5XxF6U868C7fwtyl.jpg" /></figure><p><strong><em>Image processing techniques in Robotics:</em></strong></p><p><strong>Object Detection: </strong>Object detection is the process of identifying and locating objects of interest in an image or video. It is a crucial component of many computer vision and robotics applications, such as autonomous vehicles, surveillance systems, and industrial automation. Object detection algorithms typically use machine learning techniques, such as deep neural networks, to learn features that distinguish between different objects in an image.</p><p>The most commonly used approach for object detection is the sliding window technique, where a classifier is applied to different regions of the image at different scales and orientations to identify objects. Another popular approach is the region proposal-based approach, which first generates a set of regions in the image that may contain objects and then uses a classifier to determine which regions contain objects. One of the most popular object detection models is the You Only Look Once (YOLO) model, which uses a single neural network to predict object classes and bounding boxes in an image in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JlJnpxzj9hzHvu4R.png" /></figure><p><strong>Image Segmentation: </strong>Image segmentation is the process of dividing an image into multiple segments or regions based on various criteria like color, texture, and shape. Image segmentation is an important step in many computer vision and robotics applications, such as medical imaging, autonomous navigation, and object recognition.</p><p>There are two main types of image segmentation: supervised and unsupervised. Supervised segmentation involves training a classifier on labeled data to segment images. Unsupervised segmentation, on the other hand, uses clustering algorithms to group pixels with similar features together. One popular unsupervised segmentation algorithm is the k-means algorithm, which groups pixels into k clusters based on their color values.</p><p>Another popular segmentation approach is semantic segmentation, which assigns a label to each pixel in an image based on the object or region it belongs to. Semantic segmentation is typically performed using deep neural networks, such as the Fully Convolutional Network (FCN), which outputs a pixel-wise segmentation map of an image. Overall, both object detection and image segmentation are important image processing techniques in robotics and computer vision that enable robots to perceive and interact with their environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sidBTKNV88msX41v.jpg" /></figure><p><strong><em>Applications:</em></strong></p><p><strong>1. Navigation and obstacle avoidance: </strong>Navigation and obstacle avoidance are critical components of robotic systems, especially in autonomous robots. Image processing techniques are used to detect and avoid obstacles in the robot’s environment. One of the most commonly used image processing techniques for obstacle avoidance is optical flow, which involves analyzing the motion of objects in the robot’s field of view over time. By detecting changes in the optical flow, robots can detect obstacles in their path and plan alternative paths to avoid them.</p><p><strong>2. Grasping and manipulation: </strong>Grasping and manipulation are essential skills for robots that need to interact with objects in their environment. Image processing techniques are used to estimate the position and orientation of objects and plan grasping strategies accordingly. For example, robots can use computer vision algorithms to detect the edges and corners of objects and then plan a grasping strategy based on those features.</p><p><strong>3. Surveillance and security:</strong> Image processing techniques are used for surveillance and security applications in robotics. For example, robots can use computer vision algorithms to detect and track suspicious activities in a given area. These algorithms can detect anomalies in a scene, such as the sudden appearance of an object or a person moving in an unusual way.</p><p>Face recognition is a popular image processing technique used in surveillance and security applications. Robots equipped with cameras and face recognition algorithms can detect and recognize individuals in a crowd or track the movements of specific individuals. This can be useful in applications like airport security, where robots can track the movements of individuals of interest.</p><p><em>Conclusion:</em></p><p>In conclusion, image processing is a key technological advancement for the growth of contemporary robots. Image processing is now a crucial technique for enabling robots to see and interact with their surroundings due to the growing need for robots in numerous applications. Robots can detect and identify objects, move through complicated environments, and carry out a variety of tasks like grabbing and manipulating objects, avoiding obstacles, and performing surveillance and security by employing cameras, depth sensors, and computer vision algorithms.</p><p>In order for autonomous robots to function and make judgements, image processing is essential to their growth. Robots can analyse enormous volumes of visual data and generate predictions about their surroundings using machine learning and artificial intelligence techniques. This capability is essential for robots to adapt to changing situations, learn from their experiences, and improve their performance over time.</p><p>Overall, image processing is an exciting and rapidly evolving field with significant potential for robotics. As the technology continues to advance, we can expect to see more innovative applications of image processing in robotics, leading to the development of robots that are more intelligent, autonomous, and capable of performing a wide range of tasks in different environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f22d64544ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>