<?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 Parikshit Pohane on Medium]]></title>
        <description><![CDATA[Stories by Parikshit Pohane on Medium]]></description>
        <link>https://medium.com/@pohaneparikshit7?source=rss-db2187c5909------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ym2UnX9N_m3bMnWt</url>
            <title>Stories by Parikshit Pohane on Medium</title>
            <link>https://medium.com/@pohaneparikshit7?source=rss-db2187c5909------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:34:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pohaneparikshit7/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[Medical Image Enhancement: Window Levelling and Contrast Adjustment]]></title>
            <link>https://medium.com/@pohaneparikshit7/medical-image-enhancement-window-leveling-and-contrast-adjustment-2a6fe78bf797?source=rss-db2187c5909------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a6fe78bf797</guid>
            <dc:creator><![CDATA[Parikshit Pohane]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 08:52:03 GMT</pubDate>
            <atom:updated>2023-12-05T07:26:30.125Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*cwIU1NV_kPFJswof.png" /><figcaption>Same Image, same data — different visualizations, different contrast.</figcaption></figure><p>Are you a deep learning expert and new to the field of medical imaging, then let me tell you something: medical images are different! In this post, I want to share with you my experience with contrast adjustment, also known as windowing or window/level.</p><h3>Pixel Depth</h3><p>The three different head MRI scans which are shown above are all the same image, unprocessed. However, they differ in the way the gray scales are visualized. Medical Imaging: MRI, CT, and X-ray, they all acquired with medical imaging equipment which is substantially different than a normal photo camera. One major difference is the fact, that the gray values are measured on a different scale. In CT, the gray values are Hounsfield units and can range from [-1000, 2000] not including foreign body substances such as metals which are imaged at much higher Hounsfield units. In MRI the voxel intensity depends on the receiver gain of the MR machine, which again is impacted by many factors such as magnetic field strength, vendor type, and pulse sequence but can be in a range from [0, to multiple thousands]. I will use MR brain-related examples in this post.</p><p>Having this large number of intensity values poses some challenges, neither our eye nor the computer allows for the appropriate differentiation of such great details. A computer has a pixel depth of only 256 values. Instead of just squeezing ten thousand values of medical images into those 256 buckets, we can adjust the windowing. Windowing allows us to set a level and a window width for those gray values that we want to visualize. Values outside this range are either black (left side of the window) or white (right side of the window). Only values inside the defined range are placed into the grayscale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*izU7OVFYapIojMU9.png" /></figure><p>Window-Level defines the range of intensity visualized on the grayscale. Values outside the range are either black or white depending on the value. In this example. the histogram represents a histogram of a brain, where the peaks roughly correspond to CSF, Grey matter, and white matter. With this window-level setting. CSF will be visualized as a solid black color, and tissues within the window will be visualized on a grey scale. Where white matter is brighter than gray matter, CSF will be dark.</p><p>This allows us to focus on specific tissue contrast. For example, if we are interested in soft tissues, such as grey and white matter, we choose a window/level optimizing contrast between them. If we want to see background noise, we try to focus on intensity values representing background noise and optimize the parameter for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Ynpv6CLbtVAdhQuJ.png" /><figcaption>(1) Window-level for only visualizing highest intensity, (2) motion artifacts become visible (3) good contrast between white and grey matter</figcaption></figure><p>Having this flexibility in visualization allows the radiologist to play around with windowing settings and optimize the image for the particular region they are looking at. There is not only one window/level setting used for the analysis, rather it is the white range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*lsp6S4SL2ogdiLTS.gif" /><figcaption>MR Brain Scan with 3D slicer. The right-click opens up the menu and with the right button pressed, the windowing can be adjusted (vertical and horizontal directions correspond to the level and window).</figcaption></figure><p>Therefore, medical imaging software allows one to easily adjust the window level for the best contrast, often done by moving the pressed cursor in different directions. Look for settings like Window/Level, Windowing, and Contrast Adjust. An incomplete list of open source software for visualizing medical images (usually Dicom or Nifti file format) are:</p><ol><li>ITK Snap</li><li>FSL Lense</li><li>3D Slicer</li><li>ImageJ</li></ol><h3>Why does it Matter? — Deep Learning</h3><p>You may wonder why this information is important when using medical images for deep learning.</p><p>Deep learning has different components and usually does not need human interaction such that the optimization of image visualization seems to be redundant. However, as good scientists, we need to understand problems related to our code or evaluate the performance of results or certain preprocessing steps. That is when windowing becomes important.</p><ol><li><strong>MR Preprocessing</strong>: When we want to evaluate our preprocessing steps such as<strong> bias field correction</strong>, we are able to maximize contrast for the most impacted tissues and enhance the visualization of the effect, the bias field has on the image and we can also validate how well it got removed. Another preprocessing step is <strong>skull strippin</strong>g. During skull stripping, scalp tissues, and the skull are removed such that only brain-related tissues are left. The border between the scalp and brain is not always clear as other ligaments also exist. Optimized windowing allows improved visualizing and hence evaluation.</li><li><strong>MRI segmentation</strong>: Segmenting of tumors or other lesions, often evolves pixel-wise decision making, with un-optimized windowing, the decision is sometimes difficult to understand. Window-Level helps understand the fine detail.</li><li><strong>MR reconstruction</strong>: Using deep learning for MRI reconstruction might lead to great results, but metrics are often insufficient in understanding model performance. Understanding what parts suffered in the reconstruction is important. Adjusting the window and level will let you visualize background noise, and artifacts inside and outside the brain and so give you a better understanding of the model’s capabilities.</li></ol><h3>Conclusion.</h3><p>Medical images have greater pixel depth which allows adjustment of contrast by defining the visualized range of pixel intensity, this process is called windowing. Windowing improves image contrast drastically and allows the human eye to better understand the difference inside the image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a6fe78bf797" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence In Modern Warfare]]></title>
            <link>https://medium.com/@pohaneparikshit7/artificial-intelligence-in-modern-warfare-7f6fd75e0c2c?source=rss-db2187c5909------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f6fd75e0c2c</guid>
            <dc:creator><![CDATA[Parikshit Pohane]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 13:28:43 GMT</pubDate>
            <atom:updated>2022-11-21T14:07:28.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XWyHawWrZZaXftq__Cni4w.jpeg" /></figure><p>Impact of AI on Modern Warfare</p><p>Artificial intelligence (AI) has entered the <strong>field of battle</strong>, and its effects on contemporary conflict are still emerging. AI in the military has the ability to change how we see conflict in the twenty-first century. Let’s<strong> investigate</strong> how AI is being used in a time of economic upheaval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*4F_C0xsvwrhm50jv.jpg" /><figcaption>War Is Not The Solution</figcaption></figure><h4>What is artificial intelligence (AI)?</h4><blockquote>A brain-enhanced toaster</blockquote><p>It’s inconceivable that you haven’t heard of or read about even a more abstract explanation of how AI functions, especially if you’ve read any of my prior writings. In a word, AI is the process of computers continually <strong>“learning, growing, and adapting”</strong> to a certain circumstance provided a respectable dataset.</p><p>As Elon states in the following quotation, “A robot revolution is in the making. You put in all the data you can find, the AI model tries to identify connections and links that help it correlate certain patterns, and voilà, you have a robot revolution in the making.”</p><blockquote>“I’m increasingly inclined to think that there should be some regulatory oversight, maybe at the national and international level, just to make sure that we don’t do something very foolish. I mean with artificial intelligence we’re summoning the demon.”</blockquote><blockquote>— Elon Musk warned at MIT’s AeroAstro Centennial Symposium</blockquote><p>AI has been compared to people playing <strong>god</strong> and presumably paving the way for an enhanced version of humanity, but it’s far from leading a toaster insurrection or even a medium-sized coffee machine bloodbath, so there’s nothing to worry about just yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yR8LrcZJoPk0iAu0mwzOBw.jpeg" /><figcaption>Depiction of Future Warfare using AI</figcaption></figure><p>Aside from that, AI is so diverse that it will be difficult for me to cover all of its categories, subtypes, and traits; I will just scratch the surface of this large topic. After all, AI is an <strong>iceberg</strong> that reaches all the way to the seafloor.</p><h4><strong>AI weaponized</strong></h4><p>It is commonly stated that the greatest scientific and industrial advancements were produced during times of war when entire countries and governments encouraged engineers and intellectual people alike to create greater armaments in order to compete with rival powers.</p><p>With each fight, we witness a drive for more self-sufficient and optimized armament, as the industrial revolution offered improved production methods and the World Wars made <strong>encryption and telecommunications</strong> more available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*AxPcv8n4rx6Z828eOMqsKg.jpeg" /><figcaption>Reconstructed Bombe Machine Used To Crack Enigma</figcaption></figure><p>Encrypting and safeguarding combat communications is considered military AI, although it cannot be weaponized because it is indirect.</p><p>I believe that categorizing prospective AI implementations in modern combat into defensive/offensive, aiding and autonomous groups is the best approach to show them.</p><p><strong>AI on the defensive</strong><br>Consider sensors and any devices that <strong>detect troop movement and infantry</strong> patterns as the attacker advances. We’ve all seen how difficult it has been for Russian troops to gain ground in Ukraine, and this is due not only to the bravery and sacrifice of Ukrainian protectors but also to detecting and simulating convoys from satellite imagery.</p><p>AI may be used to identify the following assaults in this situation since it sees trends and provides superior insights for the OODA (Observe, Orient, Decide, Act) loop. Every choice must be quick and future-proof; being able to see into the future is essential.</p><p>When you can simulate different situations, updating the battle infrastructure, destroying or moving control nodes, and managing resources become easier.</p><p>Shields like the <strong>Iron Dome</strong>, which we saw in operation in Israel last year, are a defensive wonder built from many layers of radars, sensors, and defense missile launchers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*uFf09hmgyZbsw-X327tyxg.jpeg" /><figcaption>Iron Dome In Action</figcaption></figure><p>Although it mainly relies on radars and IoT (internet of things) systems, it undoubtedly benefits from AI elements, yet it can still be overwhelmed by precise and massive missile barrages.</p><h4><strong>Offensive AI</strong></h4><p>Methods of predicting and comprehending tactics by discovering strategies utilizing AI can be used to take ground faster. We can observe how continuous advances in defensive and offensive technology compel each side to develop faster.</p><p>Improved missile tracking and real-time evasion strategies to overcome rocket barrages and shields resulted in the construction of the amazing <strong>Iron Dome.</strong></p><p>Stay tuned for the <strong>Drone Wars</strong>, as I will explore the sophisticated sorts of offensive weaponry in the autonomous AI portion later in the text.</p><h4><strong>AI Assisting</strong></h4><p>Every industry’s ambition is to be able to reduce manpower and minimize expenses while maintaining or even increasing total production. Accomplishing a level of technology that can maintain itself with little to no human input is often out of reach, thus many people prefer to combine AI with human control.</p><p>In these areas, an AI system might assist the military in detecting contractual fraud, forecasting when weapons systems would fail due to maintenance issues, and devising winning strategies in war simulations.</p><p>Aside from coordinating assaults using AI model data and insights, targeted misinformation operations using deep fakes or automated social media postings may fast-shift the tides of conflict.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fka0fIAPVjaU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dka0fIAPVjaU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fka0fIAPVjaU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b536ec881c1685ad7e15ce946da58be/href">https://medium.com/media/7b536ec881c1685ad7e15ce946da58be/href</a></iframe><h4><strong>Conclusion</strong></h4><p>However, before educating AI about ethics and morality, we must first consider what constitutes ethical behavior. In addition, a<br>“Unless we learn how to prepare,” <strong>Stephen Hawking warned.</strong><br>AI might be the worst event in our civilization’s history if we do not prepare for and prevent the probable threats. It presents risks like as autonomous weaponry and new means for the few to subjugate <br>the numerous”</p><p>Thank you!</p><p>Regards:</p><p>1. Shreya Pawar</p><p>2. Komalesh Patil</p><p>3. Pratik Jadhav</p><p>4. Parikshit Pohane</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f6fd75e0c2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparative Application of Prims vs Kruskal’s Algorithm in real-life scenarios.]]></title>
            <link>https://medium.com/@pohaneparikshit7/comparative-application-of-prims-vs-kruskals-algorithm-in-real-life-scenarios-91d7cabdcee1?source=rss-db2187c5909------2</link>
            <guid isPermaLink="false">https://medium.com/p/91d7cabdcee1</guid>
            <dc:creator><![CDATA[Parikshit Pohane]]></dc:creator>
            <pubDate>Sun, 26 Dec 2021 14:55:11 GMT</pubDate>
            <atom:updated>2022-01-21T13:46:29.100Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome! Let’s start with some informal context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2ken01YIWPeznfyT" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><pre><strong><em>Social networks have networks. In other words, communicate with friends. Social sites often ask us to send a connection request to someone we know but haven&#39;t sent the request to, which also shows how many mutual friends we have with the person sending the connection request. So, have you ever wondered how it works internally? It mainly uses the<br>graph data structure.</em></strong></pre><p>In this blog we would be discussing on two important algorithms of minimum spanning tree</p><p>1. Prim’s algorithm</p><p>2. Kruskal’s algorithm</p><p>What is spanning tree?</p><p><strong><em>A spanning tree</em></strong> is a subset of an undirected and connected graph in which every node in the graph is connected to each other by (n1) edges. where n is the number of nodes or vertices in graph G.</p><p>Here is an example. Spanning Tree:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*JXT6_8WUlwE2iSyY.png" /></figure><p>What is <strong>Minimum Spanning Tree?</strong></p><p>Minimum Spanning Tree is that Spanning Tree whose cost is the least among all the possible Spanning Trees. The cost of a Spanning Tree is the sum of the weight of all the edges that are present in that Spanning Tree</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/0*uxF-yxS7793kjcjt.png" /></figure><p>You can construct all conceivable Spanning Trees to obtain a Minimum Spanning Tree, and the tree with the lowest cost will be your Minimum Spanning Tree. However, this is a time-consuming operation since you must locate every conceivable Spanning Tree. So, in order to identify the MST, we must use some Greedy approach, and two algorithms or strategies are employed to accomplish so:</p><ol><li>Prim’s Algorithm</li><li>kruskal’s Algorithm</li></ol><p><strong>Prism’s algorithm</strong></p><p>n this sort of Greedy technique, we first choose the shortest edge from the supplied graph, and then we choose the smallest edge that is related to the nodes that are already present in the Spanning Tree that you are creating.</p><p><strong><em>How does Prim’s Algorithm Work?</em></strong></p><p>Prim’s technique works on the basic premise that all vertices in a spanning tree must be linked. To build a Spanning Tree, the two distinct subsets of vertices (explained above) must be joined. To make it a Minimum Spanning Tree, they must be connected with the minimum weight edge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/0*-dN7tyHhrZYoRDhS.jpg" /></figure><p><strong>Algorithm</strong></p><p>1) Make a set called mstSet to keep track of the vertices that are already in MST.<br>2) Assign a key value to each of the input graph’s vertices. All key values should be set to INFINITE. Assign the first vertex a key value of 0 to ensure that it is chosen first.<br>3) mstSet does not contain all vertices.</p><p>….a) Choose a vertex u that is not in mstSet and has the smallest key value.<br>….b) Add u to mstSet.<br>….c) Change the key value of all u’s neighbouring vertices. Iterate over all nearby vertices to update the key values. If the weight of edge u-v is smaller than the previous key value of v for each neighbouring vertex v, update the key value to weight of u-v.<br>The goal of employing key values is to select the cut with the least amount of weight. The key values are only utilised for vertices that have not yet been included in MST; for these vertices, the key value indicates the minimal weight edges linking them to the set of vertices in MST.</p><h4>Some of the important applications are:</h4><p>1. A road and rail network that connects all of the cities.</p><p>2. Irrigation canals and microwave tower placement.</p><p>3. Creating a fiber-optic grid or integrated circuits.</p><p>4. The Problem of the Traveling Salesman.</p><p>5. Cluster analysis.</p><p>6. In AI, pathfinding algorithms are utilised (Artificial Intelligence).</p><p>7. Development of Video Games.</p><p>8. Cognitive Science.</p><p><strong>Kruskal’s algorithm</strong></p><p>Kruskal’s Algorithm is a greedy method for calculating the minimum Spanning Tree cost. We start by making a list of edges that are arranged by cost, and then we take the smallest edge one at a time.</p><p>How does Kruskal’s algorithm work?</p><p>Kruskal’s approach finds the undirected edge-weighted graph’s least spanning forest. It finds a minimal spanning tree if the graph is linked. (In a connected graph, a minimal spanning tree is a subset of the edges that forms a tree that contains every vertex and minimises the sum of the weights of all the edges in the tree.) A minimal spanning forest for a disconnected graph is made up of a minimum spanning tree for each linked component.) In graph theory, it is a greedy method since it adds the next lowest-weight edge that will not create a cycle to the minimal spanning forest at each step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/0*MEX3Ac5Qc9oUe8Pw.png" /></figure><p><strong>Algorithm:</strong></p><ol><li>Make a forest F (a collection of trees), with each vertex in the graph representing a different tree.</li></ol><p>2) Make a set S that contains all of the graph’s edges.</p><p>3) S is nonempty, but F is not yet spanning.</p><p>a) From S, eliminate an edge with the least amount of weight.</p><p>b) If the deleted edge joins two separate trees, add it to forest F, merging the two trees into one.</p><p>The forest generates a least spanning forest of the graph at the end of the procedure. The forest has a single component and creates a minimal spanning tree if the graph is linked.</p><p><strong>Some of the application are:</strong></p><p>1. Landing cables</p><p>2. TV network</p><p>3. Tour operations</p><p>4. Computing networking</p><p>5. Study of molecular bonds in chemistry</p><p>6. Routing algorithms</p><p>7. Clustering</p><p>8. Cartography</p><p>The following is a comparison of the two algorithms: When you have a graph with a lot of edges, use Prim’s algorithm. If you use a Fibonacci Heap, Kruskal’s algorithm runs in O(E log V) time for a graph with V vertices and E edges, and Prim’s technique can run in O(E + V log V) amortised time for a graph with V vertices and E edges. When you have a thick network with many more edges than vertices, Prim’s approach is substantially quicker in the limit. Because it employs smaller data structures, Kruskal performs better in normal scenarios (sparse graphs).</p><p>Thank you!</p><p>Regards:</p><p>1. Shreya Pawar</p><p>2. Pranita Maske</p><p>3. Pratik Jadhav</p><p>4. Parikshit Pohane</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91d7cabdcee1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>