<?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 Kiran Bhattacharyya on Medium]]></title>
        <description><![CDATA[Stories by Kiran Bhattacharyya on Medium]]></description>
        <link>https://medium.com/@bhattacharyyakiran12?source=rss-bc3a08ef0519------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FD3DwD92mRARoA3J.</url>
            <title>Stories by Kiran Bhattacharyya on Medium</title>
            <link>https://medium.com/@bhattacharyyakiran12?source=rss-bc3a08ef0519------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:04:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhattacharyyakiran12/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[Harnessing AI and Robotics for Agriculture: reviewing Outstanding paper winners from ICRA 2023]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/harnessing-ai-and-robotics-for-agriculture-reviewing-outstanding-paper-winners-from-icra-2023-6049398f8e75?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/6049398f8e75</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agriculture]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[robotics]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Fri, 14 Jul 2023 20:32:20 GMT</pubDate>
            <atom:updated>2023-07-14T20:32:20.012Z</atom:updated>
            <content:encoded><![CDATA[<p>This year at the International Conference for Robotics and Automation (ICRA) two papers about AI/robotic systems in agriculture were finalists for the Outstanding Paper award in Automation. These papers were “<a href="https://www.ipb.uni-bonn.de/wp-content/papercite-data/pdf/kelly2023icra.pdf">Target-Aware Implicit Mapping for Agricultural Crop Inspection</a>” and “<a href="https://arxiv.org/abs/2306.17162#:~:text=We%20compare%20performance%20in%20terms,by%20as%20much%20as%2044%25.">Can Machines Garden? Systematically Comparing the AlphaGarden vs. Professional Horticulturalists</a>.” They shed light on the potential of AI and robotics in transforming farming practices in greenhouses. Here I will delve into these studies, highlighting their approaches, similarities, and implications for agriculture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*1zzrMlS9h-1hkxD5eye4ug.png" /><figcaption>Image from AlphaGarden vs. Horticulturalist</figcaption></figure><h4>Target-Aware Implicit Mapping for Agricultural Crop Inspection</h4><p>The first paper presents an innovative approach to agricultural crop inspection using a system that combines robotics and AI. The authors developed a method called “fruit-targeted sampling” that uses a neural network for image segmentation to identify and focus on fruit regions in images. This method is crucial for creating high-fidelity 3D maps for crop inspection, as it allows the system to accurately map the fruits, which are the most important parts of the crops for inspection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*WkXYpKh6C-EOYfJsz5p4OQ.png" /><figcaption>Greenhouse monitoring robot used for the Target-aware implicit mapping paper</figcaption></figure><p>The authors also introduced a “Pose Learning” method to estimate the position and orientation of the camera when each image was captured. This information is crucial for creating accurate 3D maps from 2D images. The system’s ability to create detailed 3D maps of crops could revolutionize the way farmers inspect their crops, making the process more efficient and accurate.</p><h4>Can Machines Garden? Systematically Comparing the AlphaGarden vs. Professional Horticulturalists</h4><p>The second paper compares the performance of an automated indoor polyculture farming system, the AlphaGarden, with professional horticulturalists. The AlphaGarden system combines a first-order plant simulator, a gantry robot, a seed planting algorithm, plant phenotyping and tracking algorithms, irrigation sensors and algorithms, and custom pruning tools and algorithms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-tXDzjOR_jKsXifbG27Dw.png" /><figcaption>Comparing human and robot performance in polyculture of plants in a greenhouse</figcaption></figure><p>The authors found that the AlphaGarden system performed comparably to professional horticulturalists in terms of canopy coverage and plant diversity. Interestingly, the AlphaGarden was able to reduce water consumption by as much as 44% through plant phenotyping and growth simulation, demonstrating the potential of AI and robotics in promoting sustainable farming practices.</p><h4>Drawing Parallels</h4><p>Both studies highlight the potential of AI and robotics in agriculture, particularly in tasks that require precision and efficiency. Both systems use advanced image processing techniques to identify and focus on specific parts of the crops. They also use machine learning algorithms to optimize their operations, whether it’s creating 3D maps of crops or managing an entire garden with various different plants. While the scope of each paper and the hardware are quite different, they demonstrate how growth within a greenhouse can be mapped, monitored, and managed with complete autonomous systems that deploy various machine learning and artificial intelligence algorithms in parallel and sequence.</p><h4>Potential Integration</h4><p>The integration of these two systems could lead to a comprehensive farming solution that combines the strengths of both. The 3D mapping capabilities of the system from the first study could be used to create detailed maps of multiple greenhouse gardens where each is managed by different AlphaGarden system. This could allow for the management of multiple greenhouses more efficiently, as there would be a better understanding of the spatial distribution of the crops.</p><p>On the other hand, the AlphaGarden system’s ability to manage a garden could be used to automate the process of inspecting the crops mapped by the system from the first study. This could make the inspection process more efficient, as it would be managed by an automated system that can operate around the clock.</p><h4>Conclusion</h4><p>The studies discussed here demonstrate the potential of AI and robotics in revolutionizing agriculture. By automating complex tasks and optimizing resource use, these technologies could lead to more efficient and sustainable farming practices. It makes me wonder whether a horticulturalist working with multiple robots could do even better than each on their own.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6049398f8e75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InterCode: Generating code interactively with Reinforcement Learning and Large Language Models]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/intercode-generating-code-interactively-with-reinforcement-learning-and-large-language-models-5becded387f3?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/5becded387f3</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 21:32:16 GMT</pubDate>
            <atom:updated>2023-07-10T21:32:16.822Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of artificial intelligence, the ability to generate code has been a subject of intense research and development. Traditionally, AI models have been trained to generate code in a static manner, translating a given instruction from a person into lines of code. I’m sure many of us have tried this on chatGPT with some mixed results… The reason why this approach often fails is because it doesn’t capture the interactive nature of how humans write code. Humans write code in an iterative process, constantly testing and refining their code based on feedback from the execution environment. This is where InterCode, a new framework for interactive coding, comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/0*cK_98R_S0hzRVz_P.png" /><figcaption>The framework for InterCode — generative code with a reinforcement learning agent and a LLM | Source: <a href="https://intercode-benchmark.github.io/">https://intercode-benchmark.github.io/</a></figcaption></figure><p>A recent paper titled “InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback,” brings a novel approach to the table. It combines reinforcement learning (RL) with large language models (LLMs) to generate code in an interactive manner, much like humans. This approach is a significant departure from the traditional static instruction-to-code sequence processes.</p><h4>The InterCode methodology</h4><p>InterCode is designed as a standard reinforcement learning (RL) environment, where code is treated as actions and execution feedback as observations. The framework is language and platform agnostic, allowing it to be used with any programming language and on any platform. It uses self-contained Docker environments for safe and reproducible execution, ensuring that the generated code can be tested in a secure environment.</p><p>The authors of the paper have used InterCode to create two interactive code environments with Bash and SQL as action spaces. They have leveraged data from the static Spider and NL2Bash datasets to evaluate multiple state-of-the-art Language Models (LLMs) configured with different prompting strategies such as ReAct and Plan &amp; Solve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/0*J9TKdw0v1NhhlbP1.png" /><figcaption>A representative example of InterCode working in a bash scripting environment. | Source <a href="https://intercode-benchmark.github.io/">https://intercode-benchmark.github.io/</a></figcaption></figure><h4>Evaluation and results</h4><p>The authors found that the interactive nature of InterCode allows AI models to generate more accurate and efficient code. They also found that InterCode can serve as a challenging benchmark for advancing code understanding and generation capabilities.</p><p>However, the authors also acknowledge that their method has limitations. For instance, the current version of InterCode does not impose any strict limitations on the action space, which could potentially lead to the execution of detrimental commands. They also note that the current codebase does not include any examples of training code that uses InterCode, which is a direction they plan to pursue in the future. This is an especially interesting future because the RL model can learn from its own past attempts across multiple episodes with different objectives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nvzuvqtVeFOUfQXl.png" /><figcaption>Different LLM prompting strategies used by the RL agent in InterCode. | Source <a href="https://intercode-benchmark.github.io/">https://intercode-benchmark.github.io/</a></figcaption></figure><h4>Social and Technical Implications</h4><p>The development of InterCode could have significant social and technical implications. On the technical side, it could lead to the development of more sophisticated AI models that can write code more effectively and efficiently. It could also potentially automate many coding tasks, leading to increased productivity in many industries.</p><p>On the social side, the automation of coding tasks could have significant implications for the job market and economy. While it could lead to increased efficiency and productivity, it could also potentially displace jobs in the programming field. However, if AI models become proficient at coding through interactive feedback, it could make software development more accessible to non-programmers, democratizing access to software development.</p><h4>Conclusion</h4><p>InterCode represents a significant step forward in the field of AI code generation. By combining RL with LLMs, it brings the process of code generation closer to how humans write code. While there are still challenges to overcome and limitations to address, the potential benefits of this approach are significant. As this technology develops and matures, we can expect to see even more exciting advancements in the field of AI code generation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5becded387f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recent advancements in point-based image editing using GANs: DragGAN]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/enter-the-draggan-a-revolution-in-point-based-image-editing-3bf16c4dd0ff?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bf16c4dd0ff</guid>
            <category><![CDATA[generative-adversarial]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[digital-media]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Thu, 06 Jul 2023 21:47:09 GMT</pubDate>
            <atom:updated>2023-07-15T19:31:16.224Z</atom:updated>
            <content:encoded><![CDATA[<p>In the rapidly evolving world of digital art, film, gaming, and augmented reality, the ability to manipulate images with precision and ease is a game-changer. The recent paper published at the SIGGRAPH 2023 conference “Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold” presents a novel method, DragGAN, that promises to revolutionize these industries and more. This technology could streamline the design process, enhance game development, and provide a more immersive AR/VR experience. But how does it work, and what are its implications?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*a8CSu4ZyfnhTDuGNgMRMHA.gif" /><figcaption>Image ed<a href="https://github.com/XingangPan/DragGAN">iting with GANs<br>Source: https://githu</a>b.com/XingangPan/DragGAN</figcaption></figure><h4>DragGAN — A New Approach to Image Manipulation</h4><p>The paper introduces DragGAN, a method that allows users to “drag” any points of an image to precisely reach target points, manipulating the pose, shape, expression, and layout of diverse categories such as animals, cars, humans, landscapes, etc. This is achieved through a feature-based motion supervision that drives the handle point to move towards the target position and a new point tracking approach that leverages the discriminative generator features to keep localizing the position of the handle points.</p><h4>Evaluation and Key Findings</h4><p>The authors evaluated DragGAN using both quantitative and qualitative methods, demonstrating its superior performance over previous methods. In the quantitative evaluation, they used two tasks: face landmark manipulation and paired image reconstruction. In the face landmark manipulation task, DragGAN significantly outperformed the UserControllableLT method under different numbers of points. In the paired image reconstruction task, DragGAN not only achieved more accurate manipulation but also preserved better image quality, as indicated by the FID scores.</p><p>In the qualitative evaluation, the authors provided a comparison between their approach and UserControllableLT, showing that DragGAN accurately moves the handle points to reach the target points, achieving diverse and natural manipulation effects. They also compared their approach with PIPs and RAFT in terms of point tracking accuracy, demonstrating that DragGAN accurately tracks the handle point above the nose of the lion, thus successfully driving it to the target position.</p><p>Furthermore, using GAN inversion techniques, DragGAN can be applied to manipulate real images, demonstrating its practical applicability. The method also showed some extrapolation capability, creating images outside the training image distribution, such as an extremely opened mouth and a large wheel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*OIVv-LxqCeLhMXpkk70ARg.png" /><figcaption>High-level description of how DragGAN works from the <a href="https://arxiv.org/abs/2305.10973">paper</a>.</figcaption></figure><h4>Limitations of DragGAN</h4><p>Despite its impressive performance, DragGAN does have limitations. The method is limited by the training data of the GAN, and if the desired manipulation is outside the range of the training data, the method may not perform well. It may also cause unwanted changes in other parts of the image. The use of binary masks to denote the movable region in an image can sometimes lead to unnatural transitions between the movable and fixed regions — but this might be improved with weighted masks that reduce changes beyond some boundary. The method also requires user input in the form of points to manipulate, which may not always be intuitive or easy for users, especially for complex manipulations.</p><h4>The Potential Impact of DragGAN</h4><p>Despite these limitations, the potential impact of DragGAN is significant. In the world of digital art and design, this technology could revolutionize the way artists and designers work, allowing for quick and intuitive image manipulation. In the film and animation industry, it could reduce the time and effort required to create complex animations. Game developers could use this technology to create or modify game assets, streamlining the game development process. In AR and VR applications, it could provide a more immersive and interactive user experience.</p><p>While there is still work to be done to overcome the limitations of DragGAN, the method represents a promising step forward in the field of image manipulation. As the technology continues to evolve, it will be exciting to see how it shapes the future of these industries and more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bf16c4dd0ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reviewing the CVPR 2023 best paper winners: A Balanced Examination of UniAD and VISPROG]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/reviewing-the-cvpr-2023-best-paper-winners-a-balanced-examination-of-uniad-and-visprog-be3daaa36b16?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/be3daaa36b16</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[autonomous-cars]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 21:17:13 GMT</pubDate>
            <atom:updated>2023-06-29T21:17:13.794Z</atom:updated>
            <content:encoded><![CDATA[<p>Autonomous driving and visual reasoning are two areas of particular interest in AI. Two research papers, “Planning-oriented Autonomous Driving” and “Visual Programming: Compositional visual reasoning without training,” have recently been in the limelight for winning the best paper award at the Conference on Computer Vision and Pattern Recognition (CVPR) 2023. These papers present intriguing advancements and, while it’s important to maintain a balanced perspective, there’s a palpable sense of excitement about what these developments could mean for the future of AI.</p><h4>A Closer Look at Planning-oriented Autonomous Driving</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2NAgv1alI_HdYqsXSW1OhA.png" /><figcaption>The UniAD pipeline for planning autonomous driving</figcaption></figure><p>“Planning-oriented Autonomous Driving” introduces a novel approach to autonomous driving systems. Unlike traditional approaches that deploy standalone models for individual tasks or design a multi-task paradigm with separate heads, UniAD integrates all tasks in a way that they contribute to the planning of the self-driving car. The UniAD framework leverages a query design as interfaces connecting all nodes, providing flexible intermediate representations and exchanging multi-task knowledge toward planning. This unique approach allows UniAD to overcome issues such as accumulative errors or deficient task coordination that might plague other methods.</p><p>The authors demonstrate the effectiveness of UniAD on the challenging nuScenes benchmark, a comprehensive evaluation framework used in the field of autonomous driving. UniAD substantially outperforms previous state-of-the-art methods in all aspects, showcasing its potential to revolutionize autonomous driving systems.</p><p>While the idea of a unified framework is appealing, integrating all tasks into one network presents its own set of challenges. The authors claim that UniAD can overcome issues such as accumulative errors or deficient task coordination, and while the practical implementation of such a system in real-world driving scenarios remains to be seen, the potential for a more cohesive and effective autonomous driving system is certainly exciting.</p><h4>Dissecting Visual Programming: Compositional visual reasoning without training</h4><p>The second paper, “Visual Programming: Compositional visual reasoning without training,” presents a neuro-symbolic approach to solving complex and compositional visual tasks given natural language instructions. This approach is embodied in a system called VISPROG.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjpf9dP4EzJo8jsDXemd_A.png" /><figcaption>Demonstration of the power of VISPROG</figcaption></figure><p>VISPROG leverages the learning ability of large language models to generate Python-like modular programs, which are then executed to provide both the solution to the task and a comprehensive and interpretable rationale. Each line of the generated program may invoke one of several off-the-shelf computer vision models, image processing subroutines, or Python functions to produce intermediate outputs that may be consumed by subsequent parts of the program.</p><p>The authors demonstrate the flexibility and interpretability of VISPROG on four diverse tasks: compositional visual question answering, zero-shot reasoning on image pairs, factual knowledge object tagging, and language-guided image editing. In each of these tasks, VISPROG performs effectively without any task-specific training, showcasing its potential to solve a wide range of complex visual tasks.</p><p>While the authors demonstrate the flexibility and interpretability of VISPROG on four diverse tasks, it’s important to remember that the system’s effectiveness is largely dependent on the quality of the generated programs. Furthermore, the system’s reliance on off-the-shelf computer vision models and Python functions may limit its ability to handle tasks that require novel or specialized solutions.</p><h4>Similar Themes: A Unified Framework, Interpretability, and the Perception-Planning-Execution Paradigm</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pHhbdfGIGCGabZrVRvoC9w.jpeg" /><figcaption>Combining VISPROG with autonomous driving perception routines…</figcaption></figure><p>Despite their different domains, UniAD and VISPROG share some intriguing similarities. <strong><em>Both propose a unified framework</em></strong> for solving complex tasks, integrating all tasks into one network or program. This unified approach allows for more efficient and effective problem-solving, as all components of the system work together towards a common goal.</p><p><strong><em>Another shared theme is the emphasis on interpretability</em></strong>. Both systems provide clear and understandable explanations of their decisions, allowing users to understand how the system is solving the tasks. This interpretability is crucial for building trust in AI systems and for diagnosing and correcting errors.</p><p>Moreover, both systems follow a <strong><em>perception-planning-execution</em></strong> paradigm, a fundamental concept in many AI and robotics applications. In UniAD, perception involves understanding the environment around the vehicle, planning involves deciding what actions the vehicle should take based on the perceived environment and predicted behaviors of other road users, and execution involves controlling the vehicle’s steering, acceleration, and braking to follow the planned trajectory. In VISPROG, perception is the process of understanding the visual input (image or image pair) and the natural language instruction, planning is the process of generating a Python-like program based on the given instruction, and execution is the process of running the generated program to produce the solution to the task.</p><h4>The Future of AI: Unified Frameworks and Interpretability?</h4><p>The advancements presented in these papers represent exciting directions for future research. As we continue to explore the potential of AI, it’s crucial to maintain a balanced perspective. The promise of unified frameworks and interpretability is exciting, but the practical challenges associated with these concepts cannot be overlooked.</p><p>The potential applications of these systems are vast, and while their effectiveness in real-world scenarios remains to be seen, the possibilities they present are thrilling. The UniAD framework, for instance, could potentially revolutionize autonomous driving systems, and while its performance in unpredictable and dynamic driving scenarios is yet to be tested, the prospect of such an integrated and efficient system is certainly exciting. Similarly, while VISPROG’s reliance on existing computer vision models and Python functions may limit its versatility, its potential to solve a wide range of complex visual tasks with a simple “wish” is a tantalizing glimpse into the future of AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be3daaa36b16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advancing AI in surgery with open datasets: surgical tool tracking]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/advancing-ai-in-surgery-with-open-datasets-surgical-tool-tracking-8bf176d62668?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bf176d62668</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[surgery]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[open-data]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 19:57:11 GMT</pubDate>
            <atom:updated>2023-06-20T19:57:11.506Z</atom:updated>
            <content:encoded><![CDATA[<p>Two recent challenges, SimSurgSkill 2021 and SurgToolLoc 2022, have released open datasets addressing the important problem of surgical tool detection and classification in surgical video, to push the boundaries of what’s possible and encouraging further research and development.</p><h3>The importance of surgical tool tracking</h3><p>There is growing interest in surgical tool tracking in endoscopic video using deep learning models. The ability to accurately track and identify surgical tools can help quantify intra-operative surgeon behavior, improve patient safety, and contribute to better surgical outcomes. Moreover, it can provide valuable granular information related to motion metrics like speed and smoothness for training and performance assessment of surgical residents.</p><p>However, developing robust and accurate tool tracking algorithms is a complex task. It requires dealing with challenges such as varying lighting conditions, occlusions, and the diverse range of tools used in different surgical procedures. This is where machine learning and computer vision techniques come into play, offering promising solutions to these challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvVKlYO1TqeRaNq5uhJ54w.png" /><figcaption>Image from SimSurgSkill 2021</figcaption></figure><h3>SimSurgSkill 2021 and SurgToolLoc 2022</h3><p>The SimSurgSkill 2021 and SurgToolLoc 2022 challenges, hosted as sub-challenges of EndoVis at MICCAI 2021 and EndoVis 2022 respectively, aimed to foster work on automated surgical skills assessment and surgical tool localization in virtual reality (VR) surgical tasks and robotic-assisted (RA) surgeries.</p><p>In the challenges, participants were tasked with developing models capable of localizing surgical tools and predicting surgical skill based on video data. The challenges were divided into categories that required teams to detect and localize surgical tools, classify them, and predict objective performance indicators (OPIs) such as needle drop count, instrument out-of-view count, and economy of motion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTjxG_TQkKlyRJLBYXgsRw.png" /><figcaption>Tools labeled in the SurgToolLoc 2022 dataset</figcaption></figure><h3>Open datasets: advancing the field of surgical data science</h3><p>One of the most exciting outcomes of these challenges is the release of large, publicly available datasets. The SimSurgSkill 2021 challenge released a dataset of 315 video recordings of various VR exercises performed by participants of varying skill levels (access data here: <a href="https://www.synapse.org/#!Synapse:syn25127311/wiki/610697">https://www.synapse.org/#!Synapse:syn25127311/wiki/610697</a>). Similarly, the SurgToolLoc 2022 challenge released a dataset of 24,695 video clips from a set of 11 unique training exercises performed on the da Vinci robotic system (access data here: <a href="https://surgtoolloc.grand-challenge.org/data-download/">https://surgtoolloc.grand-challenge.org/data-download/</a>). These datasets represent one of the largest publicly available surgical datasets to date.</p><p>These datasets provide a rich resource for researchers interested in surgical tool tracking and related areas. They offer a diverse range of data, including different types of surgical tools, various surgical tasks, and participants with different skill levels, providing the most comprehensive platform for developing and testing new algorithms.</p><h3>Your Turn to Make a Difference</h3><p>The field of surgical tool tracking is ripe with opportunities for innovation. Whether you’re a seasoned researcher or a curious enthusiast, we encourage you to download these datasets and try your hand at solving these challenges. Your contributions could lead to the development of new techniques that enhance surgical precision, improve patient outcomes, and revolutionize surgical training.</p><p>The SimSurgSkill 2021 and SurgToolLoc 2022 challenges have laid the groundwork for future research in this area. Now, it’s your turn to build on this foundation and contribute to the future of surgical tool tracking. Let’s continue to push the boundaries of what’s possible in this exciting field!</p><p><strong>Disclosure:</strong> At the time of writing this post, I am currently an employee of Intuitive Surgical, Inc. However, the views in this article are personal and my own — not those of me as an employee of Intuitive Surgical, Inc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bf176d62668" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enabling LLMs to answer questions about your document library: the Hierarchical Navigable Small…]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/enabling-llms-to-answer-questions-about-your-document-library-the-hierarchical-navigable-small-6dec806af13e?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dec806af13e</guid>
            <category><![CDATA[bioinformatics]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 00:31:29 GMT</pubDate>
            <atom:updated>2023-06-20T00:31:29.549Z</atom:updated>
            <content:encoded><![CDATA[<h3>Enabling LLMs to answer questions about your document library: the Hierarchical Navigable Small World algorithm</h3><p>LLMs are definitely a major part of our Zietgeist and one of the primary fuels behind the fire of AI right now. At the enterprise and the personal level, one of the most useful applications of LLMs is to answer questions and retrieve information for a library of the user’s documents while providing references for the sources. Providing references to the source is especially important due to an LLMs ability to “hallucinate” facts. But how does this actually work… especially if the document library is huge — as it might be for a law or a financial firm or an avid reader?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*FpGAHPN_u7cP7NuK" /></figure><h4>The problem of efficient search in a vector space</h4><p>The first part of the problem is representing the sentences from the users document library in such a way that they can be quantitatively compared with the user’s query. Embedding the phrases and sentences as vectors solves this problem which I will discuss further below.</p><p>The second part of the problem is actually comparing the user’s query to all the phrases and sentences from the document library and picking the content that has the information the user needs. Enter the Hierarchical Navigable Small World (HNSW) algorithm — it is a approximate nearest neighbor search [1]. Beyond LLMs, in the era of big data, this efficient search algorithm has become increasingly important. Here I explore its applications, and discuss recent extensions and improvements.</p><h4>Understanding the Hierarchical Navigable Small World Algorithm</h4><p>The goal of the HNSW algorithm is to find the data points in a dataset that are closest to a given query point. The algorithm starts by constructing a graph from the existing dataset — the sentences extracted from the users document library — where each node represents a data point in the dataset. The graph is layered, with each layer being a subset of the layer below it. The bottom layer contains all the data points, and each subsequent layer contains a randomly selected subset of the points from the layer below. The top layer has the fewest points. Each point is connected to a set of its nearest neighbors in its layer and the layer below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*LAGJY7WG-sEY5CnxyWaYhA.png" /><figcaption>Reproduced from reference 1</figcaption></figure><p>When a query point is given, the algorithm starts the search at a node in the top layer. It then moves to the neighbor that is closest to the query point. This process is repeated until there are no neighbors closer to the query point. The algorithm then moves down to the next layer and repeats the process. This continues until the algorithm reaches the bottom layer. The last node that the algorithm visits is returned as the approximate nearest neighbor.</p><p>Using this approach, the HNSW algorithm doesn’t actually compare the user’s query to every single point (sentence) in the dataset which would have O(N) complexity but rather is able to compare it to just a subset of the points with O(log(N)) complexity [1]. It is important to note that because not every single point is compared, the HNSW algorithm is not guaranteed to find the true nearest neighbor but generally performs quite well.</p><h4>Applications of the HNSW Algorithm</h4><p>The HNSW algorithm has found applications in various fields. In large language models for question answering and information retrieval, HNSW is used to efficiently find the most relevant information in response to a query. Each piece of information is represented as a high-dimensional vector using a language model, and an HNSW graph is constructed using these embeddings. The information associated with the most relevant nodes is then used to generate the answer to the query.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*BWqjt-6w24ADu8dY" /><figcaption>Genome of Covid-19</figcaption></figure><p>In bioinformatics, HNSW is used for tasks like genome search and classification. Each genome (or part of a genome) is represented as a high-dimensional vector, and the HNSW algorithm is used to find the genomes that are most similar to a query genome. The genomes associated with the most similar nodes are then used to classify the query genome. When compared with other search algorithms like BLAST, which is commonly used in bioinformatics for sequence alignment or homology search, HNSW stands out for its efficiency and scalability, especially for large databases.</p><h4>Extending the HNSW Algorithm</h4><p>Recent research has extended the HNSW algorithm in various ways. For instance, in bioinformatics, the GSearch program combines a kmer hashing-based genomic distance metric with HNSW to create a tool that is significantly faster and more scalable than alternative tools for genome search and classification [2]. Another study proposes a computational storage platform that can accelerate a large-scale graph-based nearest neighbor search algorithm, modifying the algorithm to make it more amenable to hardware and implementing two types of accelerators using various optimization methods [3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*i08hm87guwwhNd_3wC-LEw.png" /><figcaption>Reproduced from reference 2</figcaption></figure><h4>Conclusion</h4><p>The Hierarchical Navigable Small World algorithm is a powerful tool for efficient search in high-dimensional spaces. Its applications range from information retrieval in large language models to genome search and classification in bioinformatics. It will likely serve to be equally useful for search in vector spaces for images and videos. As research continues to extend and improve the algorithm, we can expect to see even more applications and improvements in the future.</p><h4>References</h4><ol><li>Malkov, Y., &amp; Yashunin, D. (2018). Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(4), 824–836. <a href="https://doi.org/10.1109/TPAMI.2019.2908502">Link</a></li><li>Li, H., Wang, S., Zhang, S., Zhang, Z., &amp; Li, J. (2022). GSearch: Ultra-Fast and Scalable Microbial Genome Search by Combining Kmer Hashing with Hierarchical Navigable Small World Graphs. bioRxiv. <a href="https://doi.org/10.1101/2022.10.21.513218">Link</a></li><li>Zhao, Y., Wang, G., Yu, X., Wang, X., &amp; Lang, C. (2022). Accelerating Large-Scale Graph-Based Nearest Neighbor Search on a Computational Storage Platform. IEEE Access. <a href="https://doi.org/10.1109/ACCESS.2022.3164917">Link</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dec806af13e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking the potential of robot-assisted surgery: AI for surgeon training and assessment]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/unlocking-the-potential-of-robot-assisted-surgery-ai-for-surgeon-training-and-assessment-cc2889b57ca2?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc2889b57ca2</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[medtech]]></category>
            <category><![CDATA[surgery]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 17:40:53 GMT</pubDate>
            <atom:updated>2023-06-13T17:40:53.537Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Robotic-assisted surgery (RAS) represents a significant advancement in the field of medicine, offering the potential for improved surgical outcomes. However, it’s important to note that these benefits come with higher immediate costs compared to traditional minimally-invasive laparoscopic and open surgery. A study found statistically significant differences in median direct costs in robotic ($6,752), laparoscopic ($5,687), and open ($4,437) surgical methods[1].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*uF_7TqWFraNMQM9aZEDMyw.jpeg" /></figure><p>While RAS can be more expensive, it may lead to better outcomes in certain cases. For example, a study aggregating data from more than 20,000 colorectal procedures reported that the average hospitalization cost for laparoscopic cases was $16,000 ± 14,800, and robotic-assisted cases was $18,300 ± 13,900 but robotic cases provided better outcomes and reduced length-of-stay[3]. However, it’s not just the technology itself that determines the success of RAS — the surgeon’s skill and experience play a crucial role as well.</p><h3>The Role of Surgeon Experience</h3><p>Interestingly, studies have shown that surgeon experience significantly impacts the outcomes of RAS. A multi-center analysis found that a high degree of experience in keyhole kidney surgery and robot-assisted pelvic surgery helps surgeons achieve better outcomes[4]. Another study suggests a clear association between increasing surgeon volume/experience and improved oncologic and functional outcomes[5].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_8VcF4AoSxMEtxsc_HHwQ.jpeg" /><figcaption>Reproduced from Reference 5</figcaption></figure><blockquote><em>If the benefit of robot-assisted surgery is most apparent after surgeons reach mastery, then directed training and assessment technologies that reduce the time to mastery for every surgeon can unlock the potential of RAS to dramatically improve outcomes across the board.</em></blockquote><h3>The Promise of Objective Performance Indicators (OPIs)</h3><p>One of the unique aspects of RAS is the ability to unobtrusively measure intra-operative surgeon behavior. This allows for the development of objective metrics, known as Objective Performance Indicators (OPIs), which are based on key elements such as instrument positions and button presses[6].</p><p>Research has shown that these OPIs can correlate with surgeon skill and patient outcomes. For example, a systematic review discusses the emergence of objective, clinically relevant metrics such as Clinically Relevant Performance Metrics (CRPMs) or Clinically Relevant Outcome[7]. Another study found that both patient factors and surgeon kinematic metrics, recorded during robotic prostatectomies, impact early urinary continence recovery after robot-assisted radical prostatectomy[8]. This provides a promising avenue for improving patient outcomes in RAS. By using OPIs to provide feedback to surgeons, it’s possible to identify areas for improvement and help surgeons refine their skills[9]. This may help reduce the number of cases needed for a trainee surgeon to reach the proficiency of a high-volume surgeon.</p><h4>Automated Analysis of Surgical Procedures</h4><p>The potential for automating OPI analysis of surgical procedures is vast and could revolutionize the way we provide feedback for training and improve surgical performance at scale. One relevant area of research is automated detection of surgical activities from endoscopic video. For instance, Twinanda et al. [10] developed a method for recognizing surgical activities in cholecystectomy procedures using a combination of tool usage and video analysis with deep learning models. This method achieved an accuracy of 83.2% in recognizing seven high-level surgical activities. Results have improved dramatically since this initial publication and other researchers have extended the use of deep learning models for surgical phase recognition to other procedure types like inguinal hernia, gastrectomy, and radical prostatectomy[11, 12, 13].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPl2iIqXN6OOBMchnFqxvQ.png" /><figcaption>Reproduced from reference 13</figcaption></figure><p>Another area of focus is the development of metrics during these activities to classify surgeon skill. Ahmidi et al. [14] proposed a method for learning a hierarchical representation of surgical motion from demonstrations. Their method uses a temporal hierarchy to capture the structure of surgical motion at multiple time scales. They demonstrated that their method can be used to classify surgeon skill with an accuracy of 85.1%.</p><p>The automated detection and tracking of surgical instruments in endoscopic video is another promising area of research. Bouarfa et al. [15] presented a tracking system that uses biocompatible color markers to detect and track single or multiple instruments in endoscopic video. Instrument position tracking during the surgery is especially important to capture motion metrics like speed and smoothness.</p><p>Recently, datasets were openly released for use by the scientific community as a part of the Endoscopic Vision challenge within the MICCAI yearly conference to solve this problem of surgical tool tracking in endoscopic video and objective metric computation [16, 17].</p><h4>OPIs and the future of robotic surgery</h4><p>The integration of automated analysis and OPIs offers several benefits. Firstly, it may allow for a more standardized and scalable assessment of surgical performance, reducing the subjectivity and time-intensive commitment associated with traditional evaluation methods. Objective metrics provide concrete data that can be used to identify areas for improvement and track progress over time for every case. This can be particularly valuable for training and mentoring surgeons, as well as for ensuring quality control and maintaining standards in surgical practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8OyAb7la26ndLSLeWCIWKA.png" /><figcaption>Automated tool detection and classification reproduced from reference 17</figcaption></figure><p>Moreover, the use of automated analysis and OPIs can facilitate the identification of patterns and insights that may not be readily apparent in practice. By analyzing large datasets of surgical procedures, we could detect subtle trends, correlations, and identify best practices that can inform surgical techniques and optimize patient outcomes. This data-driven approach to surgical performance assessment has the potential to uncover valuable knowledge that can benefit the entire surgical community.</p><h3>Conclusion</h3><p>In conclusion, while RAS comes with higher costs, it also offers the potential for improved surgical outcomes, particularly when performed by experienced surgeons who have mastered their surgical techniques. The development and use of OPIs, combined with automated analysis techniques, represent an exciting opportunity to further enhance the benefits of RAS by providing objective feedback to surgeons and help them improve their skills — reducing the time needed to reach mastery. While this is still an active area of research, the integration of automated analysis of surgical procedures and OPIs has the potential to revolutionize and scale surgical performance assessment, leading to safer and more effective procedures and ultimately better patient outcomes.</p><p><strong>Disclosure:</strong> As of writing this post, I am currently an employee at Intuitive Surgical, Inc. However, the views presented in this article are personal and my own — not those of me as an employee of Intuitive Surgical, Inc.</p><h4>References</h4><p>[1]: [“ECONOMIC ANALYSIS — Robot-Assisted Surgery Compared with Open Surgery and Laparoscopic Surgery: Clinical Effectiveness and Economic Analyses”](<a href="https://www.ncbi.nlm.nih.gov/books/NBK168933/">https://www.ncbi.nlm.nih.gov/books/NBK168933/</a>)</p><p>[2]: [“Comparison of outcome and cost between the open, laparoscopic, and robotic surgical treatments for colon cancer”](<a href="https://pubmed.ncbi.nlm.nih.gov/30675661/">https://pubmed.ncbi.nlm.nih.gov/30675661/</a>)</p><p>[3]: [“National analysis of cost disparities in robotic-assisted versus laparoscopic abdominal operations”](<a href="https://www.sciencedirect.com/science/article/pii/S0039606023000910">https://www.sciencedirect.com/science/article/pii/S0039606023000910</a>)</p><p>[4]: [“Impact of Surgical Experience Before Robot-assisted Partial Nephrectomy on Surgical Outcomes: A Multicenter Analysis of 2500 Patients”](<a href="https://www.sciencedirect.com/science/article/pii/S2666168322020432">https://www.sciencedirect.com/science/article/pii/S2666168322020432</a>)</p><p>[5]: [“The Impact of Surgeon Experience and Volume on Patient Outcomes in Radical Prostatectomy Patients”](<a href="https://www.urotoday.com/library-resources/localized-prostate-cancer/141857-the-impact-of-surgeon-experience-and-volume-on-patient-outcomes-in-radical-prostatectomy-patients.html">https://www.urotoday.com/library-resources/localized-prostate-cancer/141857-the-impact-of-surgeon-experience-and-volume-on-patient-outcomes-in-radical-prostatectomy-patients.html</a>)</p><p>[6]: [“How to Bring Surgery to the Next Level: Interpretable Skills Assessment in Robotic-Assisted Surgery”](<a href="https://karger.com/vis/article/36/6/463/310503/How-to-Bring-Surgery-to-the-Next-Level">https://karger.com/vis/article/36/6/463/310503/How-to-Bring-Surgery-to-the-Next-Level</a>)</p><p>[7]: [“What are clinically relevant performance metrics in robotic surgery? A systematic review of the literature”](<a href="https://link.springer.com/article/10.1007/s11701-022-01457-y">https://link.springer.com/article/10.1007/s11701-022-01457-y</a>)</p><p>[8]: [“Surgeon Automated Performance Metrics as Predictors of Early Urinary Continence Recovery After Robotic Radical Prostatectomy — A Prospective Bi-institutional Study”](<a href="https://www.sciencedirect.com/science/article/pii/S2666168321000616">https://www.sciencedirect.com/science/article/pii/S2666168321000616</a>)</p><p>[9]: [“Tailored Feedback Based on Clinically Relevant Performance Metrics Expedites the Acquisition of Robotic Suturing Skills”](<a href="https://www.auajournals.org/doi/pdf/10.1097/JU.0000000000002691">https://www.auajournals.org/doi/pdf/10.1097/JU.0000000000002691</a>)</p><p>[10]: Twinanda, A. P., Shehata, S., Mutter, D., Marescaux, J., de Mathelin, M., &amp; Padoy, N. (2017). EndoNet: A Deep Architecture for Recognition Tasks on Laparoscopic Videos. IEEE Transactions on Medical Imaging, 36(1), 86–97. [Link](<a href="https://ieeexplore.ieee.org/document/7519209">https://ieeexplore.ieee.org/document/7519209</a>)</p><p>[11]: Yamazaki, Yuta, Shingo Kanaji, Takeru Matsuda, Taro Oshikiri, Tetsu Nakamura, Satoshi Suzuki, Yuta Hiasa, Yoshito Otake, Yoshinobu Sato, and Yoshihiro Kakeji. “Automated surgical instrument detection from laparoscopic gastrectomy video images using an open source convolutional neural network platform.” <em>Journal of the American College of Surgeons</em> 230, no. 5 (2020): 725–732. (<a href="https://www.sciencedirect.com/science/article/abs/pii/S1072751520302325">https://www.sciencedirect.com/science/article/abs/pii/S1072751520302325</a>)</p><p>[12]: Takeuchi, M., T. Collins, A. Ndagijimana, H. Kawakubo, Y. Kitagawa, J. Marescaux, D. Mutter, S. Perretta, A. Hostettler, and B. Dallemagne. “Automatic surgical phase recognition in laparoscopic inguinal hernia repair with artificial intelligence.” <em>Hernia</em> 26, no. 6 (2022): 1669–1678. (<a href="https://link.springer.com/article/10.1007/s10029-022-02621-x">https://link.springer.com/article/10.1007/s10029-022-02621-x</a>)</p><p>[13]: Zia, Aneeq, Andrew Hung, Irfan Essa, and Anthony Jarc. “Surgical activity recognition in robot-assisted radical prostatectomy using deep learning.” In <em>Medical Image Computing and Computer Assisted Intervention–MICCAI 2018: 21st International Conference, Granada, Spain, September 16–20, 2018, Proceedings, Part IV 11</em>, pp. 273–280. Springer International Publishing, 2018. (<a href="https://arxiv.org/pdf/1806.00466.pdf">https://arxiv.org/pdf/1806.00466.pdf</a>)</p><p>[14]: Ahmidi, N., Ishii, L., Fichtinger, G., Gallia, G. L., &amp; Hager, G. D. (2010). An objective and automated method for assessing surgical skill in endoscopic sinus surgery using eye-tracking and tool-motion data. International Forum of Allergy &amp; Rhinology, 2(6), 507–515. (<a href="https://onlinelibrary.wiley.com/doi/abs/10.1002/alr.21065">https://onlinelibrary.wiley.com/doi/abs/10.1002/alr.21065</a>)</p><p>[15]: Bouarfa, L., Jonker, P. P., Dankelman, J. (2012). Discovery of high-level tasks in the operating room. Journal of Biomedical Informatics, 45(3), 455–462. (<a href="https://pubmed.ncbi.nlm.nih.gov/21574828/">https://pubmed.ncbi.nlm.nih.gov/21574828/</a>)</p><p>[16]: Zia, Aneeq, Kiran Bhattacharyya, Xi Liu, Ziheng Wang, Max Berniker, Satoshi Kondo, Emanuele Colleoni et al. “Objective Surgical Skills Assessment and Tool Localization: Results from the MICCAI 2021 SimSurgSkill Challenge.” <em>arXiv preprint arXiv:2212.04448</em> (2022). (<a href="https://arxiv.org/pdf/2212.04448.pdf">https://arxiv.org/pdf/2212.04448.pdf</a>)</p><p>[17]: Zia, Aneeq, Kiran Bhattacharyya, Xi Liu, Max Berniker, Ziheng Wang, Rogerio Nespolo, Satoshi Kondo et al. “Surgical tool classification and localization: results and methods from the MICCAI 2022 SurgToolLoc challenge.” <em>arXiv preprint arXiv:2305.07152</em> (2023). (<a href="https://arxiv.org/pdf/2305.07152.pdf">https://arxiv.org/pdf/2305.07152.pdf</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc2889b57ca2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Machine Individual: is it possible to apply natural selection to machines, algorithms, and…]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/the-machine-individual-is-it-possible-to-apply-natural-selection-to-machines-algorithms-and-cb67e466d4f4?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb67e466d4f4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ethology]]></category>
            <category><![CDATA[natural-selection]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 05:38:10 GMT</pubDate>
            <atom:updated>2020-09-30T13:26:07.652Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Machine Individual: is it possible to apply natural selection to machines, algorithms, and artificial intelligence?</h3><p>In a 2019 paper [1], Iyad Rahwan argues strongly for a science of machine behavior. Here the word “machine” is used to refer to algorithms, software systems (like applications and platforms), as well as, artificial intelligence. This paper suggests that “machines” should be studied through the lens of animal behavior, also called ethology. Ethology has a history of established frameworks through which animal behavior is investigated and understood as an evolutionarily adaptive trait [2]. According to Iyad Rahwan et al, co-opting these methods to study “behavior” in “machines” will help us understand how artificial intelligence systems mediate our social, cultural, economic, and political interactions.</p><p>While the ideas in the paper were quite interesting to me (especially, as a person who has studied animal behavior), I found it problematic on two counts — 1) many of the ideas presented in this paper really re-frame existing work that is done by a field called science and technology studies (STS) and 2) the paper hides a lot of dirty laundry behind the words “machine” and “behavior”. Most of this article will be about the second point, but I will say something briefly here about the first — which will later have some bearing about my discussions on the second.</p><h3>A re-hash of old ideas</h3><p>The novelty of argument made by Iyad Rahwan et al might seem to be a treatment of software or hardware systems that use artificial intelligence as actual individuals behaving in an environment with ecological and social interactions. However, such perspectives are already taken by actor-network theory based investigative methods within STS (science and technology studies) [3]. A distinction to be made here may be that STS is not usually interested in mechanistic or causative explanations of interactions in a social or ecological network but rather descriptive ones [4]. On the other hand, ethology, in many but not all cases, is interested in such mechanistic explanations. Therefore, Iyad Rahwan’s arguments for a study of machine behavior guided by ethology may be more of an ideological shift rather than a methodological one. Regardless, I’m not an expert on the field of STS and I will leave a more thorough analysis of Iyad Rahwan’s arguments from an STS perspective to someone more fit to do so.</p><p>I’ll argue next that even the ideological shift to using ethology as a framework to study “machine behavior” is on a nebulous foundation.</p><h3>Which machine and what behavior</h3><p>The issue that I feel I do have the expertise to address is how “machine” and “behavior” are defined in this paper. More specifically, I feel that the words “machine” and “behavior” are not defined well enough to align with the use of methods within ethology as tools to study machine behavior. To understand what I mean, we will have to dive a bit into the ideological foundations of ethology and it’s connection to natural selection.</p><p><strong>The connection of ethology to natural selection</strong></p><p>As I mentioned earlier, ethology considers animal behavior to be an evolutionarily adaptive trait. Consequently, this means that behavior is shaped by natural selection over generations. There are 3 principles that are generally considered (with some deviations) to be the “logical skeleton” of natural selection [5]:</p><ol><li>Different individuals in a population have different morphologies, physiologies, and behaviors (differential phenotypes).</li><li>Different phenotypes have different rates of survival and reproduction in an environment (differential fitness).</li><li>There is a correlation between parents and offspring in the contribution of each to future generations (fitness is heritable).</li></ol><p>Since they were posed, these principles have been argued against and interesting deviations have been proposed to update these principles that further include some cases that partially violate them. Regardless, these 3 principles generally do cover the framework through which natural selection is understood as acting within populations.</p><p>Since the 3 principles above are the logical skeleton for natural selection, they are also the starting point of ethology and the ideological soil in which all related methods and frameworks are grounded. The principles of natural selection stated above consequently lead to some mirrored principles in ethology:</p><ol><li>Behavior is attributed to an individual that acts in a population of other individuals or con-specifics. Behaviors have variants within such a population of individuals.</li><li>Individuals exhibiting different behaviors have different rates of survival and reproduction in an environment.</li><li>Behaviors are heritable and the individuals — to whom a behavioral trait is attributed — can reproduce.</li></ol><p><strong>How natural selection frames the methods of ethology</strong></p><p>These principles are the basic assumptions that provide the logical foundation for the four categories of questions and explanations [6] that are methodological framework for ethology. These four categories of questions and explanations are often represented as a table or matrix and I’ve reproduced it below. Iyad Rahwan et al also extensively argue for using these four categories of questions and explanations as the basis for inquiry in the field of “machine behavior”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*J7TwsRIaRf07x2UUUvpm6A.png" /><figcaption>Four categories and questions in ethology</figcaption></figure><p>While a full discussion of every element in this table would require a graduate level course, we will take the fast route through to make an important point.</p><p>When studying behavior, ethologists take a <em>proximate view</em> which inspects the mechanistic and developmental basis of a behavior in an organism or an individual. They also take an <em>ultimate view</em> which inspects the evolutionary history and adaptive benefit of a behavior to both the organism and the population. The <em>ultimate view</em> must also take into account that that the behavior is inherited in some way through parent-offspring lineages.</p><p><strong>The individual, the population, and the problem of heredity</strong></p><p>There are three major concepts here that are worth noting — the individual, the population, and reproduction/heredity. If the methods of ethology are to be applied to create a field of “machine behavior”, we must identify analogous concepts within that field.</p><ol><li>What is the “machine individual” that exhibits “machine behaviors”?</li><li>What constitutes the “machine population” which contains variants of these “machine behaviors”?</li><li>What is the process through which “machine behaviors” are inherited? What is the method or concept of reproduction applied to “machine individuals”?</li><li>How dependent is the “survival” or “reproductive” success of a “machine individual” upon the intrinsic properties of that “machine individual”?</li></ol><p>Answering some of these questions may seem trivial but others are more challenging. For instance, Iyad Rahwan et al provide numerous examples of what may constitute a “machine individual” or “machine population” in different scenarios. The examples for individuals include machine learning algorithms, single robots, learning agents on advertising platforms. For populations, the authors mention multi-agent systems in financial trading and swarm robotics, among others.</p><p>However, in my opinion, a satisfactory discussion of “machine reproduction” and “machine heredity” is not provided. Without such a discussion, it’s unclear whether natural selection acts on “machine behaviors”, therefore, making moot any attempt of using ethological frameworks to investigate those behaviors. I believe that a discussion of “machine reproduction” is possible. However, the methods of reproduction and heredity afforded to the “machine individuals” and “machine populations” described by Iyad Rahwan et al make them marginal cases of evolving populations where natural selection has little, if any, influence.</p><p><strong>Machine reproduction doesn’t allow for much of a machine individual</strong></p><p>At this point, humans are clearly the mediators of reproduction for machines and software systems that use artificial intelligence. Machines are, what could be called, scaffolded reproducers [7]. Being a scaffolded reproducer doesn’t in and of itself make machines marginal cases of evolving populations. Plenty of scaffolded reproducers are paradigm cases of evolving populations — like viruses which need a host to reproduce or plants that need pollinators to reproduce. However, the fitness of a virus is not totally dependent on the host and the fitness of plant is not completely dependent upon its pollinator.</p><p>However, the fitness of a machine is determined completely by the human systems that it operates in. I would even argue that the realized fitness differences between different “machine individuals” have little to with the intrinsic properties of the “machine individuals”. Most of the artificial intelligence in the world is developed by a concentrated group of institutions and individuals. The success of these institutions/individuals and their access to compute resources largely determine the fitness of a given “machine individual”. While “Machine behavior” might be unpredictable, it is likely not going through a process of natural selection.</p><p>In this setting, machines are rather a trait of human societies and populations, like mitochondria within a person’s cells or the expression of a gene within a cell. I think studying “machine individuals” to understand “machine behavior” may be akin to studying the legs of a zebra to understand it’s strategies of escaping predators. It will definitely allow for some analysis but it will miss the bigger picture. Machines are fundamentally a trait of human technological, social, and political systems.</p><p><strong>Will machine reproduction ever be un-scaffolded?</strong></p><p>Do we really want artificial intelligence systems to be subject to natural selection without human intervention? Arguably, this is not what is happening right now and likely will be actively opposed over further development of these systems due to concerns around safety and control. If artificially intelligent “machines” are not subject to natural selection, or are marginal cases of it, then ethological frameworks are a poor lens through which to view “machine behaviors.”</p><p>This article is an effort by me to voice my opinions and test them against those of others. I’m actually very excited by the interest in this field and hope to be refuted on many of my points.</p><p>This ends my explication of why I find ethology to be a poor lens with which to view “machine behaviors” and now return to a point I had made much earlier in the article.</p><h3>Why not use existing methods within Science and Technology Studies (STS)</h3><p>Studying the interactions of technological systems with human society, politics, and culture is already something that falls within the purview of STS. This field is young but still has a rich history of methods, approaches, and frameworks through which a researcher can make contact with the ideas discussed in the Machine Behaviour paper. So why invent a new field?</p><p>While I don’t have a window into the intentions of the authors of the 2019 paper, I have a hunch. I must warn that what follows below is speculation but a reasonable speculation, at least.</p><p>STS generally takes a humanistic approach to the study of technology and has, at best, a neutral view on the influence of technology on society and vice versa. According to my understanding, STS is also generally descriptive in its approach to these topics and not interested in root-cause analysis or prescriptive findings to guide intervention efforts. However, certain sub-classes of ethological studies do allow for this second kind of perspective where researchers can expect to find mechanistic explanations at different levels of analysis as answers to their research questions about an agent’s behavior. These answers can then be used to change behavior and hold components or parts of a system responsible for certain outcomes. Consider as an example classical conditioning.</p><p>I expect this was exactly the intent of the authors of Machine Behaviour paper — to introduce the possibility of finding causation and mechanisms at different levels of analysis into STS. I would imagine there would be some opposition to this from existing practitioners of STS since I think the field specifically developed in many ways to avoid such kinds of analysis.</p><h3>References</h3><p>[1] Machine behavior, 2019. Nature <a href="https://www.nature.com/articles/s41586-019-1138-y">https://www.nature.com/articles/s41586-019-1138-y</a></p><p>[2] Ethology. Wikipedia. <a href="https://en.wikipedia.org/wiki/Ethology">https://en.wikipedia.org/wiki/Ethology</a></p><p>[3] Science and Technology Studies. Wikipedia. <a href="https://en.wikipedia.org/wiki/Science_and_technology_studies#:~:text=Science%20and%20technology%20studies%2C%20or,affect%20society%2C%20politics%20and%20culture">https://en.wikipedia.org/wiki/Science_and_technology_studies#:~:text=Science%20and%20technology%20studies%2C%20or,affect%20society%2C%20politics%20and%20culture</a>.</p><p>[4] Actor-network theory. Wikipedia. <a href="https://en.wikipedia.org/wiki/Actor%E2%80%93network_theory#:~:text=Actor%E2%80%93network%20theory%20(ANT),constantly%20shifting%20networks%20of%20relationships.&amp;text=Instead%2C%20strictly%20empirical%20analysis%20should,than%20%22explain%22%20social%20activity.">https://en.wikipedia.org/wiki/Actor%E2%80%93network_theory#:~:text=Actor%E2%80%93network%20theory%20(ANT),constantly%20shifting%20networks%20of%20relationships.&amp;text=Instead%2C%20strictly%20empirical%20analysis%20should,than%20%22explain%22%20social%20activity.</a></p><p>[5] Natural Selection. Stanford Encyclopedia of Philosophy. <a href="https://plato.stanford.edu/entries/natural-selection/">https://plato.stanford.edu/entries/natural-selection/</a></p><p>[6] Tinbergen’s four questions. Wikipedia. <a href="https://en.wikipedia.org/wiki/Tinbergen%27s_four_questions">https://en.wikipedia.org/wiki/Tinbergen%27s_four_questions</a></p><p>[7] Reproduction, symbiosis, and the eukaryotic cell, 2018. PNAS <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4547265/">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4547265/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb67e466d4f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The language of neuroscience]]></title>
            <link>https://medium.com/@bhattacharyyakiran12/the-language-of-neuroscience-61722abb33ca?source=rss-bc3a08ef0519------2</link>
            <guid isPermaLink="false">https://medium.com/p/61722abb33ca</guid>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[text-analysis]]></category>
            <dc:creator><![CDATA[Kiran Bhattacharyya]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 07:55:23 GMT</pubDate>
            <atom:updated>2018-02-20T23:06:58.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*_T8OEHJXNhTZ7b2-Dzl7jA.png" /><figcaption>Popular keywords in neuroscience review articles from Jan 1, 1997 to Dec 31, 2016.</figcaption></figure><p>When asked what I do for a living, I usually answer that I’m a student or a researcher. However, if I really need to impress someone or pique their interest, I instead say, “I do neuroscience research.” I’m not proud of the manipulation but it generally works.</p><p>Public and scientific interest in neuroscience <a href="https://www.sciencedaily.com/releases/2017/04/170420093736.htm">grew dramatically</a> over the last 20 years. As I see the constantly increasing outflow of popular neuroscience books every year, I find myself asking, “Why did it happen now?”</p><p>To figure this out I decided to do a systematic study of neuroscience review articles over the last 20 years. Review articles are scientific publications which attempt to summarize and synthesize recent findings from a much larger set of research articles within a field. While research articles may be specific and specialized, review articles tend to be more accessible since they serve as an introductory text to a research field.</p><p>I used an automated text summarizing method called <a href="https://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf">TextRank</a> to extract keywords from the abstracts of review articles published in the following five reputable neuroscience review journals:</p><ul><li><a href="http://www.annualreviews.org/journal/neuro">Annual Review of Neuroscience</a></li><li><a href="http://www.sciencedirect.com/science/journal/09594388">Current Opinion in Neurobiology</a></li><li><a href="http://www.nature.com/nrn/index.html">Nature Reviews Neuroscience</a></li><li><a href="https://www.journals.elsevier.com/progress-in-neurobiology/">Progress in Neurobiology</a></li><li><a href="http://www.cell.com/trends/neurosciences/home">Trends in Neurosciences</a></li></ul><p>I chose to analyze the keywords of review articles not only because they were more accessible but also because they aim to understand the broader impact of a field. In doing so, they create the language that neuroscientists use to engage with each other and the public in order to motivate their research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SN4dsAslklc7Lb4lsGDxwA.png" /><figcaption>Comparing popular keywords in neuroscience articles grouped into 10 year periods.</figcaption></figure><p>The relative sizes of words in the wordclouds above show that certain keywords do change in how often they appear in the abstract of review articles. However, to directly quantify this change in the rate of appearance of keywords, I fit linear models to the frequency of occurrence of keywords that appeared at least 20 times in the last 20 years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8eddIfnwJawv8ixWysKXQ.png" /><figcaption>Keywords with biggest decreasing or increasing trend over the last 20 years.</figcaption></figure><p>The figure above shows how the frequency of specific keywords has changed over the years by plotting the measure of occurrences for each year and the result of the linear fit. Each panel above shows the results for five keywords. The first panel shows five keywords with largest decreasing trends while the second panel shows five keywords with the largest increasing trends.</p><p>For instance, the word ‘cell’ (left panel) was used as a keyword in about 8% of the abstracts in 1997 but now is only used in less than 4% of them. A 4% change may not seem like a huge change but it suggests that the word ‘cell’ is encountered as a keyword about half as often as it used to be. On the other hand, the word ‘treatment’ (right panel) is encountered as a keyword more than twice as often as it used to. Even then, the percent of abstracts in which the keyword ‘cell’ appears today is still slightly higher than the percent in which the word ‘treatment’ appears.</p><p>While this figure is only showing the results for 10 keywords, the entire data set can be visualized in a different way as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYhuJ-6G7R5WrkXdB1IIMg.png" /><figcaption>Detailed results of linear fit parameters for the occurrence of keywords.</figcaption></figure><p>The slope and y-intercept of a linear fit determine the position of a keyword in the plot above. The x-axis is the slope of the linear fit. The position of a word on the x-axis tell us how quickly the word increased (positive values) or decreased (negative values). The y-axis is the y-intercept or how popular the word was in 1997. Light green and yellow shades represent keywords with increasing trends while dark green and purple shades represent keywords with decreasing trends.</p><p>A zoomed-in version into the crowded nest of words can be found <a href="https://raw.githubusercontent.com/MiningMyBusiness/NeuroMancer/master/Results/AllChangingWords_2D_zoom.png">here</a>. Additionally, the full list of words can be found <a href="https://raw.githubusercontent.com/MiningMyBusiness/NeuroMancer/master/AllChangingWords.png">here</a> ordered from increasing to decreasing trend with the same color code.</p><p>I also ran another analysis which showed that words with increasing trends were more likely to occur within the same abstract with each other than with words that had decreasing trends. This suggests that words with increasing trends and words with decreasing trends belongs to separate groups. The full data, the code for analysis, and the results can be found on the <a href="https://github.com/MiningMyBusiness/NeuroMancer">project page</a> of my GitHub.</p><p>A close review of words with increasing and decreasing trends will show that they cover different levels of inquiry in neuroscience. The words with decreasing trends tend to cover topics at a cellular level (e.g. cell, receptor, protein, channel, membrane, axon, nucleus, and molecule). On the other hand, the words with increasing trends tend to cover topics at a higher organizational level (e.g. brain, circuit, network, cognitive, connectivity, decision, and attention) or clinical level (disorder, disease, treatment, patient, therapeutic, and dysfunction).</p><p>I think the recent increase neuroscience has seen in public interest is due to this change in language of the field to a more cognitive and clinical level. While cellular phenomena in the brain and in neurons might be unrelatable, scientific studies that claim cognitive level ramifications about how we understand decision-making or autism grab our attention. Moreover, the advent of new imaging technologies allows scientists to record signals from the brains of behaving humans and animals providing the hope for connecting brain and behavior. However, I worry about how this influences the culture and rhetoric of neuroscience both to the public and to the scientific institution.</p><p>I see that the cognitive or clinical level language of neuroscience has been co-opted to sell products of <a href="https://en.wikipedia.org/wiki/Neuromarketing">neuromarketing</a> and <a href="https://www.forbes.com/sites/robertadams/2017/06/05/self-improvement-through-neuroscience-and-technology/#b2aa67f2e93a">self-help</a> or self-optimization. This further reinforces the outdated practice of phrenology in a new form where our brain is presented as something calculable and mappable. Moreover, these co-options distort or misrepresent the true findings from research articles which suggest that we are just beginning to understand the interconnected and non-compartmentalizable functions of the brain.</p><p>However, scientists sometimes also project their work through this lens of the “hackable brain” since such reductions might increase the virality of research results in the digital world. Moreover, the increased focus on clinical and cognitive results may motivate some scientific investigations poorly. There is still a lot left to understand at the cellular and molecular level of neuroscience which may not have clear connections to disorders or behavior. I fear that the true reason for increased public interest in neuroscience relates to our hidden need to make the brain manipulable and classifiable so we can become better parents, workers, and citizens and make others do so too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61722abb33ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>