<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kiran Mak on Medium]]></title>
        <description><![CDATA[Stories by Kiran Mak on Medium]]></description>
        <link>https://medium.com/@kiranamak?source=rss-9fc8b60ca39c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*_RaZEGVT8fpuJ7iTExG33Q.jpeg</url>
            <title>Stories by Kiran Mak on Medium</title>
            <link>https://medium.com/@kiranamak?source=rss-9fc8b60ca39c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:32:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiranamak/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[The Mechanics Behind Disney’s Snow Animations]]></title>
            <link>https://levelup.gitconnected.com/the-mechanics-behind-disneys-snow-animations-29ec8d117e35?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/29ec8d117e35</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[disney]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[materials-science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 01:38:02 GMT</pubDate>
            <atom:updated>2020-06-04T12:42:04.134Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most impressive parts of Frozen was the realistic portrayal of snow.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1ES2Cmbvw5o%3Fstart%3D57%26feature%3Doembed%26start%3D57&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1ES2Cmbvw5o&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1ES2Cmbvw5o%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/00c0d1e624c0a081ad709f6ac1e95913/href">https://medium.com/media/00c0d1e624c0a081ad709f6ac1e95913/href</a></iframe><p>If you think about it, that’s actually something really hard to produce accurately. We’ve all had experience with snow so when we see graphics that have low resolution or behave slightly off, it jumps out at us. And while you know what would happen if you threw a snowball against the wall or picked up a pile and let it fall through your fingers, accurately describing it would be really hard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UNoPuQoVnj433z76.png" /></figure><p>Snow is one of those materials that’s between a solid and a liquid. You can pack it together in a snowball, but it can also fall apart into little chunks and snow flakes that can move around independently sort of like a liquid.</p><p>This is why the Material Point Method (MPM) can be so useful. MPM is a numerical algorithm that is used to simulate how materials will move and deform.</p><p>Before I go into exactly how MPM works, let’s see what the other analysis options are.</p><h3>A Particle That’s Not a Particle; a Grid That’s Not a Grid?</h3><p>There essentially three categories of analysis methods.</p><h4>1. Lagrangian</h4><p>This is a mesh-based method or a particle based method. Essentially, you put a mesh (like a metaphorical net) over the object and <strong>track the properties and movement of each particle in the mesh</strong>. Therefore, you can say that at a given time <em>t</em>, you can say that for a given particle <em>j</em>, it has a certain position, mass, volume, velocity, etc.</p><p>The Finite Element Method is one of the most commonly used algorithms, especially since it’s been around for ~75 years (they used to just do all of the calculations by hand!!). As I mentioned before, you track individual particles.</p><p>*One important note here is that particle does not actually mean atom/molecule, it’s just a bit of matter. All of these methods operate on the assumption that the materials are continuous — i.e. the matter is continuous and distributed across the entire volume (continuum mechanics).</p><h4>2. Eulerian</h4><p>This is a grid based method. Here you superimpose a fixed grid on the object and as the object moves, <strong>you track what happens in a particular cell</strong>. For example, you’d be able to say that at time <em>t</em>, water is flowing through this cell at a some velocity. This is really good at tracking diffusion.</p><h4>3. Hybrid</h4><p>This, as represented by its name, is a mix of both. It treats the object as a collection of particles at some points and as a grid at other points. <strong>MPM is a hybrid method</strong>.</p><p>There’s a few notable hybrid methods.</p><ul><li><strong>Particle in Cell (PIC) and Fluid Implicit Particle (FLIP)</strong> are the oldest methods and encompass the general idea of mixing grids and particles. FLIP is very similar to PIC, it’s just a slightly more optimized version.</li><li>Affine Particle in Cell (APIC) is an improvement upon PIC that stores momentum matrices as properties of the material.</li><li>MPM is the focus of this article, so I’ll talk more about it later. <strong>MLS-MPM (Moving Least Squares Material Point Method)</strong> is a better version of MPM and utilizes some of the ideas of information transfer from APIC to improve MPM efficiency.</li></ul><p>To help understand the pros and cons of the three methods, see the table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*goquXZLNs1PM9IijnOh2Qg.png" /><figcaption>Comparison chart</figcaption></figure><h3>MPM Algorithm</h3><p>All of the math that goes into this is honestly a mess to look at (and I enjoy math), so I’m going to keep it all theory here. If you’re curious, I’ll link a resource at the bottom.</p><p><strong>In general:<br></strong>We already know that MPM treats a material both as a collection of points and a fixed grid. In fact, <strong>the grid is just a temporary “white board”</strong> that’s used for calculations and gets wiped clean each time step.</p><p>The particle stores its individual position, mass, volume, velocity, etc. Then, when you compute how it should move over the next <em>∆t</em>, you transfer the particles’ information to the grid. The grid takes all of the particles and computes the new velocities which is then transferred back to the particles. The particles move to their new position and the process repeats.</p><h4>Step by step:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0B7kRk3menOesiD-.png" /><figcaption><a href="https://www.seas.upenn.edu/~cffjiang/research/mpmcourse/mpmcourse.pdf">https://www.seas.upenn.edu/~cffjiang/research/mpmcourse/mpmcourse.pdf</a></figcaption></figure><ol><li><strong>Particle to grid transfer (P2G)</strong> — Transfer the particle quantities to the grid. This is done using a weight function; each particle contributes mass and momentum to a particular voxel in the grid proportional to its distance from the cell.</li><li><strong>Compute grid velocities</strong> — At each node in the grid, <em>velocity = momentum/mass</em>. If the at that point is 0, the grid velocity is 0.</li><li><strong>Identify degrees of freedom </strong>— The only grid nodes that have the freedom to move are those that have mass. All of the others are already known quantities.</li><li><strong>Compute grid forces</strong> — Calculate the forces acting at each grid node due to the elastic stresses of nearby particles.</li><li><strong>Update grid velocity</strong> — Taking into consideration boundary conditions and collisions, determine the velocity at each grid node.</li><li><strong>Particle deformation gradient</strong> — At the beginning of this process, the grid is always reset. In this step, we determine how the grid, and thus the particles on the grid, should deform. This deformation is imaginary for the grid, it’s just used to be able to calculate new particle velocities.</li><li><strong>Grid to particle transfer (G2P)</strong> — Compute new particle velocities and map them from the grid to the applicable particle.</li><li><strong>Particle advection</strong> — Move the particles according to their new velocities over the next time step.</li><li><strong>Reset the grid</strong> — The grid is just a place to compute and store calculations. it gets reset each solve step.</li><li><strong>Repeat</strong> — This happens over and over to compute the longer term movement.</li></ol><h4>A quick note about MLS-MPM</h4><p>If you remember from before, MLS-MPM, or Moving Least Squares Material Point Method, is a version of MPM that speeds up computation.</p><p>In MPM, each time we transferred the particle velocities to the grid, the grid had to perform both grid interpolation (mapping particles to the grid according to weight functions) and gradient calculations on those functions to determine how the particles would move. With MLS-MPM, we don’t need to do gradient calculations.</p><p>MLS-MPM uses some of the methods from APIC which stores a small affine matrix at each particle with some extra context on how particles will move.</p><h3>Summary</h3><ul><li>Lagrangian = particle based; Eulerian = grid based</li><li>Hybrid methods have the best of both worlds. They can deal with large topological changes and can deal with multi-material and multi-phase simulations.</li><li>MPM has information that is stored with a particle. The information is transferred to a grid where gradient calculations are performed to calculate new velocities. The new velocities are transferred back and the particles are advected.</li><li>This is a powerful tool in computer graphics and simulations.</li><li>While in this article I only talked about velocity, the materials can also be given other properties like viscosity, Young’s modulus, etc.</li></ul><p><em>Thank you for reading and I hope this was helpful! MPM is a really cool tool to enable amazing graphics simulations. If you’re interested in talking more about computational materials science or work in the field and would be willing to give advice, feel free to reach out :)</em></p><h4>Other Resources:</h4><ul><li><a href="https://www.seas.upenn.edu/~cffjiang/research/mpmcourse/mpmcourse.pdf">https://www.seas.upenn.edu/~cffjiang/research/mpmcourse/mpmcourse.pdf</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29ec8d117e35" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/the-mechanics-behind-disneys-snow-animations-29ec8d117e35">The Mechanics Behind Disney’s Snow Animations</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finite Element Analysis]]></title>
            <link>https://medium.com/swlh/finite-element-analysis-f8eaba1ae54?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8eaba1ae54</guid>
            <category><![CDATA[materials-science]]></category>
            <category><![CDATA[finite-element-analysis]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Fri, 29 May 2020 13:15:03 GMT</pubDate>
            <atom:updated>2020-05-29T22:13:08.227Z</atom:updated>
            <content:encoded><![CDATA[<p>The Finite Element Method is a commonly used tool in engineering used to understand natural processes. It’s kind of like if you had to count a pile of marbles. You wouldn’t be able to just stare at the pile and figure out how many marbles there were. You’d probably group the marbles into 5’s or 10’s and then count the larger groups.</p><p>In FEM:</p><ul><li>You take a surface and cut it up into small groups called elements.</li><li>Then you find a simpler representation of the element (instead of 1+1+1+1+1, you’d say a group of 5).</li><li>And finally, combine all of the groups into one result</li></ul><p>If you think about it, this is actually the same process by which one estimates definite integrals using Riemann sums. In fact, FEM is essentially applying Riemann sums to more complex, multi-dimensional problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*5BIFp9sSP-fJxXX0.png" /><figcaption>To estimate the area under the curve, you break the curve up into strips and approximate the area as a trapezoid. Adding all of the trapezoidal areas ~ gives the total area.</figcaption></figure><p>In this article I’m going to go more into the math behind FEA, but if you’re looking for an analogy based framework, you can read my other article <a href="https://medium.com/@kiranamak/finite-element-method-through-paintings-e8a270f61c5e">here</a>.</p><p>Let’s see how this method is like Riemann sums. In a 1d example, we can say <em>u</em> is a non-linear function for the dependent variable. We want to be able to approximate it using simpler linear functions, so we can use a linear combination of basis functions. Mathematically, it would be expressed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*L6ZrMs9hhX0bK7aP8-srmg.png" /></figure><p>Essentially this means we take a bunch of basis functions 𝜓ᵢ<em> </em>and multiply by a coefficient uᵢ. For example, if you were trying to create the function <em>y=x²+8x</em>, that would be a linear combination of <em>1*(x²) +8*(x)</em>.</p><p>Even more interestingly, when we do FEM, we can have a different coefficient over each interval. For example, if we were trying to create the function <em>y=x²+8x</em> from (<em>-∞, 10]</em> and <em>y=2</em> from <em>(10, ∞)</em>, then from -∞ to 10 we could have <em>1*(x²) +8*(x)+0*(1)</em>, and from 10 to <em>∞</em>, 0<em>*(x²) +0*(x)+2*(1).</em></p><p>All in all, in FEM, the coefficient for a particular function is usually 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/0*2TiJ4AmFUTwFzh08.png" /></figure><p>The blue curve <em>u</em> is approximated with the linear dotted lines. The 𝜓ᵢ triangles have a value of 1 at their respective nodes and 0 at all other nodes.</p><p>This method is highly flexible — if one area has little variation, it can all be approximated with the same basis function and if another area has high variation, you can use several basis functions as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/0*Ja11CX_UsEeZibLb.png" /></figure><h4>Part 1: Introduction</h4><p>Now that we have the theory down, let’s move on to the process.</p><p>Most natural systems are too complicated to be mathematically computed using their direct formulas. Everything is changing at all times and so if you’re calculating a function for temperature based on a heat flux equation, you need to keep track of the time and xyz coordinates, all of which are constantly changing.</p><p>Natural phenomena are frequently based on partial differential equations. These equations include expressions that determine how a dependent variable will change based on an infinitesimal change in independent variable (i.e. the derivative).</p><p>An ordinary differential equation (ODE) has only one independent variable and is structured as below: <em>constant * derivative = function(dependent var, independent var).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*wxys_dpp2Pt3mhYYMtyu_A.png" /></figure><p>Since there’s only one independent variable, ODEs are frequently solvable and will give a solution <em>T=f(t) </em>such that the dependent variable can be calculated at any instance of the independent variable.</p><p>This could be the differential for conservation of internal thermal energy. <em>⍴</em> is the density, <em>Cp</em> is the heat capacity, <em>T</em> is temperature, and <em>t</em> is time. The function <em>g</em> is a variable heat source dependent on time and temperature.</p><p>However, in all likelihood, the temperature would be different at each point. This creates a heat flux across different points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*58QgpKhRdRA1ZkXyqY2Vzg.png" /></figure><p>Here we add three more independent variables: <strong>x</strong> is the vector (x, y, z). The heat flux <strong>q</strong> is (q ₓ, qᵧ, q𝓏), and the divergence specifies the change across coordinates. Further, heat flux can also be represented as <strong><em>q</em></strong><em> = -k</em>𝛁T where<em> k</em> is the thermal conductivity; in other words, heat flux is proportional to the temperature gradient. All in all,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShoOWwjAp_YV0zl7EvFj9A.png" /></figure><p>So finally substituting back into the initial equation,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6BMenuXAWfsB1YvJ6U8sw.png" /></figure><p>This, like other PDEs, is a complex equation that can’t be solved using numerical methods so we have to use numerical approximations.</p><h4>Part 2: Weak Formulation</h4><p>The first thing we can do to simplify the problem is bring it from one of infinite dimensions to finite dimensions. Currently the solution space (of functions) is in infinite dimensions. By restricting it with boundaries, we convert the functions to vectors that share nice similar properties. This step is called a weak formulation because it relaxes the requirement that the equation hold for all points and instead just says it must hold for all functions in the Hilbert space.</p><p>How exactly does this work?</p><p>We’re going to use the same example as above at steady state, meaning that the temperature does not change with time (<em>dT/dt=0</em>). We will model this over the domain 𝛺.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPEWVxDtx9wbBOW1zUzJbg.png" /></figure><p>Then we can specify the boundary conditions. For example, let’s assume that we know the temperature along a boundary ∂𝛺₁ and the expression for the heat flux normal to another boundary ∂𝛺₂. The remaining boundaries have 0 heat flux in the outward direction (∂𝛺₃).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oiRk8SI93ShrTDMNvoIHRg.png" /><figcaption><strong>n </strong>is the outward unit normal vector and h is the heat transfer coefficient</figcaption></figure><p>For a visual representation, we have something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9XYlVYY3nfGWw8TW.png" /></figure><p>We then multiply a test by a test function 𝜙 and integrate over 𝛺. 𝜙 and the solution T belong to a Hilbert space which is an infinite dimensional functional space in which all of the functions share certain nice properties that allow them to be manipulated. Therefore, we have that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rzu9iFG9FIUF6wXaswsUTw.png" /></figure><p>Using Green’s identity (like integration by parts), we end up with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*JgjXXqF5EZ9hUL_rkJ4cng.png" /></figure><p>We make the weak formulation by only requiring the above equation to hold for all test functions instead of the previous one (without the integrals) for all points in 𝛺. In this way the original PDE doesn’t have to be well defined for all points; it only needs to be equal in terms of the integral. For example, a discontinuity in the first derivative is fine because it doesn’t affect the integration.</p><h4>Part 3: Discretization</h4><p>Now that we have a weak representation and have limited the solution space, we must find an approximation of the infinite dimension Hilbert space in a finite dimensioned subspace. As we discussed at the beginning, this approximation is going to be a linear combination of basis functions φᵢ in the subspace.</p><blockquote>A set of basis functions are the only functions needed to describe a space. Every point within the space is then a linear combination of the bases. For example, in a plane, any two non-colinear vectors define the basis for the space.<br>The most simple example is &lt;0,1&gt; and &lt;1,0&gt;. By adding a coefficient times the vectors, you can get to any xy coordinate.</blockquote><p>This applies to higher dimensions as well and we get that Th, the approximation of T, can be represented as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pSVei1v4foYUPpesCKVMXw.png" /></figure><p>Substituting that back into our weak formulation gives this terribly ugly and messy equation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n0nlAc7EVWuuDissrVIXTA.png" /></figure><p>As a reminder, the unknowns are the coefficients Tᵣ. The above equation forms a system of equations of the same dimension as the finite-dimensional functional space. If there are <em>n </em>test functions, <em>j</em> goes from <em>1…n</em>, and we end up with a system of <em>n</em> equations and <em>n</em> unknowns.</p><p>If you’re familiar with matrices, then you can see that this can be easily represented in matrix form with <strong>AT</strong>h = <strong>b </strong>where <strong>T</strong> is the vector of unknowns, <strong>T</strong>h = {T₁, … Tᵢ, … Tn} and <strong>A</strong> is an <em>nxn</em> matrix with the coefficients of Tᵢ in each equation j. The vector <strong>b</strong>, then becomes a nonlinear function of the unknown coefficients of Tᵢ.</p><p>The great thing about FEM is that you can choose optimal basis functions. By having basis functions that don’t overlap much (remember the triangles at the beginning), the dotted integrals are 0 so the coefficients are frequently 0 and the contribution to the matrix is also 0. The system matrix <strong>A</strong> is therefore sparse and calculations with it are much faster.</p><p>Essentially what we did in this step was to mesh the structure, in other words, break it up into little pieces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KmwtUik-mRlraRTx.png" /><figcaption>The meshed heat sink</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z1_An_o41ENdpvwZ.png" /><figcaption>Common mesh geometries</figcaption></figure><p>Then we summarized each element with a simpler basis function. Then you can piece together each basis function to get an approximation of the entire function. One notable thing is that the smaller the mesh one uses, the more accurate the approximation would be (same as in Riemann sums).</p><h3>The Full Process:</h3><p>FEM is like infinite-dimensional Riemann sums. We begin with an unsolvable PDE that explains some natural phenomena like weather patterns and we move the problem from infinite-dimensional space to finite space in which the functions become vectors that we can combine.</p><ul><li>Weak Formulation — Give the problem boundaries and finite dimensions. Instead of needed to satisfy the equality at all points, just satisfy it for the integral of a set of functions.</li><li>Discretization — Mesh the structure into “finite elements”.</li><li>Linear Combination of Basis Functions — An approximation of the solution function is a linear combination of all of the basis functions describing each finite element.</li></ul><p>Since the basis functions are optimized for each element and don’t overlap much, their coefficient is frequently 0 leading to significant computational saves.</p><p>Overall, this is a key tool in engineering to be able to break down complex interactions into a measurable and simulate-able model.</p><p><em>Thanks for reading! Hopefully this provided you with a technical explanation of FEM but also with some context to be able to interpret the logic behind the math. As always, please feel free to reach out if you’d be interested in talking more about materials science :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8eaba1ae54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/finite-element-analysis-f8eaba1ae54">Finite Element Analysis</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finite Element Method Through Paintings]]></title>
            <link>https://kiranamak.medium.com/finite-element-method-through-paintings-e8a270f61c5e?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8a270f61c5e</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[material-science]]></category>
            <category><![CDATA[finite-element-analysis]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Fri, 29 May 2020 13:14:00 GMT</pubDate>
            <atom:updated>2020-05-29T13:15:29.948Z</atom:updated>
            <content:encoded><![CDATA[<p>How many “sections” are there in the following image?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7CQTvKCS7n6TE2QX.jpg" /></figure><p><em>I’m guessing you probably said 3 — orange, walkway, blue.</em></p><p>Now try to describe the middle section.</p><p><em>There is a walkway with two people, a man and a woman, and they are holding an umbrella. The leaves above are brownish.</em></p><p>That just divided that one section into 5 more sections. And obviously, you could keep going.</p><p><strong>The point here is that you’re able to subdivide a large image into sections that share some similarity</strong>. The smaller the section, the more similar the things in it will be and the more accurately you’ll be able to describe it.</p><p>Now try this:</p><p>Look at the following painting for 30 seconds. Then scroll down and see how much you remember.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*Veac3PcaDbE1TIFy.jpg" /></figure><p><em>What’s goes through the center of the painting?</em></p><p><em>What color(s) are the roofs on the houses on the left?</em></p><p><em>What shape is the underside of the bridge?</em></p><p><em>How many birds are there?</em></p><p><em>Who is the painter?</em></p><p><em>Is there a chimney on the building on the right side?</em></p><p>Try again for 30 seconds with this next image. Except this time, I’m going to tell you to focus on the large green building on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*BtlWiI7khPD6Fvd4.jpg" /></figure><p><em>Is the main entrance of the green building on the left or right side?</em></p><p><em>How many windows are there on the second level of the green building?</em></p><p><em>At what level in the green building is the single brown window?</em></p><p><em>What color is the clock on the central tower?</em></p><p><em>What direction is the sunlight coming from?</em></p><p><em>Is the closest person standing up?</em></p><p>Which of the questions were you able to answer? Did it change when I told you what to focus on? My guess is that in general, you were able to answer the first three questions very easily and that the final three you either didn’t get or weren’t sure about.</p><p>In the first example, the easy questions were about overarching things about the image. You had to have a vague sketch of the entire landscape. In the second example, the easy questions were about the green building even though they were more specific. You had to concentrate on one particular area very closely and remember more detail, but that came at the expense of remembering other aspects of the image.</p><p><strong>The takeaway here is that since the amount you can remember is (approximately) proportional to the time spent looking at the image, you can either choose generality or specificity</strong>.</p><p>And believe it or not, those two basic principles are the foundation of Finite Element Method (FEM), a common mathematical tool used by engineers to understand their systems.</p><p>So how exactly does this translate? As a reminder, the two points were:</p><ul><li>You can divide an image into sections that are similar; smaller sections = more accurate</li><li>You can either focus on general information or specific information from a smaller area</li></ul><p>Sectioning is really important. It provides a framework to understand and explain something.</p><p>A computer fully understands an image by storing an array of pixel colors, but to understand an image, especially in a reasonable amount of time, you don’t need to know every exact pixel color. You can work in larger sections and sum many pixels together. In a way, it’s kind of like averaging. In the first image, all of the different shades of red and yellow and orange can just be summarized as orange.</p><p>Then you can take all of the individual sections that you’ve summarized to understand the entire image.</p><p>In FEM, instead of breaking apart an image, you’re discretizing a function representation. The original function is often a complex partial derivative and so the goal is to turn it from a smooth continuous shape into finite sized chunks (instead of infinitesimally sized ones). This step is called creating a mesh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*miuxioN0CYQAxHu74MjYeA.png" /><figcaption>Two examples of discretization</figcaption></figure><p>And instead of summarizing the sections with a color, you use a very simple function to describe the shape of the space.</p><p>Then you combine all of the simple functions that describe each finite element into one master function for the entire structure.</p><h4>Now you may wonder, why would you ever want to do this?</h4><ul><li>It’s a good approximation method</li><li>It allows you to focus the computational power on the parts that matter</li></ul><p><strong>The governing equations are extremely complicated</strong>. Imagine having to create and solve a single equation that determined how a bridge would bend when a car drove over it or how a tropical cyclone will move over the ocean depending on atmospheric conditions. That would be like having to memorize the picture as a whole without separating the people from the trees from the buildings.</p><p>This method takes a continuous function and breaks it into finite elements so a computer can solve it (this is the same principle by which computers solve definite integrals as well).</p><p><strong>Second, you can focus on the important parts of the system</strong>.</p><p>When modeling a head on car crash, the impacts on the back end of the car are much less interesting so you don’t need to precisely model what happens there. You can focus your computational energy on having a highly accurate prediction for the front end.</p><p>If your job is to predict the weather, it doesn’t really matter whether the temperature is 67 or 68˚F above a cornfield in Illinois but it is highly important to understand how the exact temperature and humidity levels will change the dynamics of an oncoming hurricane.</p><p>By breaking the model into elements, you can have the most accurate representations (functions) of the important elements and less accurate representations of the others. This is like enabling you to remember specific information about the green building without needing to also go equally in depth into every other element of the image.</p><p>All in all, this is a very high level summary of FEM, an extremely important tool in engineering modeling and simulations.</p><p>Steps:</p><ul><li>Discretize — break the shape into finite elements</li><li>Summarize — find a simple function that represents each element</li><li>Combine — add together all of the simple functions into one large one to explain the entire shape</li></ul><p>Benefits:</p><ul><li>Approximation is necessary</li><li>Have different resolutions for each element, i.e. some can be more accurate than others to save computational power/time</li></ul><p>This was a very simplified explanation, so if you want more technical detail about how this process works, you can read my other article <a href="https://medium.com/@kiranamak/finite-element-analysis-f8eaba1ae54">here</a>.</p><p><em>Thank you for reading and I hope this was an intuitive explanation without being filled with formulas! Please feel free to reach out if you’re interested in talking more about materials science.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8a270f61c5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biomaterials in Medicine]]></title>
            <link>https://kiranamak.medium.com/biomaterials-in-medicine-1324e2bf11ed?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1324e2bf11ed</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[biomaterials]]></category>
            <category><![CDATA[medicine]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sat, 02 May 2020 02:18:37 GMT</pubDate>
            <atom:updated>2020-05-02T02:18:37.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Most medical devices are made of metals, plastics, and other synthetic elements.</p><p>What’s the issue with that?</p><p>Well, your body is made of organic biomaterials.</p><p><strong>So that means that inorganic medical devices automatically will be incompatible with your biological systems.</strong> What if we could do medicine using biomaterials?</p><p>We’ve survived this long using inorganic materials you might say. And yes, that’s true, but there are a lot of other benefits to using organic materials.</p><ol><li><strong>Compatibility</strong> — The more similar the two things you put together, the more likely they are to integrate.</li><li><strong>Flexibility </strong>— Your body and biological processes are flexible and can move and mold and shape around other things.</li><li><strong>Insertion and Removal</strong> — If it’s natural and flexible, it will be easier to add into the body. If/when it needs to be removed, it could be broken down by your natural bodily functions.</li><li><strong>Environment</strong> — Using natural materials is usually more environmentally friendly than synthetic things.</li></ol><p>So then what is this biomaterial?</p><h3>What is a hydrogel?</h3><p>If you’ve ever seen those little pellets you put in water that swell up to be a jello like substance, that’s a hydrogel.</p><p>Contact lenses are also hydrogels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*LuSIZi_FSKXPQrEI.jpg" /></figure><p>It’s made from a <strong>3d network of polymers that, when exposed to water, swell</strong>. You can think of it kind of like a net shape. When it’s dehydrated, it’s small and squished, but when you add water, the inside fills and the water is trapped.</p><p>This net is formed using cross linkages. Imagine if you combined string with connector pieces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*v_2CG7QCtj4EWrm1OOgf9A.png" /><figcaption>Cross-linking process</figcaption></figure><p>The strength of a hydrogel comes from its covalent bonds. It also has many hydrophilic groups (polar, water-loving sections) such as amines(-NH₂), carboxyls (-COOH), alcohols (-OH), amides(-CONH₂), sulfos (-SO₃H).</p><h4>Drug Delivery</h4><p>Hydrogels can be used for targeted drug delivery. Inside the net, you can add drug particles and use the hydrogel as a carrier to deliver the drug.</p><p>This method can be more targeted than simply injecting the drug independently because <strong>hydrogels can be engineered to respond to their environment</strong>. Hydrogel can swell or unswell in response to external stimuli like the presence of a particular chemical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BgwwlIz2P67QCaSe" /></figure><h3>What hydrogels can be used for:</h3><p>Hydrogels are still in the research phase so a lot of these studies that came out in the past few months.</p><h4>Smart Hydrogels:</h4><p>Making hydrogels respond to their outside environment is key to having targeted effects. Light, temperature, and pH were mentioned above, but going even further, scientists are <strong>embedding DNA or proteins into the hydrogel network</strong>. DNA can be used for molecular recognition and the proteins effectively give the hydrogel their own functionality.</p><h4>Pollution:</h4><p>Hydrogels can be added to water sources and used to suck up pollutants. Currently though, hydrogels are still too expensive to be used on such a large scale.</p><h4>Wound Dressings:</h4><p>A number of companies are looking into using hydrogel bandages or wound dressings. Since they’re a natural material, they can prove more sensitive to the wound. It preserves moisture, and additional healing properties like medicine can be added into the dressing.</p><h4><strong>Hydrogels x Cancer</strong>:</h4><p>MIT Researchers used PEG-PLA copolymers mixed with cellulose to carry chemotherapy drugs. <strong>The hydrogel is injected, attracts the tumor cells, delivers chemotherapy, and mops up or absorbs the dead cells. The filled hydrogel can now fill in the cavity left behind to repress further growth.</strong></p><p>This uses a non invasive injection to deliver the chemotherapy to a very targeted group of cells and limits the accidental killing of healthy cells. It also enables you to vary dosing rates over time depending on the number of tumor cells.</p><h4>Hydrogels x GI Tract:</h4><p>Hydrogels were used to create a bariatric balloon and esophageal stent. In the case of the bariatric balloon, the patient swallowed the light sensitive hydrogel and when it reached the GI tract, it swelled up. When doctors wanted to remove it, they exposed it to a small light that caused it to deflate.</p><p>Instead of needing to insert a tube from the throat into the stomach and pumping the balloon up, this process is much simpler.</p><h4><strong>Hydrogels x Osteoarthritis:</strong></h4><p>Osteoarthritis is when the cartilage in the joints break down and currently there isn’t a cure. Researchers tried injecting hydrogels into the joint to stabilize it and stop deterioration.</p><p>The hydrogel itself was actually found to stimulate new cartilage cell growth and repair. Combining stem cells with the hydrogel accelerated the process even more. This was successfully tested in horses and is beginning human trials.</p><h4>Hydrogels x Spinal Cord:</h4><p>After a spinal cord injury, cystic cavities often form, but scientists found that hydrogels can be used to fill the cavities and even support regrowth. It soothed the severed axons to prevent further damage. <strong>In 2017 clinical trials in rats, when hydrogels were injected into cystic cavities the cavities shrank! </strong>This is really exciting because the spinal cord is thought to not be able to regrow.</p><h3>In Summary:</h3><ul><li>Hydrogels are like a polymer net that can swell and deflate on cue</li><li>They can carry drugs to targeted locations</li><li>Hydrogels are being researched for use in a variety of applications from cancer to spinal cord injuries</li></ul><p><em>I hope enjoyed learning about some real time applications of hydrogels. If you work with hydrogels or you’re interested in this article and want to talk, you can contact me at kiranamak@gmail.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1324e2bf11ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Curing Chronic Diseases with Nanopore Protein Sequencing]]></title>
            <link>https://medium.com/maculax-therapeutics/curing-chronic-diseases-with-nanopore-protein-sequencing-1ad9dae66c9?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ad9dae66c9</guid>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[nanotechnology]]></category>
            <category><![CDATA[structural-biology]]></category>
            <category><![CDATA[protein]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 12:09:25 GMT</pubDate>
            <atom:updated>2021-08-18T15:12:57.288Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Proteins cary out all of the physiological processes in the human body yet we only know the structure of 20% of them</strong>. That means we have a very minimal understanding of the biological complexities that make life possible.</p><p>Further, if something goes wrong and a person gets a chronic disease, often we are unable to provide a cure simply because we do not know the detailed mechanisms causing it. And if you have protein cascades in which multiple different proteins interact and trigger each other like in Alzheimer’s, the problem becomes exponentially harder.</p><p>We literally do not understand at a small scale how our body works. If we were able to gain structural information on all of the proteins in the human proteome, we’d be able to cure chronic diseases and accelerate drug discovery.</p><p>But current methods of protein structure determination are expensive and inaccurate, often requiring weeks or months to execute. At Macula X, we don’t believe that needs to be the case. <a href="https://medium.com/maculax-therapeutics/solving-the-hardest-problems-in-structural-biology-to-save-millions-of-lives-481ee75d71b8">Learn more about our vision</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*gDzGdW22b565knYmIn2zvA.png" /></figure><p>We’ve proposed a methodology to obtain high resolution spatial information in a time and cost efficient way.</p><h3>How does the technology work?</h3><p>To determine the structure and sequence of a protein, our flow sequence includes:</p><ol><li>Purify the protein</li><li><em>Direct the protein to the nanopore</em></li><li><em>Pass the protein through a nanopore</em></li><li><em>Rotation using ATP Synthase</em></li><li><em>Expose it to gold nanoparticles to precisely determine amino acid composition on the surface</em></li><li>Measure the results from the nanopore and nanoparticles</li><li><em>Use MakuAnalyze software to synthesize the data</em></li><li><em>Use MakuFold to render an image and use machine learning to identify structural motifs</em></li></ol><p>Let’s take a look at the unique aspects of our design.</p><h4>2. Direct the protein to the nanopore</h4><p>We propose imaging proteins in vivo in addition to ex vivo, which will allow us to accurately sample biologically active conformations rather than artificially constructed ones.</p><p>With the explosion in new genomics, epigenomics, proteomics, and transcriptomics data, we believe that we can direct proteins to our nanopore site using either a nucleic acid or protein beacon that has predicted or already known binding affinity to the protein in question. Here are some ways to elucidate the composition of this molecular beacon.</p><ul><li><strong>CHIP-seq immunoprecipitation data</strong> — use data showing how proteins bind to DNA to use specific DNA sequences as potential molecular beacons.</li><li><strong>Biochemical transduction pathways</strong> — use pre-existing knowledge about how proteins interact with each other to culture another protein with known high affinity to the protein of interest.</li><li>If no CHIP-seq or PPI data already exists, we propose conducting HT-SELEX analyses to search through randomly sampled sequences of RNA libraries to identify <strong>potent small length RNA sequences</strong> that can bind to the protein of interest. Tools like Aptasim can generate error-prone pcr simulations in silico and we project that by 2030, HT-SELEX will be computationally robust and feasible.</li></ul><h4>3. Nanopore technology</h4><p>In the past decade, we’ve seen an explosion in the use of nanopore technology for DNA sequencing — and even more recently protein sequencing. We think we may have found methods to exploit these same methods — except this time to explore and determine protein structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*v_OxQ-twujGJhMzs.gif" /></figure><p>In DNA sequencing, a nanopore, or nano-scale opening in a membrane, has ionic current passed through it. <strong>The DNA strand is then fed through the opening nucleotide by nucleotide which perturbs the current flow. These fluctuations are unique to each base pair and so can be used to identify the exact sequence.</strong></p><p>Companies such as <a href="https://nanoporetech.com/">Oxford Nanopore technologies</a> have developed sequencing technologies utilizing these methods such as the ION series — small handheld devices that allow for the convenient and portable sequencing of high throughput DNA.</p><p>And even more recently, scientists have learned how to use the same technology to <strong>identify all 20 amino acids</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*UWRMXppRkSLBZogN.png" /></figure><p>We propose using a similar method except instead of passing through a single amino acid at a time, we analyze the entire protein. (Separating the amino acids obviously would disrupt the structure).</p><p>Since we’d be looking at multiple amino acids at a time — a protein is a folded tangle, not a neat chain of amino acids — that adds in significantly more complexity. Most notably, if we’re getting a single read out for each cross section of the protein, how can we separate that to determine the amino acid structure and composition of the composition?</p><h4>4. Rotation Using ATP Synthase</h4><p>A single pass through the nanopore will not give enough information, but if we rotate the protein through multiple angles, we will gain multiple representations of the same data which can be combined to provide a full picture.</p><p>To visualize this, think of a table from the top view. Now from the side. The image you get is vastly different. We’re using this same principle of <strong>looking at something from multiple angles to understand the 3d structure</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wjh5PwQc9rH3RLwCGVRyPw.png" /></figure><p>More precisely, the nanopore effectively takes repeated current measurements that indicate the amount of protein that blocks the flow of current. It can be thought of as measuring “area” of a cross-section of the protein. Then, <strong>rotating the protein through multiple angles will give different cross-section stacks that all represent the same thing in a different way</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FgmaE0fPnjZjVSmXwJNAOA.png" /><figcaption>When the cylinder is examined at different angles, you measure different cross-sections.</figcaption></figure><p>Combining all of the data then gives a complete picture.</p><h4>5. Gold Nanoparticles</h4><p>Gold nanoparticles in the nanopore will allow for specific determination of surface level amino acids.</p><p>Researchers have recently used molecular dynamics to show that <strong>nanoparticles of the same size have different binding energies to each of the twenty amino acids</strong>. Moreover, <strong>each of the twenty amino acids has preferential binding to a nanoparticle of different diameter</strong> due to the chemical composition and size of its side-chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*V2pmHdhAscBMDvOq.jpeg" /><figcaption>Each AuNP (gold nanoparticle) has a different binding affinity for each amino acid and each amino acid has different preferential binding levels for each of the different sized AuNPs as evidenced by different binding free energy levels.</figcaption></figure><p>By translating the differential binding affinities of each of the amino acids into <strong>fluorescent signals</strong>, we can computationally identify the amino acids composing a protein.</p><p>We envision using the ProtSA web server to identify the average solvent accessible surface area per residue in the unfolded conformations of the protein structure. This should provide insights into the number of gold particles needed to cover the structure.</p><h4>7. MakuAnalyze Software to Synthesize Data</h4><p>The nanopore current fluctuations across multiple rotations will be combined, likely via the use of Fourier transforms, to decompose the signal into each amino acid component part. This gives structural information which combined with more detailed sequential data from the gold nanoparticles will enable us to analyze the protein.</p><h4>8. MakuFold will use ML to Recognize Structural Motifs</h4><p>We propose using machine learning algorithms (especially algorithms in the realm of dimensionality reduction, such as PCA) to determine the secondary structure of protein elements through clustering.</p><ul><li>alpha helices</li><li>3₁₀ helices</li><li>beta pleated sheets</li></ul><p>Further, we see the possibility of utilizing machine learning algorithms like RoBERTA and NLP Transformers which have recently acquired breakthrough levels of accuracy and precision in NLP. Although primarily used in NLP, these methods have also beginning to be used in a wider variety of tasks including computational chemistry and small molecule drug design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L-4-UlXQXOOO15HX.png" /></figure><p>As opposed to traditional NLP methods like LSTMs and RNNs, they capture <strong>long term relevant dependencies</strong> in data by using something called “attention mechanisms” where they <strong>observe all of the data at once</strong> (instead of sequentially). This means they are not bound by only immediately recent data.</p><h3>Further Considerations</h3><p>This technology is still in the early stages though and while we have reasonable validation for our ideas to be convinced of their possibility, there are still numerous questions to consider in development:</p><ul><li><strong>Do existing mathematical techniques</strong> like independent component analysis (ICA), SVD, and Fourier Transform <strong>allow us to decompose the electrical signal perturbations</strong> into high resolution secondary structure motifs?</li><li>Will the <strong>cost of the gold nanoparticles</strong> still allow this to be this an economically viable proposal? Based on our calculations of the average surface accessible surface area and supporting stoichiometric calculations, the maximum amount of gold nanoparticles needed for sequencing one protein will likely be around one milligram, costing ~$80.</li><li><strong>Will our method be able to gain access to elements of structure outside of the solvent accessible surface area (especially the hydrophobic core)</strong>?</li><li><strong>How many nanopores will be required for structure determination</strong>? Current ION projects from Oxford Nanopore sequencing technologies require anywhere from 300–10000 nanopores within one sequencing flow cell. We project, given the additional complexities of protein sequencing, anywhere from 10000–1,000,000 nanopores required in tandem for high quality structure determination the single and sub angstrom level.</li></ul><p>This technology has so much potential to revolutionize structural biology and medicine. Being able to catalog protein structures through a Protein Structurome Project would help not only Macula X, but other researchers</p><ul><li>Move forward in being able to cure chronic diseases like Alzheimer’s and cancer</li><li>Develop novel drugs that can more successfully target proteins</li><li>Better utilize proteins in protein therapeutics</li><li>More accurately simulate clinical trials and reduce the time and money spent on trials that failed simply because we did not understand the underlying biology</li></ul><p>Ultimately, protein structure determination is fundamental to medicine and scientific curiosity alike. It is becoming a key bottleneck in fields such as biochemistry, longevity, and machine learning.</p><p>Our ability to unlock the key to therapeutics and understand the human code at a much deeper level extends beyond solely our genetic code (DNA and RNA) into the actual workers of the cells — the proteins — the ones that carry out all important cellular functions.</p><p><strong>We envision a world where drug discovery doesn’t take two decades. Where vaccine development to decelerate disastrous pandemics like COVID-19 doesn’t take 1 whole year. Where we’re able to provide treatments and cures to the millions of people around the world with chronic diseases that right now have no definitive and certain cure.</strong></p><p><em>Finally, we’d appreciate your help! If you have any advice or input on our technological methods, please reach out.</em></p><p><a href="https://www.notion.so/axon-labs/School-2-0-aee92f2b69574fd0a9f867539953b0fd"><em>Macula Therapeutix</em></a><em> is a company founded by Kiran Mak and Mukundh Murthy, two innovators passionate about changing the world by changing one of the most traditional and unquestioned methods that dictate how to acquire structural biology data.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ad9dae66c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maculax-therapeutics/curing-chronic-diseases-with-nanopore-protein-sequencing-1ad9dae66c9">Curing Chronic Diseases with Nanopore Protein Sequencing</a> was originally published in <a href="https://medium.com/maculax-therapeutics">MaculaX Therapeutics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving the Hardest Problems in Structural Biology to Save Millions of Lives]]></title>
            <link>https://medium.com/maculax-therapeutics/solving-the-hardest-problems-in-structural-biology-to-save-millions-of-lives-481ee75d71b8?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/481ee75d71b8</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[protein]]></category>
            <category><![CDATA[structural-biology]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[biology]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 12:06:34 GMT</pubDate>
            <atom:updated>2021-08-18T15:13:41.784Z</atom:updated>
            <content:encoded><![CDATA[<p>At Macula X, we love working on the <strong>hardest problems</strong>, diving deep into the research, brainstorming solutions, and making our vision a reality. That’s what we’re doing in the field of protein structure determination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*BDNQ82R8BMnTiFRnDSbx_w.png" /></figure><p>There are over 20,000 proteins in the human proteome, proteins that carry out all of our cellular processes from metabolism to growth to the manipulation of genetic material. So <strong>understanding exactly what these proteins are and how they carry out these functions is crucial to understanding the human body and physiological processes</strong>.</p><p>Further, understanding what can go wrong and how we can fix it will enable us to develop cures to chronic diseases such as Alzheimer’s and cancer. And detailed structural information is often essential to drug development.</p><p>It’s crazy that despite the fact that proteins are what enable us to live, we only know the structure of 20% of the proteins in our bodies.</p><p>And this fact has largely been taken for granted. The status quo in biology has been that protein structures are expensive and difficult to uncover. We could accept that and continue moving along at this pace of incremental improvements in technology and year by year slowly discover a handful of proteins, but we’d be giving up so much:</p><ul><li><strong>Curing chronic diseases </strong>— In order to even begin to propose drugs, <strong>we need to understand a mechanism by which the disease works</strong>. To date the protein data bank has 2227 proteins, <strong>while scientists predict that the human body has between 10,000 and 10 billion different species of proteins. </strong>How do we expect to efficaciously personalize medicine and cure a variety of diseases if we only know <strong>22.7% of the entire human proteome at maximum? </strong>Aside from the entire proteome — diseases that have constantly garnered scientific attention such as Alzheimers involve complex protein cascades.</li><li><strong>Efficient and accurate drug development and protein therapeutics </strong>— Traditional drug discovery takes an extremely long time (anywhere from 1–2 decades). One of the main bottlenecks here is the high barrier to entry for accessing quality protein structures which provide key structural and chemical constraints on the properties of the molecules that we must design and synthesize as potential candidates.</li><li><strong>More successful clinical trials</strong> — Clinical trials are merely a reflection of scientists’ inability to understand the innate complexity of human biochemical transduction pathways and cascades. This causes medications to have unnecessary toxicity or side effects. Opening the door to accessing protein structures would act as a large step towards faster approval of medicines.</li><li>Understanding how the human body really works</li><li>All the while burning through trillions of dollars and decades of time</li></ul><p>Despite all of the challenges due to proteins’ high molecular complexity, we kept coming back to this problem because we recognized the potential it held and realized how many lives could be saved.</p><p>With a Protein Structurome Project, we’d be able to address all of these issues and enable other researchers to do the same. With the help of advances in genomics, metabolomics, transcriptomics, and all of the other sub-omics fields, it holds the potential to revolutionize the entire field of medicine and save millions of lives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*k4qISD8oG3Xkl_1r.jpeg" /><figcaption>Researchers had mapped the entire human proteome (almost) half a decade ago — yet we don’t know the structure of the majority.</figcaption></figure><p>By mapping out the pathways involved for particular disease modules, we can gain access to so many more therapeutic targets, predict side effects, and gain a new understanding of diseases.</p><p>Central to tackling protein structure determination though is understanding the limitations in current technologies.</p><h3>Current methods are expensive, and time and space consuming</h3><p>The main technologies being used to image proteins are X-ray diffraction, Nuclear Magnetic Resonance, and the newer Cryo-Electronmicroscopy. Each of these costs <strong>millions of dollars</strong> and can be <strong>unpredictable or inaccurate</strong>, often requiring <strong>months of trial and error</strong>. Protein imaging can often be a bottleneck in research, especially at academic labs with a lack of funding.</p><h4>X-Ray Diffraction</h4><p>X-ray diffraction works by diffracting x-rays off of a crystalline array of proteins. Each protein needs to be crystallized and then placed in a 3d array where it will be placed in the path of an x-ray beam.</p><p>The x-ray beam hits the top layer and some bounces off while the rest passes through to the next layer. The same happens for each subsequent layer and the diffractions either compound or negate to give a final picture. Thus, <strong>the final image is essentially an average of all of the crystallized proteins in the lattice</strong>.</p><p>There are issues when the protein has “intrinsically disordered regions,” the flexible domains of the protein that can change shape. <strong>These domains appear differently in different crystals so when their electron density is mapped using XRD, those areas just come out to be a fuzzy blob</strong>. Often it is actually these areas that are responsible for a major part of the protein’s function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fgElfizID_d7LqNp.jpg" /></figure><h4>Nuclear Magnetic Resonance</h4><p>All nuclei are electrically charged so when they are exposed to an external magnetic field, they will jump to a higher energy level and change spin. (Remember electricity and magnetism are two parts of the same thing). Then, when the nuclei returns to its base level, it lets off energy of the same frequency as that which it increased. <strong>These radio frequencies can be mapped to specific elements</strong>.</p><p>The energy transition is also <strong>influenced by its surrounding environment</strong> so NMR can be used to get a full molecular image.</p><p>In addition to costing millions of dollars, it is difficult to prepare samples because it requires a large amount of highly concentrated solution and requires NMR active nuclei which makes it relatively insensitive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0twoN3gDAzPVTn9T" /></figure><h4>Cryo-Electronmicroscopy</h4><p>One of the issues with XRD was the intrinsically disordered regions. To solve this problem, Cryo-EM <strong>freezes proteins to -180˚C to form vitreous (glassy) ice</strong>. Then an electron beam hits the molecule and due to electron scattering, the electron changes direction when it hit the molecule without losing energy (which would disrupt the structure).</p><p>With biologic molecules there can be low contrast and for obvious reasons, preparation is difficult. Freezing the molecule so that vitreous and not crystalline ice forms is hit or miss and maintaining its temperature throughout the entire process has a high overhead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pUcJClTFrS5mhNh6.jpg" /></figure><p>Further, Cryo-EM machines can cost up to $7M and up to $10,000 per day in maintenance. The large machinery requires a special room with vaulted ceilings and a reinforced floor.</p><blockquote><strong>So to recap, the issues to solve are: cost, size, time, and accuracy.</strong></blockquote><p>We’ve proposed a solution that uses nanopore technology to identify the sequence and structure of the amino acids in a protein. <strong>We project it would be 1000x cheaper, the size of an iPhone, take a matter of minutes, not weeks, and be accurate to the angstrom level</strong>. <a href="https://medium.com/maculax-therapeutics/curing-chronic-diseases-with-nanopore-protein-sequencing-1ad9dae66c9">Read more about how it works here</a>.</p><h3>But right now this is just an idea — how can we make it a reality?</h3><p>We’re working on the cutting edge of science and innovation and are aspiring to create the seemingly impossible.</p><p>What got us here is <strong><em>curiosity</em></strong> and passion, a willingness to <strong><em>explore</em></strong> complex science and try to make sense of it. We’ve asked so many <strong><em>what if questions</em></strong> and every time we encountered a roadblock, instead of running away or pretending it didn’t exist, we iterated, researched, and brainstormed solutions.</p><p>Even though the path ahead is unclear, we persevere and because we face new challenges each day, we grow. <strong>Through repetitive trial, failure, and feedback, we’ve improved and solidified our ideas</strong>. No one can know everything, so we’ve learned and grown alongside Macula X and this continual drive to <strong>solve the hardest problems <em>because </em>they’re hard</strong> is what will push us forwards.</p><p>The Human Genome Project took 13 years of scientists working globally to sequence a single genome and now we’re able to send a spit sample to 23andMe and in 2–3 weeks and for $100, you can see your own genome. With genomic data, we’re launching into an era of personalized medicine where we can predict disease before symptoms appear and treat genetic disorders.</p><p><strong>If the genome is the script for the human body, imagine how understanding proteins, the actors, will revolutionize medicine</strong>.</p><p>We plan to launch a Human Proteome Project to structure &gt;80% of the proteins in the human proteome. We’ll be able to cure chronic diseases, simulate clinical trials, and exponentially accelerate the speed of drug discovery and protein therapeutics.</p><p>Here’s our timeline for making that happen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3bPOzrZZjGGB8tMf-PEFg.png" /></figure><p><em>We need your help! If you care about our mission to solve the hardest problems in protein structure determination to save millions of lives and are able to provide insight or guidance, please reach out; we’d love to hear from you.</em></p><p><a href="https://www.notion.so/axon-labs/School-2-0-aee92f2b69574fd0a9f867539953b0fd"><em>Macula Therapeutix</em></a><em> is a company founded by Kiran Mak and Mukundh Murthy, two innovators passionate about changing the world by changing one of the most traditional and unquestioned methods that dictate how to acquire structural biology data.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=481ee75d71b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/maculax-therapeutics/solving-the-hardest-problems-in-structural-biology-to-save-millions-of-lives-481ee75d71b8">Solving the Hardest Problems in Structural Biology to Save Millions of Lives</a> was originally published in <a href="https://medium.com/maculax-therapeutics">MaculaX Therapeutics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflection on the 2020 Virtual World Summit AI]]></title>
            <link>https://medium.datadriveninvestor.com/reflection-on-the-2020-virtual-world-summit-ai-b5f3bc219a6d?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5f3bc219a6d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[social-good]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 20:39:21 GMT</pubDate>
            <atom:updated>2020-04-11T09:17:19.941Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently got the chance to attend World Summit AI Americas … which means that <strong>as a mere high schooler, I was able to spend two days sitting in the basement listening to some of the leading experts on AI talk about their work and got the chance to talk to a few of them!!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*QSiPVFHSQhBvC6KBr_6vQw.jpeg" /></figure><p>Due to the COVID-19 pandemic, the conference was moved to a virtual format and I want to take a moment to thank the InspiredMinds team who made that possible. In fact, the experience was almost richer because it was online. Instead of only having a few minutes to talk to people in between talks, I was able to schedule 30 minutes one on one calls with the speakers and other conference-goers.</p><p><a href="https://www.datadriveninvestor.com/2020/02/12/has-general-ai-exceeded-the-intellectual-capacity-of-humans/">Has General AI Exceeded the Intellectual Capacity of Humans? | Data Driven Investor</a></p><p>The topics covered, as you can imagine, were highly diverse and approached from many different angles given that AI is so intersectional. <strong>Climate change, fighting bias in AI, robotic sensing, and ML-driven bug fixes</strong> were only a few of the research areas.</p><blockquote><strong>Something I was really struck by was the emphasis on social good and ethical responsibility.</strong></blockquote><p>It can be easy with such a ubiquitous and powerful technology to simply leverage it for profit or power, but I appreciated everyone’s commitment to protecting the privacy and using AI to make a positive difference in the world.</p><p>I want to share just a snapshot of the crazy things people are using AI for right now.</p><h4>Climate Change:</h4><p>Climate change is obviously a major pressing issue and a prime use case for AI because there is an abundance of climate and weather data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*Rd1YI6xgqNdNEj1pnQYRlA.png" /></figure><p>Alexis Hannart, CSO at Axionable, an AI consulting company supporting sustainable businesses discussed two current applications. Wind and solar renewable energy fluctuate as does energy consumption needs. Current weather models generally predict 24–36 hour time frames leaving an opportunity gap for short term forecasting. <strong>Being able to predict short term wind and solar fluctuates is necessary for us to be able to reliably use a renewable grid.</strong></p><p>He also talked about using CNNs to <strong>identify early hurricanes and other storms and predict their severity and location</strong>. While key now, this will become increasingly important as climate change causes severer storms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sEhjIvME1npCOnPm7RfIBQ.jpeg" /></figure><p>At BrainBox AI, CTO Jean-Simon Venne talked out their work in implementing a <strong>proactive HVAC system</strong>. The current heating and cooling system simply kick in whenever the temperature goes outside of its normal range, however, this forces it to overcompensate and causes the temperature to fluctuate between too low and too high and thus expends a lot of energy. Their solution uses data already collected by the sensors, runs it through an LSTM, and proactively kicks in the HVAC system. Their fully autonomous system was highly accurate and saved significant amounts of energy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqVGJp7vFDvmJl1djiB8kA.png" /></figure><p>Sasha Luccioni, a postdoctoral researcher and Director of Scientific Projects in AI for Humanity, also talked about numerous applications, many of them focused on raising awareness and getting more people involved.</p><p>She worked to identify crossways between problems and technology (information at <a href="https://www.climatechange.ai/">climatechange.ai</a>) and provided resources and ideas for jumping-off points. Some areas of research she pointed out were: <em>optimizing grid distribution, improving battery technology, optimizing transportation flow and supply chains, mapping emissions on farms, precision agriculture, planting seeds using drones based on humidity and wind, and tracking climate change coverage in the media</em>.</p><p><strong>She is also working to turn models’ predictions for what the future will look like into images that people can see</strong>. Searching your location in 50 years and seeing what 5 inches of flooding looks like makes the impacts more tangible.</p><p>And finally, she talked about the <strong>GHG emissions caused by these ML algorithms</strong>. There’s a website <a href="https://mlco2.github.io/impact/">here</a> that enables you to calculate your algorithm’s emissions so you can be more aware and maybe spend less time training your algorithm or use a more sustainably powered server.</p><h4>Ethics:</h4><p>AI relies on data and there are so many things that can go wrong.</p><p><strong>Privacy</strong> — Where the data comes from matters as does keeping the data secure. What should be the rules or policies in place to protect us? Is it acceptable to scrape images or should you have to pay for them?</p><p><strong>Bias </strong>— Since the algorithm is trained on data, <strong>if that data is biased or not diversified enough then the algorithm will be inaccurate and perpetuate biases</strong>. If you train a model to predict whether or not you will want to hire someone, it may accept fewer women as that is what your data portrayed. Audrey Boguchwal, Senior Product Manager at Samasource, talked about a <strong>study demonstrating that a computer vision algorithm that had a hard time identifying pedestrians with dark skin simply because it wasn’t given enough pictures of people with dark skin</strong> to be able to recognize them as people. That’s a major problem if our self-driving cars can’t identify some types of people as people. Thus, it’s critical to have high quality, diversified data, and continual learning for an algorithm to limit bias.</p><p><strong>Trust</strong> — What will it take for us to be able to trust AI? The point many of the speakers made was that <strong>AI is such a broad term that it really doesn’t make sense to classify and make decisions on AI as a whole</strong>. We already trust AI with many things from navigation to Siri and Alexa to routing data packages and no one has a problem with that. However, there are still many concerns, some logical some not that need to be addressed.</p><blockquote>The key to figuring out these problems is close collaboration between technical specialists, policy makers, and the public to make sure everyone is educated and that proper precautions are taken.</blockquote><h4>Robotics:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*WE292o09X6rxbDw-YsiRkA.jpeg" /></figure><p>Robotics is a great tool to understand and collect data on the natural world. School of Computer Science Director at McGill, Gregory Dudek, talked about how in many ways we have covered size, deployability, and agility, but there are still many obstacles to a fully autonomous intelligent robot.</p><p>It is difficult for robots to choose what data they should collect. He discussed a few methods to tackle this problem:</p><ul><li><strong>The scientist specifies what is interesting</strong>. This requires the scientist to clearly be able to articulate the reward and decision-making process so that the robot can implement Bayesian Reward Learning.</li><li><strong>Search for the most diverse data</strong>. In this, the robot is just allowed to wander and sends back the 6 most diverse images it finds. The issue with this is that not all diversity is good. An underwater robot taking footage of a coral sent back an image of the sand simply because it was different from the coral and an image virtually the same as another except it had a wire dangling in it. While both of these are unique, they are not useful data.</li><li><strong>Navigate to the most interesting thing</strong>. The robot was allowed to follow the most interesting part of a photo. Here it too followed novelty and after seeing one thing for a while, it got bored and moved on. However, not all of this was useful, for example, partway through it got distracted by a turtle. So the question is, how does the robot determine what is interesting in the context of its general mission?</li><li><strong>Patch detection</strong>. In the previous example when a robot followed something, it can identify the object across different frames using a CNN. Therefore, a scientist wanting to teach it what they find interesting can just label the one object interesting or not interesting and the robot will know that all of the other associated frames should have the same label.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*Z3A-Ej7A7NPohLXTpYNiMQ.jpeg" /></figure><p>On a completely separate note, Rami Wehbe, CTO and Cofounder of GlobalDWS, talked about their work using <strong>service robots to help with senior care</strong>. Their robots have “vision”, language processing, speech, and movement abilities to provide companionship and and care for seniors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*MWz-gu2MGansUfM4htYJtg.jpeg" /></figure><p>I also was able to talk to Farhad Rahbarnia, Cofounder of Notos Technologies. We talked about their work <strong>improving the efficiency of drones using biomimicry and ML to understand air currents and temperature gradients to determine the most energy-efficient flight path</strong>. Their technology allows drones to run for longer with less battery.</p><h4>Some other fun things:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1kCgBif03P41qw48xLD5Q.png" /></figure><p>Danny Tarlow is an engineer on the Google Research Brain Team looking at <strong>using AI to provide bug fix suggestions to developers</strong>. We talked about how <strong>code has structure and thus is best analyzed using a graph network</strong> instead of compressing it into linear data. In that way, it’s kind of like molecules where the structure tells you something beyond the exact formula. I also learned that there are a lot of security issues around which code you’re allowed to train on and there’s a fine balance between getting a proof of concept version of the product out for testing and making it accurate enough that it is helpful rather than hurtful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*5xLKC37MhVLX5i-Uew8fuA.jpeg" /></figure><p>I talked with Celeste Kidd, a psychologist at UC Berkley, whose lab is focusing on understanding how we learn. She discovered that <strong>our confidence in something is mostly based on recent validation</strong>. If you search something, after watching 3 3-minute videos all saying the same thing, your confidence that it is true will be extremely high and you will treat it as fact. Once you reach that point, it is nearly impossible to convince you otherwise. <strong>This issue is particularly relevant in an age with so much information online and an increasing amount of fake news</strong>. <em>Her lab now is working to figure out ways to prevent people from coming to these decisions as quickly</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*R8Wd0HV9dXl_NRqb2tdQHA.jpeg" /></figure><p>On the more technical side, Samy Bengio talked about Google’s Brain Teamwork on <strong>understanding why deep learning works</strong>. He argued that this is a really important question so that we can understand how the algorithms work and also when they won’t work.</p><p>One question is <strong>is the algorithm remembering the training data or creating generalizations</strong>? The traditional idea has been that with more parameters, the training data error will decrease, but after a certain point, the test data error will increase due to over-fitting.</p><p>They ran a test in which one algorithm was given a set of labeled data and another replica was given the same set of data except with random labels. In both cases, the training data was identified 100% accurately while the test data as labeled accurately for the correctly labeled data and not for the randomly labeled data. <strong>This means that even when the training data accuracy moves to 0, the test data can still decrease</strong> and instead of the test data error curve looking like a U, it decreases after the interpolation threshold. This is good because it means our models can be more accurate and we don’t need to worry as much about over-fitting.</p><p>The other question he discussed was <strong>whether all layers in a Neural Net are equally important</strong>. By replacing some layer’s input parameters with the initially set ones, <strong>they were able to discover that some layers were critical while others were robust</strong>. This is promising because it means only the critical layers really matter and that the others have a large degree of flexibility.</p><p>Overall this was an amazing experience, both listening to the talks and meeting with people and I learned so much about the varied applications of AI and the important ethical and security issues that ML developers have to deal with.</p><p><em>Shoutout to </em><a href="https://www.linkedin.com/in/izzygrandic/"><em>Isabella Grandic</em></a><em>, the TKS Toronto Team, and </em><a href="https://www.linkedin.com/in/michael-raspuzzi-b3409194/"><em>Michael Raspuzzi</em></a><em> for giving me the opportunity to attend! And thank you to everyone who took the time to talk with me during the conference!</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5f3bc219a6d" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/reflection-on-the-2020-virtual-world-summit-ai-b5f3bc219a6d">Reflection on the 2020 Virtual World Summit AI</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computational Materials Science Part 3 — Principal Component Analysis]]></title>
            <link>https://kiranamak.medium.com/computational-materials-science-part-3-principal-component-analysis-4933bce4fcba?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4933bce4fcba</guid>
            <category><![CDATA[materials]]></category>
            <category><![CDATA[materials-science]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 21:27:49 GMT</pubDate>
            <atom:updated>2020-05-06T18:12:34.535Z</atom:updated>
            <content:encoded><![CDATA[<h3>Computational Materials Science Part 3 — Principal Component Analysis</h3><p>This is a continuation of <a href="https://medium.com/@kiranamak/computational-materials-science-part-2-multipoint-statistics-fa65e0887a12">Computational Materials Science Part 2</a> — Multipoint Statistics, so I would highly recommend reading that first. That covered computing and visualized multipoint statistics which told us how parts of a structure were related.</p><p>Now comes the really important part, how we can actually use all of this to determine facts about the material.</p><h3>Principal Component Analysis</h3><p>A major challenge in computational materials science is the sheer amount of data, most of which is essentially useless in a given scenario. Think of how many different parameters you could use to painstakingly detail a material’s descriptors. Just like the classic peanut butter and jelly sandwhich demonstration shows how painstaking and exact one must be when coding, each material is essentially a different sandwhich with a very long procedure for how to make it.</p><p>So here’s where we distill all of the facts about a material into something useful. We are finding the … principal component (i.e. the important ones).</p><p>Let’s say we have data points xʲᵣ with r = 1, 2, … R data dimensions and j = 1, 2, … J number of data points. In a 2D plane, R would be 2, and J would be the sample size.</p><p>The data can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*wPINs2oViGqt2eZwEdfBXw.png" /><figcaption>JxR matrix with each row representing a single data point</figcaption></figure><p>If J &lt;&lt; R, or if the sample size is significantly lower than the number of descriptors, “normal” analysis would make no sense, so the question becomes: <strong>how can we analyze the data in a lower dimension to get the main idea</strong>.</p><p>Here’s a simple example to demonstrate. Currently the dataset below is represented in 2 dimensions, x and y.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*FwPRcn6b78Pe2dnPGYgnDA.png" /></figure><p>We can use a rotational transformation to distill it down into a single dimension as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QK0NRgWP8uYeTbAw_M-i7Q.png" /></figure><p>This process identifies the most objective rotational transformation that reorganizes the data into prioritized directions of maximal variance. In the second diagram, there is more variance in p₁, and almost none in p₂, thus p₁ is the variable of interest. The benefit of this process is that it can be unsupervised.</p><p>Mathematically,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pkInYc2mzYk14C55LVoQeA.png" /></figure><p>where x-hat is the representation in the new reference frame, Q is the orthogonal transformation matrix, and ⟨xᵣ⟩ is the average of all data points.</p><p>Therefore the goal is to select ^xʲ₁ such that it has the highest variance, ^xʲ₂ so that it has the next highest, etc.</p><p>To solve this we can make use of some linear algebra. (Note, this isn’t super important, so feel free to skip this next bit). We can redefine x-hat as a vector, a square matrix, and another vector:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MS2THRMc4akzJ58bsK4NRw.png" /></figure><p>And then maximizing the variance is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6WplRRLMUFjQMt5BfXA6w.png" /></figure><p>The condition simply being that {q} and {q} transpose are orthogonal.</p><p>The solution turns out to be that {q} is the eigenvector corresponding to the largest eigenvalue of the symmetric matrix [X]ᵗ[X].</p><p>After finding the first principal component, just repeat the process again except redefine the data matrix to remove all components of x₁. For example, in the xyz space, if the first principal component is x, then to find the next PC, just remove the x component, squashing the data into the yz plane, and repeat the process. Symbolically, this would be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*agEpLPoHsPigRrPMJLFJ_A.png" /></figure><h4>In summary:</h4><blockquote>{q} = principal components (PC)<br>^xʲk = PC scores/weights<br>eigenvalues are proportional to the variance along the PC<br>sum of the eigenvalues is proportional to the total variance in the ensemble</blockquote><p>When do we truncate the PCs? How do we know if we need 2 variables or 20? <strong>Conveniently, the eigenvalues are related to the variance, so we truncate based on the decay of the eigenvalues. Thus this is a data driven process that does not need to be set ahead of time.</strong></p><h3>Using PCA on ensembles to classify them</h3><p>Say we have the data matrix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*rgtHMJTI3ohvf_USCG6kfw.png" /></figure><p>Then</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpqrzwS3_CvVPW268WbDDA.png" /></figure><p>where fᵣ is the ensemble mean, α are the PC scores, and ψ are the components of the orthogonal directions from PCA.</p><p>Reducing this as before gives:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*wqM0xaF59ElT7Bs5Pi_1yw.png" /><figcaption>R-hat &lt;&lt; min(J-1, R)</figcaption></figure><h4>An Example</h4><p>Imagine we have the following dataset of images. The categories are all similar, but not exactly the same. So how can we clearly see how each of the groups are similar/different and to what degree?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*ULbrmcG_tN4cHyFHdBhJGA.png" /></figure><p>Say each micrograph above has 3 × 1⁰⁶ pixels (i.e. R = 3 million) and J is ~150. Using the techniques from above, we are able to distill the information from 3 million variables to 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwn9LDq5boH828fxw0uOBw.png" /></figure><p>As you can see above, in the lower dimensional representation, it creates patterns and naturally classifies each of the image categories. (This also means that the datasets do not need to be prelabeled). We are also able to see the relative amount of variance — the green group is much more spread apart than the blue group. This could indicate that the treatment used for the green group is much less predictable than that used for the blue group.</p><h3>Summary:</h3><ul><li>Principal component analysis enables us to convert data with a high number of variables into a simplified form that just shows the major characteristics</li><li>We do this through repeated rotational transformations and identifying the dimension of maximal variation</li><li>Nice relationships to eigenvalues and eigenvectors make analysis more convenient and allows for an entirely data driven approach</li><li>Through PCA we are able to classify sets of microstructures and determine their relative variance</li></ul><p>And the main objective from this entire series is to better understand material process-structure-property (PSP) linkages.</p><p><em>Thank you for reading to the end of this series! Hope you enjoyed learning about principal component analysis and computational materials science. If you’re interested in discussing this or are in the field and would be willing to talk with me about materials science, you can get in touch with me at kiranamak@gmail.com.</em></p><p><strong>Additional Resources:</strong></p><p><a href="https://www.coursera.org/learn/material-informatics">Materials Data Sciences and Informatics | Coursera</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4933bce4fcba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computational Materials Science Part 2 — Multipoint Statistics]]></title>
            <link>https://kiranamak.medium.com/computational-materials-science-part-2-multipoint-statistics-fa65e0887a12?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa65e0887a12</guid>
            <category><![CDATA[materials]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[materials-science]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 21:25:10 GMT</pubDate>
            <atom:updated>2020-02-09T21:28:59.030Z</atom:updated>
            <content:encoded><![CDATA[<h3>Computational Materials Science Part 2 — Multipoint Statistics</h3><p>This is a continuation of <a href="https://medium.com/@kiranamak/computational-materials-science-b23fdccc259">Computational Materials Science</a> so I would highly recommend reading that first. It left off with 1 point microstructure statistics.</p><p>It becomes more interesting though, if we look at multiple points or conditional probabilities …</p><h3>Multipoint Statistics (with 2 as a nice easy example)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*DqgU8mTEjkFWsd_JpwIAJA.png" /></figure><p>Multipoint statistics is essentially conditional probabilities. What is the probability of finding local state n in bin <strong>s</strong> while simultaneously finding the local state p in bin <strong>s</strong> + <strong>r</strong>.</p><p>As in any other instance of conditional probability, you simply multiply the probabilities of the two individual events revealing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*3F171G2fmQi0GruQwO6Wpw.png" /><figcaption>If you notice, this is almost exactly the same as before, just with two probabilities within the summation function.</figcaption></figure><p>And as before, we can remove the s from the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njbAGMm50DwWOR2w6-yClQ.png" /></figure><p>You may be wondering what that Sᵣ thing is about. That is simply the reduced number of all bins <strong>s</strong> such that <strong>s</strong> + <strong>r</strong> remains within the microstructure. For example, if you began at (3,1) instead, and attempted an <strong>r = </strong>(2,0), <strong>s</strong> + <strong>r </strong>would extend outside of the microstructure space.</p><p>As per the definition Sᵣ ≤ S, and Sᵣ = S only when the structure has periodic boundaries (it repeats in all directions infinitely).</p><p>For the purposes of clean later calculations, we shall assume periodic boundaries, but if you could not, you can simply establish a relationship between the two,</p><p><strong>r </strong>= r₁i + r₂j + r₃k; S = s₁s₂s₃ so Sᵣ = (s₁ -|r₁|)(s₂ -|r₂|)(s₃ -|r₃|)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*ps6AtsI2D0Rb72Asmf7vrA.png" /><figcaption>The equations above visually</figcaption></figure><p>Therefore,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6YnLde4lFwb6OgvCtsNL0w.png" /></figure><p>You can see that ƒⁿᵖᵣ is then the number of “success” or getting n at point s, p at point s + r over the total number of options or “trials</p><h3>Eliminating Redundancies in 2 Point Statistics</h3><p>These formulas are all great, except for the fact that they’re computationally intense to solve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*Y-Oo6hC0CZ29v3BJvvORLw.png" /></figure><p>There are a few shortcuts that we can take. ƒⁿᵖᵣ = ƒⁿᵖ-ᵣ because whether you start from s and go to s + r or start from s + r and go back to s, the probability of them being n and p are the same. Further, p=1 → n ∑ƒⁿᵖᵣ = ƒⁿ because since it goes across the whole row, it doesn’t matter where the head is, just the local state at the tail.</p><p>From a Discrete Fourier Transform (DFT), you can tell that only N-1 independent correlations exist. Thus for a 2 point statistic, only one ƒ value needs to be calculated. For a 2 point statistic, the main diagonal is the auto correlations (i.e. orange-orange or green-green), and the off diagonal is the cross correlations (i.e. orange-green or green-orange).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TTjB7lfa1GOpxyqKW___LA.png" /><figcaption>Not highly relevant, but using DFT, we can simplify the calculations.</figcaption></figure><h3>Plotting 2 Point Statistics</h3><p>If r = <strong>0</strong>, <strong>1</strong>, … <strong>S</strong>-<strong>1</strong>, we want to shift this so it is centered at 0. From that we get that r =-(<strong>S</strong>-<strong>1</strong>)/2, … -<strong>1</strong>, <strong>0</strong>, <strong>1</strong> … (<strong>S</strong>-<strong>1</strong>)/2 if S is odd, and r = -<strong>S</strong>/2, … -<strong>1</strong>, <strong>0</strong>, <strong>1</strong>, … <strong>S</strong>/2 if S is even. Since we’re using DFTs, ƒ is periodic, so ƒⁿᵖ<strong>ᵣ</strong> = ƒⁿᵖ(<strong>S</strong>+<strong>r</strong>).</p><p>We can graphically represent the statistics using the plot below. In this case it is of the black-black auto correlation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*JQrTkmBfGnPEefCt6GhD3Q.png" /></figure><p>Umm … so how are you supposed to read this you may wonder.</p><p>Well, the center is equivalent to <strong>r</strong> = <strong>0</strong>, so it’s the 1 point statistic ƒⁿ. In this case the color corresponds to 50% indicating that any given voxel has a 50% chance of being black. In other words, 50% of voxels in the large square are black.</p><p>What about that white arrow? That indicates the 2 point statistic for <strong>r</strong> = that white vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfXzxmrl9i1N2Dho9LqB3Q.png" /></figure><p>The color at the end of the white vector is maybe around 5% which means that among all of the vectors of that magnitude and direction within the microstructure, 5% will have black at the head and tail.</p><p>This same logic follows for all other vectors <strong>r</strong> within the colored plot.</p><p>Further, just by looking at it, you can see that it’s far more likely to have two blacks next to each other (i.e. as indicated by the yellow squares) rather than separated.</p><h3>Summary:</h3><ul><li>2 point statistics gives the conditional probability of finding local state n at position <strong>s</strong> and local state p at position <strong>s</strong> + <strong>r</strong>. This helps us understand the patterns within the material structure.</li><li>We can plot the two point statistics to understand localized relationships</li></ul><p>Continue reading in <a href="https://medium.com/@kiranamak/computational-materials-science-part-3-principal-component-analysis-4933bce4fcba">Computational Materials Science Part 3</a> which discuss how we can actually use this information to draw PSP linkages using principal component analysis.</p><p><a href="https://medium.com/@kiranamak/computational-materials-science-part-3-principal-component-analysis-4933bce4fcba">Computational Materials Science Part 3 — Principal Component Analysis</a></p><p><em>Thank you for reading! Hope you enjoyed learning about 2 point statistics. If you’re interested in discussing this or are in the field and would be willing to talk with me about materials science, you can get in touch with me at kiranamak@gmail.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa65e0887a12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computational Materials Science]]></title>
            <link>https://kiranamak.medium.com/computational-materials-science-b23fdccc259?source=rss-9fc8b60ca39c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b23fdccc259</guid>
            <category><![CDATA[materials-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Kiran Mak]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 21:19:38 GMT</pubDate>
            <atom:updated>2020-11-24T04:45:48.016Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding Process-Structure-Property linkages (or PSP linkages) are part of the core of materials science research. The goal is to determine how:</p><ul><li>particular treatments, for example heating a material will influence</li><li>structure, such as the arrangement and shape of the molecules will affect</li><li>material properties like stress strength</li></ul><p>This is also core to a data driven approach to materials science innovation. Typical materials science research uses brute force, trial and error methods while data science can use computation to make predictions and speed up the process leading to less time, money, and effort spent, and better materials.</p><p>Using data though has two main steps: digitizing the incoming data, and then being able to perform statistics on it.</p><p>The full process is highly complex requiring extensive materials science and mathematical knowledge, however, I will attempt to provide a simplified explanation that explores the concepts rather than emphasizing the equations.</p><p>The rest of the article will focus on the following square:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*HB8Ad3t7VLejn7Pgz3CqMw.png" /><figcaption>Here’s the first time you’ll see the nice fun square :)</figcaption></figure><p>Basically, imagine that that square represents a material, and the different colors represent two different characteristics of the material. I.e. at (0,0), it has the orange property, at (2,0), it has the green property. Also, pretend this is on the microscale, so really really small — 10^-6m.</p><h3>Key Terms:</h3><p>Before getting into it though, let’s start with an a brief description of some key terms.</p><h4>Local State</h4><p>A local state is all of the attributes that identify a microscale component of the materials’ internal structure. In this example, the local states would be orange and green.</p><p>They are written mathematically as <em>n = (pᵢ, cᵢ)</em> where <em>n</em> is the local state, <em>pᵢ </em>is the phase identifier (i.e. 0 for orange, 1 for green), and <em>cᵢ </em>is the chemical property. In this case <em>c</em> doesn’t really mean anything, but for an actual material it might be the wt% carbon or any number of other things.</p><h4>Local State Space</h4><p>A local state space is like all other mathematical spaces — it is comprised of the complete set of all theoretically possible local states. This even includes local states not actually in the given sample. For example, if the three options were orange, green, and blue, and this part just didn’t have any blue, blue would still be in the local state space.</p><p>It’s not super important, but the formal definition would be <em>H = {(pᵢ, cᵢ) | pᵢ € {a, ß, y, … }, cᵢ € Cᵖᵢ}. </em>(And yes, I know those are supposed to be containment , alpha, beta, and gamma signs).</p><h4>Microstructure Function</h4><p>The microstructure function gives the probability of finding a particular local state <em>n</em> at position <strong>x</strong>, at time <em>t</em>. (Note, from here on out, as is customary, bolded letters like <strong>x</strong> will symbolize that they are vectors)</p><p><em>n(</em><strong><em>x</em></strong><em>, t) </em>is the local state at spatial position <strong>x</strong> and time <em>t. </em>However, what’s important to not here is that, as is demonstrated in the square above, we are looking at voxels as opposed to infinitely many infinitesimally small points, thus <em>n(</em><strong><em>x</em></strong><em>, t)</em> is actually the average local state of the voxel as a whole. Clearly then, the smaller the voxels or the smaller the <em>∆t</em>, the greater the resolution.</p><p>The microstructure function is m(n, <strong>x</strong>, t) or m(n, <strong>x</strong>) which is the probability of finding local state n at position and time <strong>x</strong>, and t. In other words, the probability that given all of the 4x4 orange and green squares, in a particular one, (0,0) will be orange.</p><p>Another key distinction to make here is that between probability and probability density. Probability refers only to discretized units while probability density is used for continuous spectra. Both voxelized n and m need to be discretized to convert them into a probability (which is easier and more practical to work with). This process is actually done quite naturally given that measuring equipment itself is inherently discretized.</p><p>We’re almost ready to get into the statistics, just a few last notation things.</p><p>Just as a reminder, he’s the all important square again — it might be helpful :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*NLMw-upJa1-rpTxnzy2s3g.png" /></figure><p>We label our square pixels <strong>S</strong> = (s₁, s₂). As from before they may take on local states 0 or 1 for orange or green respectively.</p><p>We can describe them using m⁰(₁,₂) = 1, m¹(₁,₂) = 0. In other words, at (1,2), it is 100% orange, 0% green. (Fun fact: if the values of m only take 0 or 1, it is called an Eigen multistructure)</p><p>More generally it can be described as {mⁿs | s= 0, 1, … S-1, n = 0, 1, … N}. mⁿs is the total fraction of all local states from bin n in spatial bin s in the local state space. I.e. what fraction of all oranges in the local state space are in a particular location, say (1, 0). Since it is a fraction, mⁿs ≥ 1, and ∑mⁿs = 1.</p><p>And now finally for the interesting part!</p><h3>1 Point Microstructure Statistics</h3><p>Microstructure statistics are done on microstructure ensembles. Microstructure ensembles are a collection of microstructures extracted from samples generally subjected to the same processing history. For example, if you took a bunch of different woods and heated them, what would happen to the grain? You’d expect the microstructures to be similar. Thus by determining how similar and in what ways, one can begin to draw conclusions about how the processing history (heat) affected the structure (grain).</p><p>So if we say {ʲmⁿs ,j = 1, 2, … J} is the jth element of the ensemble, as stated above:</p><blockquote>Goal: identify and quantify statistics of the ensemble through local patterns (spacial correlations/fingerprints)in the internal morphology of the material structure.</blockquote><p>The expected value, or overall volume fraction of total local states identified by <em>n</em> is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*V00FFADiJZY0nygPJOeZxg.png" /></figure><p>So this measures the probability that across all of the microstructure samples in the ensemble, at a particular point say (0,0), the square will be orange. This is the same as the expected value because if in all of the samples it is 50% orange and 50% green, then the expected value in one particular sample is also 50%.</p><p>If J is significantly larger than s however — if the sample size is much greater than the data size, then the particular location does not actually matter. In other words, is the probability that (0,0) is orange significantly different than the probability that (0,1) is orange? So the s can be removed from the equation leaving:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*qmsxXwFPiGOVAD_tWoAX5w.png" /></figure><p>This is called 1 point statistics because we’re only looking at one particular point.</p><h3>Summary:</h3><p>I know that was a lot, so here are the main points:</p><ul><li>The overall goal is to identify and quantify similarities and differences among elements of the ensemble through local patterns</li><li>Local states are the attributes needed to identify individual microscale constituents in material structures</li><li>The microstructure function gives the probability of finding a given local state at a particular position and time</li></ul><p>Continue reading in <a href="https://medium.com/@kiranamak/computational-materials-science-part-2-multipoint-statistics-fa65e0887a12">Computational Materials Science Part 2</a> which will cover how to analyze relationships within the structure using 2 point statistics.</p><p><a href="https://medium.com/@kiranamak/computational-materials-science-part-2-multipoint-statistics-fa65e0887a12">Computational Materials Science Part 2 — Multipoint Statistics</a></p><p><em>Thank you for reading! Hope you enjoyed learning about computational materials science. If you’re interested in discussing this or are in the field and would be willing to talk with me about materials science, you can get in touch with me at kiranamak@gmail.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b23fdccc259" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>