<?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 Aarush Kumar on Medium]]></title>
        <description><![CDATA[Stories by Aarush Kumar on Medium]]></description>
        <link>https://medium.com/@aarush.km73?source=rss-fea777b6eafb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qY0e-PhC1VrFCyNk</url>
            <title>Stories by Aarush Kumar on Medium</title>
            <link>https://medium.com/@aarush.km73?source=rss-fea777b6eafb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:55:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aarush.km73/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[AI 3D Object Reconstruction for Crime Scenes]]></title>
            <link>https://medium.com/@aarush.km73/ai-3d-object-reconstruction-for-crime-scenes-753cd6cb7021?source=rss-fea777b6eafb------2</link>
            <guid isPermaLink="false">https://medium.com/p/753cd6cb7021</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Aarush Kumar]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 04:46:28 GMT</pubDate>
            <atom:updated>2026-07-15T04:46:28.825Z</atom:updated>
            <content:encoded><![CDATA[<p>In its simplest form, a crime scene is any physical location where a crime has occurred or where an investigator may find evidence related to a criminal act. Crime scene investigations are examinations in which forensic techniques are used to gather and preserve physical evidence of a crime.</p><p>The first phase of crime scene investigations is the initial response, in which, upon receiving a report of a criminal activity occurring in a certain area, police arrive as soon as possible, with first-responding officers completing an initial inspection to assess and neutralize the environment of any potential threats, such as suspects or active shooters still being at the scene. They then shift their focus towards protecting public and personal safety, providing emergency assistance to any injured individuals, and securing the location. Once any active threats are assessed and eliminated, Emergency Medical Technicians (EMTs) arrive to assist victims, strategically positioning themselves as they conduct their examinations to protect critical information at the scene, such as blood spatter and positioning. Police then take control of the scene, establishing physical boundaries with patrol cars or tape within a certain radius to restrict entry, while also maintaining logs of every person who enters and exits the area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ro8xyuF7ICwNbf_ScFs6XA.jpeg" /></figure><p>Upon securing the scene, preliminary assessments for the investigation begin, in which officers start looking for out-of-order items, signs of forced entry, fleeing suspects, accessible weapons, the arrangement of materials, and more, all in a swift and efficient manner, as factors as simple as crowds and weather can destroy trace evidence. Following these preliminary assessments, investigators arrive and start documenting evidence in three methods: photographs, which capture the scene and its surrounding area with both wide and close-up shots of direct evidence such as bloodstains; sketches providing the spatial relationships among the scene and between pieces of evidence; and written notes identifying any items alongside their condition and location within the scene. A legal record tracks the handler/investigator for each piece of evidence, so if it later goes missing or is accessed by an unauthorized individual, it is ruled inadmissible. Common evidence includes biological materials such as blood, hair, fingerprints, and bodily fluids, trace evidence such as fibers, burnt material, tire tracks, footprints, soil, and gunshot residue, ballistics such as bullet casings and firearms, and digital evidence captured from phones, laptops, and security cameras. Each item is stored in specialized containers; for example, paper bags are used for biological evidence as they inhibit mold growth, and anti-static bags prevent damage to electronics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4R4Gca0zo1piGzpX_AY7yA.jpeg" /></figure><p>Following all evidence being gathered and recorded, investigators speak with witnesses, victims, and suspects, taking a different approach with each individual based on their psychological and emotional condition at the moment of interrogation. Some investigators may use the cognitive interview technique (stimulating as many mental cues as possible) to help individuals recall important information, while others may use the Reid technique, analyzing their biosocial status and evaluating responses to provocative questions.</p><p>Following these interviews, crime scene investigators submit all collected evidence to specialized laboratories for testing and analysis, including DNA tests, toxicology tests, digital evidence retrieval, ballistic tests, and more, all using tools such as automated fingerprint identification systems and databases such as the Combined DNA Index System.</p><p>Once suspected controlled substances and their documentation of appearance, packaging, markings, and more arrive at the lab, they undergo numerous identification methods. An initial screening method involves adding chemical reagents to the sample, and a color change indicates the presence of certain drugs. Microscopic examination is used on plants to identify characteristics of marijuana. Fourier Transform Infrared Spectroscopy identifies substances by analyzing the degree to which the molecules absorb infrared light. Gas Chromatography (or Liquid Chromatography) and Mass Spectrometry separate and identify chemical compounds in a sample to confirm the presence of complex drugs or pharmaceutical compounds. Identifying illegal drugs provides evidence of what criminal activity occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*ujFFa7PSIv0Wm9bTr4747A.jpeg" /></figure><p>Digital and Multimedia Evidence arriving at the lab is processed, and then a bit-for-bit copy of the storage inside the devices is created and given a hash verification (a digital fingerprint) to prove the evidence wasn’t altered. Data such as files, messages, application data, calls, pictures, videos, and audio recordings are retrieved, including deleted data retrieved from unused storage areas, and analyzed to reveal timestamps, GPS locations, editing history, and more. Video and audio enhancement of surveillance footage is performed to confirm objects, people, movements, and events, while images are authenticated to verify the evidence. Altogether, this allows for the creation of timelines and digital activity for the crime scene and its surrounding history, while also identifying missed communication, locations, and actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*sv7n3GWUUoI5WX-66W3KdQ.jpeg" /></figure><p>Firearms and materials with toolmarks are next analyzed. Firearms are documented by type, condition, serial number, manufacturer, and mechanical operation. Then, test firearms are fired under controlled conditions to produce bullets and cartridge cases for comparison. Microscopic markings on firearm components, such as the barrel and trigger, are compared with known samples, and markings left by barrel grooves are also examined to determine whether bullets were fired from that firearm. The firing pin impressions, breech face marks, and extractor marks are compared to see which specific firearms any discovered cartridge cases came from. Impressions and scratches left by tools are compared to those of known tools to identify the item in use, and erased firearm identification numbers are restored through chemical analysis. This is all done to identify the materials in the crime scene, reconstruct the actions performed with these tools, and determine the source of evidence such as casings.</p><p>From biological samples such as blood, DNA is first isolated and extracted, then quantified to determine whether there is enough for profiling. STR analysis examines specific regions of DNA that vary among individuals, creating a genetic profile that is compared with a database to identify individuals connected to evidence, link suspects or victims to objects, and exclude others from investigations.</p><p>For impressions/marks from footwear or tires, the captured photos and videos of the impressions are sent to the lab, which creates three-dimensional physical replicas to compare the tread designs, wear patterns, and damage to link certain shoes or vehicles to crime scenes, or even establish the movements of those vehicles and shoes to reconstruct how events occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DWn-vkxI0IOW-4M7X3lc-w.jpeg" /></figure><p>Objects containing latent prints/fingerprints are subjected to testing with powders, chemicals, alternative light sources, cyanocrylate fuming, chemical enhancement with compounds such as ninhydrin, and more to reveal and develop hidden fingerprints, whose ridge patterns and features are compared to stored fingerprint records, alongside other objects on the scene with fingerprints, to identify individuals who touched objects(including which ones) and connects suspects to evidence/locations. Simultaneously, toxicology reports are conducted on blood, urine, and tissue through immunoassay testing, Gas/liquid Chromatography, and Mass Spectrometry to determine whether drugs, alcohol, or poison contributed to injury or death on the scene.</p><p>Trace evidence includes things such as explosive residues, fire debris, fractured objects, glass fragments, hairs, fibers, paint, primer, and automobile lamps are all microscopically examined and chemically analysed through chromatography, spectroscopy, and more to connect people, objects, and locations in the crime scene to one another to better help reconstruct accidents, contact events, shooting circumstances, fire location and circumstance, and more.</p><p>Although forensic laboratories can identify and analyze individual pieces of evidence with extreme precision, these examinations alone do not fully explain the sequence of events that occurred during a crime. Determining what happened requires investigators to integrate the results of each forensic discipline with the scene’s original spatial arrangement. The location of evidence, its relationship to surrounding objects, and the movement of individuals within the environment are critical factors in reconstructing the events that produced the evidence. Therefore, after evidence analysis is completed, investigators perform crime scene reconstruction, a process that integrates forensic findings, measurements, documentation, and environmental information to recreate the circumstances of a criminal event.</p><p>Traditionally, crime scene reconstruction relied on photographs, sketches, measurements, and written documentation collected during the initial investigation. While these methods preserve important information, they represent complex three-dimensional environments as separate two-dimensional records, making it difficult to fully visualize spatial relationships among the evidence. To overcome these limitations, modern forensic investigations have adopted three-dimensional documentation technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KfKzCgMY9XB3_QBS8LvITQ.jpeg" /></figure><p>There are numerous techniques, such as photogrammetry, which creates 3D models by rendering a series of hundreds of overlapping photographs into a single environment, or GNSS systems, which use satellite-based positioning, but the most popular and widely used are 3D laser scanners. 3D laser scanners use lasers to measure distances between the scanner itself and the surrounding objects, capturing walls, furniture, bodies, and other environmental features to produce a point cloud. A point cloud is a collection of millions of 3D coordinates that represent the horizontal, vertical, and depth positions of surfaces in an environment, sometimes also including intensity, color, and reflectivity, to create an accurate three-dimensional digital model of the crime scene. This preserves the evidence in its original location, distance, relationships, and geometry relative to the surrounding scene.</p><p>There are two techniques: time-of-flight scanning and phase-shift scanning. Time-of-flight scanners emit laser pulses and measure the time it takes for the reflected signal to return to calculate object distances and sizes based on the travel time. Phase-shift scanning sends continuous laser waves and measures changes in the returning signal phases to better capture the details of objects and materials in the scene. Regardless of the technique, to the millimeter, these scanners can create 360-degree representations of scenes, capturing over 12 million points, to allow analysis without returning to the physical scene; find previously missed evidence such as footprints in grass or very subtle marks on materials; capture bloodstain patterns more effectively; determine the location of victims and suspects; and assist in analyzing bullet trajectories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*D04kFlX7Z717hSp-KLWv6g.avif" /></figure><p>However, despite the advantages of 3D scanning technologies, these systems remain limited in the information they can capture. Objects, or large portions of objects, may be hidden behind other objects; certain areas may be inaccessible to the lasers; and incomplete scans may leave gaps in the digital reconstruction, potentially leaving numerous pieces of crucial evidence behind. Because missing information cannot always be recovered after a scene has changed, artificial intelligence-based reconstruction methods provide a potential solution by learning patterns from existing three-dimensional data of objects/scans and generating complete representations from incomplete scans to a precision that human/manual effort cannot possibly.</p><p>In this study, the ModelNet40 dataset was used, a publicly available dataset from the Princeton ModelNet project that contains 12,311 clean, high-definition, and thoroughly detailed 3D CAD models of common objects, items, or vehicles from 40 of the most common object categories in the world, including chairs, tables, cars, bottles, and lamps. 80% 9,843 CAD models) were reserved for training, while the remaining 20% 2,468 CAD models) were reserved for testing. Each object was stored as an OFF (Object File Format) mesh and referenced via a metadata file that included the object’s class, dataset split, and relative file path. The dataset was pre-split into training and testing sets to enable objective evaluation on previously unseen objects while preventing data leakage between them. Before being supplied to the neural network, every mesh was centered at its centroid and uniformly scaled to fit within a unit cube, ensuring consistent object size regardless of the original dimensions. Each normalized mesh was then voxelized into a binary occupancy grid with a resolution of 32 × 32 × 32, where occupied voxels were assigned a value of one and empty space a value of zero. This voxel representation converts irregular three-dimensional meshes into a standardized volumetric format suitable for convolutional neural networks.</p><p>To simulate the incomplete scans commonly encountered during forensic crime scene documentation, artificial corruption was applied during training. Two corruption techniques were implemented. The first randomly removed large rectangular blocks from the object to simulate occlusions caused by surrounding furniture, walls, or inaccessible viewing angles during laser scanning. The second randomly removed occupied voxels throughout the object, representing sparse point clouds, sensor noise, or missing scan measurements. During training, one of these corruption methods was randomly selected for every object, allowing the network to learn to reconstruct a wide variety of incomplete geometries while improving generalization to unseen forms of missing data. The corrupted voxel grid served as the model input, while the original complete voxel grid served as the reconstruction target.</p><p>The reconstruction model was implemented as a fully customized three-dimensional convolutional autoencoder (3D CNN) using the PyTorch deep learning framework. Unlike traditional two-dimensional convolutional neural networks that analyze only the height and width of an image, this architecture performs three-dimensional convolutions, enabling it to simultaneously examine the width, height, and depth of volumetric voxel data. Instead of detecting edges, textures, and patterns within a flat image, the network learns three-dimensional geometric features such as surfaces, corners, cavities, curves, and structural relationships that define the overall shape of an object.</p><p>The first half of the network, known as the encoder, is responsible for extracting increasingly complex geometric features from incomplete objects. The encoder consisted of six three-dimensional convolutional layers, each using 3 × 3 × 3 kernels, Rectified Linear Unit (ReLU) activation functions, and Batch Normalization. During every convolution, each kernel slides through the voxel grid, examining a small 3 × 3 × 3 neighborhood of surrounding voxels at a time. Initially, these kernels learn simple local geometric characteristics such as flat surfaces, edges, and corners. As the data passes through additional convolutional layers, the learned features become increasingly abstract, allowing the network to recognize larger object components such as chair legs, table tops, airplane wings, or bottle necks. Three of the convolutional layers use a stride of two, reducing the spatial resolution from 32 × 32 × 32 voxels to 1⁶³, then ⁸³, and finally ⁴³. This process compresses the object into a much smaller representation while simultaneously increasing the number of learned feature maps from 1 input channel to 24, 48, and finally 96 feature channels. Rather than storing the exact location of every occupied voxel, the encoder learns a compact latent representation that captures the object’s overall geometric structure, symmetry, proportions, and spatial relationships, allowing the network to infer missing regions based on the complete shape it has learned from thousands of training examples.</p><p>The second half of the network, known as the decoder, performs the opposite operation by reconstructing the complete object from this compressed latent representation. Three ConvTranspose3D (transposed convolution) layers progressively increase the spatial resolution from ⁴³ back to ⁸³, 1⁶³, and finally 3²³ voxels. Unlike ordinary interpolation, transposed convolutions learn how to place newly generated voxels in locations that best reconstruct the original object geometry. After each upsampling operation, an additional three-dimensional convolutional layer and Batch Normalization refine the reconstructed surfaces by correcting local geometric inconsistencies and reducing reconstruction artifacts introduced during upsampling. The final layer consists of a 1 × 1 × 1 convolution, which independently evaluates every voxel and produces a single probability indicating whether that voxel should belong to the completed object. Applying a sigmoid activation converts these values into probabilities between 0 and 1, allowing the reconstructed object to be represented as a complete three-dimensional occupancy grid.</p><p>Throughout the network, ReLU activation functions introduce non-linearity, enabling the model to learn the complex geometric relationships required to reconstruct missing portions of objects rather than simply performing linear transformations. Batch Normalization standardizes the distribution of feature values after each convolution, improving numerical stability, accelerating convergence, and allowing the network to train more effectively using higher learning rates. Collectively, the encoder learns how complete objects are structured, while the decoder uses this learned geometric knowledge to predict plausible missing regions, enabling reconstruction of incomplete three-dimensional scans from only partial observations.</p><p>Training was performed with a batch size of 8 for 30 epochs, with data shuffled before each epoch to reduce ordering bias during optimization. Model parameters were optimized using the Adam optimizer with an initial learning rate of 0.002, while Binary Cross-Entropy with Logits (BCEWithLogitsLoss) was used as the objective function because each voxel represented an independent binary classification problem consisting of occupied or empty space. BCEWithLogitsLoss combines a sigmoid activation with binary cross-entropy into a numerically stable loss function, improving convergence during volumetric reconstruction. During validation, model performance was evaluated using the Intersection over Union (IoU) metric, which measures the volumetric overlap between reconstructed objects and their corresponding ground-truth models. After applying a sigmoid activation, voxel probabilities greater than 0.4 were classified as occupied before calculating IoU. Throughout training, the model with the highest validation IoU was automatically saved to preserve the best-performing network.</p><p>Following training, the highest-performing model was loaded and evaluated on previously unseen test objects. The reconstructed voxel grids were converted back into polygon meshes using the Marching Cubes algorithm, which extracts continuous three-dimensional surfaces from volumetric occupancy grids. The reconstructed meshes were exported as PLY files for visualization and comparison against their original ground-truth models. This conversion allowed qualitative assessment of the network’s ability to recover missing geometry while preserving overall object structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xmFnMOJuuoO4rvDLghfBQ.png" /></figure><p>Although the model demonstrated the ability to infer missing portions of incomplete three-dimensional objects, with an IoU score of over 92.33%, several limitations remain. The network was trained exclusively on clean CAD models rather than real forensic laser scans, meaning real-world factors such as irregular surface reflectivity, measurement error, environmental clutter, and complex occlusions were not fully represented during training. Furthermore, the relatively coarse 3²³ voxel resolution limits the amount of fine geometric detail that can be reconstructed, particularly for thin structures and intricate object features. Consequently, the model should be viewed as a proof of concept demonstrating that three-dimensional convolutional neural networks can successfully learn geometric completion from incomplete volumetric data. In practical forensic investigations, such systems would serve as decision-support tools, assisting investigators in reconstructing partially scanned crime scenes while leaving the final interpretation and evidentiary conclusions to trained forensic professionals.</p><p>Model:</p><p><a href="https://github.com/AarushKumar0/MachineLearningModels-Google-Colab-/blob/main/Models(Updated%20due%20to%20errors%20in%20previous%20folder)/Model%2027(3D%20Object%20Reconstruction).ipynb">https://github.com/AarushKumar0/MachineLearningModels-Google-Colab-/blob/main/Models(Updated%20due%20to%20errors%20in%20previous%20folder)/Model%2027(3D%20Object%20Reconstruction).ipynb</a></p><p>Sources:</p><ul><li><a href="https://www.amu.apus.edu/area-of-study/criminal-justice/resources/the-criminal-investigation-process/">The Criminal Investigation Process: An In-Depth Overview | American Military University (AMU)</a></li><li><a href="https://www.gim-international.com/content/article/how-3d-scanning-rebuilds-crime-scenes-for-courtrooms">How 3D scanning rebuilds crime scenes for courtrooms</a></li></ul><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/General-Submission-Of-Evidence-2025-12.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/b22e91beff1ffe388a51bfec756d7616/href">https://medium.com/media/b22e91beff1ffe388a51bfec756d7616/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/DME-2023-11-Final-1.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/c62cab1ae88747d4e9ba745491069464/href">https://medium.com/media/c62cab1ae88747d4e9ba745491069464/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/Firearms-2021-12-1-1.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/657541bae58286de6441edc5069103ca/href">https://medium.com/media/657541bae58286de6441edc5069103ca/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/EHG_SX_Final_12152025.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bb4764c13d50ce498dc21a9c11091ea/href">https://medium.com/media/5bb4764c13d50ce498dc21a9c11091ea/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/Impressions-2021-12-1.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/d12c1a36a0511c498a756f4860145206/href">https://medium.com/media/d12c1a36a0511c498a756f4860145206/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/Latent-Prints-2020-04.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/76b393f74e5623ef8f976052fc0402f7/href">https://medium.com/media/76b393f74e5623ef8f976052fc0402f7/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/EHG-Toxicology-Final-03.11.2025.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed17776d4041a03532947b86a2b1637e/href">https://medium.com/media/ed17776d4041a03532947b86a2b1637e/href</a></iframe><iframe src="https://drive.google.com/viewerng/viewer?url=https%3A//dfs.virginia.gov/wp-content/uploads/Trace-HAIRS-AND-FIBERS-2015-07.pdf&amp;embedded=true" width="600" height="780" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd77104f43ba884d946876129957da23/href">https://medium.com/media/dd77104f43ba884d946876129957da23/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=753cd6cb7021" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transfer Learning on Brain MRIs]]></title>
            <link>https://medium.com/@aarush.km73/transfer-learning-on-brain-mris-0eb3b1215eaa?source=rss-fea777b6eafb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0eb3b1215eaa</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aarush Kumar]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 22:28:15 GMT</pubDate>
            <atom:updated>2026-06-22T22:28:15.065Z</atom:updated>
            <content:encoded><![CDATA[<p>On average, in the past 5 years alone, about 3.4 billion people, that is 43% of the world’s population, have suffered from some sort of neurological disease or ailment, and of this group, there has been a recorded 433 million years of healthy life lost. It is for this reason that many medical organizations around the world consider neurological conditions as the #1 cause of overall health loss worldwide. Just in the United States, 54% of the population is affected by a neurological disorder, some of the most common and deadliest of which are Alzheimer’s Disease, which 7 million Americans have contracted, Multiple Sclerosis, which 1 million Americans have contracted, and a wide array of brain tumors, each of which 80–90 thousand Americans have contracted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*i9GwhQpwZW_BcZkhud14pg.jpeg" /></figure><p>Alzheimer’s disease is a chronic, progressive, degenerative neurological disease that affects around 70 million people worldwide, and is responsible for about 70% of all global dementia cases. While much is still unclear and being investigated, what is widely accepted is that Alzheimer’s Disease occurs when neurons begin to shut down. Neurons are the fundamental cells of our brain and nervous system, using electrical impulses and chemical signals to transmit information and instructions between different regions of the brain and the rest of our nervous system. Sensory neurons take in physical and chemical inputs, such as sound, smell, and touch, from sensory receptors in our skin, nose, and eyes, and send them to our nervous system. Motor neurons enable the brain and spinal cord to communicate with muscles, glands, and organs throughout the body, allowing them to move and respond. Interneurons form complex circuits between the other two to help respond to external stimuli. They make everything we do possible.</p><p>The reason why our neurons degenerate in Alzheimer’s Disease is being investigated, but the dominant theory is that as people age, a protein called amyloid that usually builds up outside the brain’s neurons to protect against bacteria and tumors starts to become clumped together in chains called oligomers and form barriers called plaque. As the plaque builds up, it irritates other proteins, particularly tau. Tau is a protein that holds up the skeletal structure of neurons, and when it gets irritated, it becomes damaged, and at times builds up in tau oligomers that form neurofibrillary tangles. Either way, the common result is that neurons become misshapen and unable to communicate with one another, resulting in degeneration. There are other theories, such as if the capillaries, tiny blood vessels, in the brain are damaged, the blood supply is disrupted, and there is damage to the neurons’ axons, the tails they use to transmit information.</p><p>Regardless, when Alzheimer’s develops as a result of consistent neurodegeneration, it does so in stages. The first stage is the preclinical stage, with no apparent symptoms, but very soon it progresses into mild cognitive impairment, where people forget recent information and have difficulty judging steps in sequence for a certain task. Afterwards is mild dementia, forgetting simple things such as words, objects, new names, and things just read, then moderate dementia with forgetting personal history, confusion about whereabouts, personality changes, and trouble with sleep and bowel control. The last stage is severe dementia, with almost complete loss of recent experiences and awareness of surroundings, difficulty communicating, and loss of physical abilities like walking or sitting. It is a terrible disease that is not yet curable, but if caught in time, the progression can be slowed, and the symptoms can be properly managed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8F5QQdUTZt2O0yBtRsJ4Q.png" /></figure><p>Multiple Sclerosis is another incurable chronic disease with uncertain origins. With over 3 million people living with MS worldwide, it is an autoimmune condition that affects the brain and spinal cord by accidentally attacking myelin cells, the shield-like covers surrounding the brain and spinal cord nerves, which move signals between the brain and the rest of the body. Normally, the immune system tries to eliminate harmful things for your body, like bacteria and viruses, but when afflicted with MS, it becomes overactive and accidentally thinks of myelin cells as a threat to the body, attacking them. There aren’t any certainly defined causes for MS, but there are theories that it could be due to smoking, toxin exposure, vitamin D deficiency, exposure to viruses such as mononucleosis or Epstein-Barr virus, childhood obesity, and simple genetics. Whatever the case, the damage to the myelin cells results in the signals that our nerves send to our body to perform everyday functions becoming disrupted, from sight to movement. Common symptoms of MS are double vision, vision loss, fatigue, dizziness, loss of balance and coordination, loss of cognitive function, muscle stiffness, spasms, and tremors. Many times these systems fluctuate, with there being periods of remission where they die down, and then periods when the systems flare up again. It is a lifelong condition without a true cure or end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*G9tW3jHPkblUdFVsea_5pA.png" /></figure><p>The third major neurological condition, brain tumors, may be the most dangerous. There are three main forms: glioma, meningioma, and pituitary. A glioma is a primary tumor — it forms directly in the brain or spinal cord due to a DNA mutation in glial cells. Normally, glial cells support and protect neurons in the central nervous system. When a mutation occurs, the cell’s altered DNA tells it to multiply uncontrolled and to live beyond its normal lifespan. The clump of these faulty cells forms a tumor, putting pressure on healthy brain and spinal cord tissue. The exact causes of glial mutations are unknown. Some theories mention genetic syndromes, radiation exposure, and age. As the tumor grows, it can disrupt fluid flow within the brain and spine or damage more tissue. Symptoms may include headaches, seizures, nausea, vomiting, confusion, memory loss, vision issues, balance problems, and trouble speaking. Gliomas are classified as Astrocytomas, Glioblastomas, Ependymomas, and Oligodendrogliomas. All can be treated with surgery, radiation therapy, and chemotherapy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*ym8Ow-LiRGI9C-C8ndLf8g.png" /></figure><p>The second type of brain tumor, meningioma, occurs because of chromosomal deletion, a genetic mutation where part of a chromosome is missing as a result of genetic conditions such as Cowden syndrome, Li-Fraumeni syndrome, and Von Hippel-Lindau disease. Meningioma grows in the protective tissue surrounding the brain and spinal cord, called the meninges, as a result of these genetic mutations, causing cells within the tissue to multiply rapidly and cluster together to form a tumor, similar to a glioma. There are several types of meningioma: Convexity meningiomas, which grow on the outer surface of the brain; Intraventricular meningiomas, which grow in the ventricles of the brain(where cerebrospinal fluid is carried); Olfactory groove meningiomas, which grow near the olfactory nerve(where your sense of smell comes from); and Sphenoid wing meningiomas, which grow behind your eyes. These tumors grow slowly, so most symptoms don’t develop right away, but when they grow, they press on nearby tissue and cause symptoms such as changes in vision, weakness, numbness, headaches, hearing loss, loss of smell, seizures, and cognitive confusion, and if the tumor grows too large, there could be memory loss, paralysis, vision loss, and speech difficulty. Usually, a meningioma is benign and can be treated with radiation therapy and chemotherapy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*macwAbnRU_sRTCTI8OyN5g.png" /></figure><p>The third type of brain tumor, a pituitary tumor, is an abnormal growth in the pituitary gland, a pea-sized organ at the base of the brain, right behind the nose, that translates signals from the brain into hormones controlling important functions such as growth, metabolism, reproduction, and stress. These tumors develop when abnormal DNA mutations, either acquired from the environment or from genetic syndromes such as Multiple Endocrine Neoplasia type 1, Carney complex, and Familial Isolated Pituitary Adenoma, cause cells in the pituitary gland to grow, multiply, and divide at rapid, uncontrollable rates. There are several types of pituitary tumors: Nonfunctional Adenomas which can cause headaches and vision problems alongside pressure normal pituitary cells, leading to decreased hormone production, Prolactin-producing tumors which can cause erectile dysfunction, irregular menstrual cycles, headaches, and vision problems, ACTH-producing tumors which produce too much adrenocorticotropic hormones, slowing down the immune system, weakening bones, causing fat buildup, and bringing high blood pressure, diabetes, and hypertension. These tumors don’t really spread to other parts of the body, and at times may not even be diagnosed for what they are, so much so that about 1 in 4 people have minor pituitary tumors without knowing. Like the other two, pituitary tumors are harmful and can be dangerous, but also be treated with combinations of surgery, radiation treatment, and medicine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UWIcAmRxedhpoOsPk82Ymw.png" /></figure><p>Due to the potentially life-threatening, if not at the very least the guaranteed detrimentally life-altering nature of each of these neurological disorders, accurate, scalable, and timely diagnostic strategies are essential to ensure proper treatment and survival for both life and quality of life. However, diagnosing these disorders based on symptoms alone presents a significant challenge, as they frequently overlap with one another, such as Alzheimer’s Disease, Multiple sclerosis, and brain tumors, all of which cause problems such as memory loss, headaches, vision disturbances, balance difficulties, numbness, seizures, and changes in behavior. Therefore, accurate medical imaging is the best choice to confirm diagnosis and visually distinguish these conditions from one another. The most commonly used image diagnostic method for neurological diseases is brain magnetic resonance imaging, or brain MRI. MRI machines work by creating a powerful magnetic field around a patient’s body, resulting in the hydrogen atoms within the body’s water molecules aligning themselves with the field. The body is then exposed to a set of radio waves at varying frequencies, causing the hydrogen atoms to emit signals detected by receivers outside of the MRI scanner, which are then converted into detailed, cross-sectional images of soft tissue, like the brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Oy_IKJTQK5wJv56EUw0IA.png" /></figure><p>As Multiple Sclerosis strips myelin cells away, which repel water as they are fatty substances, there are lesions left behind holding significant quantities of water. On the brain MRI scans, these lesions stand out clearly as bright white spots sitting against the darker layers of normal brain tissue, with some inflammation and scarring surrounding the area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sREgOWu1uncEl1l6Hvnz8A.avif" /></figure><p>Tumors growing within the brain have a different tissue density and water content than healthy brain matter. Gliomas grow directly within brain tissue itself, and look like bright white, poorly defined masses due to the high water content and severe swelling and inflammation surrounding them. Meningioma tumors grow on the outer membranes of the brain and press inward, usually attached to the inner skull. They look like smooth, rounded masses on MRI scans, closely matching the color of the brain’s outer cortex, but there is a minor line of fluid separating the tumor from the brain. Pituitary tumors originate in a bony pocket at the base of the brain called the sella turcica, and appear as small, round, gray masses that make the pituitary gland itself bulge upward, or the surrounding optic nerves compress inward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*UPglAzTpNismGAhv5UbOrw.png" /></figure><p>Alzheimer’s disease is a result of neurons being destroyed by plaques and tangles, and so is visually characterized by the brain losing volume. On MRI scans, the hippocampus appears shrunken, the ventricles inside the brain(fluid-filled cavities) become larger, the spaces between folds of the brain become wider, and both the temporal and parietal lobes thin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-94mYyYi_EcpAn6B005pZg.png" /></figure><p>MRI scans are widely used in hospitals because they do not require any ionizing radiation like X-ray scans, can differentiate between gray and white matter alongside soft tissue(the brain is almost entirely soft tissue), whereas CT scans are better for detecting bone, and can provide exact 3D mappings. However, there are issues with diagnosis related to MRI scans, as abnormalities in neurological diseases may appear extremely subtle and difficult for radiologists to identify. To the human eye, small Multiple Sclerosis lesions may be faint or hidden within the normal folds of brain tissue, early Alzheimer’s disease may only produce slight hippocampal shrinkage that can resemble normal aging, and small tumors may blend into surrounding tissue or be obscured depending on their location within the MRI.</p><p>Additionally, motion during MRI scans can blur images and reduce clarity, especially in elderly patients or individuals with neurological impairment. Differences in MRI machine strength, scan settings, and image quality between hospitals can also make abnormalities harder to detect for the human eye. Overlapping imaging characteristics between neurological disorders further complicate this, as inflammation, scarring, swelling, tissue loss, bright lesions, and abnormal growths are both constant and visually similar across the diseases, so radiologists may sometimes struggle to distinguish neurological disorders from one another using MRI scans. All of this, coupled with facts such as age-related brain changes that hide signs of Alzheimer’s disease and inactive MS lesions can resemble damage caused by migraines or vascular diseases, could result in delayed diagnosis or misclassification of the neurological disease due to human uncertainty or confusion. This discrepancy is prevalent, as while the brain MRI sensitivity for diagnosing multiple sclerosis is 90%, for Alzheimer’s disease across the three stages, the sensitivity is around 75–80%, and for identifying specific brain tumors is between 72–80%. That’s an average of 80% overall accuracy.</p><p>To substitute the wide possibilities of human error, Convolutional Neural Networks must be used. Convolutional Neural Networks are a type of neural network designed for image analysis, in which, instead of treating an image as a long list of numbers like other models, CNNs use the image’s spatial structure, like height, width, color, channels, and more, to learn and differentiate visual patterns. Rather than researchers having to manually decide which image features are important to analyze, remember, and learn, CNNs automatically learn features from the data, with early layers learning simple things such as edges, textures, contrast, and markings, intermediate layers learning shapes and figures, and deep layers learning complete objects and formations, all to understand patterns and trends in a way the human eye cannot.</p><p>The first layer, the Convolution Layer, is when an image is represented as a 3D tensor(height, width, and depth), while small filters(kernels) move across the image, computing dot products with image pixels to create feature maps highlighting important visual characteristics. There are set strides determining how many pixels the kernels move on each step, and activation functions such as ReLU Activation that introduce nonlinearity to help learn complex relationships while preventing vanishing gradient issues. The following are pooling layers, dominantly max pooling, which reduces the image size to prevent overfitting and memory usage by selecting the largest activation value from each kernel to keep the strongest feature. Following several convolution and pooling stages, feature maps are then flattened into a 1D vector where final classification is performed through fully connected dense layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*Lfyr6QvquT6hISfGS9mtOw.png" /></figure><p>While radiologists depend on experience and manual visual interpretation that can be inconsistent and skewed by factors such as fatigue, eyesight, and subtle image ambiguity, CNNs can consistently recognize subtle or faint pixel-level patterns and abnormalities, differentiating neurological diseases from one another, or even healthy tissue, that may be easy to miss by the faults of the human eye. They are also trained on tens of thousands of medical images, far more cases than a single radiologist could realistically encounter in their practice, making them the superior choice of evaluation as they can learn an infinitely larger range of visual presentations that come with each brain disorder.</p><p>In the last study regarding Pneumonia detection based on chest X-rays, a Convolutional Neural Network was simply built from scratch, and had very promising results. In this scenario, however, Brain MRI scans are more complex than chest X-rays because chest X-rays are simple grayscale images of significantly large and very visible structures like the lungs, but brain MRIs are cross-sectional images of detailed and intricate, tightly packed regions of soft tissue across multiple slices and dimensions, containing similar visualizations between things like cerebrospinal fluid, gray matter, and more. Pneumonia on chest X-rays appears simply as white infiltrates and opaque regions against dark lungs filled with air, a strong contrast, while neurological abnormalities are much subtler, in the form of tiny lesions, slight tissue shrinkage, distortions, or changes in signal intensity. Furthermore, given the greater overlap in visual appearance of different neurological diseases on MRI machines, building a CNN from scratch for classification is simply not efficient or feasible, especially apparent from the fact that a custom CNN developed for this task only achieved a maximum test accuracy of 73%, 7% under the average for radiologists. This is why transfer learning must be implemented.</p><p>Transfer learning is a technique in machine learning where a model already developed for a certain task is reused as the starting point for a different task. For CNNs, many image features such as lines and edges are seen in almost every image of every data set, so rather than building a CNN from scratch and having it extract all of the features, including generic and universal features like edges, lines, gradients, curves, corners, shapes, spatial relationships, and textures, as well as specialized MRI features, a model pre-trained on a data set of millions of images is used, as it already knows how to extract the basic and fundamental traits. Using the pre-trained model, you typically freeze the early convolutional layers, preserving the generic visual features, and then unfreeze and modify the deeper convolutional layers. Then, using your own data at a slow learning rate, you train the network, which becomes fine-tuned to the data set you push in, adjusting its weights and gradually learning to specialize in and recognize the patterns that you want it to by adapting its previously learned knowledge, in our case towards recognizing and classifying subtle and complex neurological abnormalities. This often results in faster training, improved accuracy, less overfitting, and greater generalization, particularly when only limited amounts of labelled training data are available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyCMVSSQLNVjHxCX3zrWYg.png" /></figure><p>In this study, a publicly available multi-class neurological disorder dataset was used, containing 16400 human brain MRI images split into 8 classes by disease type: Alzheimer’s Disease Mild Demented, Alzheimer’s Disease Moderate Demented, Alzheimer’s Disease Very Demented, Brain Tumor-glioma, Brain Tumor-meningioma, Brain Tumor-pituitary, Multiple Sclerosis, and Normal. For the model, the dataset was divided into 70% training data(to learn patterns), 15% validation data(to tune performance while training), and 15% testing data(for final evaluation on unseen data) using a random shuffle to prevent bias and improve generalization. Once the separate train, validation, and test directories were created, the MRI images were loaded in and resized to 224x224 pixels, their intensities converted in the 0–1 range, and the training images were augmented with random rotation up to 20 degrees, horizontal and vertical shift up to 10%, shear transformations of 10%, zoom variations of 10%, and more, simulating real-world variation in MRI quality alongside preventing overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*vfSSQW4Xv8XrsrwnFTR-Qw.png" /></figure><p>For model architecture, transfer learning was performed with DenseNet121, a convolutional neural network pretrained on the ImageNet dataset, because it works well on medical imaging tasks, uses dense connectivity, improves feature propagation, reduces vanishing gradient problems, and encourages feature reuse. The original DenseNet classification head was removed so that only the pretrained convolutional feature extractor remained. The early DenseNet layers were frozen to preserve the extraction of universal visual features, retain edge, texture, gradient, and shape detectors, and reduce computational cost. The top 50 DenseNet layers were then unfrozen for fine-tuning, allowing for specialization towards neurological abnormalities in MRI scans, and the BatchNormalization layers were kept frozen to stabilize feature distribution and prevent fine-tuning instability. A custom classification head was added to sort the MRIs by disease type, and GlobalAveragePooling2D was used to reduce the feature map dimensions, lower parameter count, preserve important feature information, and prevent overfitting. Batch normalization layers were added after a 512 neuron ReLU dense layer and a 256 neuron ReLU dense layer to improve gradient flow and stabilize activation. ReLU activation functions were used to introduce nonlinearity and learn complex disease relationships. L2 regularization was added to improve generalization and maintain a weighting balance. Fifty percent and forty percent dropout layers were applied respectively to each dense layer to reduce memorization and neuron co-dependency, and the final classification layer was a dense layer with softmax activation to select the most likely neurological disorder. Label smoothing was used to reduce overconfidence in predictions, and the Adam optimizer was selected to adapt learning rates efficiently through momentum-based updates.</p><p>Training was performed in two stages. During the first stage, the pretrained DenseNet backbone remained mostly frozen while the classification head and the unfrozen upper DenseNet layers were trained. This allowed the newly added classifier layers to adapt to the neurological MRI dataset while gradually refining higher-level ImageNet features without disrupting the pretrained extraction of generic visual patterns. During the second stage, fine-tuning continued using a lower learning rate, enabling the trainable DenseNet layers to further specialize toward recognizing subtle MRI abnormalities and improving neurological disease discrimination between classes. Early stopping was used to restore the best-performing model if validation accuracy ceased improving, while ReduceLROnPlateau automatically reduced the learning rate when validation loss plateaued to promote stable convergence. Finally, the fully trained model was evaluated on the independent test set to estimate its ability to generalize to previously unseen MRI scans.</p><p>Upon running the DenseNet CNN, the trained model eventually achieved a final training accuracy of 87.88%, highlighting how it successfully learned discriminative features for neurological disorder classification. When evaluated on the validation data upon each epoch, the model achieved a final accuracy of 87.10%, indicating it not only had good generalization during training but also effective tuning. On the unseen test data set, the model obtained an accuracy of 86.95% , highlighting that it maintains robust performance on unseen brain MRI scans, especially impressive given that the established accuracy of neurological, given evaluation from radiologists on brain MRI scans, is roughly 80%. The slight decrease in accuracy from training to test data does suggest minuscule overfitting, but given the complexity and variability of medical imaging data, these results indicate very clearly that with transfer learning, a CNN is capable of effectively distinguishing neurological disorders from one another on brain MRIs at an accuracy rivaling radiologists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-1Wsu3rIWLMaqR3lnFzeA.png" /></figure><p>It is important to understand however, that while these CNN models are able to process brain MRI data at slightly higher accuracies, they are unable to explain their reasoning on why or why not they flagged images as a certain neurological disorder, operate under a lack of crucial holistic context such as full medical history, lifestyle factors, prior treatments, and personality, and are trained on specific demographics on mostly clean data, so they cannot account for underrepresented populations or noise on medical imaging in the same adaptive efficiency that experienced clinical professionals can. Due to this discrepancy, coupled with the almost identical accuracy results, they should be utilized as tools to assist radiologists and physicians in their decision-making ability and efficiency in spaces of doubt, pressure, uncertainty, and fatigue to reduce mishandled cases or support earlier detection of these deadly conditions.</p><p>Work Cited</p><p>Fatahi, Ali. “MCND Dataset — Multi-Class Brain MRI Scans.” Kaggle.com, 2025, <a href="http://www.kaggle.com/datasets/alifatahi/multi-class-neurological-disorder-mcnd-dataset.">www.kaggle.com/datasets/alifatahi/multi-class-neurological-disorder-mcnd-dataset.</a> Accessed 9 June 2026.</p><p>The Lancet Neurology. “The Lancet Neurology: Neurological Conditions Now Leading Cause of Ill Health and Disability Globally, Affecting 3.4 Billion People Worldwide | Institute for Health Metrics and Evaluation.” <a href="http://www.healthdata.org,/">Www.healthdata.org,</a> 14 Mar. 2024, <a href="http://www.healthdata.org/news-events/newsroom/news-releases/lancet-neurology-neurological-conditions-now-leading-cause-ill.">www.healthdata.org/news-events/newsroom/news-releases/lancet-neurology-neurological-conditions-now-leading-cause-ill.</a></p><p>‌World Health Organization. “Dementia.” World Health Organization, 31 Mar. 2025, <a href="http://www.who.int/news-room/fact-sheets/detail/dementia.">www.who.int/news-room/fact-sheets/detail/dementia.</a></p><p>“Securly — Geolocation Sharing.” Mhanational.org, 2025, mhanational.org/resources/neurons-how-the-brain-communicates/.</p><p>Bordal, Christian. “What Causes Alzheimer’s?” Cedars-Sinai.org, Cedars-Sinai, 20 Nov. 2025, <a href="http://www.cedars-sinai.org/stories-and-insights/healthy-living/what-causes-alzheimers.">www.cedars-sinai.org/stories-and-insights/healthy-living/what-causes-alzheimers.</a></p><p>Genentech. “The Science of Alzheimer’s Disease Explained.” Genentech: Breakthrough Science. One Moment, One Day, One Person at a Time., 2 Aug. 2022, <a href="http://www.gene.com/stories/the-science-of-alzheimers-disease-explained.">www.gene.com/stories/the-science-of-alzheimers-disease-explained.</a></p><p>‌Cleveland Clinic. “Multiple Sclerosis.” Cleveland Clinic, 25 Jan. 2024, my.clevelandclinic.org/health/diseases/17248-multiple-sclerosis.</p><p>Cleveland Clinic. “Glioma: What Is It, Causes, Symptoms, Treatment &amp; Outlook.” Cleveland Clinic, 20 Oct. 2021, my.clevelandclinic.org/health/diseases/21969-glioma.</p><p>‌“Glioma Signs and Symptoms | Memorial Sloan Kettering Cancer Center.” <a href="http://www.mskcc.org,/">Www.mskcc.org,</a> <a href="http://www.mskcc.org/cancer-care/types/glioma/glioma-signs-and-symptoms.">www.mskcc.org/cancer-care/types/glioma/glioma-signs-and-symptoms.</a></p><p>Mayo Clinic. “Meningioma — Symptoms and Causes.” Mayo Clinic, 29 Mar. 2024, <a href="http://www.mayoclinic.org/diseases-conditions/meningioma/symptoms-causes/syc-20355643.">www.mayoclinic.org/diseases-conditions/meningioma/symptoms-causes/syc-20355643.</a></p><p>‌Cleveland Clinic. “Meningioma: Symptoms, Causes, Treatments.” Cleveland Clinic, 2022, my.clevelandclinic.org/health/diseases/17858-meningioma.</p><p>“Pituitary Tumors.” <a href="http://www.hopkinsmedicine.org,/">Www.hopkinsmedicine.org,</a> <a href="http://www.hopkinsmedicine.org/health/conditions-and-diseases/pituitary-tumors.">www.hopkinsmedicine.org/health/conditions-and-diseases/pituitary-tumors.</a></p><p>‌Kumar, Jeetendra. “What Is MRI Imaging and How Does It Work?” Associates in Neurology, 10 Mar. 2023, <a href="http://www.ainpc.com/2023/03/10/what-is-mri-imaging-and-how-does-it-work/">www.ainpc.com/2023/03/10/what-is-mri-imaging-and-how-does-it-work/.</a></p><p>‌Radiology, Charlotte. “Imaging’s Role in Detecting Alzheimer’s Disease.” Charlotte Radiology, 25 Nov. 2025, <a href="http://www.charlotteradiology.com/blog/imagings-role-in-detecting-alzheimers-disease/">www.charlotteradiology.com/blog/imagings-role-in-detecting-alzheimers-disease/.</a></p><p>Watts, J., et al. “Magnetic Resonance Imaging of Meningiomas: A Pictorial Review.” Insights into Imaging, vol. 5, no. 1, Jan. 2014, pp. 113–22, <a href="https://doi.org/10.1007/s13244-013-0302-4.">https://doi.org/10.1007/s13244-013-0302-4.</a></p><p>UFO Themes. “Imaging the Pituitary and Parasellar Region.” Neupsy Key, 12 Oct. 2017, neupsykey.com/imaging-the-pituitary-and-parasellar-region/. Accessed 9 June 2026.</p><p>Yan, Peng-Fei, et al. “Accuracy of Conventional MRI for Preoperative Diagnosis of Intracranial Tumors: A Retrospective Cohort Study of 762 Cases.” International Journal of Surgery, vol. 36, Dec. 2016, pp. 109–17, <a href="https://doi.org/10.1016/j.ijsu.2016.10.023.">https://doi.org/10.1016/j.ijsu.2016.10.023.</a></p><p>IBM. “Convolutional Neural Networks.” Ibm.com, 6 Oct. 2021, <a href="http://www.ibm.com/think/topics/convolutional-neural-networks.">www.ibm.com/think/topics/convolutional-neural-networks.</a></p><p>GeeksforGeeks. “ML | Transfer Learning with Convolutional Neural Networks.” GeeksforGeeks, 23 Nov. 2019, <a href="http://www.geeksforgeeks.org/deep-learning/ml-transfer-learning-with-convolutional-neural-networks/">www.geeksforgeeks.org/deep-learning/ml-transfer-learning-with-convolutional-neural-networks/.</a></p><p>‌Model:</p><p><a href="https://github.com/AarushKumar0/MachineLearningModels-Google-Colab-/blob/c9afc5a9c142dad526eb632e7b190535694f21a9/Models(Updated%20due%20to%20errors%20in%20previous%20folder)/Model_2(Brain_Disease_Classification)%20(1).ipynb">https://github.com/AarushKumar0/MachineLearningModels-Google-Colab-/blob/c9afc5a9c142dad526eb632e7b190535694f21a9/Models(Updated%20due%20to%20errors%20in%20previous%20folder)/Model_2(Brain_Disease_Classification)%20(1).ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0eb3b1215eaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CNNs on Pneumonia X-Rays]]></title>
            <link>https://medium.com/@aarush.km73/cnns-on-pneumonia-x-rays-e20c161b69ae?source=rss-fea777b6eafb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e20c161b69ae</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[medicine]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Aarush Kumar]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 03:55:39 GMT</pubDate>
            <atom:updated>2026-06-07T03:55:39.194Z</atom:updated>
            <content:encoded><![CDATA[<p>Pneumonia is among the world’s deadliest infectious diseases, causing over 2.1 million deaths globally in 2021 and increasing. It is an acute inflammation in the alveoli, tiny air sacs in the lungs where gas exchange occurs. Normally, air enters the respiratory system through inhalation, travels down the respiratory tract, and reaches the alveoli, which are surrounded by capillaries. Here, oxygen moves from inhaled air into blood while carbon dioxide is exhaled from the alveoli.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*7ceour7vk6VnLqkbQgtU_g.png" /><figcaption><a href="https://www.shutterstock.com/search/alveolar-gas-exchange?image_type=illustration">https://www.shutterstock.com/search/alveolar-gas-exchange?image_type=illustration</a></figcaption></figure><p>When infected or injured by pathogens like viruses, bacteria, or fungi, these microbes often reach the lungs. Substances from the bloodstream, white blood cells such as neutrophils, and plasma proteins such as opsonins flow to the infection site to destroy the microbes, creating pus. Excessive pus damages the lungs. Neutrophils release toxic chemicals like hypochlorite, causing inflammation and fluid build-up, while plasma proteins bring water, accumulating fluid in alveoli and impairing oxygen supply. Combined, these factors result in pneumonia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*6u0HAMzbhmqezSbNP2b0rg.png" /><figcaption><a href="https://seniorservicesmidland.org/pneumonia-preventing-severe-illness/">https://seniorservicesmidland.org/pneumonia-preventing-severe-illness/</a></figcaption></figure><p>The symptoms of this disease commonly include chest pain, changes in mental awareness, cough, fatigue, fever, sweating, chills, lower body temperature, nausea, vomiting, diarrhea, and shortness of breath, which, if left untreated, could escalate to severe complications such as respiratory failure, sepsis, lung abscesses, kidney damage, skin disorders, brain swelling, and death. Due to its potentially life-threatening nature, accurate, scalable, and timely diagnostic strategies for pneumonia are essential to ensure proper treatment and survival.</p><p>Diagnosing pneumonia based on symptoms alone presents a significant challenge, as they vary greatly, ranging from coughs and fevers to severe respiratory failure, while also frequently overlapping with those for other respiratory diseases such as bronchitis and asthma. Therefore, accurate medical imaging is the best choice to confirm diagnosis and distinguish pneumonia from other conditions. The most commonly used image diagnostic methods for pneumonia are chest X-rays. A chest x-ray uses a small amount of ionizing radiation to create a 2D image of the chest, including the lungs, heart, blood vessels, airways, and bones. As pneumonia is a result of the alveoli being filled with pus, fluid, inflammatory cells, and cellular debris, in radiological images, they will appear as white/opaque areas, called infiltrates, with possible hazy or streaky markings due to potential abnormalities in lung tissue, while normal air-filled regions of the lungs appear relatively darker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*a4R6KuMhpdMrJd7ENvD3vg.png" /><figcaption><a href="https://www.news-medical.net/news/20201218/Transfer-learning-exploits-chest-Xray-to-diagnose-COVID-19-pneumonia.aspx">https://www.news-medical.net/news/20201218/Transfer-learning-exploits-chest-Xray-to-diagnose-COVID-19-pneumonia.aspx</a></figcaption></figure><p>X-ray scans are widely used in hospitals because images can be obtained within minutes, are considerably cheaper, and radiation exposure is much lower than alternatives such as computed tomography scans. However, there are issues with X-ray scans, as small abnormalities from early or latent pneumonia appear very faint and in minimal opacity, making them challenging for radiologists to visually identify. Additionally, increased tissue thickness of patients can visually impede findings on imaging, dehydrated patients with reduced fluid accumulation can make infiltrates less visible on images for the human eye, overlapping anatomical structures can obscure important abnormalities, and more, resulting in radiologists either unable to diagnose pneumonia, or mistake it with other conditions with similar resemblance on x-ray imaging such as heart failure, lung scarring, pulmonary fibrosis, and more, so much so that the general sensitivity statistics toward pneumonia diagnosis from x-rays are only 70%.</p><p>To substitute the wide possibilities of human error, Convolutional Neural Networks must be used. Convolutional Neural Networks are a type of neural network designed for image analysis, in which, instead of treating an image as a long list of numbers like other models, CNNs use the image’s spatial structure, like height, width, color, channels, and more, to learn and differentiate visual patterns. Rather than researchers having to manually decide which image features are important to analyze, remember, and learn, CNNs automatically learn features from the data, with early layers learning simple things such as edges, textures, contrast, and markings, intermediate layers learning shapes and figures, and deep layers learning complete objects and formations.</p><p>The first layer, the Convolution Layer, is when an image is represented as a 3D tensor(height, width, and depth), while small filters(kernels) move across the image, computing dot products with image pixels to create feature maps highlighting important visual characteristics. There are set strides determining how many pixels the kernels move on each step, and activation functions such as ReLU Activation that introduce nonlinearity to help learn complex relationships while preventing vanishing gradient issues. Following are pooling layers, dominantly max pooling, which reduces the image size to prevent overfitting and memory usage by selecting the largest activation value from each kernel to keep the strongest feature. Following several convolution and pooling stages, feature maps are then flattened into a 1D vector where final classification is performed through fully connected dense layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iwnNH1jtVoLfqJQysrr-Q.png" /><figcaption><a href="https://www.geeksforgeeks.org/machine-learning/introduction-convolution-neural-network/?cs=0&amp;hl=en-US&amp;biw=1374&amp;bih=837">https://www.geeksforgeeks.org/machine-learning/introduction-convolution-neural-network/?cs=0&amp;hl=en-US&amp;biw=1374&amp;bih=837</a></figcaption></figure><p>While radiologists depend on experience and manual visual interpretation that can be inconsistent and skewed by factors such as fatigue and eye-sight, CNNs can consistently recognize subtle or faint pixel-level patterns and abnormalities differentiating pneumonia from healthy lungs or alternative respiratory diseases such as bronchitis that may be easy to miss by the faults of the human eye. They are also trained on tens of thousands of medical images, far more cases than a single radiologist could realistically encounter in their practice, making them the superior choice of evaluation.</p><p>To prove that is the case, in this study, a publicly available clinical dataset of 5,836 chest X-ray images collected from a population of pediatric patients, most at risk for pneumonia, at the Guangzhou Women and Children’s Medical Center was used, in which the images were split into two categories: Normal, containing images of healthy lungs alongside images of lungs with non-pneumonia respiratory diseases, and Pneumonia, containing images of lungs infected with varying severities of Pneumonia. All chest X-rays were anterior-posterior view X-rays, the standard imaging technique, and before inclusion in the dataset, all images went through quality control screening to ensure reliable training data. The diagnostic labels were assigned and verified by two expert physicians, and the dataset was pre-split into training, validation, and test sets to ensure proper model evaluation and prevent data leakage. Augmentation and class weighting techniques were applied during training to improve generalization and reduce potential bias. Images were resized and normalized prior to input into the model.</p><p>The model itself was created for binary image classification, created to classify chest X-rays into either Pneumonia(1) or Normal(0). The input images from the dataset were resized to 150x150 pixels, with each image having 3 color channels, and normalized using pixel values scaled to the range [0,1]. To improve generalization and prevent overfitting, training data had random rotation up to 20 degrees, horizontal and vertical shift up to 10%, shear transformations of 10%, zoom variations of 10%, horizontal flipping, and pixel interpolation for transformed edges, simulating real-world variation in X-ray position/quality.</p><p>The architecture of the model was set up with a 2D convolutional block of 32 filters, a 3x3 kernel size, ReLU activation, and 2D MaxPooling with a 2x2 pool size. The 2nd convolution block had 64 filters, a 3x3 kernel size, ReLU activation, and 2D MaxPooling with a 2x2 pool size. The final convolution block consisted of 128 filters, a kernel size of 3x3, ReLU activation, and another maxpooling with a 2x2 size. The features were then flattened into a 1D feature vector, followed by a Dense layer of 256 neurons, activation ReLU, 50% dropout rate, and another Dense layer of 128 neurons, activation ReLU, and a 30% dropout rate. The output layer was simply 1 neuron producing probability scores, evaluating pneumonia if the probability was greater than or equal to 0.5. ReLU was used in hidden layers to introduce non-linearity and prevent the vanishing gradient problem, dropout was used to prevent overfitting by randomly disabling neurons during training, class weighting was automatically computed using sklearn to prevent model bias towards the majority class in the dataset, and a training strategy of 30 epochs, batch sizes of 32, shuffling, and validation sets was used. The model is trained using the Adam optimizer and binary cross-entropy loss function, which are appropriate for two-class classification tasks. Additionally, early stopping is used to halt training when validation performance ceases to improve, and a learning rate reduction strategy is implemented to refine convergence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDVlgD_IXh8O7cV_KZIXBg.png" /></figure><p>Upon running the CNN, the trained model eventually achieved a final training accuracy of 93.09%, highlighting how it successfully learned discriminative features for pneumonia detection. When evaluated on the validation data upon each epoch, the model achieved a final accuracy of 89.15%, indicating it not only had good generalization during training but also effective tuning. On the unseen test data set, the model obtained an accuracy of 91.52% on properly predicting Normal X-ray images and 85.97% on properly predicting Pneumonia X-ray images for an all-around accuracy of 88.71%, highlighting that it maintains robust performance on unseen chest X-ray images, especially impressive given that the established accuracy of chest X-rays given evaluation from radiologists is roughly 70%. The slight decrease in accuracy from training to test data does suggest some minimal overfitting, but given the complexity and variability of medical imaging data, these results indicate very clearly that a CNN is capable of effectively distinguishing pneumonia chest X-rays from others at a greater accuracy than radiologists.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5xalqXiywe8tndY_BS0jQ.png" /></figure><p>It is important to understand however, that while these CNN models are able to process vast amounts of data, they are unable to explain their reasoning on why they flagged images as pneumonia or not, operate under a lack of crucial holistic context such as full medical history, lifestyle factors, prior treatments, and personality, and are trained on specific demographics on mostly clean data, so they cannot account for underrepresented populations or noise on medical imaging in the same adaptive efficiency that experienced clinical professionals can. Therefore, while they are statistically smarter, they should be utilized as tools to assist radiologists and physicians to enhance their decision making accuracy and efficiency in spaces of doubt and uncertainty to reduce missed cases and support earlier detection of this dangerous disease.</p><p>Resources:</p><p>Pneumonia Biology. “What Is Pneumonia? | Pneumonia Biology.” Bu.edu, 2021, <a href="http://www.bumc.bu.edu/pneumonia/background/what/">www.bumc.bu.edu/pneumonia/background/what/.</a></p><p>Mayo Clinic. “Pneumonia.” Mayo Clinic, Mayo Clinic Staff, 13 June 2020, <a href="http://www.mayoclinic.org/diseases-conditions/pneumonia/symptoms-causes/syc-20354204.">www.mayoclinic.org/diseases-conditions/pneumonia/symptoms-causes/syc-20354204.</a></p><p>Al Nufaiei, Ziyad, and Khalid Alshamrani. “Comparing Ultrasound, Chest X-Ray, and CT Scan for Pneumonia Detection.” Medical Devices: Evidence and Research, vol. Volume 18, Informa UK Limited, Mar. 2025, pp. 149–59, <a href="https://doi.org/10.2147/mder.s501714.">https://doi.org/10.2147/mder.s501714.</a></p><p>IBM. “Convolutional Neural Networks.” Ibm.com, 6 Oct. 2021, <a href="http://www.ibm.com/think/topics/convolutional-neural-networks.">www.ibm.com/think/topics/convolutional-neural-networks.</a></p><p>‌Mooney, Paul. “Chest X-Ray Images (Pneumonia).” <a href="http://www.kaggle.com,/">Www.kaggle.com,</a> 2018, <a href="http://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia.">www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e20c161b69ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>