<?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 Sergey Nikolenko on Medium]]></title>
        <description><![CDATA[Stories by Sergey Nikolenko on Medium]]></description>
        <link>https://medium.com/@sergey_nikolenko?source=rss-cb0247f78af1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-SrL0QRNIaNLXPX_7eyv7g.png</url>
            <title>Stories by Sergey Nikolenko on Medium</title>
            <link>https://medium.com/@sergey_nikolenko?source=rss-cb0247f78af1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:32:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sergey_nikolenko/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[NeuroNuggets: Understanding Human Poses in Real-Time]]></title>
            <link>https://medium.com/neuromation-blog/neuronuggets-understanding-human-poses-in-real-time-b73cb74b3818?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b73cb74b3818</guid>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[neuromation-platform]]></category>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 09:11:30 GMT</pubDate>
            <atom:updated>2018-04-24T09:12:46.896Z</atom:updated>
            <content:encoded><![CDATA[<p>This week, we continue the NeuroNuggets series with the fifth installment on another important computer vision problem: <em>pose estimation</em>. We have already talked about <a href="https://medium.com/neuromation-io-blog/neuronuggets-segmentation-with-mask-r-cnn-c76d363b67fb?source=collection_home---4------6----------------">segmentation</a>; applied to humans, segmentation would mean to draw silhouettes around pictures of people. But what about the skeleton? We need pose estimation, in particular, to understand what a person is doing: running, standing, reading NeuroNuggets?</p><p>Today, we present a pose estimation model based on the so-called Part Affinity Fields (PAF), a model from <a href="https://arxiv.org/abs/1611.08050">this paper</a> that we have uploaded on the NeuroPlatform as a demo. And presenting this model today is Arseny Poezzhaev, our data scientist and computer vision aficionado who has moved from Kazan to St. Petersburg to join Neuromation! We are excited to see Arseny join and welcome him to the team (actually, he joined from the start, more than a month ago, but the NeuroNuggets duty caught up only now). Welcome:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qhfgtL60qx6OsDQs." /></figure><h3>Introduction</h3><p>Pose estimation is one of the long-standing problems of computer vision. It has interested researchers over the last several decades because not only is pose estimation an important class of problems itself, but it also serves as a preprocessing step for many even more interesting problems. If we know the pose of a human, we can further train machine learning models to automatically infer relative positions of the limbs and generate a pose model that can be used to perform smart surveillance with abnormal behaviour detection, analyze pathologies in medical practices, control 3D model motion in realistic animations, and a lot more.</p><p>Moreover, not only humans can have limbs or a pose! Basically, pose estimation can deal with any composition of rigidly moving parts connected to each other at certain joints, and the problem is to recover a representative layout of body parts from image features. We at Neuromation, for example, have been doing pose estimation for synthetic images of pigs (cf. our <a href="https://cryptocomes.com/piglets-big-brother-how-ai-changes-agriculture">Piglet’s Big Brother</a> project):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*Z-1n9Etk14dQ7Lt6." /></figure><p>Traditionally, pose estimation used to be done by retrieving motion patterns from optical markers attached to the limbs. Naturally, pose estimation would work much better if we could afford to put special markers on every human on the picture; alas, our problem is a bit harder. The next point of distinction between different approaches is the hardware one can use: can we use multiple cameras? 3D cameras that estimate depth? infrared? Kinect? is there a video stream available or only still images? Again, each additional source of data can only make the problem easier, but in this post we concentrate on a single standard monocular camera. Basically, we want to be able recognize the poses on any old photo.</p><h3>Top-Down and Bottom-Up</h3><p>Pose estimation from a single image is a very under-constrained problem precisely due to the lack of hints from other channels, different viewpoints from multiple cameras, or motion patterns from video. The same pose can produce quite different appearances from different viewpoints and, even worse, human body has many degrees of freedom, which means that the solution space has high dimension (always a bad thing, trust me). Occlusions are another big problem: partially occluded limbs cannot be reliably recognized, and it’s hard to teach a model to realize that a hand is simply nowhere to be seen. Nevertheless, single person pose estimation methods show quite good results nowadays.</p><p>When you move from a single person to multiple people, pose estimation becomes even harder: humans occlude and interact with other humans. In this case, it is common practice to use a so-called <em>top-down approach</em>: apply a separately trained human detector (based on object detection techniques such as the ones we <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">discussed before</a>), find each person, and then run pose estimation on every detection. It sounds reasonable but actually the difficulties are almost insurmountable: if the detector fails to detect a person, or if limbs from several people appear in a single bounding box (which is almost guaranteed to happen in case of close interactions or crowded scenes), the whole algorithm will fail. Moreover, the computation time needed for this approach grows linearly with the number of people on the image, and that can be a big problem for real-time analysis of groups of people.</p><p>In contrast, <em>bottom-up</em> approaches recognize human poses from pixel-level image evidence directly. They can solve both problems above: when you have information from the entire picture you can distinguish between the people, and you can also decouple the runtime from the number of people on the frame… at least theoretically. However, you are still supposed to be able to analyze a crowded scene with lots of people, assigning body parts to different people, and even this task by itself could be NP-hard in the worst case.</p><p>Still, it can work; let us show which pose estimation model we chose for the Neuromation platform.</p><h3>Part Affinity Fields</h3><p>In the demo, we use the method based on the “<a href="http://openaccess.thecvf.com/content_cvpr_2017/papers/Cao_Realtime_Multi-Person_2D_CVPR_2017_paper.pdf">Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields</a>” paper done by researchers from <a href="https://www.ri.cmu.edu/">The Robotics Institute at Carnegie Mellon University</a> (Cao et al., 2017). Here is it in live action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpW6nZXeWlGM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpW6nZXeWlGM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpW6nZXeWlGM%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/8b6285f434fdacd7fe067c4d4e6fdebf/href">https://medium.com/media/8b6285f434fdacd7fe067c4d4e6fdebf/href</a></iframe><p>It is a bottom-up approach, and it uses the so-called Part Affinity Fields (PAFs) together with estimation of body-part confidence maps. PAFs are the main new idea we introduce today, so let us discuss them in a bit more detail. A PAF is a set of 2D vector fields that encode the location and orientation of the limbs. Vector fields? Sounds mathy… but wait, it’s not that bad.</p><p>Suppose you have already detected all body parts (hands, elbows, feet, ankles etc.); how do you now generate poses from them? First, you must find out how to connect two points to form a limb. For each body part, there are several candidates to form a limb: there are multiple people on the image, and there also can be lots of false positives. We need some confidence measure for the association between each body part detection. Cao et al. propose a novel feature representation called Part Affinity Fields that contains information about location as well as orientation across the region of support of the limb.</p><p>In essence a PAF is a set of vectors that encodes the direction from one part of the limb to the other; each limb is considered as an affinity field between body parts. Here is a forehand:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f_v_5vTC5Qnl7hW2." /></figure><p>Figure 1. Affinity field visualization for right forehand. The color encodes limb’s orientation.</p><p>If a point lies on the limb then its value in the PAF is a unit vector pointing from starting joint point to ending joint point of this limb; the value is zero if it is outside the limb. Thus, PAF is a vector field that contains information about one specific limb for all the people on the image, and the entire set of PAFs encodes all the limbs for every person. So how do PAFs help us for pose estimation?</p><h3>Method overview</h3><p>First, let us go through the overall pipeline of the algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*421A-ZmnmEzpRx89." /></figure><p>Figure 2. Overall pipeline. The method of (Cao et al.) takes an input image (a) and simultaneously infers two maps with body-parts (b) and PAFs predictions ©. Then it parses body part candidates and runs a special bipartite matching algorithm to associate them (d); finally, it assembles the body parts into full body poses (e).</p><p>Figure 2 above illustrates all the steps from an input image (Fig. 2a) to anatomical keypoints as an output (Fig. 2e). First, a feedforward neural network predicts a set of body part locations on the image (Fig. 2b) in the form of a confidence map and a set of PAFs that encode the degree of association between these body parts (Fig. 2c). Thus, the algorithm gets all information necessary for further matching of limbs and people (all of this stuff does sound a bit bloodthirsty, doesn’t it?). Next, confidence maps and affinity fields are parsed together (Fig 1d) to output the final positions of limbs for all people on the picture.</p><p>All of this sounds very reasonable: we now have a plan. But so far this is only a plan: we don’t know how to do any of these steps above. So now let us consider every step in detail.</p><h3>Architecture</h3><p>One of the core ideas of (Cao et al., 2017) is to simultaneously predict detection confidence map and affinity fields. The method uses a special feedforward network as a feature extractor. The network looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rbex1Fkw70anYMj0." /></figure><p>Figure 3. Architecture of the two-branch multistage CNN. Each stage in the top branch (beige) predicts a confidence map <strong>S</strong>, and each stage in the bottom branch (blue) predicts a PAF <strong>L</strong>. After every stage, predictions from both branches are concatenated with image features <strong>F </strong>(which come from a VGG-based architecture) and used as input for the next stage. Each branch performs multiple inferences, one per body part.</p><p>As you can see, it is split into two branches: the top branch predicts the detection confidence maps and the bottom branch is for affinity fields. Both branches are organized as an iterative prediction architecture, which refines predictions over successive stages. The improvement of accuracy of predictions is controlled by intermediate supervision at each stage. Here is how it might look on a real image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BiTbqdLFEJpuuv0f." /></figure><p>Figure 4. Demonstration of real image inference by the two-branched architecture neural network.</p><p>Before passing input to this two-branch network the method uses auxiliary CNN (first 10 layers of VGG-19) to extract an input feature map <strong>F</strong>. This prediction is processed by both branches, and their predictions concatenated with initial <strong>F</strong> are used as input for the next stage (as features).</p><p>This process is repeated on every stage, and you can see the refinement process across stages on Figure 4 above.</p><h3>From Body Parts to Limbs</h3><p>Take a look at Figure 5 below, which again illustrates the above-mentioned refinement process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KbU5Y7jYHyJI0D1t." /></figure><p>Figure 5. Confidence maps of right wrist (first row) and PAFs of right forearm (second row) across stages. We can see that despite confusion on the first stage, the method can fix its mistakes on later stages.</p><p>At the end of each stage, the corresponding loss function is applied for each branch to guide the network.</p><p>Now consider the top branch; each confidence map is a 2D representation of our confidence that each pixel belongs to a particular body part (we remind that “body parts” here are “points” such as wrists and elbows, and, say, forearms are referred to as “limbs” rather than “body parts”). To get body part candidate regions, we aggregate confidence maps for different people. After that, the algorithm performs non-maximum suppression to obtain a discrete set of parts locations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BHCHtLgxpBuF_xLp." /></figure><p>Figure 6. How algorithm forms limbs from detections.</p><p>During inference, algorithm computes line integrals over all the PAFs along the line segments between pairs of detected body-parts. If the candidate limb formed by connection of certain pair of points is aligned with corresponding PAF then it’s considered as a true limb. This is exactly what the bottom branch does.</p><h3>From Limbs to Full Body Models</h3><p>We now see how the algorithm can find limbs on the image between two points. But we still cannot estimate poses because we need the full body model! We need to somehow connect all these limbs into people. Formally speaking, the algorithm has found body part candidates and has scored pairs of these parts (integrating over PAFs), but the final goal is to find the optimal assignment for the set of all possible connections.</p><p>Formally speaking, this problem can be viewed as a k-partite graph matching problem, where nodes of the graph are body part detections, and edges are all possible connections between them (possible limbs). Here k-partite matching means that the vertices can be partitioned into k groups of nodes with no connections inside each group (i.e., vertices corresponding to the same body part). Edges of the graph are weighted with part affinities. Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*57yJh3Q-mBsg7R5F." /></figure><p>Figure 7. Graph matching problem simplification. (a) Original image with part detections, (b) K-partite graph -&gt; © Tree structure implicitly includes human body model -&gt; (d) A set of bipartite graphs</p><p>A direct solution of this problem may be computationally infeasible (NP-hard), so (Cao et al., 2017) propose a relaxation where the initial k-partite graph is decomposed into a set of bipartite graphs (Fig. 7d) where the matching task is much easier to solve. The decomposition is based on the problem domain: basically, you know how body parts can connect, and a hip cannot be connected to a foot directly, therefore we can first connect hip to knee and then knee to foot.</p><p>That’s all, folks! We have considered all the steps in the algorithm that can retrieve poses from a single raw image. Let us now see how it works on our platform.</p><h3>Pose Estimation Demo in Action</h3><p>There are, as always, a few simple steps to run this algorithm on our image of interest:</p><ol><li>Login at<a href="https://mvp.neuromation.io/"> https://mvp.neuromation.io</a></li><li>Go to “AI models”</li><li>Click “Add more” and “Buy on market”:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*OjI8pVhnkZgosf8F." /></figure><p>4. Select and buy the OPENPOSE 2D demo model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vVzYy1iOzEalLgzT." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1xkrbK02RUfK7LUB." /></figure><p>5. Launch it with “New Task” button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_Op9rP6SCjgSKJlw." /></figure><p>6. Choose the Estimate People On Image Demo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v7gIJ5UA1nzXmUnF." /></figure><p>7. Try the demo! You can upload your own photo for pose estimation. We chose this image from the <a href="https://en.wikipedia.org/wiki/Mannequin_Challenge">Mannequin Challenge</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZRlJmxtKUG4ilaAC." /></figure><p>8. And here you go! One can see stick models representing poses of people on the image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ncR-xzEjXSoKt3IR." /></figure><p>And here is a picture of Neuromation leadership in Singapore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_EmSiAXpV_DL4Q0Q." /></figure><p>The results are, again, pretty good:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vlf6vsV4wo0M_dxj." /></figure><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><p><em>Arseny Poezzhaev<br>Researcher, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b73cb74b3818" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuronuggets-understanding-human-poses-in-real-time-b73cb74b3818">NeuroNuggets: Understanding Human Poses in Real-Time</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NeuroNuggets: Segmentation with Mask R-CNN]]></title>
            <link>https://medium.com/neuromation-blog/neuronuggets-segmentation-with-mask-r-cnn-c76d363b67fb?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76d363b67fb</guid>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuromation]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 06:04:21 GMT</pubDate>
            <atom:updated>2018-04-06T09:06:05.077Z</atom:updated>
            <content:encoded><![CDATA[<p>In the third post of the NeuroNuggets series, we continue our study of basic problems in computer vision. I remind the reader that in this series we discuss the demos available on the recently released <a href="http://platform.neuromation.io/">NeuroPlatform</a>, concentrating not so much on the demos themselves but rather on the ideas behind each deep learning model. This series is also a great chance to meet the new Neuromation deep learning team that has started working at our new office in St. Petersburg, Russia.</p><p>In the <a href="https://medium.com/neuromation-io-blog/neuronuggets-age-and-gender-estimation-2807b1307a13">first installment</a>, we talked about the age and gender detection model, which is basically image classification. In <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">the second</a>, we presented object detection, a more complex computer vision problem where you also have to find where an object is located. Today, we continue with segmentation, the most detailed problem of this kind, and consider the latest addition to the family of R-CNN models, Mask R-CNN. I am also very happy to present the co-author of this post, Anastasia Gaydashenko:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*8AdStXf2G1XENL1y." /></figure><h3>Segmentation: Problem Setting</h3><p>Segmentation is a logical next step of the object detection problem that we talked about in our <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">previous post</a>. It still stems from the same classical computer vision conundrum: even with great feature extraction, simple classification is not enough for computer vision, you also have to understand <em>where</em> to extract these features. Given a photo of your friends, a landscape scene, or basically any other image, can you automatically locate and separate all the objects in the picture? In object detection, we looked for <em>bounding boxes</em>, i.e., rectangles that enclose the objects. But what if we require more detail and label the exact silhouettes of the objects, excluding background? This problem is called <em>segmentation</em>. Generally speaking, we want to go from pictures in the first row to pictures in the second row on this picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*S7xVQgFCfQdx3hlx." /></figure><p>Formally speaking, we want to label each pixel of an image with a certain class (tree, road, sky, etc) as shown in the image. The first question, of course, is why? What’s wrong with regular object detection? Actually, segmentation is applied widely: in medical imaging, сontent-based image retrieval, and so on. It avoids the big problem of regular object detection: overlapping bounding boxes for different objects. If you see three heavily overlapping bounding boxes, are these three different hypotheses for the same object (in which case you should choose one) or three different objects that happen to occupy the same rectangle (in which case you should keep all three)? Regular object detection models can’t really decide.</p><p>And if the shape of the object is far from rectangular segmentation provides much better information (this is very important for medical imaging). For instance, Google used semantic image segmentation to create the Portrait Mode in its signature Pixel 2 phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*VDX_TUC2ljz5fy7p." /></figure><p>These pictures also illustrate another important point: the different flavours of segmentation. What you see above is called <em>semantic segmentation</em>; it’s the simpler version, when we simply want to classify all pixels to categories such as “person”, “airplane”, or “background”. You can see in the picture above that all people are labeled as “person”, and the silhouettes blend together into a big “cuddle pile”, to borrow the expression used in certain circles.</p><p>This leads to another, more detailed type of segmentation: <em>instance segmentation</em>. In this case, we would want to separate the people in the previous photo and label them as “person 1”, “person 2”, etc., as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*GRsQX1OumzBzh6ce." /></figure><p>Here all people on the photo are marked in different colors, which mean different instances. Note also that they are labeled with probabilities that reflect the model’s confidence in a particular class label; the confidence is very high in this case, but generally speaking it is also a desirable property of any AI model to know when it is not sure.</p><h3>Convolutions and Convolutional Neural Networks</h3><p>So how can a computer vision system parse these images in such an accurate and humanlike way? Let’s find out. The first thing we need to study is how convolution works and why do we use it. And yes, we return to CNNs in each and every post — because they are really important and we keep finding new things to say about them. But before we get to the new things, let’s briefly go through the old, concentrating on the convolutions themselves this time.</p><p>Initially, the idea of convolution has come from biology, or, more specifically, studies of the visual cortex. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2718233/">David Hubel<strong> </strong>and<strong> </strong>Torsten Wiesel</a> studied the lower layers of the visual cortex in cats. Cat lovers, please don’t watch this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYoo4GWiAx94%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYoo4GWiAx94&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYoo4GWiAx94%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/14bff77eb0bdad1195c77131d718ef1c/href">https://medium.com/media/14bff77eb0bdad1195c77131d718ef1c/href</a></iframe><p>When Hubel and Wiesel moved a bright line across a cat’s retina, they noticed an interesting effect: the activity of neurons in the brain changed depending on the orientation of the line, and some of the neurons fired only when the line was moving in a particular direction. In simple terms, that means that different regions of the brain react to different simple shapes. To model this behaviour, researchers had to invent detectors for simple shapes, elementary components of an image. That’s how convolutions appeared.</p><p>Formally speaking, convolution is just a scalar product of two matrices taken as vectors: we multiply them componentwise and sum up the results. The first matrix is called the “kernel”; it represents a simple shape, like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/0*ZZgquQ7cAT8Mk5Xb." /></figure><p>The second matrix is just some patch from the picture where we want to find the pattern shown in the kernel. If the convolution result is large, we decide that the target shape is indeed present in this patch. Then we can simply run the convolution through all patches in the image and detect where the pattern occurs.</p><p>For example, let us try to find the filter above in a picture of a mouse. Here you can see the part where we would expect the filter to light up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/0*Ya3u3af0ytyh7DuV." /></figure><p>And if we multiply the corresponding submatrix with the kernel and sum all the values, we indeed get a pretty big number:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/0*lBhTCCL8yeDJynr9." /></figure><p>On the other hand, a random part of the picture does not produce anything at all, which means that it is totally different from the filter’s pattern:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*-d8eaGlosbk9OfbK." /></figure><p>Filters like this let us detect some simple shapes and patterns. But how do we know which of these forms we want to detect? And how can we recognize a plane or an umbrella from these simple lines and curves?</p><p>This is exactly where the training of the neural networks comes in. The shapes defined by kernels (the filters) are actually what the CNN learns from the training set. It is usually simple lines and gradients on the first layers of the neural network, but then, with each layer of the model, these shapes are combined with one another into recognizable kernels; a set of kernels is called a map:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*R63ctLj6wkhPC1uJ." /></figure><p>The other operation necessary for CNNs is pooling. It is mostly used to reduce computational costs and suppress noise. The main idea is to cover a matrix with small submatrices and leave only one number in each, thus reducing the dimension; usually, the result is just a maximum or average of the values in the small submatrix. Here is a simple example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/0*4v0j88PEOgK1TRBq." /></figure><p>This kind of operations is also sometimes called <em>downsampling</em> as they reduce the amount of information we store.</p><h3>The R-CNN models and Mask R-CNN</h3><p>Above, we have seen a simplified explanation of techniques used to create convolutional neural networks. We have not touched upon learning at all, but that part is pretty standard. With these simple tools, we can teach a computer model to recognize all sorts of shapes; moreover, CNNs operate on small patches so they are perfectly parallelizable and well suited for GPUs. We recommend <a href="https://medium.com/neuromation-io-blog/neuronuggets-age-and-gender-estimation-2807b1307a13">our previous</a> <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">two posts</a> for more details on CNNs, but let us now move on to the more high-level things, that is, segmentation.</p><p>In this post, we do not discuss all modern segmentation models (there are quite a few) but go straight to the model used in the segmentation demo on the NeuroPlatform. This model is called Mask R-CNN, and it is based on the general architecture of R-CNN models that we discussed in the <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">previous post about object detection</a>; hence, a brief reminder is again in order.</p><p>It all begins with the R-CNN model, where R stands for “region-based”. The pipeline is pretty simple: we take a picture and apply an external algorithm (called <em>selective search</em>) to it, searching for all kind of objects. Selective search is a heuristic method that extracts regions based on connectivity, color gradients, and coherence of pixels. Next, we classify all extracted regions with some neural network:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xalW1VS6oIYq68XR." /></figure><p>Due to the high number of proposals, R-CNN worked extremely slow. In Fast R-CNN, the RoI (region of interest) projection layer was added to the neural network: instead of putting each region from proposals through the whole network, Fast R-CNN takes the whole image through the network once, finds neurons corresponding to a particular region in the feature map in the network, and then applies the remaining part of the network to each found set of neurons. Like here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*2RL2QrzzkH1Tv2Ew." /></figure><p>The next step was to invent the Region Proposal Network that could replace selective search; the Faster R-CNN model is now a complete end-to-end neural network.</p><p>You can read about all these steps in more detail in our <a href="https://medium.com/neuromation-io-blog/neuronuggets-object-detection-9a7a17f7b2fc">object detection post</a>. But we’re here to learn how Faster R-CNN can be converted to solve the segmentation problem! Actually, it is extremely simple but nevertheless efficient and functional. The authors just added a parallel branch for predicting an object mask to the original Faster R-CNN model. Here is how the resulting Mask R-CNN model looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/0*VMoiKNqHClJPqj0m." /></figure><p>The top branch in the picture predicts the class of some region and the bottom branch tries to label each pixel of the region to construct a binary mask (i.e., object vs. background). It only remains to understand where this binary mask comes from.</p><h3>Fully Convolutional Networks</h3><p>Let us take a closer look at the segmentation part. It is based on a popular architecture called <em>Fully Convolutional Network</em> (FCN):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/0*YXQvyneTxSJ_35ov." /></figure><p>The FCN model can be used for both image detection and segmentation. The idea is pretty straightforward, and the network is actually even simpler than usual, but it’s still a deep and interesting idea.</p><p>In standard deep CNNs for image classification, the last layer is usually a vector of the same size as the number of classes that shows the “scores” of different classes that could be then normalized to give class probabilities. This is what happens in the “class box” on the picture above.</p><p>But that if we stop at some middle layer of the CNN and instead of vectors do some more convolutions? And on the last convolutional layer, we get the same number of features as the number of classes. Then, after proper training, we can get “class scores” in every pixel of the last layer, getting a kind of a “heatmap” for every class! Here is how it works — regular classification on top and a fully convolutional approach on the bottom:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tUGHtdV6kT7sbVxN." /></figure><p>For segmentation via this network, we will use the inverses of convolution and pooling. Meet… deconvolution and unpooling!</p><p>In <em>deconvolution</em>, we basically do convolution but the matrix is transposed, and now the output is a window rather than a number. Here are two popular ways to do deconvolution (white squares are zero paddings), animated for your viewing convenience:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*pQ3fGo_KueNUn4_M." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/0*PnDWpLriQLPlLRbC." /></figure><p>To understand <em>unpooling</em>, recall the pooling concept that we discussed above. To do max-pooling, we take the maximum value from some submatrix. Now we want to also remember the coordinates of the cells from which we took it and then use it to “invert” max-pooling. We create the matrix with the same shape as the initial and put maximums to the corresponding cells, reconstructing other cell values with approximations based on known cells. Some information stays lost, of course, but usually upsampling works pretty well:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nyyWjAG9u3lv93I5." /></figure><p>Through the use of deconvolution and unpooling, we can construct pixel-wise predictions for each class, that is, segmentation masks for the image!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RTfJJiX3vsfBbMgt." /></figure><h3>Segmentation demo in action</h3><p>We have seen how Mask R-CNN does segmentation, but it is even better to see the result for yourself. We follow the usual steps to get the model working.</p><ol><li>Login at<a href="https://mvp.neuromation.io/"> https://mvp.neuromation.io</a></li><li>Go to “AI Models”:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*qcUII11krLuBtUgj." /></figure><p>3. Click “Add more” and “Buy on market”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*uDIBTtgksVItJ5IA." /></figure><p>4. Select and buy the Object Segmentation demo model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GQfcfpKl77PQTXVR." /></figure><p>5. Launch it with the “New Task” button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/0*hg9DDMP0_4OCFQzV." /></figure><p>6. Try the demo! You can upload your own photo for segmentation. We chose this image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CJLYpwnZrExce-hE." /></figure><p>7. And here you go! The model shows bounding boxes as well, but now it gives much more than just bounding boxes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/0*2DnabqiIlpHsNS3a." /></figure><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><p><em>Anastasia Gaydashenko<br>Junior Researcher, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76d363b67fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuronuggets-segmentation-with-mask-r-cnn-c76d363b67fb">NeuroNuggets: Segmentation with Mask R-CNN</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NeuroNuggets: Object Detection]]></title>
            <link>https://medium.com/neuromation-blog/neuronuggets-object-detection-9a7a17f7b2fc?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a7a17f7b2fc</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[neuromation]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 19:12:40 GMT</pubDate>
            <atom:updated>2018-04-06T09:07:28.215Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the second post in our NeuroNuggets series. This is a series were we discuss the demos already available on the recently released <a href="http://platform.neuromation.io/">NeuroPlatform</a>. But it’s not as much about the demos themselves as about the ideas behind each of these models. We also meet the new Neuromation deep learning team that we hired at our new office in St. Petersburg, Russia.</p><p>The <a href="https://medium.com/neuromation-io-blog/neuronuggets-age-and-gender-estimation-2807b1307a13">first installment</a> was devoted to the age and gender estimation model, the simplest neural architecture among our demos, but even there we had quite a few ideas to discuss. Today we take convolutional neural networks for image processing one step further: from straightforward image classification to object detection. It is also my pleasure to introduce Aleksey Artamonov, one of our first hires in St. Petersburg, with whom we have co-authored this post:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pmncQAK3mBGGfkTW." /></figure><h3>Object Detection: Not Quite Trivial</h3><p>Looking at a picture, you can recognize not only what objects are on it, but also where they are located. On the other hand, a simple convolutional neural network (CNN) like the one we considered in <a href="https://medium.com/neuromation-io-blog/neuronuggets-age-and-gender-estimation-2807b1307a13">the previous post</a> cannot do that. All they can is estimate the probability with which a given object is present on the image. For practical purposes, this is insufficient: on real world images, there are lots of objects that can interact with each other in nontrivial ways. We need to ascertain the position and class of each object in order to extract more semantic information from the scene. We have already seen it with face detection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/0*JeSQhWK4cVf2PPfa." /></figure><p>The simplest approach that was used before the advent of convolutional networks consisted of a sliding window and a classifier. If we need, say, to find human faces on a photo, we first train a network that says how likely it is that a given picture contains a face and then apply it to every possible bounding box (a rectangle in the photo where an object could appear), choosing the bounding boxes where this probability is highest.</p><p>This approach actually would work pretty well… if anyone could apply it. Detection with a sliding window needs to look through a <em>huge </em>amount of different bounding boxes. Bounding boxes have different positions, aspect ratios, scales. If we try to calculate all the options that we should look through, we get about 10 million combinations for a 1Mpix image. Which means that the naive approach would need to run the classification network 10 million times to detect the actual position of the face. Naturally, this would never do.</p><h3>Classical Computer Vision: the Viola-Jones Algorithm</h3><p>Our next stop is an algorithm that embodies classical computer vision approaches to object detection. By “classical” here we mean computer vision as it was before the deep learning revolution made every kind of image processing into different flavours of CNNs. In 2001 <a href="https://en.wikipedia.org/w/index.php?title=Paul_Viola&amp;action=edit&amp;redlink=1">Paul Viola</a> and Michael Jones <a href="https://www.cs.cmu.edu/~efros/courses/LBMV07/Papers/viola-cvpr-01.pdf">proposed an algorithm</a> for real-time face detection. It employs three basic ideas:</p><ul><li>Haar feature selection;</li><li>boosting algorithm;</li><li>cascade classifier.</li></ul><p>Before describing these stages, let us make sure that we actually want the algorithm to achieve. A good object detection algorithm has to be fast and have a very low false-positive rate. We have 10 million possible bounding boxes and only a handful of faces on the photo, so we cannot afford a false positive rate much higher than 10–6 unless we want to be overwhelmed by incorrect bounding boxes. With this in mind, let us jump into the algorithm.</p><p>The first part is the Haar transform; it is best to begin with a picture:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*hUYWnHpnxgWgP0z0." /></figure><p>We overlap different filters on our image. Activation of one Haar filter is the sum of the values in the white parts of the rectangle minus the sum of values under black part.</p><p>The main property of these filters is that they can be computed across the entire image very quickly. Let us consider the <em>integral version</em> (I*) of the original image (I); the integral version is the image where intensity at coordinate I*x,y is the total intensity over the whole rectangle that begins at the top left corner and ends in (x,y):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/0*B6szNZTXaaNTvSbh." /></figure><p>Let us see the Haar filter overlapped on the image and its integral version in action:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*u7NrDR9Gzdapf6TC." /></figure><p>Haar features for this filter could be computed in just a few operations. E.g., the horizontal Haar filter activation shown on the Terminator’s face equals 2C — 2D + B — A + F — E, where the letters denote intensities at the corresponding points on the integral image. We won’t go into the formulas but you can check it yourself, it’s a good exercise for understanding the transform.</p><p>To select the best Haar features for face recognition, the Viola-Jones algorithm uses the AdaBoost classification algorithm. Boosting models (in particular, AdaBoost) are machine learning models that combine and build upon simpler classifiers. AdaBoost can take weak features like Haar that are just a little better than tossing a coin. But then AdaBoost learns a combination of these features in such a way that the final decision rule is much stronger and better. It would take a whole separate post to explain AdaBoost (perhaps we should, one day), so we’ll just add a couple of links and leave it at that.</p><p>The third, final idea is to combine the classifiers into a cascade. Thing is, even boosted classifiers still have too much false positives. A simple 2-feature classifier can achieve almost 100% detection rate, but with a 50% false positive rate. Therefore, the Viola-Jones algorithm uses a <em>cascade </em>of gradually more complex classifiers, where we can reject a bounding box on every step but have to pass all checks to output a positive answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RAZHhRdB2Sxd4cwM." /></figure><p>This approach leads to much better detection rates. Roughly speaking, if we have 10 stages in our cascade, each stage has 0.3 false positive rate and 0.01 false negative rate, and all stages are independent (this is a big assumption, of course, but in practice it still works pretty well), the resulting cascade classifier achieves (0.3)10 ~ 3*10–6 false positive rate and 0.9 detection level. Here is how a cascade works on a group photo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8vKxyjEHWUm46luq." /></figure><p>Further research in classical computer vision went into detecting objects of specific classes such as pedestrians, vehicles, traffic signs, faces etc. For complex detectors on deep phases of a cascade we can use different kinds of classifiers such as histogram of oriented gradients (HOG) or support vector machines (SVM). Instead of using Haar features on image in grayscale we can get image channels in different color schemes (CIELab or HSV) and image gradients in different directions. All these features are computed in the integral space, summing inside a rectangle with an adjustable threshold.</p><p>An important problem that appeared already in classical computer vision is that near a real object, our algorithms will find multiple intersecting bounding boxes; you can draw different rectangles around a given face, and all will have rather high confidence. To choose the best one classical computer vision usually employs the <a href="https://www.pyimagesearch.com/2014/11/17/non-maximum-suppression-object-detection-python/">non-maximum suppression algorithm</a>. However, this still remains an open and difficult problem because there are many situations when two or more objects have intersecting bounding boxes, and a simple greedy implementation of non-maximum suppression would lose good bounding boxes. This part of the problem is relevant for all object detection algorithms and still remains an active area of research.</p><h3>R-CNN</h3><p>Initially, in object detection tasks neural networks were treated as tools for extracting features (descriptors) on late stages of the cascade. Neural networks by themselves had always been very good in image classification, i.e., prediction of the class or type of the object. But for a long time, there was no mechanism to locate this object at the image with neural networks.</p><p>With the deep learning revolution, it all changed rather quickly. By now, there are several competing approaches to object detection that are all based on deep neural networks: YOLO (“You Only Look Once”, a model that was initially optimized for speed but ), SSD (single-shot detectors), and so on. We may return to them in later installments, but in this post we concentrate on a single class of object detection approaches, the R-CNN (Region-Based CNN) line of models.</p><p>The original R-CNN model, <a href="https://arxiv.org/pdf/1311.2524.pdf">proposed in 2013</a>, performs a three-step algorithm to do object detection:</p><ul><li>generate hypotheses for reasonable bounding boxes with an external region proposal algorithm;</li><li>warp each proposed region in the image and pass it through a CNN trained for image classification to extract features;</li><li>pass the resulting features to a separate SVM classification model that actually classifies the regions and chooses which of them contain meaningful objects.</li></ul><p>Here is an illustration from the <a href="https://arxiv.org/pdf/1311.2524.pdf">R-CNN paper</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XRzhrqEaHfUMiUpa." /></figure><p>R-CNN brought the deep learning revolution to object detection. With R-CNN, mean average precision on the Pascal VOC (2010) dataset grew from 40% (the previous record) up to 53%, a huge improvement.</p><p>But improved object detection quality is only part of the problem. R-CNN worked well but was hopelessly slow. The main problem was that you had to run the CNN separately for every bounding box; as a result, object detection with R-CNN took more than forty seconds on a modern GPU for a single image! Not quite real-time. It is also very hard to train because you had to juggle together the three components, two of which (CNN and SVM) are machine learning models that you have to train separately. And, among other things, R-CNN requires an external algorithm that can propose bounding boxes for further classification. In short, something had to be done.</p><p>Fast R-CNN</p><p>The main problem of R-CNN was speed, so when researchers from Microsoft Research rolled out an improvement there was no doubt how to name the new model: <a href="https://arxiv.org/pdf/1504.08083.pdf">Fast R-CNN</a> was indeed much, much faster. The basic idea (we will see this common theme again below) was to put as much as they could directly into the neural network. In Fast R-CNN, the neural network is used for classification and bounding box regression instead of SVM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*Qn8FER3oMu98_t_N." /><figcaption>Image <a href="https://www.google.com/url?q=https://arxiv.org/pdf/1504.08083.pdf&amp;sa=D&amp;ust=1521395135635000&amp;usg=AFQjCNHx68eLpoeY8O6tAUuXOneQLCAs-Q">Source</a></figcaption></figure><p>In order to make detection independent of the size of the object in the image, R-CNN uses Spatial Pyramid Pooling (SPP) layers that had been introduced in <a href="https://arxiv.org/pdf/1406.4729.pdf">SPPnet</a>. The Idea of SPP is brilliant: instead of cropping and warping the region to construct an input image for a separate run of the classification CNN, SPP crops the region of interest (RoI) projection at deeper convolutional layer, before fully-connected layers.</p><p>This means that we can reuse lower layers of the CNN, running it only once instead of a thousand times in basic R-CNN. But a problem arises: a fully-connected layer has a certain size, and the size of our RoI can be anything. The task of the spatial pyramid pooling layer is to solve this problem. The layer divides the window into 21 parts, as shown in the figure below, and summarizes (pools) the values in each part. Thus, the size of the layer’s output does not depend on the size of the input window any more:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/0*LrF2AY3M2IUzgtdv." /></figure><p>Fast R-CNN is <em>200 </em>times faster than R-CNN to apply to a test image. But it is still insufficient for actual real-time object detection due to an external algorithm for generating bounding box hypotheses. On a real photo, this algorithm can take about 2 seconds, so regardless of how fast we make the neural network, we have at least a 2 second overhead for every image. Can we get out of this bottleneck?</p><p>Faster R-CNN</p><p>What could be faster than Fast R-CNN? The aptly named <a href="https://arxiv.org/pdf/1506.01497.pdf"><em>Faster R-CNN</em></a>, of course! And what kind of improvement could we do to Fast R-CNN to get an even faster model? It turns out that we can get rid of the only external algorithm left in the model: extracting region proposals.</p><p>The beauty of Faster R-CNN is that we can use the same neural network to extract region proposals. We only need to augment it with a few new layers, called the Region Proposal Network (RPN):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*StCaQMLxMyGpR7RL." /></figure><p>The idea is that the first (nearest to input) layers of a CNN extract universal features that could be useful for everything, including region proposals. On the other hand, the first layers have not yet lost all the spatial information: these features are still rather “local” and correspond to relatively small patches of the image. Thus, RPN uses precomputed feature values from early layers to propose regions with objects for further classification. RPN is a fully convolutional network, and there are no fully-connected layers in the RPN architecture, so the computing overhead is almost nonexistent (10ms per image), and we can now completely remove the region proposal algorithm!</p><p>One more good idea is to use anchor boxes with different scales and aspect ratios instead of a spatial pyramid. At the time of its appearance, Faster R-CNN became the state of the art object detection model, and while there has been a lot of new research in the last couple of years, it is still going pretty strong. You can try Faster R-CNN at the NeuroPlatform.</p><p>Object Detection at the NeuroPlatform</p><p>And finally we are ready to see Faster R-CNN in action! Here is a sequence of steps that will show you how this works on a pretrained model which is already available at the NeuroPlatform.</p><ol><li>Login at <a href="https://mvp.neuromation.io/">https://mvp.neuromation.io</a></li><li>Go to “AI Models”:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VS70Rj1lHoDXIH6T." /></figure><p>3. Click “Add more” and “Buy on market”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lkps5IF8uzC0qPfC." /></figure><p>4. Select and buy the object detection demo model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3m9bS7Ibs2ZZgXLS." /></figure><p>5. Launch it with the “New Task” button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b0pL-EbziUjeZ-pP." /></figure><p>6. Try the demo! You can upload your own photo for detection:</p><p>7. And here you go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZBX2r62Sa6KblJzo." /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a7a17f7b2fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuronuggets-object-detection-9a7a17f7b2fc">NeuroNuggets: Object Detection</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NeuroNuggets: Age and Gender Estimation]]></title>
            <link>https://medium.com/neuromation-blog/neuronuggets-age-and-gender-estimation-2807b1307a13?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2807b1307a13</guid>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Tue, 13 Mar 2018 08:51:17 GMT</pubDate>
            <atom:updated>2018-04-06T09:09:15.193Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, we begin a new series of posts that we call NeuroNuggets. On February 15, right on time, we released the first version of the <a href="http://platform.neuromation.io/">NeuroPlatform</a>. So far it is still in alpha, and it will take a lot of time to implement everything that we have planned. But even now, there are quite a few cool things you can do. In the NeuroNuggets series, we will present these cool things one by one, explaining not only the technicalities of how to run something on the platform but also the main ideas behind every model. This is also my chance to present my new deep learning team hired at our new office in St. Petersburg, Russia.</p><p>In this post, we present our first installment: the age and gender estimation model. This is the simplest neural architecture among our demos, but even this network will have quite a few tricks to explain. And it is my pleasure to introduce Rauf Kurbanov, one of our first hires in St. Petersburg, with whom we have co-authored this post:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bMoHBU4jodqQ39s_." /><figcaption>Rauf Kurbanov, image <a href="https://events.yandex.ru/events/ds/16-dec-2017/">source</a></figcaption></figure><h3>Who hired a nerd?</h3><p>AI researchers tend to question the nature of intuitive. As soon as you ask how a computer can do the same thing that seems too easy for humans, you see that what is “intuitively clear” for us can be very hard to formalize. Our visual perception of human age and gender is a good example of such a subtle quality.</p><p>To us AI nerds, Eliezer Yudkowsky is familiar both as an AI safety researcher and the author of the most popular Harry Potter fanfic ever (we heartily recommend “<a href="http://hpmor.com/">Harry Potter and the Method of Rationality</a>”, HPMoR for short, to everyone). And the Harry Potter series features a perfect example for this post, a fictional artifact that appears intuitively clear but is hard to reproduce in practice:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_OTbejyYOqAjWFT0." /></figure><p>Albus <a href="http://harrypotter.wikia.com/wiki/Albus_Dumbledore">Dumbledore</a> had placed an <a href="http://harrypotter.wikia.com/wiki/Age_Line">Age Line</a> around the <a href="http://harrypotter.wikia.com/wiki/Goblet_of_Fire">Goblet of Fire</a> to prevent anyone under the age of seventeen from approaching it. Age Line magic was so advanced that even an Ageing Potion could not fool it. Even Yudkowsky did not really dig into the mechanics of Age Line in his meticulous manner in HPMoR but today we will give it a try; and while we are on the subject, we will give a shot to gender recognition as well. As usual in computer vision, we begin with convolutional neural networks.</p><h3>Convolutional neural networks</h3><p>A neural network, as the name suggests, is a machine learning approach which is in a very abstract way modeled after how the brain processes information. It is a network of learning units called artificial neurons, or perceptrons. During training, the neurons learn how to convert input signals (say, the picture of a cat) into corresponding output signals (say, the label “cat” in this case), training automated recognition from real life examples.</p><p>Virtually all computer vision nowadays is based on convolutional neural networks. Very roughly speaking, CNNs are multilayer (deep) neural networks where each layer processes the image in small windows, extracting local features. Gradually, layer by layer, local features become global, able to draw their inputs from a larger and larger portion of the original image. Here is how it works in a very simple CNN (picture taken from <a href="http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/">this tutorial</a>, which we recommend to read in full):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ArVMZKJOFf3JMVpn." /></figure><p>In the end, after several (sometimes several hundred) layers we get global features that “look at” the whole original image, and they can now be combined in relatively simple ways to obtain class labels (recognize whether it is a dog, cat, boat, or Harry Potter).</p><p>Technically, a convolutional neural network is a neural network with convolutional layers, and a convolutional layer is a transformation that applies a certain kernel (filter) to every point in the input (a “picture” with multiple channels in every pixel, i.e., a three-dimensional <em>tensor</em>) and generate filtered output by sliding the kernel over the input.</p><p>Let us consider a simple example of a filter: edge detection in images. In this case, the input for edge detection is an image, and each pixel in the image is defined by three numbers: the intensities of red, green, and blue in the color of that pixel. We construct a special kernel which will be applied to every pixel in the image; the output is a new “image” that shows the results of this kernel. Basically, the kernel here is a small matrix. Here’s how it works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*gfpyXOIenRB9fqrq." /></figure><p>The kernel is sliding over every pixel in the image and the output value increases whenever there is an edge, an abrupt change of colors. In the figure above, after multiplying this simple matrix element-wise to every 3x3 window in the image we get a very nice edge detection result.</p><p>Once you understand filters and kernels, it becomes quite simple to explain convolutional layers in neural networks. You can think of them as vanilla convolutions, as in the edge detection example above, but now we are learning convolutional kernels end-to-end when training the networks. That is, we do not have to invent these small matrices by hand anymore but can automatically learn matrices that extract the best features for a specific task.</p><h3>The model pipeline</h3><p>Age and gender estimation sounds like a traditional machine learning task: binary classification for the genders (it might stir up some controversy but yeah, our models live in a binary world) and regression for the ages. But before we can begin to solve these problems, we need to find the faces on the photo! Classification will not work on the picture as a whole because it might, for example, contain several faces. Therefore, the age and gender estimation problem is usually broken down into two steps, face detection and age/gender estimation for the detected faces:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KbPeF1P7rCxSF4UK." /></figure><p>In the model that you can find on the NeuroPlatform, these steps are performed independently and are not trained end-to-end, so let us discuss each of them in particular.</p><h3>Face detection</h3><p>Face detection is a classic problem in computer vision. It was solved quite successfully even before the deep learning revolution, in early 2000s, by the so-called <a href="https://link.springer.com/article/10.1023/B:VISI.0000013087.49260.fb">Viola-Jones algorithm</a>. It was one of the most famous application of Haar cascades as features; but those days are long gone…</p><p>Today, face detection is not treated as a separate task that requires individual approaches. It is also solved by convolutional neural networks. To be honest, since the advent of deep learning it has long become clear that CNNs kick ass at object detection, and therefore we expect modern solution to an old problem to be based on CNNs as well. And we are not wrong.</p><p>But in real world machine learning, you should also consider other properties beside detection accuracy such as simplicity and inference speed. If a simpler approach works well enough, it might not be worth it to introduce very complicated models to gain a few percentage points (remind me to tell you about the Netflix prize challenge results later). Therefore, in the NeuroPlatform demo we use a more classical approach to face detection while keeping CNNs for the core age/gender recognition task. But we can learn a lot from classical computer vision too.</p><p>In short, the face detection model can be described as an SVM on HOG + SIFT feature representation. HOG and SIFT representations are hand-crafted features, the result of years of experience in building image recognition systems. These features recognize gradient orientations in localized portions of an image and perform a series of deterministic image transformations. It turns out this representation works quite well with kernel methods such as support vector machines (SVM).</p><h3>Data augmentation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g6hrmFYocr0ZQdj4." /></figure><p>Here at Neuromation, we are big fans of using synthetic data for computer vision. Usually, this means that we generate sophisticated synthetic datasets from 3D computer graphics and even look towards using Generative Adversarial Networks for synthetic data generation in the future. But let us not forget the most basic tool for increasing the datasets: data augmentation.</p><p>Since we have already extracted faces on the previous step, it is enough to augment only the faces, not the whole image. In the demo, we are using standard augmentation tricks such as horizontal/vertical shifts and mirroring alongside with a more sophisticated one of randomly erasing patches of the image.</p><h3>Age estimation</h3><p>To predict the age, we apply a deep convolutional neural network to the face image detected on the previous processing stage. The method in the demo uses the <a href="https://arxiv.org/abs/1605.07146">Wide Residual Network</a> (WRN) architecture which beat Inception architecture on mainstream object detection datasets, achieving convergence on the same task twice faster. Before we explain what residual networks are, we begin with a brief historical reference.</p><h3>The ImageNet challenge</h3><p>The <a href="http://www.image-net.org/"><strong>ImageNet</strong></a> project is a large visual <a href="https://en.wikipedia.org/wiki/Database">database</a> designed to be used in <a href="https://en.wikipedia.org/wiki/Outline_of_object_recognition">visual object recognition </a>research. The <a href="https://en.wikipedia.org/wiki/Deep_learning">deep learning</a> revolution of the 2010s started in computer vision with a dramatic advance in solving the ImageNet Challenge. Results on ImageNet were recognized not only within the AI community but across the entire industry, and ImageNet has become and still remains the most popular general purpose computer vision dataset. Without getting into too much details, let us just take a glance at a comparison plot between the winners of a few first years:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*bjyeZqx9VNTszOWk." /></figure><p>On the plot, the horizontal axis shows how computationally intensive a model is, the circle size indicates the number of parameters, and the vertical axis shows image classification accuracy on ImageNet. As you can see, ResNet architectures show some of the best results while staying on the better side of efficiency as well. What is their secret sauce?</p><h3>Residual connections</h3><p>It is well known that deeper models perform better than shallower models, they are more expressive. But optimization in deep models is a big problem: deeper models are harder to optimize due to the peculiarities of how gradients propagate from the top layers to the bottom layers (I hope one day we will explain it all in detail). Residual connections are an excellent solution to this problem: they add connections “around” the layers, and the gradient flow is now able to “skip” excessive layers during backpropagation, resulting in much faster convergence and better training:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LxRAWICvlu8GQGPx." /></figure><p>Essentially the only difference with Wide Residual Networks is that in the original paper the tradeoff between width and depth of architecture was studied more carefully resulting in more efficient architecture with better convergence speed.</p><h3>DEX on NeuroPlatform</h3><p>We have wrapped the DEX model into a docker container and uploaded in to the NeuroPlatform. Let’s get started! First, enter Neuromation login page <a href="https://mvp.neuromation.io/">https://mvp.neuromation.io/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*0Z5AH-i0zDY0hUvq." /></figure><p>On your dashboard on the NeuroPlatform, you can see how much NTK is left on your balance and spend them in three sections:</p><ul><li>AI Models,</li><li>Datasets,</li><li>Generators.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G7IZB5Rnhm1KN2tU." /></figure><p>Today we are dealing with the Age and Gender estimator, an AI model available at the NeuroMarket. Let us purchase our first model! We enter AI models and buy the Age&amp;Gender model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jd00m3M2c9Uru6kR." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*noDno5LotSYgVOO6." /></figure><p>Then we request a new instance; it may take a while:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*A3kkc376rZvfYn3-." /></figure><p>And here we go! We can now try the model on a demo interface:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/0*IHEaGegaIiXDkcQU." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/0*BB2m-6pnY_YuRsVg." /></figure><p>It does tend to flatter me a bit.</p><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><p><em>Rauf Kurbanov<br>Senior Researcher, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2807b1307a13" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuronuggets-age-and-gender-estimation-2807b1307a13">NeuroNuggets: Age and Gender Estimation</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI for Spatial Metabolomics I: The Datasets of Life]]></title>
            <link>https://medium.com/neuromation-blog/ai-for-spatial-metabolomics-i-the-datasets-of-life-3dcb989aafdd?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dcb989aafdd</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[neuromation-science]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Fri, 09 Mar 2018 09:24:43 GMT</pubDate>
            <atom:updated>2018-04-06T09:09:33.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*nQ3rvMsoA09YdRo7." /><figcaption>Image <a href="https://www.quantamagazine.org/biology-confronts-data-complexity-20131007/">source</a></figcaption></figure><p>Here at Neuromation, we are starting an exciting — and rather sophisticated! — joint project with the <a href="https://www.embl.de/research/units/scb/alexandrov/">Spatial Metabolomics group</a> of <a href="https://scholar.google.com/citations?user=ORP9ui8AAAAJ&amp;hl=ru">Dr. Theodore Alexandrov</a> from the <a href="https://www.embl.de/index.php">European Molecular Biology Laboratory</a>. In this mini-series of posts, I will explain how we plan to use latest achievements in deep learning and invent new models to process imaging mass-spectrometry data, extracting metabolic profiles of individual cells to analyze the molecular trajectories that cells with different phenotypes follow…</p><p>Wait, I’ve surely lost you three times already. Let me start over.</p><h3>Omics: the datasets that make you</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*5nC_i0Ab6F0Sn8dY." /><figcaption>Image <a href="https://genius.com/Biology-genius-the-central-dogma-annotated">source</a></figcaption></figure><p>The picture above shows the <em>central dogma of molecular biology</em>, the key insight of XX century biology into how life on Earth works. It shows how genetic information flows from the DNA to the proteins that actually do the work in the cells:</p><ul><li>DNA stores genetic information and can replicate it;</li><li>in the process known as <em>transcription</em>, DNA copies out parts of its genetic code to <em>messenger RNA</em> (m-RNA), also a nucleic acid;</li><li>and finally, <em>translation</em> is the process of making proteins, “reading” the genetic code for them from RNA strings and implementing the blueprint in practice.</li></ul><p>I’ve painted a very simplified picture but this is truly the central, the most important information flow of life. The <em>central dogma</em>, first stated by Francis Crick in 1958, says that genetic information flows only from nucleic acids (DNA and RNA) to proteins and never back — your proteins cannot go back and modify your DNA or RNA, or even modify other proteins, they are controlled only by the nucleic acids.</p><p>Everybody knows that the genetic code, embodied in DNA, is very important. What is slightly less known is that each step along the central dogma pathway (a <em>pathway</em> is basically a sequence of common reactions that transform molecules into one another for example, DNA -&gt; RNA -&gt; protein is a pathway, and a very important one!) corresponds to its own “dataset”, its own characterization of an organism, each important and interesting in its own way.</p><p>Your set of genes, encoded in your DNA, is known as the <em>genome</em>. This is the main “dataset”, your primary blueprint, the genome is the stuff that says how you work in the most abstract way. As you probably know, the genome is a very long string of “letters” A, C, G, and T, which stand for the four nucleotides… don’t worry, we won’t go into too much detail about that stuff. The Human Genome Project successfully sequenced (“read out” letter by letter) a draft of the human genome in 2000 and a complete human genome in 2003, all three billion of letters. Since then, sequencing methods have improved a lot; moreover, all human genomes are, of course, very similar, so once you have one it is much easier to get the others. Your genome determines what diseases you are susceptible to and defines many of your characteristic traits.</p><p>The study of the human genome is far from over, but it is only the first part of the story. As we have seen above, genetic code from the DNA has to be read out into RNA. This is known as <em>transcription</em>, a complicated process which is entirely irrelevant for our discussion right now: the point is, pieces of the genome are copied into RNA verbatim (formally speaking, T changes to U, a different nucleotide, but it’s still the exact same information):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P7SwqnuWaTjx-DVv." /><figcaption>Image <a href="https://www.khanacademy.org/science/biology/gene-expression-central-dogma/transcription-of-dna-into-rna/a/overview-of-transcription">source</a></figcaption></figure><p>The cells differentiate here in <em>which </em>parts of the genome get transcribed.</p><p>The set of RNA sequences (both <em>coding</em> RNA that will later be used to make proteins and non-coding RNA, that is, the rest of it) in a cell is called the <em>transcriptome</em>. The transcriptome provides much more specific information about individual cells and tissues: for example, a cell in your liver has the exact same genome as a neuron in your brain — but very different transcriptomes! By studying the transcriptome, biologists can “increase the resolution” and see which genes are expressed in different tissues and how. For example, modern personalized medicine screens transcriptomes to diagnose cancer.</p><p>But this is still about the genetic code. The third dataset is even more detailed: it is the <em>proteome</em> that consists of all proteins produced in a cell, in the process known as <em>translation</em>, where RNA serves as a template, with three letters encoding every protein:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/0*bSDIHXpcW3YcYUme." /><figcaption>Image <a href="http://www.bbc.co.uk/schools/gcsebitesize/science/add_edexcel/cells/synthesisrev5.shtml">source</a></figcaption></figure><p>This is already much closer to the actual objective: the proteins that a cell makes determine its interactions with other cells, and the proteome says a lot about what the cell is doing, what its function in the organism is, what effect it has on other cells, and so on. And the proteome, unlike the genome, is malleable: many drugs work exactly by suppressing or speeding up the translation of specific proteins. Antibiotics, for instance, usually fight bacteria by attacking their RNA, suppressing protein synthesis completely and thus killing the cell.</p><p>Genomics, transcriptomics, and proteomics are subfields of molecular biology that study the genome, transcriptome, and proteome. They are collectively known as the “omics”. The central dogma has been known for a long way, but only very recently biologists have developed new tools appeared that actually let us peek into the transcriptome and the proteome.</p><p>And this has led to the big data “omics revolution” in molecular biology: with these tools, instead of theorizing we can now actually look into your proteome and find out what’s happening in your cells — and maybe help you personally, not just develop a drug that should work on most humans but somehow fails for you.</p><h3>Metabolomics: beyond the dogma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*gZnPHtwSBmjEYOLJ." /><figcaption>Image <a href="https://www.sisoh.com/replication-metabolomics-study-with-paul-cheney-md/">source</a></figcaption></figure><p>Molecular biologists began to speak of “the omics revolution” in the context of genomics, transcriptomics, and proteomics, but the central dogma is still not the full picture. Translating proteins is only the beginning of the processes that occur in a cell; after that, these proteins actually interact with each other and other molecules in the cell. These reactions comprise the cell’s metabolism, and ultimately it is exactly the metabolism that we are interested in and that we might want to fix.</p><p>Modern biology is highly interested in processes that go beyond the central dogma and involve the so-called <em>small molecules</em>: enzymes, lipids, glycose, ATP, and so on. These small molecules are either synthesized inside the cells — in this case they are called <em>metabolites</em>, that is, products of the cell’s metabolism — or come from beyond. For instance, vitamins are typical small molecules that cells need but cannot synthesize themselves, and drugs are exogenous small molecules that we design to tinker with a cell’s metabolism.</p><p>These synthesis processes are controlled by proteins and follow the so-called <em>metabolic pathways</em>, chains of reactions with a common biological function. The central dogma is one very important pathway, but in reality there are thousands. A recently developed <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4896983/">model of human metabolism</a> lists 5324 metabolites, 7785 reactions and 1675 associated genes, and this is definitely not the last version — modern estimates reach up to 19000 metabolites, so the pathways have not been all mapped out yet.</p><p>The metabolic profile of an organism is not fully determined by its genome, transcriptome, or even proteome: the metabolome (set of metabolites) forms, in particular, under the influence of environment that provides, e.g., vitamins. <em>Metabolomics</em>, which studies the composition and interaction between metabolites in live organisms, lies at the intersection of biology, analytical chemistry, and bioinformatics, with growing applications to medicine (and that’s not the last of the omics, but metabolomics will suffice for us now).</p><p>Knowing the metabolome, we can better characterize and diagnoze various diseases: they all have to leave a trace in the metabolome because if the metabolism has not changed why is there a problem at all?.. By studying metabolic profiles of cells, biologists can discover new biomarkers for both diagnosis and therapy, find new targets for the drugs. Metabolomics is the foundation for truly personalized medicine.</p><h3>The ultimate dataset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*36VmBK_olYufdNv7." /><figcaption>Image <a href="https://cen.acs.org/articles/95/i23/Pharma-embraces-imaging-mass-spec.html">source</a></figcaption></figure><p>So far, I’ve been basically explaining recent progress in molecular biology and medicine. But what do we plan to do in this project? We are not biologists, we are data scientists, AI researchers; what is our part in this?</p><p>Well, the metabolome is basically a huge dataset: every cell has its own metabolic profile (set of molecules that appear in the cell). Differences in metabolic profiles determine different cell populations, how metabolic profiles change in time corresponds to patterns of cell development, and so on, and so forth. Moreover, in <em>spatial</em> metabolomics that we plan to collaborate on it comes in the form of special images: results of <em>imaging mass-spectrometry</em> applied at very high resolution. This, again, requires some explanation.</p><p>Mass-spectrometry is a tool that lets us find out the masses of everything contained in a sample. Apart from rare collisions, this is basically the same as finding out which specific molecules appear in the sample. For example, if you put a diamond in the mass-spectrometer you’ll see… no, not just a single carbon atom, you will probably see both <em>12</em>C and <em>13</em>C isotopes, and their composition will say a lot about the diamond’s properties.</p><p>Imaging mass-spectrometry is basically a picture where every pixel is a spectrum. You take a section of some tissue, put it into a mass-spectrometer and get a three-dimensional “data cube”: every pixel contains a list of molecules (metabolites) found at this part of the tissue. This process is shown on the picture above. I’d show some pictures here but it would be misleading: the point is that it’s not a single picture, it’s a <em>lot</em> of parallel pictures, one for every metabolite. Something like this (picture taken from <a href="https://www.creative-proteomics.com/technology/mass-spectrometry-imaging.htm">here</a>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I0XpYEYkqvkLD-Rp." /></figure><p>The quest of making better imaging mass-spectrometry tools mostly aims to increase resolution, i.e., make the pixels smaller, and increase sensitivity, i.e., detect smaller amounts of metabolites. By now, imaging mass-spectrometry has come a long way: the resolution is so high that individual pixels in this picture can map to <em>individual cells</em>! This high-def mass-spectrometry, which is becoming known as <em>single-cell mass-spectrometry</em>, opens up the door for metabolomics: you can now get the metabolic profile of a lot of cells at once, complete with their spatial location in the tissue.</p><p>This is the ultimate dataset of life, the most in-depth account of actual tissues that exists right now. In the project, we plan to study this ultimate dataset. In the next installment of this mini-series, we will see how.</p><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dcb989aafdd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/ai-for-spatial-metabolomics-i-the-datasets-of-life-3dcb989aafdd">AI for Spatial Metabolomics I: The Datasets of Life</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Neuromation and Longenesis: The human data economy]]></title>
            <link>https://medium.com/neuromation-blog/neuromation-and-longenesis-the-human-data-economy-8867941b11f8?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8867941b11f8</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[neuromation-news]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 13:42:20 GMT</pubDate>
            <atom:updated>2018-04-06T10:17:28.991Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*oaAdF5wblPBkU9OIZIhJ_Q.jpeg" /></figure><p>We have recently <a href="https://medium.com/neuromation-io-blog/blockchain-and-ai-will-transform-healthcare-neuromation-and-longenesis-form-partnership-7fd84723168">announced</a> an important strategic partnership: Neuromation has joined forces with Longenesis, a startup that promises to develop a “<a href="http://longenesis.com/">decentralized ecosystem for exchange and utilization of human life data using the latest advances in blockchain and artificial intelligence</a>”. Sounds like a winning entry for last year’s bullshit bingo, right? Well, in this case we actually do believe in Longenesis, understand very well what they are trying to do, and feel that together we have all the components needed for success. Let’s see why.</p><h3>A match made in heaven</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uAUyMmIte2LmNeF4." /></figure><p>I will begin with the obvious: Longenesis is all about the data, and Neuromation is all about processing this data, training state-of-the-art AI models. This makes us ideal partners: Longenesis needs a computational framework to train AI models and highly qualified people to make use of this framework, and Neuromation needs interesting and useful datasets to make the platform more attractive to both customers and vendors.</p><p>This is especially important for us because Longenesis will bring not just any data but data related to medicine and pharmaceutics. I have <a href="https://medium.com/neuromation-io-blog/there-is-no-competition-only-development-of-useful-tools-sergey-nikolenko-about-ai-in-medicine-de2a96298349?source=collection_home---6------7----------------">recently written here</a> about AI in medicine, but this is an endless topic: we are at the brink of an AI revolution in medicine, both in terms of developing generic tools and in terms of personalized medicine. Longenesis will definitely be on the frontier of this revolution.</p><p>I have personally collaborated with Longenesis CSO Alex Zhavoronkov and his colleagues in Longenesis’ parent company, <em>Insilico Medicine</em>, especially Arthur Kadurin (he is my Ph.D. student and my co-author in our recently published book, <em>Deep Learning</em>). Together, we have been working on frontier problems related to drug discovery: researchers at Insilico have been applying generative adversarial networks (GANs) to generate promising molecules with desired properties. Check out, e.g., our <a href="http://dx.doi.org/10.1021/acs.molpharmaceut.7b00346">recent joint paper</a> about the DruGAN model (a name that rings true to a Russian ear). Hence, I can personally vouch that not only Alex himself is one of the most energetic and highly qualified people I have ever met, but that his team in both Insilico and Longenesis is made of great people. And this is the best predictor for success of all.</p><h3>The NeuroPlatform problem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7N-3pX7RXw_pcDU3." /></figure><p>The basic idea of Longenesis blends together perfectly with what is actually an open problem for the NeuroPlatform so far. On the <a href="https://medium.com/neuromation-io-blog/the-neuromation-platform-is-live-ee32287d5949?source=collection_home---6------3----------------">recently released</a> <a href="http://platform.neuromation.io/">NeuroPlatform</a>, AI researchers and practitioners will be able to construct AI models (especially deep neural networks that could be trained on the GPUs provided by mining pools), upload them in a standardized form into the NeuroMarket, our marketplace of AI models and datasets, and then rent out either the model architectures or already pretrained models.</p><p>To train a neural network, you need a dataset. And if you want to use the GPUs on mining pools, you need to transfer the data to these GPUs. The transfer itself also presents a technical problem for very large datasets, but the main question is: how are you going to trust some unknown mining pool from Inner Mongolia with your sensitive and/or valuable data? It’s not a problem when you train on standard publicly available datasets such as ImageNet, the key dataset for modern computer vision, but to develop a customized solution you will still need to fine-tune on your own data.</p><p>We at Neuromation have an interesting solution for this problem: we plan to use <a href="https://medium.com/neuromation-io-blog/neuromation-story-from-synthetic-data-to-knowledge-mining-bff28a19eb62">synthetic data</a> to train neural networks, creating, e.g., generators for rendered photos based on 3D models. In this case, we solve two problems at once: synthetic data is very unlikely to be sensitive, and there is no transfer of huge files because you only transfer the generator and the full dataset does not even have to be stored at any time. But still, you can’t really synthetize the MRI of a specific person or make up pictures of faces of specific people you want to recognize. In many applications, you have to use real data, and it could be sensitive.</p><p>Here is where Longenesis comes in. Longenesis is developing a solution for blockchain-based safe storage for the most sensitive data of all: personal medical records. If hospitals and individuals trust Longenesis’ solution with medical data, you can definitely trust this solution with any kind of sensitive or valuable data you might have. Their solution also has to be able to handle large datasets: CT or MRI scans are pretty hefty. Therefore, we are eagerly awaiting news from them on this front.</p><p>But this is still only the beginning.</p><h3>The human data economy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*Fy2Gg5WZZJigTXGM." /></figure><p>The ultimate goal of Longenesis is to create a marketplace of personal medical records, a token economy where you can safely store and sell access to your medical records to interested parties such as research hospitals, medical researchers, pharmaceutical companies and so on.</p><p>Over his or her lifetime, a modern person accumulates a huge amount of medical records: X-rays, disease histories, CT scans, MRIs, you name it. All of this is very sensitive information that should rightly belong to a person — but also very useful information.</p><p>Imagine, God forbid, that you are diagnosed with a rare disease. This is a very unfortunate turn of events, but it also means that your medical records suddenly increase in value: now doctors could get not just yet another MRI of some healthy average Joe but the MRI of a person who has developed or will later develop this disease. The human data economy that Longenesis plans to build will literally sweeten the pill in this case: yes, it’s a bad thing to get this disease but it also means you can cash out on your now-interesting medical records. And let’s face it, in most cases people won’t mind to share their MRIs or CT scans with medical researchers at all, especially for a price.</p><p>But the price in this case is much less important than the huge possibilities that open up for the doctors to develop new drugs and better treat this rare disease. With the human data economy in place, people will actually be motivated to bring their records to medical researchers, not the other way around.</p><p>This could be another point where we can collaborate; here at Neuromation, we are also building a token economy for useful computing, so this is a natural point where we could join forces as well. In any case, the possibilities are endless, and the journey to better medicine for all and for every one in particular is only beginning. Let’s see where this path takes us.</p><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8867941b11f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuromation-and-longenesis-the-human-data-economy-8867941b11f8">Neuromation and Longenesis: The human data economy</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“There is no competition, only development of useful tools”: Sergey Nikolenko about AI in medicine]]></title>
            <link>https://medium.com/neuromation-blog/there-is-no-competition-only-development-of-useful-tools-sergey-nikolenko-about-ai-in-medicine-de2a96298349?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/de2a96298349</guid>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[neuromation-news]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Tue, 13 Feb 2018 14:25:05 GMT</pubDate>
            <atom:updated>2018-04-06T10:21:12.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/410/0*H0KI8nhnCxM01YI1." /><figcaption>Image Source Futurama</figcaption></figure><h3>Where and how do people already use medical diagnostic systems based on AI algorithms?</h3><p>Medical diagnostics is a very interesting case from the point of view of AI.</p><p>Indeed, medical tests and medical images are data where one is highly tempted to train some kind of machine learning model. One of the first truly successful applications of AI back in the 1970s was, actually, medical diagnostics: the rule-based expert system MYCIN aggregated the knowledge of real doctors and learned to diagnose from blood tests better than an average doctor.</p><p>But even this direct application has its problems. Often a correct diagnosis must not only analyze the data from tests/images but also use some additional information which is hard to formalize. For example, the same lesion on the X-ray of the lungs of a senior chain smoker and a ten-year-old kid is likely to mean two very different things. Theoretically we could train models that make use of this additional information but the training datasets don’t have it, and the model cannot ask an X-ray how many packs it goes through every day.</p><p>This is an intermediate case: you do have an image but it is often insufficient. True full-scale diagnostics is even harder: no neural network will be able to ask questions about your history that are most relevant for this case, process your answers to find out relevant facts, ask questions in such a way that the patient would answer truthfully and completely… This is a field where machine learning models are simply no match to biological neural networks in the doctors’ heads.</p><p>But, naturally, a human doctor can still make use of a diagnostic system. Nobody can remember and easily extract from memory the detailed symptoms of all diseases in the world. An AI model can help propose possible diagnoses, evaluate their probabilities, show which symptoms fit a given diagnosis or not, and so on.</p><p>Thus, despite the hard cases, I personally think that the medical community (including, medical insurance companies, courts, and so on) is being overly cautious in this case. I believe that most doctors would improve their results by using automated diagnostic systems, even at the current stage of AI development. And we should compare them not with some abstract idealized notion of “almost perfect” diagnostic accuracy but with real results produced by live people; I think it would be a much more optimistic outlook.</p><h3>Is there a difference for a neural network between recognizing a human face on a photo and recognizing a tumor with a tomogram?</h3><p>Indeed, many problems in medicine look very similar to computer vision tasks, and there is a large and ever growing field of machine learning for medical imaging. The models in that field are often very similar to regular computer vision but sometimes differences do arise.</p><p>A lot depends on the nature of the data. For instance, distinguishing between a melanoma and a birthmark given a photo of a skin area is exactly a computer vision problem, and we probably won’t have to develop completely novel models to solve it.</p><p>But while many kinds of medical data have spatial structure, they may be more complex than regular photos. For instance, I was involved in a project that processed imaging mass-spectrometry (IMS) datasets. IMS processes a section of tissue (e.g., from a tumor) and produces data which is at first glance similar to an image: it consists of spatially distributed pixels. But every “pixel” contains not one or three numbers, like a photo, but a long and diverse spectrum with thousands of different numbers corresponding to different substances found at this pixel. As a result, although this ``data cube’’ has clear spatial structure, classical computer vision models designed for photos are not enough, we have to develop new methods.</p><h3>What about CT and MRI scans? Will the systems that process them “outcompete” roentgenologists whose job is also to read the scans?</h3><p>This field has always, since at least the 1990s, been a central application and one of the primary motivations for developing computer vision models.</p><p>Nowadays, such systems, together with the rest of computer vision, have almost completely migrated to convolutional neural networks (CNN); with the deep learning revolution CNNs have become the main tool to process any kind of images, medical included. Unfortunately, a detailed survey of this field would be too large to fit on the margins of this interview: e.g., a <a href="https://arxiv.org/abs/1702.05747">survey released in February 2017</a> contains more than 300 references, most of which appeared in 2016 and later — and a whole year has passed since…</p><h3>Should the doctors be afraid that “the machine” will replace them? Why or why not?</h3><p>It is still a very long way to go before AI models are able to fully replace human doctors even in individual medical specialties. To continue the above example, there already exist computer vision models that can tell a melanoma apart from a moleno worse or even better than an average doctor. But the real problem is usually not to differentiate pictures but to persuade a person to actually come in for a checkup (automated or not) and to make the checkup sufficiently thorough. It is easy to take a picture of a suspicious mark on your arm, but you will never notice a melanoma, e.g., in the middle of your back; live doctors are still as needed as ever to do the checkup. But a model that would even slightly reduce the error rate is still absolutely relevand and necessary, it will save people’s lives.</p><p>A similar situation has been arising in surgery lately. Over the last couple of years, we have seen a lot of <a href="https://spectrum.ieee.org/the-human-os/biomedical/devices/in-fleshcutting-task-autonomous-robot-surgeon-beats-human-surgeons">news stories about robotic surgeons</a> that cut flesh more accurately, do less damage, and stitch up better than humans. But it is equally obvious that for many years to come, these robots will not replace live surgeons but will only help them save more lives, even if the robots learn to perform an operation from start to finish. It is no secret that modern autopilots can perform virtually the entire flight from start to finish-but it doesn’t mean human pilots are moving out of the cabin anytime soon.</p><p>Machine learning models and systems will help doctors diagnose faster and more accurately, but now, while strong AI has not yet been created, they definitely cannot fully replace human doctors. There is no competition, only development of useful tools. Medicine is a very imprecise business, and there always are plenty of factors that an automated system simply cannot know about. We are always talking only about computer-aided diagnosis (CAD), not full automation.</p><h3>What are the leading companies in Russia that drive the innovations in biomedical AI?</h3><p>One company that does very serious research in Russia is Insilico Medicine, one of the world leaders in the development of anti-aging drugs and generally in the field of drug discovery with AI models. Latest results by Insilico include models that learn to generate molecules with given properties. Naturally, such models cannot replace clinical trials but they can narrow down the search from a huge number of all possible molecules and thus significantly speed up the work of “real” doctors.</p><p>Here at Neuromation, we are also starting projects in biomedical AI, especially in fields related to computer vision. For instance, one of our projects is to develop smart cameras that will track sleeping infants and check whether they are all right, whether they are sleeping in a safe position, and so on. It is still too early to talk about several other projects, they are still at a very early stage, but we are certain something interesting will come out of them very soon. Biomedical applications are one of the main directions of our future development; follow our news!</p><p>This is a translation of Sergey Nikolenko’s interview by Anna Khoruzhaya; see the <a href="http://neuronovosti.ru/nikolenko/">Russian original on the NeuroNews website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de2a96298349" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/there-is-no-competition-only-development-of-useful-tools-sergey-nikolenko-about-ai-in-medicine-de2a96298349">“There is no competition, only development of useful tools”: Sergey Nikolenko about AI in medicine</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Neuromation is hiring!]]></title>
            <link>https://medium.com/neuromation-blog/neuromation-is-hiring-c9017322700b?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9017322700b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuromation]]></category>
            <category><![CDATA[neuromation-news]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Tue, 06 Feb 2018 20:53:04 GMT</pubDate>
            <atom:updated>2018-04-06T10:22:04.594Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello colleagues! Today the post is unusual — we have a vacancy! Incidentally, I do not remember a vacancy at opendatascience slack gaining such stats. But the old-timers should know better.</p><p>tl-dr: St. Petersburg, deep learning in computer vision, cool projects, 120–250K, for stars there can be more. In more detail.</p><p>Recently, the Neuromation company (<a href="https://neuromation.io/en/">https://neuromation.io/en/</a>), in which I am the Chief Research Officer, has completed the token sale:</p><p><a href="/service/about:blank">http://neuromation.io/en/neuromation-continues-establish-global-ai-blockchain-industry-leader-exceeding-expectations/</a></p><p>We have collected a lot of money and plan to use it to organize new labs for both industrial projects and breakthrough deep learning studies. In particular, we are opening a division of Neuromation Labs in St. Petersburg under my leadership. So we are hiring people there.</p><p>In this lab, we plan to conduct various deep learning projects, but our focus is computer vision based on synthetic data. You can read, for example, my posts on our first big retail project and the Neuromation platform that we are also planning to build:</p><p><a href="/service/about:blank">http://businesstory.ru/istorija-neuromation-ot-sinteticheskih-dannyh-k-dobyche-znanij/</a></p><p><a href="/service/about:blank">https://medium.com/neuromation-io-blog/new-resources-for-deep-learning-with-the-neuromation-platform-55fd411cb440</a></p><p>And here are examples of typical projects that we will do:</p><p>— see the third part, on piglets:</p><p><a href="/service/about:blank">http://milknews.ru/longridy/Iskusstvennyj-intellekt-v-APK.html</a></p><p>— and here also the third part, on MonBaby:</p><p><a href="/service/about:blank">https://www.if24.ru/iskin-v-biologii-i-meditsine/</a></p><p>The main thing that is required of you is to have confident expertise in machine learning and modern neural network models, both theoretically and practically. The desirable level of candidates is “I can read a modern article on deep learning and implement the model from the article, even if there was no ready-made code on the GitHub.” Specific libraries are not so important at this level, but obviously, today these are, most likely, PyTorch or TensorFlow/Keras.</p><p>Experience is in computer vision, especially object detection, segmentation, video processing is desirable, but we can talk even if you were doing something else. In addition, an important additional advantage will be familiarity with the “classic” computer vision, experience in OpenCV development, as well as academic experience (publications).</p><p>Salary bracket is at Rubles 120–250K per month (I think, most likely $3K–4K) subject to the interview results. Other terms to be discussed, but generally we are looking for candidates for full-time work in a small office in St. Petersburg. With really stellar candidates, we will always come to understanding and agreement on individual basis. For you it is a unique chance to join a potentially very powerful company, as they say, on the ground floor. By the way, bonuses/tokens/options are also possible, as we are still a startup.</p><p>We will also be happy to see talented juniors in our ranks. If you are interested in growing and developing in deep learning, you are welcome. Write me about yourself, your education and experience in neural networks. For such a candidate, general mathematic culture (probability theory, mathematical analysis, linear algebra), command of Python, basic data processing and machine learning experience, and most importantly — a willingness to study and work on yourself, is required. Experience in computer vision, command of OpenCV, etc. will be a great advantage.</p><p>Contact me right here, alternatively at snikolenko@gmail.com or Telegram @snikolenko. Please like, share, repost!</p><p>P.S. If you already work in AI start-up and do not want to change your place of work, we can still find something to talk about — 10% of our token sale goes to the grants program for AI startups with interesting and cool deep learning ideas support:</p><p><a href="/service/about:blank">https://aicompetition.neuromation.io/en/</a></p><p>You are welcome to contact!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9017322700b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/neuromation-is-hiring-c9017322700b">Neuromation is hiring!</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Вакансия в Neuromation!]]></title>
            <link>https://medium.com/neuromation-blog/%D0%B2%D0%B0%D0%BA%D0%B0%D0%BD%D1%81%D0%B8%D1%8F-%D0%B2-neuromation-d617b5cb5f77?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d617b5cb5f77</guid>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Mon, 05 Feb 2018 07:32:15 GMT</pubDate>
            <atom:updated>2018-02-06T20:53:24.259Z</atom:updated>
            <content:encoded><![CDATA[<p>Привет, коллеги! Сегодня необычный пост — наша вакансия! Не припомню, кстати, чтобы вакансия на opendatascience slack набирала такие статы.) Но старожилам виднее.)</p><p>tl-dr: Санкт-Петербург, deep learning в computer vision, крутые проекты, 120–250К, для звёзд может быть больше. Теперь подробнее.</p><p>Недавно компания Neuromation (<a href="https://neuromation.io/en/">https://neuromation.io/en/</a>), в которой я директор по науке (Chief Research Officer), закончила token sale:<br><a href="http://neuromation.io/en/neuromation-continues-establish-global-ai-blockchain-industry-leader-exceeding-expectations/">http://neuromation.io/en/neuromation-continues-establish-global-ai-blockchain-industry-leader-exceeding-expectations/</a></p><p>Мы собрали немало денег и планируем организовать на них новые лаборатории, в которых будем делать как индустриальные проекты, так и прорывные исследования в deep learning. В частности, мы открываем подразделение Neuromation Labs в Санкт-Петербурге под моим руководством. И туда мы нанимаем людей.</p><p>В этой лаборатории мы планируем делать разнообразные проекты в области deep learning, но наш основной уклон — компьютерное зрение на основе синтетических данных. Можно почитать, например, мои тексты о нашем первом большом проекте по ритейлу и о платформе Neuromation, которую мы тоже планируем строить:<br><a href="http://businesstory.ru/istorija-neuromation-ot-sinteticheskih-dannyh-k-dobyche-znanij/">http://businesstory.ru/istorija-neuromation-ot-sinteticheskih-dannyh-k-dobyche-znanij/</a><br><a href="https://medium.com/neuromation-io-blog/new-resources-for-deep-learning-with-the-neuromation-platform-55fd411cb440">https://medium.com/neuromation-io-blog/new-resources-for-deep-learning-with-the-neuromation-platform-55fd411cb440</a></p><p>А вот примеры типичных проектов, которые мы будем делать:</p><p>— см. третью часть, про свинок:<br><a href="http://milknews.ru/longridy/Iskusstvennyj-intellekt-v-APK.html">http://milknews.ru/longridy/Iskusstvennyj-intellekt-v-APK.html</a></p><p>— и тут тоже третью часть, про MonBaby:<br><a href="https://www.if24.ru/iskin-v-biologii-i-meditsine/">https://www.if24.ru/iskin-v-biologii-i-meditsine/</a></p><p>Основное, что требуется от вас — уверенно разбираться в машинном обучении и современных нейросетевых моделях, как теоретически, так и практически. Желательный уровень кандидатов — “могу прочитать современную статью по deep learning и реализовать модель из статьи, даже если готового кода на гитхабе не нашлось”. Конкретные библиотеки на этом уровне не так уж важны, но понятно, что сейчас это скорее всего PyTorch или TensorFlow/Keras.</p><p>Желателен опыт работы именно в computer vision, особенно object detection, сегментации, обработке видео, но можно поговорить и если занимались чем-то другим. Кроме того, важным дополнительным плюсом будет знакомство с “классическим” computer vision, опыт разработки в OpenCV, а также опыт академической деятельности (публикации).</p><p>Вилка 120–250К рублей в месяц (думаю, скорее всего $3K-$4K) по результатам собеседования. Остальные условия обсуждаемы, но в целом ищем кандидатов на full-time работу в небольшом офисе в Петербурге. С по-настоящему звёздными кандидатами мы всегда поймём друг друга и сможем договориться индивидуально. Для вас это уникальный шанс зайти в потенциально очень мощную компанию, как говорится, on the ground floor. Кстати, бонусы/токены/опционы тоже возможны, мы пока что стартап.</p><p>Также мы будем рады видеть в наших рядах талантливых junior’ов. Если вам интересно расти и развиваться в deep learning, добро пожаловать. Напишите о мне о себе, своём образовании и опыте в области нейронных сетей. От такого кандидата требуется общая математическая культура (теория вероятностей, матанализ, линейная алгебра), владение языком python, базовый опыт обработки данных и машинного обучения, а главное — готовность много изучать и работать над собой. Будет большим плюсом опыт работы в computer vision, владение OpenCV и т.п.</p><p>Обращаться ко мне, можно прямо здесь, можно на <a href="/service/mailto:snikolenko@gmail.com">snikolenko@gmail.com</a> или в телеграм @snikolenko. Please like, share, repost!</p><p>P.S. Если вы уже работаете в AI-стартапе и не хотите пока менять место работы, нам всё равно может найтись о чём поговорить — 10% от нашего token sale идёт на программу грантов для поддержки AI-стартапов с интересными и крутыми идеями о deep learning:<br><a href="https://aicompetition.neuromation.io/en/">https://aicompetition.neuromation.io/en/</a><br>Обращайтесь!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d617b5cb5f77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/%D0%B2%D0%B0%D0%BA%D0%B0%D0%BD%D1%81%D0%B8%D1%8F-%D0%B2-neuromation-d617b5cb5f77">Вакансия в Neuromation!</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Will The Future Bring?]]></title>
            <link>https://medium.com/neuromation-blog/what-will-the-future-bring-ba0aa5f24d50?source=rss-cb0247f78af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba0aa5f24d50</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuromation-science]]></category>
            <category><![CDATA[neuromation]]></category>
            <dc:creator><![CDATA[Sergey Nikolenko]]></dc:creator>
            <pubDate>Mon, 05 Feb 2018 07:05:16 GMT</pubDate>
            <atom:updated>2018-04-06T10:22:40.860Z</atom:updated>
            <content:encoded><![CDATA[<p>Three Predictions on AI Technology</p><p>Here at Neuromation, we are always looking forward to the future. Actually, we are <em>making </em>the future. Thus, we are in a good position to try to predict what is going to happen with the AI industry soon. I know how difficult it is to make predictions, especially, as some Danish parliament member <a href="https://quoteinvestigator.com/2013/10/20/no-predict/">once remarked</a>, about the future. Especially in an industry like ours. Still, here go my three predictions, or, better to say, three trends that I expect to continue for the next few years of AI. I concentrated on the technical side of things — I hope the research will stay as beautifully unpredictable as ever.</p><h3>Specialized hardware for AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o-pn6G4571AiSYi6." /><figcaption><a href="https://www.geekwire.com/2017/google-launches-powerful-new-cloud-tpu-machine-learning-chips-google-cloud-platform/">Image source</a></figcaption></figure><p>One trend which is already obvious and will only gain in strength in the future is the rise of specialized hardware for AI. The deep learning revolution started in earnest when AI researchers realized they could train deep neural networks on graphical processors (GPUs, video cards). The idea was that training deep neural networks is relatively easy to parallelize, and graphic processing is also parallel in nature: you apply shaders to every pixel or every vertex of a model independently. Hence, GPUs have always been specifically designed for parallelization: a modern GPU has several thousand cores compared to 4–8 cores in a CPU (CPU cores are much faster, of course, but still, thousands). In 2009, this turned every gaming-ready PC into an AI powerhouse equal to the supercomputers of old: an off-the-shelf GPU trains a deep neural network 10–30x faster than a high-end CPU; see, e.g., <a href="https://blog.slavv.com/picking-a-gpu-for-deep-learning-3d4795c273b9">an up-to-date detailed comparison here</a>.</p><p>Since then, GPUs have been the most common tool for both research and practice in deep learning. My prediction is that over the next few years, they will be gradually dethroned in favour of chips specifically designed for AI.</p><p>The first widely known specialized chips for AI (specifically training neural networks) are proprietary Google TPUs. You can rent them on Google Cloud but they have not been released for sale for the general public, and probably won’t be.</p><p>But Google TPU is just the first example. I <a href="https://medium.com/neuromation-io-blog/bitmain-introduces-its-first-hardware-for-accelerating-artificialintelligence-ai-applications-9ad93353034e">have already blogged</a> about recent news from Bitmain, one of the leading designers and producers of ASICs for bitcoin mining. They are developing a new ASIC specifically for tensor computing — that is, for training neural networks. I am sure that over the next few years we will see many chips designed specifically that will bring deep learning to new heights.</p><h3>AI Centralization and Democratization</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/0*PBetR3MR0U1pD9Vk." /><figcaption><a href="http://thefourthrevolution.org/wordpress/archives/4718?doing_wp_cron=1517652188.2279429435729980468750">Image source</a></figcaption></figure><p>The second prediction sounds like an oxymoron: AI research and practice will centralize and decentralize at the same time. Allow me to explain.</p><p>In the first part, we talked about training neural networks on GPUs. Since about 2009, deep learning has been living in “the good old days” of computing when you can stay on the bleeding edge of AI research with a couple off-the-shelf GPU for $1000 each in your garage. These days are not past us yet, but it appears that soon they will be.</p><p>Modern advances in artificial intelligence are more and more dependent on computational power. Consider, e.g., AlphaZero, a deep reinforcement learning model that has recently trained to play chess, go, and shogi better than <em>the best engines</em> (not just humans! AlphaZero beat Stockfish in chess, AlphaGo in go and Elmo in shogi) completely from scratch, knowing only the rules of the game. This is a huge advance, and it made all the news with the headline “AlphaZero learned to beat Stockfish from scratch in four hours”.</p><p>Indeed, four hours were enough for AlphaZero… on a cluster of 5000 Google TPUs for generating self-play games and 64 second-generation TPUs to train the neural networks, as <a href="https://arxiv.org/abs/1712.01815">the AlphaZero paper</a> explains. Obviously, you and I wouldn’t be able to replicate this effort in a garage, not without some very serious financing.</p><p>This is a common trend. Research in AI is again becoming more and more expensive. It increasingly requires specialized hardware (even if researchers use common GPUs, they need lots of them), large datacenters… all of the stuff associated with the likes of Google and Facebook as they are now, not as they were when they began. So I predict further centralization of large-scale AI research in the hands of cloud-based services.</p><p>On the other hand, this kind of centralization also means increased competition on this market. Moreover, the costs of computational power have been recently rather inflated due to super demand on the part of cryptocurrency miners. We tried to buy high-end off-the-shelf GPUs last summer and utterly failed: they were completely sold out for those who were getting into mining ethereum and litecoins. However, this trend is coming to an end too: mining is institutionalizing even faster, returns on mining decrease exponentially, and the computational resources are beginning to free up as it becomes less and less profitable to use them.</p><p>We at Neuromation are developing a platform to bring this computational power to AI researchers and practitioners. On our platform, you will be able to rent the endless GPUs that had been mining ETH, getting them cheaper than anywhere else but still making a profit for the miners. This effort will increase competition on the market (currently you go either to Amazon Web Services or Google Cloud, there are very few other solutions) and bring further democratization of various AI technologies.</p><h3>AI Commoditization</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*fzuk0UT06aFVQFl9." /><figcaption><a href="https://www.linkedin.com/pulse/fighting-commoditization-sites-starts-site-initiation-sujay-jadhav">Image source</a></figcaption></figure><p>By the way, speaking of democratization. Machine learning is a very community-driven area of research. It has unprecedented levels of sharing between researchers: it is common practice to accompany research papers with working open source code published on Github, and datasets, unless we are talking about sensitive data like medical records, are often provided for free as well.</p><p>For example, modern computer vision based on convolutional neural networks almost invariably uses a huge general purpose dataset called <a href="http://www.image-net.org/about-overview"><em>ImageNet</em></a>; it has more than 14 million images hand-labeled into more than 20 thousand categories. Usually models are first pretrained on ImageNet, which lets them extract low-level features common for all photos of our world, and only then train it further (in machine learning, it is called <em>fine-tuning</em>) on your own data.</p><p>You can request access to ImageNet and download it for free, but what is even more important, the <em>models already trained</em> on ImageNet are commonly available for the general public (see, e.g., <a href="https://github.com/BVLC/caffe/wiki/Model-Zoo">this repository</a>). This means that you and I don’t have to go through a week or two of pretraining on a terabyte of images, we can jump right into it.</p><p>I expect this trend to continue and be taken further by AI researchers in the near future. Very soon, a lot of “basic components” will be publicly available, and an AI researcher will be able to work with and combine directly, without tedious fine-tuning. This will be partially a technical process of making what we (will) have easily accessible, but it will also require some new theoretical insights.</p><p>For example, <a href="https://deepmind.com/research/publications/pathnet-evolution-channels-gradient-descent-super-neural-networks/">a recent paper</a> from DeepMind presented PathNet, a modular neural architecture able to combine completely different sub-networks and automatically choose and fine-tune a combination of these sub-networks most suitable for a given task. This is still a new direction, but I expect it to pick up.</p><p>Again, we at Neuromation plan to be on the cutting edge: in the future, we plan to provide modular components for building modern neural networks on our platform. Democratization and commoditization of AI research is what Neuromation platform is all about.</p><p><em>Sergey Nikolenko<br>Chief Research Officer, Neuromation</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba0aa5f24d50" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neuromation-blog/what-will-the-future-bring-ba0aa5f24d50">What Will The Future Bring?</a> was originally published in <a href="https://medium.com/neuromation-blog">Neuromation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>