<?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 Parth Kulkarni on Medium]]></title>
        <description><![CDATA[Stories by Parth Kulkarni on Medium]]></description>
        <link>https://medium.com/@parth.kulkarni20?source=rss-b6cb9ee02069------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gRXKur0j4xeBxbHY</url>
            <title>Stories by Parth Kulkarni on Medium</title>
            <link>https://medium.com/@parth.kulkarni20?source=rss-b6cb9ee02069------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:43:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parth.kulkarni20/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[MNIST Dataset as a benchmark for Neural Networks]]></title>
            <link>https://medium.com/@parth.kulkarni20/mnist-dataset-as-a-benchmark-for-neural-networks-c7074deba19f?source=rss-b6cb9ee02069------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7074deba19f</guid>
            <dc:creator><![CDATA[Parth Kulkarni]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 08:03:41 GMT</pubDate>
            <atom:updated>2023-12-06T08:20:22.733Z</atom:updated>
            <content:encoded><![CDATA[<p>The MNIST dataset is a widely used collection of handwritten digits that serves as a benchmark in the field of machine learning and computer vision. MNIST stands for Modified National Institute of Standards and Technology, and it was created by modifying the original NIST dataset to make it more suitable for training and testing various algorithms. The dataset is often used for digit recognition tasks and is considered a standard reference in the machine learning community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*2WoBemE1kCEtGY2t" /></figure><p>The MNIST dataset has played a crucial role in benchmarking and evaluating the performance of machine learning algorithms, particularly in the context of image classification. Here are some key aspects that highlight the significance of MNIST for benchmarking:</p><p><strong>Standardized Evaluation:</strong></p><p>MNIST provides a standardized and well-defined benchmark for testing the performance of machine learning models, especially those designed for image classification tasks.</p><p>Since the dataset is widely known and used, it facilitates fair and consistent comparisons between different algorithms and models.</p><p><strong>Accessibility and Simplicity:</strong></p><p>MNIST’s simplicity and accessibility make it an ideal starting point for researchers, students, and practitioners who are new to the field of machine learning and computer vision.</p><p>Its small size (in terms of both the number of images and the resolution of each image) allows for quick experimentation and iteration.</p><p><strong>Algorithm Development and Debugging:</strong></p><p>Researchers often use MNIST as a testing ground when developing and debugging new machine learning algorithms. Its manageable size and clear labels make it easier to identify issues and understand algorithm behavior.</p><p><strong>Quick Prototyping:</strong></p><p>MNIST is frequently used for quick prototyping of machine learning models. Researchers can rapidly iterate and experiment with different architectures, hyperparameters, and optimization techniques to observe their impact on classification accuracy.</p><p><strong>Educational Tool:</strong></p><p>MNIST serves as an educational tool, helping students and learners understand fundamental concepts in machine learning. It provides hands-on experience in building, training, and evaluating models.</p><p><strong>Baseline Performance Comparison:</strong></p><p>Many researchers use MNIST as a baseline for evaluating the performance of new models. Achieving high accuracy on MNIST is considered a fundamental step before progressing to more complex datasets.</p><p><strong>Transition to Larger Datasets:</strong></p><p>Successfully training models on MNIST encourages researchers to tackle larger and more challenging datasets. It serves as a stepping stone for understanding the intricacies of image classification before moving on to more realistic and complex scenarios.</p><p><strong>Community Collaboration:</strong></p><p>The widespread use of MNIST has created a common ground for researchers and practitioners to share results, methodologies, and insights. This collaborative aspect has contributed to the collective understanding of machine learning techniques.</p><p>While MNIST has been invaluable for benchmarking and educational purposes, it’s essential to note that the dataset is relatively simple compared to real-world scenarios. As a result, achieving high accuracy on MNIST is a necessary but not sufficient condition for the effectiveness of a machine learning model in more complex tasks. Researchers often progress to larger and more diverse datasets to ensure the robustness and generalization of their models.</p><h3><strong>Simple Method for High-Performance Digit Recognition Based on Sparse Coding</strong></h3><p>At the core of this solution is the application of the Sparsenet algorithm for unsupervised feature learning. Unlike conventional methods, this approach embraces simplicity without compromising on performance. It sets out to distill the essential features of handwritten digits by learning a sparse representation through basis functions.</p><p>To put it into context, the algorithm doesn’t work in isolation; it’s part of a comparative analysis that pits it against Principal Component Analysis (PCA) and Gabor wavelets. PCA serves as a benchmark, while Gabor wavelets offer insights from vision research. The goal is to not just find a solution but to find a solution that outshines the alternatives.</p><p><strong>Sparse Coding for Feature Learning</strong>:</p><p>The foundation of the methodology lies in the Sparsenet algorithm, an unsupervised learning approach. It extracts essential features from handwritten digit images by representing patches sparsely. Each image patch is decomposed into a linear combination of basis functions, leading to a sparse representation. Basis functions are crucial elements in the methodology. These functions are learned through the Sparsenet algorithm, capturing the essential patterns and structures present in the digit images. The learning process aims to identify a set of basis functions that can efficiently represent the input data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*vxYgA9UDJFWha7Og" /></figure><p><strong>Spatial Localization:</strong></p><p>What makes this method distinctive is its incorporation of a local maximum operation. Recognizing the inherent uncertainty in handwritten digits, this operation allows for spatial flexibility. It identifies key attributes in the coefficient images, essentially allowing the model to be forgiving about slight variations in positioning.</p><p>In simpler terms, think of it as viewing a digit through multiple lenses — some focusing on the most prominent features, others capturing nuances. The model doesn’t demand pixel-perfect alignment; it gracefully accommodates slight shifts and variations.</p><p>This operation introduces spatial invariance by considering both maximum and minimum values in local regions of the coefficient images. It allows the model to recognize important attributes in a flexible manner, accommodating slight variations and shifts in the input data.</p><p><strong>Digit Recognition:</strong></p><p>The journey doesn’t end with feature extraction; it extends to digit recognition using Support Vector Machines (SVM). SVMs, known for their robust classification capabilities, are employed to turn the learned features into actionable insights.</p><p>The model undergoes hyperparameter optimization to fine-tune the SVM for optimal performance. This step is crucial for achieving a balance between precision and generalization. The SoftDoubleMinOver learning algorithm is employed for efficient training. Hyperparameter optimization becomes a critical step, fine-tuning the SVM for optimal performance.</p><h3><strong>Multi-column Deep Neural Networks for Image Classification</strong></h3><p>Traditional methods of computer vision and machine learning cannot match human performance on tasks such as the recognition of handwritten digits. Their method is the first to achieve near-human performance on the very competitive MNIST handwriting benchmark.</p><p><strong>Architecture</strong></p><ol><li><strong>Depth of the Network:</strong> The architecture is deep, with 6–10 layers of non-linear neurons stacked on top of each other. This depth is inspired by the Neocognitron, a neural network model designed for pattern recognition, particularly in visual images.</li><li><strong>Training Challenges:</strong> Multi-layered DNNs, as used in this architecture, were historically challenging to train with standard gradient descent methods. However, the authors note that the speed of today’s computers, especially with the use of graphics processing units (GPUs), has overcome this limitation.</li><li><strong>Winner-Take-All Neurons:</strong> The DNN layers consist of 2-dimensional winner-take-all neurons with overlapping receptive fields. Winner-take-all means that the most active neuron in a local region inhibits the activity of others, and only the most active one “wins.” This concept is inspired by Hubel and Wiesel’s work on the cat’s primary visual cortex.</li><li><strong>Max Pooling and Down-Sampling:</strong> Max pooling is used to determine winning neurons. The layers are partitioned into quadratic regions of local inhibition, and the most active neuron in each region is selected. The winners represent a down-sampled layer with lower resolution, feeding into the next layer. This down-sampling is inspired by the workings of the cat’s primary visual cortex.</li><li><strong>Transition to 1-Dimensional Layer:</strong> At some point, down-sampling naturally leads to the first 1-dimensional layer. Subsequently, the architecture becomes a standard multi-layer perceptron (MLP). The winner-take-all regions become trivially 1-dimensional, defining the top part of the hierarchy as a standard MLP.</li><li><strong>Training Strategy:</strong> Only winner neurons are trained, meaning that other neurons cannot forget what they have learned, although they may be affected by weight changes in more peripheral layers. This approach reduces synaptic changes per time interval, corresponding to a biologically plausible reduction of energy consumption. The training algorithm is fully online, with weight updates occurring after each gradient computation step.</li><li><strong>Multi-Column DNN (MCDNN):</strong> Inspired by microcolumns of neurons in the cerebral cortex, the architecture combines several DNN columns to form a Multi-column DNN (MCDNN). Each column makes predictions independently, and these predictions are averaged democratically. The weights of all columns are randomly initialized before training, and different columns can be trained on the same inputs or on inputs preprocessed in different ways. This multi-column approach helps reduce error rates and the number of columns required to achieve a given accuracy.</li></ol><p><strong>Experimentation</strong></p><p>In the experiment, they evaluated their architecture on various object recognition benchmarks and achieved state-of-the-art results across all of them. The architecture includes two input images of size 48x48, followed by a convolutional layer with 100 feature maps and 5x5 filters, a max-pooling layer (MP) with non-overlapping regions of size 2x2, another convolutional layer with 100 feature maps and 4x4 filters, a second max-pooling layer, a fully connected layer with 300 hidden units, another fully connected layer with 100 hidden units, and a final fully connected output layer with 6 neurons (one per class).</p><p>Activation functions include scaled hyperbolic tangent for convolutional and fully connected layers, linear activation for max-pooling layers, and softmax activation for the output layer. The DNNs are trained using online gradient descent with an annealed learning rate.</p><p>During training, images undergo continuous translation, scaling, rotation, and elastic distortion (for characters), while only original images are used for validation. Training concludes when the validation error is zero or when the learning rate reaches its predetermined minimum. Initial weights are randomly drawn from a uniform distribution in the range [-0.05, 0.05].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/0*xva6qFWP3B5ZjZKU" /></figure><p>In the MNIST experiments, the authors employed a Multi-column Deep Neural Network (MCDNN) architecture and conducted a detailed analysis of its performance under various preprocessing conditions. The MNIST dataset, consisting of handwritten digits, was normalized to different widths (10, 12, 14, 16, 18, 20 pixels) to simulate different perspectives. Five DNN columns were trained for each normalization, resulting in a total of 35 columns for the entire MCDNN.</p><p>The individual DNNs were trained for approximately 800 epochs with an annealed learning rate. Training involved random distortions of digits before each epoch. The MCDNN, formed by combining predictions from multiple columns, outperformed its constituent DNNs, achieving a low 0.23% error rate on the MNIST dataset. This result represented a substantial improvement over the state of the art, coming close to the ≈0.2% error rate achieved by humans on the same task.</p><p>Moreover, training a single DNN on all seven datasets simultaneously yielded a higher error rate (0.52%) compared to both the MCDNN and individual DNNs, indicating that the improvements stemmed from the MCDNN architecture rather than increased preprocessing.</p><h3><strong>Branching/Merging CNN + Homogeneous Vector Capsules</strong></h3><p>The text introduces the concept of Homogeneous Vector Capsules (HVCs), a capsule design that employs element-wise multiplication between capsules in subsequent layers, eliminating the need for computationally expensive routing mechanisms. The advantages of HVCs are outlined, showcasing superior performance on MNIST with significantly fewer parameters, fewer training epochs, and no reconstruction sub-network compared to prior capsule designs.</p><p><strong>Novelty</strong></p><p><strong>1. Novel CNN Branching Method:</strong></p><ol><li>Introducing a novel method for branching a Convolutional Neural Network (CNN) that enables the creation of multiple effective receptive fields and levels of abstraction.</li><li>Each branch in the network makes its own classification prediction, and these predictions are merged together, each contributing a “vote.”</li><li>Conducting experiments that involve both statically weighting the votes and learning the weights of the votes via backpropagation simultaneously with the rest of the network parameters.</li></ol><p><strong>2. Classification without Fully Connected Layers:</strong></p><ol><li>Performing classification without using any fully connected layers but instead utilizing Homogeneous Vector Capsules (HVCs).</li><li>Highlighting the advantages of HVCs, such as simplicity, lower computational expense, and a network design that requires significantly fewer parameters and training epochs compared to the previously best-performing capsule network.</li><li>Eliminating the need for a reconstruction sub-network and avoiding computationally expensive routing mechanisms.</li></ol><p><strong>3. State-of-the-Art Results on MNIST:</strong></p><ol><li>Presenting a network design combined with a domain-specific set of randomly applied augmentation techniques.</li><li>Achieving a new state of the art for the MNIST dataset with an impressive accuracy of 99.87% for an ensemble of models.</li><li>Establishing a new state of the art for a single model with an accuracy of 99.83%.</li></ol><p><strong>Proposed Network Design</strong></p><ol><li><strong>Initial Architecture:</strong> The network design starts with a conventional convolutional neural network (CNN) following widely used practices, such as stacked 3 × 3 convolutions with ReLU activation and batch normalization. The number of filters in each convolutional operation increases progressively, and the final operation before classification involves softmax activation and categorical cross-entropy loss.</li><li><strong>Avoidance of Pooling Operations:</strong> The design intentionally avoids using pooling operations based on the rationale that pooling may discard valuable information. Given the small size of the MNIST data (28 × 28), there is no need for down-sampling.</li><li><strong>Branching Design:</strong> Instead of a monolithic design, the network incorporates multiple branches after the first two sets of three convolutions. Each branch consists of a certain number of convolutional operations, resulting in different effective receptive fields for each branch. The output of each branch is transformed into vectors to form the first capsule in pairs of Homogeneous Vector Capsules (HVCs).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*5g-9aX7u8mS46n7e" /></figure><ol><li><strong>Capsule Operations:</strong> Element-wise multiplication is performed between each capsule and a set of weight vectors for each class. The results are summed to form the second capsule in each pair, followed by batch normalization and ReLU activation. The second capsule vector is then reduced to a single value per class, representing branch-level logits.</li><li><strong>Reconciliation of Logits: </strong>The branch-level logits are reconciled to ensure that each image is classified into only one class. This is achieved by stacking each class’s branch-level logits into vectors of length 3 and reducing each vector to a single value through summation.</li><li><strong>Capsule Construction Methods:</strong> Two methods for constructing the first layer of capsules are mentioned: XY-Derived Capsules, where each capsule is derived from each distinct feature map, and Z-Derived Capsules, where each capsule is derived from each distinct x and y coordinate of the combination of all feature maps.</li><li><strong>Regularization and Routing:</strong> The network design omits weight decay regularization and dropout regularization to investigate generalization properties independently. No reconstruction sub-network is used, and the design avoids employing a “routing” algorithm, relying instead on traditional trainable weights and backpropagation.</li></ol><h3>References :</h3><ol><li>Ciregan, Dan, Ueli Meier, and Jürgen Schmidhuber. “Multi-column deep neural networks for image classification.” In 2012 IEEE conference on computer vision and pattern recognition, pp. 3642–3649. IEEE, 2012.</li><li>“THE MNIST DATABASE of handwritten digits”. Yann LeCun, Courant Institute, NYU Corinna Cortes, Google Labs, New York Christopher J.C. Burges, Microsoft Research, Redmond.</li><li>“Support vector machines speed pattern recognition — Vision Systems Design”. Vision Systems Design. September 2004. Retrieved 17 August 2013.<br> Gangaputra, Sachin. “Handwritten digit database”. Retrieved 17 August 2013.</li><li>Qiao, Yu (2007). “THE MNIST DATABASE of handwritten digits”. Retrieved 18 August 2013.</li><li>Platt, John C. (1999). “Using analytic QP and sparseness to speed training of support vector machines” (PDF). Advances in Neural Information Processing Systems: 557–563. Archived from the original (PDF) on 4 March 2016. Retrieved 18 August 2013.</li><li>Grother, Patrick J. “NIST Special Database 19 — Handprinted Forms and Characters Database” (PDF). National Institute of Standards and Technology.</li></ol><p>Authors :</p><ol><li>S.T. Patil</li><li>Parth Kulkarni</li><li>Soumil Paranjpay</li><li>Prathamesh Dhole</li><li>Shashank Patil</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7074deba19f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FMCW RADAR Explained]]></title>
            <link>https://medium.com/@parth.kulkarni20/fmcw-radar-explained-88afe6d3a58c?source=rss-b6cb9ee02069------2</link>
            <guid isPermaLink="false">https://medium.com/p/88afe6d3a58c</guid>
            <category><![CDATA[doppler-effect]]></category>
            <category><![CDATA[beat-frequency]]></category>
            <category><![CDATA[angular-resolution]]></category>
            <category><![CDATA[radar]]></category>
            <category><![CDATA[fmcw-radar]]></category>
            <dc:creator><![CDATA[Parth Kulkarni]]></dc:creator>
            <pubDate>Wed, 03 May 2023 22:47:27 GMT</pubDate>
            <atom:updated>2023-05-04T00:47:03.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GznHYiALuu59OmXxozb3Gg.png" /></figure><h3><strong>What is Radar ?</strong></h3><p>Radar stands for Radio Detection and Ranging. It is a radiolocation system that uses radio waves to determine the distance, angle, and radial velocity of objects relative to the location. It operates by transmitting electromagnetic energy toward objects, commonly referred to as targets, and observing the echoes returned from them.</p><p>Radar can be used in automotive for Blind Spot Detection, Rear Collision Warning, Adaptive Cruise Control and also for tracking different objects such as pedestrians, cyclists, etc. It can also be used in drones for Object Avoidance and for measuring the altitude.</p><p>Although for the Radar to be effective, it needs to be low power and compact enough to be implemented in various applications, some as mentioned above.</p><h3><strong>Continuous Wave Radar</strong></h3><p>A continuous wave (CW) radar, as its name implies, emits a continuous signal. It must therefore receive the returned signal while transmitting. Contrary to the Pulse Doppler Radar, calculating the range and velocity is non-intuitive since we don’t have a start and end point to time although there is a method to calculate . Moreover, the utility of this system is due to reduced size, weight and power.</p><h3><strong>Doppler Effect</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*dyNclrze7EZRs3cQ1WL73w.gif" /><figcaption>Fig 1. Graphical Representation of Doppler Shift</figcaption></figure><p>The Doppler effect is observed whenever the source of waves is moving with respect to an observer. The Doppler effect can be described as the effect produced by a moving source of waves in which there is an apparent upward shift in frequency for observers towards whom the source is approaching and an apparent downward shift in frequency for observers from whom the source is receding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/1*SPJm3ZSpz2Xbafl-p_-BFg.png" /></figure><p>where,</p><p>Fo = observer frequency of sound</p><p>V = speed of sound waves</p><p>Vo = observer velocity</p><p>Vs = source velocity</p><p>Fs = actual frequency of sound waves</p><h3><strong>Beat Frequency</strong></h3><p>These doppler shifts are generally minuscule and are indistinguishable from the transmitting and the receiving wave. However, it can be viewed much easily through beat frequency and will be explained with an example below.</p><p>Consider a transmitting wave of 100 GHz and consider the receiving wave of 120 Ghz ( for easy representation ). Now, to calculate the beat frequency, we first need to multiply both the sinusoidal signals and can be interpreted as the combination of new sinusoids from the equation below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*kGyWiq-Tpc_tFPO4rr0IWg.gif" /><figcaption>Fig 2. Pictorial Representation of mixing of transmitter and receiver sinusoids</figcaption></figure><p>Sum = sin(at)*sin(bt)</p><p>Sum = ½ [ cos(a-b)t + cos(a+b)t]</p><p>The low frequency component of the multiplied signal comes from subtracting the transmit and receive frequencies and this subtraction produces the beat frequency and provides the amount of doppler shift. We separate the beat frequency from the multiplied signals with a low pass filter.</p><p>Although, there is a caveat to this. If we set the receiving signal at either 80 or 120GHz, we obtain the same beat frequency i.e. 20GHz regardless. Thus, we can just acquire the speed of the target but not the direction.</p><p>To rectify this issue, we implement radar systems with complex stages. Imagine the radar sends two orthogonal signals, real and imaginary separated by 90o phase called I-Q signals as the real signal is called In-Phase and the imaginary signal is called Quadrature. Generating these complex signals gives us the direction of the target. If the quadrature signal is leading the in-phase signal, the target is moving towards the transmitter and if it is lagging behind, is moving away from the transmitter. In this way, we determine the velocity of the target.</p><h3><strong>Frequency Modulation</strong></h3><p>Distance doesn’t cause doppler shift as velocity does; instead, it produces a time shift due to time delay from the object to back. If we construct a frequency vs time graph, we can state that there for constant frequency, the receiving frequency will be a straight line below or above the transmitting frequency depending upon the direction of doppler shift and the difference is the beat frequency. However if the target is stationary, the receiving frequency will again be a straight line coinciding with the transmitter frequency just with a delay of time, which is required to come back from the target. Thus, there is no difference to calculate the beat frequency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GMjBKAB45wvULS32Jy-Eig.png" /><figcaption>Fig 3. Saber tooth Graph for frequency modulation (Credits — MATLAB)</figcaption></figure><p>To get around the problem, we modulate the frequency. We linearly increase the frequency creating a saber tooth pattern. From Fig 3, we can state the difference to calculate the beat frequency.</p><p>There comes another complication to this as well. It becomes challenging to distinguish the difference caused by the doppler effect, or the time delay or a mixture of both. To overcome this, instead of using a sabertooth pattern, we use a triangular pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XyixJNtklT-mfpY4ekxh0g.png" /><figcaption>Fig 4 (a) Depicting beat frequency due to doppler shift (Credits — MATLAB)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BJKpt9WZosAuiMQKKCUGw.png" /><figcaption>Fig 4 (b) depicting beat frequency due to time delay (Credits — MATLAB)</figcaption></figure><p>Through this, we can realize that we get two beat frequencies, one on the rising side of the triangle with positive time delay and one on the falling side with negative time delay. These two delays cancel each other out and we can conclude that the beat frequency is solely created by the doppler shift. Similarly, we can realize the two beat frequencies, one on the rising edge with positive doppler and one on the falling edge with negative doppler to cancel each other out and we result in beat frequency created solely by the time delay.</p><p>We can also explain this through a doppler-range graph. The rising and falling edge creates two lines on the graph and the intersection of these lines gives us the true range and doppler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j03HkcBvdI-fbaIcIiRKMw.png" /><figcaption>Fig 5. Doppler-Range Graph (Credits — MATLAB )</figcaption></figure><p>Consider multiple targets now, and there are multiple such couples of lines intersecting each other. This creates an issue of ghosting where there are extra intersections which creates a false image of a target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZRR3BYV-QwqGwJKZi0Abw.png" /><figcaption>Fig 6. Representing the ghosting phenomenon (Credits — MATLAB)</figcaption></figure><p>This can be resolved with the change in modulation of the triangular wave such that it alternates between two triangles of different slopes thus, providing us with 4 additional beat frequencies. When these are mapped, we eliminate the ghosting phenomenon and get the true results shown in Fig 7(b).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FdLv--c64HTAOnTQhxbO3A.png" /><figcaption>Fig 7(a) Graph of multiple targets with alternative triangular wave (Credits — MATLAB)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tcj5wpkrGkVw9PnwjTtxQ.png" /><figcaption>Fig 7(b) Representing the plotting of 8 lines on the doppler-range graph (Credits — MATLAB)</figcaption></figure><p>Thus, we can comfortably calculate the velocity and distance of a target. Now, we will understand to calculate the direction, both horizontally (azimuth) and vertically (elevation)</p><h3>Determining Direction</h3><p>Let’s understand with a thought experiment. Imagine an radar with an isotropic antenna . Therefore, we have signals transmitted in every direction and we can pick up the signals from any direction as well (isotropic receiver). We can calculate the range and velocity of the target but it’s still of limited to use to track the location of the target.</p><p>To resolve this issue, we need to change the antenna. Instead of an isotropic antenna, we can use an antenna that forces a narrow beam. If it doesn’t detect, we know that the target isn’t present at that location and we can scan the entire environment by either physically moving the antenna with motors or with a fixed antenna where you electronically steer the beam by adjusting the gain and phase of the signal to each element of the array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*vAtNVz6h3349FntQmaGaTQ.png" /><figcaption>Fig 8. Radar with narrow beam antenna ( Credits — MATLAB )</figcaption></figure><p>Although there is a away to determine the angle to a target more accurately than the width of the transmit beam itself. Thus, we will have a wide beam which is fixed and still know the location of the target. This is achieved through the implementation of multiple antennas.</p><p>Consider two antenna which are apart from each other by a distance ‘d’ which is roughly half the wavelength of the transmit signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*OeQlqgU7XnDoNh_XgM841w.png" /><figcaption>Fig 9. Dual Antenna System ( Credits — MATLAB )</figcaption></figure><p>For a significant distance, the two signals reaching the antennas respectively seem parallel since the distance between the antennas is minuscule. The signal has to cover an additional distance to reach the second receiver antenna. The distanced is calculated to be d*sinθ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*-59v6tDZwBcD99uQE-lZiQ.png" /><figcaption>Fig 10. Two I-Q signals reaching to the antennas ( Credits — MATLAB )</figcaption></figure><p><strong>Angular Resolution</strong></p><p>It is the ability for the Radar to resolve two or more targets in an area. If you have low resolution Radar, two closely placed targets would seem a single target which wouldn’t be ideal to identify and classify different targets.</p><p>Resolution is the function of Radar’s aperture or the size of the antenna array. By adding more receiving antennas, we can increase the resolution of the Radar.</p><p>Increasing angle of arrival (θ), the I-Q signals from these antennas trace out a sine wave with increasing spatial frequency and this relationship can be exploited. We can simply calculate the angle to the target based on this spatial frequency. The faster the frequency, the greater is the angle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*w_Xwq2c9x9kkkgKvv5vCnQ.png" /><figcaption>Fig 11. Shows the angular resolution of two antenna array, 8 and 16 antennas ( Credits — MATLAB )</figcaption></figure><p>Till now, we’ve discussed antenna array with one transmitter and multiple receivers. There is a concept called MIMO Radar which means multiple input and multiple input. It basically translates to multiple transmitter and receiver antenna array.</p><p>Instead of implementing one transmitter and 8 receivers, we can reduce the complexity by utilizing two transmitters and 4 receivers and acquire a virtual array similar to the former system. With correct arrangement, this system performs exactly the same with 6 total antennas as the former system with 9total antennas and this saving is perceived in significance with larger arrays.</p><h3>Authors</h3><ol><li>Parth Kulkarni</li><li>Soumil Paranjpay</li><li>Jay Pargaonkar</li><li>Shashank Patil</li></ol><h3><strong>References</strong></h3><ol><li><a href="https://www.sciencedirect.com/topics/engineering/continuous-wave-radar">https://www.sciencedirect.com/topics/engineering/continuous-wave-radar</a></li><li><a href="https://www.physicsclassroom.com/class/waves/Lesson-3/The-Doppler-Effect">https://www.physicsclassroom.com/class/waves/Lesson-3/The-Doppler-Effect</a></li><li><a href="https://www.youtube.com/watch?v=-N7A5CIi0sg">https://www.youtube.com/watch?v=-N7A5CIi0sg</a></li><li><a href="https://www.youtube.com/watch?v=GpXF4wVQ-L4">https://www.youtube.com/watch?v=GpXF4wVQ-L4</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88afe6d3a58c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPERATING SYSTEM FORENSICS]]></title>
            <link>https://medium.com/@parth.kulkarni20/operating-system-forensics-371dd54c83ca?source=rss-b6cb9ee02069------2</link>
            <guid isPermaLink="false">https://medium.com/p/371dd54c83ca</guid>
            <dc:creator><![CDATA[Parth Kulkarni]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 03:27:54 GMT</pubDate>
            <atom:updated>2022-11-30T03:51:30.525Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Computer Forensics ?</strong></h3><p>Computer forensics is a multidisciplinary field concerned with the examination of computer systems which have been involved in criminal activity, either as an object or a tool of a crime. Operating System Forensics is the process of retrieving useful information from the Operating System (OS) of the computer or mobile device in question. The aim of collecting this information is to acquire empirical evidence against the perpetrator.</p><h3><strong>INTRODUCTION</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*uqg_jUSZxPKE5ArU" /></figure><p>A computer’s Operating System (OS) is the collection of software that interfaces with computer hardware and controls the functioning of its pieces, such as the hard disk, processor, memory, and many other components. Thus, Forensic investigation on an OS can be performed because it is responsible for file management, memory management, logging, user management, and many other relevant details.</p><p>The understanding of an OS and its file system is necessary to recover data for computer investigations. The file system provides an operating system with a roadmap to data on the hard disk. The file system also identifies how hard drives store data.</p><p>Data and file recovery techniques for these file systems include data carving, slack space, and data hiding. Another important aspect of OS forensics is memory forensics, which incorporates virtual memory, Windows, Linux and Mac OS memory, memory extraction, and swap spaces. OS forensics also involves web browsing artefacts, such as messaging and email artefacts.</p><p>To conduct a successful digital forensic investigation, the investigators should also have a thorough understanding of the commands or methodologies used, key technical concepts, the procedure for collecting volatile and non-volatile data, memory analysis, Windows registry analysis, cache, cookie, and history analysis, etc.</p><p>Operating systems, and the file systems they support, could be intrinsically designed and implemented in a way which makes forensic investigation less time consuming and more reliable, and assists the use of the uncovered evidence in prosecution of perpetrators. Currently there are many external software tools which investigators use, and all of them rely on the interface the operating system provides. In a sense these tools’ access to the information is “second hand”.</p><h3><strong>EXAMINATION STEPS</strong></h3><p>There are a number of methodologies for the forensic process, which define how forensic examiners should gather, process, analyze, and extract data. Digital forensics investigations commonly consist of four stages:</p><ol><li><strong>Seizure: </strong>Prior to actual examination, the digital media is seized. In criminal cases, this will be performed by law enforcement personnel to preserve the chain of custody.</li><li><strong>Acquisition: </strong>Once the assets are seized, a forensic duplicate of the data is created, using a hard drive duplicator or software imaging tool. Then the original drive is returned to secure storage to prevent tampering. The acquired image is verified with SHA-1 or MD5 hash functions and will be verified again throughout the analysis to verify the evidence is still in its original state.</li><li><strong>Analysis: </strong>After the acquisition of the evidence, files are analyzed to identify evidence to support or contradict a hypothesis. The forensic analyst usually recovers evidence material using a number of methods (and tools), often beginning with the recovery of deleted information. The type of data analyzed varies but will generally include email, chat logs, images, internet history, and documents. The data can be recovered from accessible disk space, deleted space, or the operating system <a href="https://www.upguard.com/blog/cache">cache</a>.</li><li><strong>Reporting: </strong>Once the investigation is complete, the information is collated into a report that is accessible to non-technical individuals. It may include audit information or other meta-documentation.</li></ol><h3><strong>DATA ACQUISITION</strong></h3><p>The gathering and recovery of sensitive data during a digital forensic investigation is known as data acquisition. Cybercrimes often involve the hacking or corruption of data. There are four data acquisition techniques that can be used for both static and live acquisition in operating system forensics. These approaches are:</p><ul><li><strong>Disk-to-image file:</strong> A drive running the relevant operating system can be copied once or more by a forensic examiner. Disk imaging is a form of hard drive backup that places all of a hard drive’s data into a compressed file. That file can be stored on other devices, in a file system, or in the cloud. Disk imaging allows individuals and businesses to recover all data that was on a computer when the image was made.</li><li><strong>Disk-to-disk copy:</strong> Sometimes it is not possible to create a bit-stream disk-to-image file due to software or hardware errors or incompatibilities. Investigators face such issues while trying to acquire data from older drives. Through this method, certain parameters of the hard drive may be changed but the files will remain the same.</li><li><strong>Logical acquisition:</strong> Logical acquisition involves collecting files that are specifically related to the case under investigation. This technique is typically used when an entire drive or network is too large to be copied.</li><li><strong>Sparse Acquisition:</strong> Sparse acquisition is similar to logical acquisition. Through this method, investigators can collect fragments of unallocated (deleted) data. This method is very useful when it is not necessary to inspect the entire drive.</li></ul><p>To obtain access to the files and make modifications, write-blocking utilities with Graphical User Interface (GUI) tools must be used on Linux and Windows operating systems. Many beneficial tools for digital forensics acquisition are available on a Linux Live CD.</p><h3><strong>FORENSIC ARTEFACTS </strong>( Windows OS )</h3><p>Forensic artefacts are the forensic objects that have some forensic value. Any object that contains some data or evidence of something that has occurred like logs, register, hives, and many more.</p><ol><li><strong>Recycle Bin:</strong> The windows recycle bin contains some great artefacts like:</li></ol><ul><li>$1 file : Containing the metadata.</li><li>$R file : Containing the contents of the deleted files.</li></ul><p><strong>2. Browsers:</strong> Web browsers contain a lot of information like:</p><ul><li>Cookies.</li><li>Cached website data.</li><li>Downloaded files.</li></ul><p><strong>3. Windows Error Reporting:</strong> This feature enables users to inform Microsoft about application faults, kernel faults, unresponsive application, and other application specific problems. This feature provides us with the artefact, Program Execution, if a malicious program crashes during program execution.</p><p><strong>4. LNK Files:</strong> .lnk files are the windows shortcut files. LNK files link or point to other files or executables for ease of access. You can find following information in these files:</p><ul><li>The original path of the target file.</li><li>Timestamp of both the target files and the .lnk files.</li><li>File Attributes like System, Hidden, etc.</li><li>Remote or local execution.</li><li>MAC address of the machines.</li></ul><p><strong>5. Jump Lists:</strong> They contain information about the recently accessed applications and files. This feature was introduced with Windows 7. Two types of Jump Lists can be created in Windows:</p><p>A. AUTOMATICDESTINATIONS-MS: These jump lists are created automatically when a user opens a file or an application.</p><p>B. CUSTOMDESTINATIONS-MS: These jump lists are custom made and are created when a user pins a file or an application.</p><h3><strong>TOOLS</strong></h3><p>In the 1980s, very few digital forensic tools existed, which forced forensic investigators to perform live analysis, using existing sysadmin tools to extract evidence. This carried the risk of modifying data on the disk which led to claims of evidence tampering.</p><p>The need for software to address this problem was first recognized in 1989 at the Federal Law Enforcement Training Center and resulted in the creation of IMDUMP and SafeBack. DIBS, a hardware and software solution, was released commercially in 1991.</p><p>These tools create an exact copy of a piece of digital media to work on while leaving the original disk intact for verification. By the end of the 1990s, the demand for digital evidence meant more advanced tools such as EnCase and FTK were developed, allowing analysts to examine copies of media without live forensics.</p><p>There is now a trend towards live memory forensics using tools such as WindowsSCOPE and tools for mobile devices.</p><p>Today, there are single-purpose open-source tools like Wireshark, a packet sniffer, and HashKeeper, a tool to speed up the examination of database files. As well as commercial platforms with multiple functions and reporting capabilities like Encase or CAINE, an entire Linux distribution designed for forensics programs.</p><p>In general, tools can be broken down into the following ten categories:</p><ol><li>Disk and data capture tools</li><li>File viewers</li><li>File analysis tools</li><li>Registry analysis tools</li><li>Internet analysis tools</li><li>Email analysis tools</li><li>Mobile devices analysis tools</li><li>Mac OS analysis tools</li><li>Network forensics tools</li><li>Database forensics tools</li></ol><p>Various Open Source tools are available for the analysis of data across different operating systems. The most common tools are described below.</p><ol><li>Autopsy</li></ol><p>Autopsy is a digital forensics platform and graphical interface that forensic investigators use to understand what happened on a phone or computer. It aims to be an end-to-end, modular solution that is intuitive out of the box. Select modules in Autopsy can do timeline analysis, hash filtering, and keyword search. In addition, they can extract web artifacts, recover deleted files from unallocated space, and find indicators of compromise. All of this can be done relatively rapidly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*SFBIjFsNZNE6YSaD.jpg" /></figure><p>Autopsy runs background jobs in parallel so that even if a full search takes hours, a user will know within minutes whether targeted keywords have been found. In addition, investigators working with multiple devices can create a central repository through Autopsy that will flag phone numbers, email addresses, or other relevant data points.</p><p>Developed by the same team that created The Sleuth Kit, a library of command line tools for investigating disk images, Autopsy is an open-source solution, available for free in the interests of education and transparency. Unfortunately, the latest version is written in Java, and it is currently only available for Windows.</p><p>2. Wire Shark</p><p>Wireshark is the world’s most-used network protocol analysis tool, implemented by governments, private corporations, and academic institutions worldwide. As the continuation of a project that began in 1998, Wireshark lets a user see what is happening on a network at the microscopic level. By capturing network traffic, users can then scan for malicious activity.</p><p>Captured network data can be viewed on a graphical user interface on Windows, Linux, OSx, and several other operating systems. The data can be read from Ethernet Bluetooth, USB, and several others, while the output can be exported to XML, PostScript, CSV, or plain text.</p><p>Wireshark’s applications remain primarily in cybersecurity, but there are digital forensics investigation applications. Less about the smoking gun than the breadcrumb trail, Wireshark can point an investigator in the direction of malicious activity so that it can be tracked down and investigated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*sC5KeZLeKTFmt2yC.png" /></figure><p><strong>3. X-Ways forensics</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2AVfV_j6QPGYeCz1" /></figure><p>X-ways forensic allows an investigator to look at all graphics files on a system.<strong> </strong>It offers a forensics work environment with some remarkable features, such as:</p><ul><li>Disk imaging and cloning, including under Disk Operating System (DOS)</li><li>Compatible with UDF, CDFS, ext2, ext3, NTFS, and FAT</li><li>Views and dumps the virtual memory of running processes and physical RAM</li><li>Gathers inter-partition space, free space, and slack space</li><li>Mass hash calculations for files</li><li>Ensures data authenticity with write protection feature</li><li>Automated files, signature check, and much more</li><li>Above figure shows the interface of X-Ways Forensics.</li></ul><p>4. NMap</p><p>NMAP (Network Mapper) is one of the most popular networks and security auditing tools. NMAP is supported on most of the operating systems including Windows, Linux, Solaris, MAC OS, HP-UX etc. It’s open source so free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Zlscp3_igurQYzas.png" /></figure><p>5. SIFT</p><p>The SANS Investigative Forensics Toolkit (SIFT) is a collection of open-source incident response and forensics technologies designed to perform detailed digital investigations in various settings. The toolkit can securely examine raw disks and multiple file formats in a secure, read-only manner that does not alter the evidence it discovers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/0*4JV54kBQsHJnMJ7u.png" /></figure><p>SIFT is flexible and compatible with expert witness format (E01), advanced forensic format (AFF), and raw evidence formats. Built on Ubuntu, it incorporates many separate tools (including some on this list, such as Autopsy and Volatility) and puts them at an investigator’s disposal. SIFT is available for free and updated regularly.</p><h3><strong>DATA ANALYSIS</strong></h3><p>Data analysis is done by forensic examiners to look at artefacts that criminals, hackers, viruses, and spyware have left behind. During this procedure, they check RAM, swap or page files, spool files, and deleted entries. These gathered artefacts can provide a wealth of information about malicious actors’ attempts to hide their activities and the damage they were causing to a system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UGPOddLGsL5yXr0a" /></figure><p>Investigators must address not only the obvious technical challenges but also an array of administrative and legal issues. Technical issues encompass encryption, basic questions of data storage and “anti-forensics” tactics intended to circumvent investigator efforts. The complexities of cyber threats and attacks can create significant difficulties in accurately attributing malicious activity. And while there are a variety of standards for data forensics, there aren’t mutually agreed-upon standards, nor is there a single governing body to assure that professionals are qualified and following best practices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=371dd54c83ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>