<?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[Crowd Emotion - Medium]]></title>
        <description><![CDATA[News related to http://crowdemotion.co.uk - Medium]]></description>
        <link>https://medium.com/crowd-emotion?source=rss----b2ebfa7fb7f1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Crowd Emotion - Medium</title>
            <link>https://medium.com/crowd-emotion?source=rss----b2ebfa7fb7f1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 08:53:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/crowd-emotion" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Unsung Hero]]></title>
            <link>https://medium.com/crowd-emotion/the-unsung-hero-7082135a9337?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/7082135a9337</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Matt Celuszak]]></dc:creator>
            <pubDate>Sat, 28 Mar 2015 11:52:31 GMT</pubDate>
            <atom:updated>2015-03-28T13:51:42.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lx6wX3cKcbQjPN_k5cTUhA.jpeg" /></figure><p>The most important person in my startup doesn’t even work there</p><blockquote>“There’s 3 people in this relationship!”</blockquote><h2>She was right.</h2><p>In 18 months <a href="http://www.crowdemotion.co.uk/">CrowdEmotion</a> hit its first “oh shit” moment.</p><p>Early on, we opened up a partnership with a large global media company to understand how emotions drive content choice. We built tech. We expanded the team. We doubled down on sales efforts. We gave everything and slowly lost sight of our key priority.</p><p>We forgot about our people. All of them.</p><p>We were sluggish, distracted, and underwhelmed. We worked our 18 hour days to diminishing returns tackling a very difficult problem. Our people side of the business sucked.</p><p>I needed to re-assess. Fast.</p><p>Hindsight provided the material. The book: <a href="http://techcrunch.com/2014/03/03/the-hard-thing-about-hard-things-ben-horowitzs-honest-and-real-take-on-entrepreneurship/">Hard Things About Hard Things</a> by Ben Horowitz provided the context.</p><p>But she provided the clarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5oRhLfGeX7MRl4p0YBqdA.jpeg" /></figure><blockquote>Let’s do one of the many trips we always spoke about.</blockquote><p>For christmas she surprised me with flights to Burma. It was 18 months for our relationship as well. She only knew me as a self-employed dreamer who put everything into work. Yes, I made her laugh, but the life we wanted was so far from where we were.</p><p>Instead of running in the other direction, she took a punt. She bet on us.</p><p>The trip was to take place in 3 months which I could only see as “the most critical time for the business”. I had just reduced the team right down, many good friends to whom I am forever indebted. I couldn’t see how going away would help. But, as she bet on us, I had to make it work.</p><p>That was the beginning of the change.</p><h3>Focus on the people around you — family, friends, colleagues, clients and all else will follow.</h3><p>The trip did wonders. It set a timeline. It set expectations. It unplugged.</p><p>Most importantly it gave us time together to build our relationship. That’s where we uncovered the key people issue.</p><p>Stability.</p><p>Not just in a financial way, though important, was the stability of a lifestyle she could work with.</p><p>There it was, clear as day.</p><h2>My job in life is to remove as much uncertainty as possible to pursue the uncertain.</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZS5o9ZXuMRBxWewH8RefQw.jpeg" /></figure><h3>3 months on…</h3><p>We are by no means in the clear, but velocity is higher, focus is clearer and clients are starting to know what’s coming down the pipe. We know what to say “no” to and are making decisions that are grounded in data rather than feel. There’s still a long way to go. The difference is steering the ship by constant course correction rather than one bearing and leaving the helm.</p><p>At home, things are changing. We have set dinner times, cook together, date nights, and try to sneak in the cheeky lunch. I consider myself extremely lucky to have family, friends, and colleagues go through the uncertainty of a startup with me.</p><p>Most of all, I am lucky to have her.</p><p>My partner in the one startup you can’t afford to fail — life.</p><p><em>This piece was inspired by my co-founder’s wife, </em><a href="https://medium.com/@nadiacamandona"><em>Nadia Camandona</em></a><em>, who provided a moving example of what it’s like to live with an entrepreneur.</em></p><p><a href="https://medium.com/i-mammanager/10-cose-che-ho-imparato-vivendo-con-uno-startupper-acebc0c2a587"><em>Find her story here(in Italian).</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7082135a9337" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowd-emotion/the-unsung-hero-7082135a9337">The Unsung Hero</a> was originally published in <a href="https://medium.com/crowd-emotion">Crowd Emotion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[nginx-rtmp on EC2]]></title>
            <link>https://medium.com/crowd-emotion/nginx-rtmp-on-ec2-97210e308d67?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/97210e308d67</guid>
            <dc:creator><![CDATA[Davide Bertola]]></dc:creator>
            <pubDate>Tue, 23 Dec 2014 22:13:27 GMT</pubDate>
            <atom:updated>2014-12-23T13:22:27.529Z</atom:updated>
            <content:encoded><![CDATA[<p>Here at <a href="http://crowdemotion.co.uk/">CrowdEmotion.co.uk</a> we use OSS to stream and save user webcam from the browser to a clouded server infrastructure. The server side componend that receives and saves the RTMP stream is nginx-rtmp.</p><p><a href="https://github.com/arut/nginx-rtmp-module">nginx-rtmp</a> is upposed to be quite efficient and support traffic for a few Gigabits although our setup is limited to a single master nginx process because it’s the only working mode that actually supports saving webcam to disk. This is the nginx example configuration we used for our tests.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f0940f3193a60768266942e9128c818/href">https://medium.com/media/2f0940f3193a60768266942e9128c818/href</a></iframe><p>As you can see one Flash application endpoint just receives the video stream while the other also saves it to disk.</p><p>We created a <em>sample content</em> with 1 megabit video using <a href="http://www.gstreamer.org/">GStreamer</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35d0ae7d41176f6c8f4fe5375d59685f/href">https://medium.com/media/35d0ae7d41176f6c8f4fe5375d59685f/href</a></iframe><p>Simulating users was done by using multiple instances <strong>gst-launch</strong> like this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f14feac56e91fbab12b87f34484b9a2/href">https://medium.com/media/0f14feac56e91fbab12b87f34484b9a2/href</a></iframe><p>In these conditions one stream weights about 150 KiloBytes/s. Therefore <strong>100 users</strong> used roughly <strong>150 MegaBytes</strong> meaning<strong> 120 Megabit/s</strong></p><h3>What happened</h3><p>First of all, let me say I would have expected being able to receive and record a few thousands of webcam streams. But things are never easy. Lets dive into it.</p><p>We fired up 2x m1.large instances (Ubuntu 14.04 AMI). One set up to trasmit while the other set to receive and save RTMP streams. We were able to receive and save 50 streams before the cpu (one single core actually) went 100% and the server started loosing connections. I was surprised because I would have expected almost no cpu involved in receiving and saving to disk.</p><h4>Flooding system calls</h4><p>Further analysis showed that most of the time was spent in SYSTEM time. So I used strace/ltrace to see which syscalls were taking time. These were the results.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b052581db9c2ef47085ba0e111927754/href">https://medium.com/media/b052581db9c2ef47085ba0e111927754/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1bbe279ce184dd63a973656a3b3909e7/href">https://medium.com/media/1bbe279ce184dd63a973656a3b3909e7/href</a></iframe><p>Basically nginx-rtmp reads every RTMP packet of every socket by calling the recvfrom() syscall <em>every time</em> (every few bytes!!). It never tries to read a larger block and split it later. I don’t know if this is how efficient servers are supposed to work but for sure this was causing a lot of time spent on switching from application context to systems and back. The same thing happened for disk writes. Nginx-rtmp calls pwrite() for every single piece of data it receives and wants to write.</p><p>Note that nginx-rtmp does have a <a href="https://github.com/arut/nginx-rtmp-module/wiki/Directives#chunk_size">“chunk-size”</a> configuration paramenters but that only works for sending packets and its purpose is exactly to limit the number of calls used while sending the stream to viewer clients therefore lowering the cpu consumption. In our case we need to receive them though.</p><p>Solving these “problems” means putting hand at nginx-rtmp source code which we decided to skip for the moment, for the moment… But if you want to know more about this I found <a href="http://blog.tsunanet.net/2010/11/how-long-does-it-take-to-make-context.html">one</a> and <a href="http://highscalability.com/blog/2013/5/13/the-secret-to-10-million-concurrent-connections-the-kernel-i.html">another</a> interesting articles to start from.</p><h3>Network interrupts</h3><p>The fact that hundred clients were sending packets to the server means that the server NIC has to receive all and each one of them (Mr. Obvious). In a virtualized environment each packet triggers a software interrupt that is perceived as “stolen” time.</p><p>What’s even worse is that by default on Amazon EC2 machines NIC interrupts are handled on one single core. You can read about this in many posts like <a href="http://highscalability.com/blog/2014/8/18/1-aerospike-server-x-1-amazon-ec2-instance-1-million-tps-for.html">this</a>, <a href="https://gist.github.com/CBarraford/8850424">that</a> or <a href="https://www.myricom.com/software/myri10ge/710-how-do-i-adjust-the-interrupt-coalescing-parameter-in-the-linux-myri10ge-driver.html">that</a>.</p><p>To summarize, the partial solutions to thes problems are the following.</p><h4>Never use ParaVirtualized instances</h4><p>If you need performances use <strong>HVM</strong>. They just have less overhead and better performances.</p><p>Simply upgrading our machines from m1.large to m3.large allowed us to have 100–150 streams before cpu wasreched 100% (single core)</p><h4>Enable RPS</h4><p><strong>RPS</strong> (Receive Packet Steering) defers NIC interrupts handling to different CPU cores even if the NIC does not support multiple queues (one for each core)</p><pre>echo f &gt; /sys/class/net/eth0/queues/rx-0/rps_cpus</pre><p>The balancing of work between two cores works but it is sort of jumpy. Often you see spikes of the usage of one core of the other.</p><p><em>This grew the amount of supported stream to 200–250.</em></p><h4>Alternatively, use Amazon Enhanced Networking</h4><p><a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html">Enhanced networking</a> is better not just because it better balances interrupts but also because the transfer of data from the NIC(s) to the VM memory is not stolen to your machine.</p><p>But note that the driver does not build cleanly on Ubuntu 14.04 you need patches. The easiest way to get it working is to use official Amazon AMI images. On those you will see that “/sys/class/net/eth0/queues/” contains many queues, one for each core. This means that you have to do nothing to balance traffic between the cores: it’s all taken care of (sadly not even ubuntu 14.10 amis has this ready out of the box)</p><p>Enhanced networking is better not just because it better balances interrupts but also because the transfer of data from the NIC(s) to the VM memory is not stolen to your machine.</p><p><em>With this we were able to handle 350–400 streams on the same m3.large instance (probably also thanks to disk io improvements, read on).</em></p><h4>Use interrupt coalescing</h4><p>Coalescing is a technique to limit the frequency of interrupts handled by the os. My understanding is that interrupts are deferred and grouped so that the system handles groups of them at once and does not have to wake up too often. See <a href="https://www.myricom.com/software/myri10ge/710-how-do-i-adjust-the-interrupt-coalescing-parameter-in-the-linux-myri10ge-driver.html">here</a>.</p><p>I found that using the maximum value of 1000 can reduce general cpu usage by 20% in our case. Of course it adds latency for our application it’s not a problem.</p><pre>ethtool -C eth0 rx-usecs 0</pre><p><em>This grew the amount of handled streams by about 20% so we can expect to safely handle 400–500 streams on one single m3.large instance.</em></p><h3>Last note about disk i/o</h3><p>There are many posts talking about storage performances of Amazon EC2. Like <a href="http://www.cyberciti.biz/faq/linux-kernel-tuning-virtual-memory-subsystem/">this one</a>, <a href="http://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/">this other one</a>, <a href="http://victortrac.com/ec2-ephemeral-disks-vs-ebs-volumes-in-raid.html">that</a>, <a href="http://blog.scalyr.com/2012/10/a-systematic-look-at-ec2-io/">oh and this too</a>.</p><p>These posts talk about how to set up raid0 disks to achieve better performances and how to set sysctl parameters to better fit disk usage for your specific application needs. While this is an options we will consider, for the moment we are using one single SSD disk with enough provisioned IOPS to handle the amount of stream we need.</p><p>Not so many posts talk about the fact that even disk access is something that may weight on one single core. So if you have a lots time spent on disk writes, as in our case, all of that time will be wasted on one single core. This is something I could see using Ubuntu AMIs. As soon as data was flushed to disk one core showed high usage. A useful tool for spotting this is <strong>iostat</strong>.</p><pre>iostat -x 2</pre><p>There is a recent kernel feature called <strong>“blk-mq”</strong> that enables handling of storage io using multiple cores. This is supposed to be available in 3.13.* Linux kernel but it does not actually work with all storages. The system has to detect the SSD disk and its driver must be supported.</p><p>I have no evidence of this but it seems to me that Amazon AMI wins again. Using it never showed spikes on one single core due to disk access. I suspect Amazon has worked for having that feature ready ASAP.</p><p>Conclusions? Well, for sure this has beeh harder than expected but we were able to get things in a better shape. I hope this is useful for someone. Back to work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97210e308d67" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowd-emotion/nginx-rtmp-on-ec2-97210e308d67">nginx-rtmp on EC2</a> was originally published in <a href="https://medium.com/crowd-emotion">Crowd Emotion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Emotions Influence What We Buy]]></title>
            <link>https://medium.com/crowd-emotion/how-emotions-influence-what-we-buy-ea7b93b37d63?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/ea7b93b37d63</guid>
            <dc:creator><![CDATA[Giancarlo Mirmillo]]></dc:creator>
            <pubDate>Fri, 03 Oct 2014 11:38:43 GMT</pubDate>
            <atom:updated>2014-06-02T14:49:49.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*42SsQN1qh2iv4gTBCc9yow.jpeg" /></figure><h4> First we sense it. Then we know what it is. Finally we feel what it means.</h4><p>People believe that the choices they make result from a rational analysis of available alternatives.</p><p>In reality, however, emotions greatly influence and, in many cases, even determine our decisions. In his book, Descartes Error, Antonio Damasio, professor of neuroscience at the University of Southern California, argues that emotion is a necessary ingredient to almost all decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*3SOwt62uUe-GP7-fpCvbRg.png" /><figcaption>Damasio tree from basic reflex to social emotions</figcaption></figure><p>When we are confronted with a decision, emotions from previous, related experiences affix values to the options we are considering. These emotions create preferences which lead to our decision. Damasio’s view is based on his studies of people whose connections between the “thinking” and “emotional” areas of the brain had been damaged. They were capable of rationally processing information about alternative choices; but were unable to make decisions because they lacked any sense of how they felt about the options.</p><p>The influential role of emotion in consumer behavior is well documented: fMRI neuro-imagery shows that when evaluating brands, consumers primarily use emotions (personal feelings and experiences) rather than information (brand attributes, features, and facts). Advertising research reveals that emotional response to an ad has far greater influence on a consumer’s reported intent to buy a product than does the ad’s content — by a factor of 3-to-1 for television commercials and 2-to-1 for print ads.</p><p>Research conducted by the Advertising Research Foundation concluded that the emotion of “likeability” is the measure most predictive of whether an advertisement will increase a brand’s sales.</p><p>Studies show that positive emotions toward a brand have far greater influence on consumer loyalty than trust and other judgments which are based on a brand’s attributes. Emotions are the primary reason why consumers prefer brand name products.</p><p>After all, many of the products we buy are available as generic and store brands with the same ingredients and at cheaper prices. Why do we decide to pay more for brand name products?</p><p>The problem In our brain the part that processes emotions, the Limbic System, is much older than the rational part, the Neocortex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*kg_M8NldkLN8r71R2GtxxA.jpeg" /><figcaption>brain limbic system</figcaption></figure><p>The two sides are not connected efficiently and work separately. The limbic system reacts to the environment in a fast and automatic way. The rational part that concerns language, decisions and planning does not have direct access to the emotional part.</p><p>When we ask someone what emotion he felt at a certain time or watching a video we have to consider that “affective responses often lead to memory trade-offs, enhancing memory for select features of an event while impairing memory for other aspects” as Elizabeth A. Kensinger an associate professor of psychology at Boston College stated here.</p><p>It is very difficult, even for psychotherapists, succeed in understanding the emotions experienced by their patients, so ask what emotion do you feel while watching this video is not the right way to understand people reaction, too many bias, errors, social influence.</p><p>How can we really understand people?</p><p><strong>The CrowdEmotion solution</strong></p><p>By testing with the more accurate method available in real time the emotional signals people send while doing any activity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*fngZVoKYoODsnfMAAyeZPw.jpeg" /></figure><p>We can have a real time pictures of what are the emotional experiences of people, we can do it in remote so in a natural environment, without the need to ask questions or to involve the cognitive part of the brain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/1*ljoTTjBCnuhNCyZUqMkiZw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea7b93b37d63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowd-emotion/how-emotions-influence-what-we-buy-ea7b93b37d63">How Emotions Influence What We Buy</a> was originally published in <a href="https://medium.com/crowd-emotion">Crowd Emotion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 reasons your customers can’t tell the truth]]></title>
            <link>https://medium.com/@g_mirmillo/3-reasons-your-customers-cant-tell-the-truth-f338958f536d?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/f338958f536d</guid>
            <dc:creator><![CDATA[Giancarlo Mirmillo]]></dc:creator>
            <pubDate>Tue, 03 Jun 2014 16:38:56 GMT</pubDate>
            <atom:updated>2014-06-03T21:50:18.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V2-HT98BE32IhjJoXfHVdw.jpeg" /></figure><h4>“Rather than love, than money, than fame, give me truth.” Henry David Thoreau</h4><p><strong>Qualitative research is hard enough</strong></p><p>Conducting a qualitative research in an appropriate manner can be quite difficult. Firstly there is the matter of finding the right people to question, then the wireframes you show them may or may not communicate your end idea, then you wonder if your sample is statistically significant and how to ask questions which do not cause a bias.</p><p><strong>1. Our Brain makes it even harder — Memory vs Experience</strong></p><p>However research into behavioural science in recent years has resulted in yet another reason for ‘qual’ insight companies to hold their heads and shrug their shoulders defeatistly. It turns out that our brain plays tricks on us, making us struggle to remember how we felt about an event later. Of course anyone who has listened to their grandparents wax lyrical about the ‘<em>good old days’ </em>will have a sneaking suspicion about this, but it turns out this phenomenon is real and <a href="http://www.psychologicalscience.org/index.php/uncategorized/memory-vs-experience-happiness-is-relative.html">documented.</a> This stems from the fact that to the fact that our experience of an event and our memory of that experience are two fundamentally different things. A very good example of this is given by Kahneman when he studied the effect of experienced and remembered pain in colonoscopy patients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*G2D5NThY1_8gwRgnrKMJHQ.png" /><figcaption><em>Above graphs show ACTUAL pain experienced, Patient B experiences pain for much longer. Who REMEMBERS it as more painful?</em></figcaption></figure><p>It turned out that there despite the overall experience being <strong>measured as more </strong>painful for patient B, they <strong>remembered </strong>the experience <strong>as being less </strong>painful. In fact, Daniel Kahneman and his colleagues have drawn the conclusion that these two phenomena are different and asking what someone remembers is not an accurate way to recount what they experienced. I really encourage you to watch through his popular TED talk <a href="http://www.ted.com/talks/daniel_kahneman_the_riddle_of_experience_vs_memory">here</a> detailing the differences between the remembering and the experiencing self.</p><p><strong>2. Things get worse — Rationalisation</strong></p><p>We are not always consciously aware of <em>why </em>we feel certain things, but our minds are great at making up stories that and seem to fit the facts, aka “rationalisation”.</p><p><strong>3. So what hope is there for the future</strong></p><p>For companies hoping to determine their customers experience they must first understand what they are trying to measure. For instance for a media agency is it the viewer’s actual experience while viewing a show, or their memory of that show when asked at a future date? The two are distinctly different and require different capture mechanisms.</p><p>A person’s memory of a show may determine whether they choose to watch it again in the future. On the other hand, a person’s real-time experience of a show is more likely to determine whether they keep watching it or decide to tune out. Understanding both aspects is important.</p><p>Here are some cases:</p><ol><li>Disney’s audience research centre <a href="http://www.neurosciencemarketing.com/blog/articles/disney-media-and-advertising-lab.htm">here</a>.</li></ol><p>2. ESPN’s VP of research and analytics Artie Bulgrin “The problem is, if we get a survey that says it worked really well, or that says it worked really poorly, then what do we do? We don’t know why it worked well or it worked poorly.”</p><p>3. Using audience biometric response to trailers to predict box office success at <a href="http://www.fastcompany.com/3006186/how-your-brain-can-predict-blockbusters">Fastcompany</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f338958f536d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Facial expressions]]></title>
            <link>https://medium.com/@g_mirmillo/facial-expressions-d1f9f5e81ee4?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/d1f9f5e81ee4</guid>
            <dc:creator><![CDATA[Giancarlo Mirmillo]]></dc:creator>
            <pubDate>Thu, 29 May 2014 08:22:16 GMT</pubDate>
            <atom:updated>2014-05-29T08:22:16.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*moWlZzc3_AcHEYhUaI6T1Q.jpeg" /></figure><h4>“Colors, like features, follow the changes of the emotions.” Pablo Picasso</h4><p>Facial expressions are perhaps the most direct and preeminent way human beings regulate their interactions with each other. From a very young age humans learn to understand and categorise these expressions, however researchers in this field require more objective ways to describe these expressions. The Facial Action Coding System (FACS) is the best known and most commonly used sign judgement approach for human observers to describe facial actions.</p><p>This post covers the methods and best practices in facial expression measurement; as well as sharing insights on how the dynamics of facial expressions and their combinations might advance this science in the near future.</p><p><strong>6 basic emotions</strong></p><p>For more than 40 years, Paul Ekman has supported the view that emotions are discrete, measurable, and physiologically distinct. Ekman’s most influential work revolved around the finding that certain emotions appeared to be universally recognised, even in cultures that were preliterate and could not have learned associations for facial expressions through media. Another classic study found that when participants contorted their facial muscles into distinct facial expressions (e.g. disgust), they reported subjective and physiological experiences that matched the distinct facial expressions. His research findings led him to classify six emotions as basic: fear, angry, disgust, happiness, sadness, surprise.</p><p><strong>21 emotions… and more</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2tXibwydM4HfnS9mr7wtMQ.jpeg" /><figcaption>“Sameness is the mother of disgust, variety the cure.” F.Petrarca</figcaption></figure><p>In a recent issue of the Proceedings of the National Academy of Sciences, scientist report that they were able to more than triple the number of documented facial expressions that researchers can now use for cognitive analysis.</p><p>“We’ve gone beyond facial expressions for simple emotions like ‘happy’ or ‘sad.’ We found a strong consistency in how people move their facial muscles to express 21 categories of emotions,” said Aleix Martinez, a cognitive scientist and associate professor of electrical and computer engineering at Ohio State. “That is simply stunning. That tells us that these 21 emotions are expressed in the same way by nearly everyone, at least in our culture.”</p><p><strong>Okay so what is next and why does it matter?</strong></p><p>So you are probably wondering, does it matter if there are 6 facial expressions or 21 expressions which are shared? Well yes, this is important because the greater degree of commonality there is between people, the greater the insight that can be gathered through creating a model with one group of people and applying it elsewhere. As humans we have an intuitive appreciation that there should be some commonality, we are ourselves able to recognise when people are happy, enthusiastic, tired etc… by watching them. If this were not the case we wouldn’t have actors winning awards for portraying characters whose emotions we agree upon. But due to recent advances in facial analysis technology we should now be able to detect things we could not before</p><p><strong>CrowdEmotion unique detectors</strong></p><p>1. Facial appearance not points</p><p><strong><em>Past: </em></strong><em>Up until now the majority of companies have focussed on looking at points on the face, eyes, corners of the mouth etc… and looked at how these move when people make facial expressions. Of course this method requires throwing out a lot of information and risks losing a lot of subtle facial changes</em><br><strong><em>Future: </em></strong><em>We don’t place points on your face we consider features with the aim to capture changes in face texture, such as those created by wrinkles and bulges, as well as changes caused by facial motion.</em></p><p>2. Non typical head poses/ positions and expressions</p><p><strong><em>Past: </em></strong><em>The origins of emotional recognition exist in the laboratory setting, where researchers would manually annotate records of the expressions they observed. When the work described above was conducted to look at the facial movements associated with emotions, these could be seen from certain video angles in a controlled environment. However often in real world situations this environment and the angles of observation will differ hugely.</em><br><strong><em>Future: </em></strong><em>We are fortunate to work with a technology that as described above looks for facial appearance and specifically prominent edges of a face, rather than facial points. This means that while individual points may be obscured or appear different our system is able to learn the characteristics of a given emotion for this different environment, making it applicable in the real world.</em></p><p>3. Dynamics of facial expressions</p><p>Besides the conﬁguration of facial expressions, their dynamics play an important role in the interpretation of human facial behaviour.</p><p><strong><em>Past: </em></strong><em>Typically companies have not focussed on the dynamics of expressions, instead recognising points in time where an expression is seen</em><br><strong><em>Future: </em></strong><em>An increasing body of research is warning against ignoring the dynamics. Psychologists have found a difference in duration and smoothness between spontaneous and deliberate expressions, e.g. between polite and amused smiles. While facial expression dynamics are seen as essential for categorising complex mental states such as pain and moods.</em></p><p>4. Combinations of facial expressions</p><p><strong><em>Past: </em></strong><em>Previously this field has focussed on accurate detection of discrete emotions such as ‘happiness’ and ‘sadness’ . Yet, humans do not experience emotions in isolation and often what is important is the emotional journey and combination of these emotions which define an emotional state.</em><br><strong><em>Future: </em></strong><em>We analyse these combinations of emotions and the sequence in which they occur to understand more subtle emotional states.</em></p><p><strong>Emotion applied</strong></p><p>With this powerful detectors we can harness the power of our computing technologies to develop innovative and, in some ways, revolutionary applications.</p><p>Taking into account the importance of understanding the implicit communications and emotions we can develop machine learning algorithms that learn the emotional mix associated with a particular outcome, for example advertising effectiveness or to understand attention, brand awareness and pricing.</p><p>Applications are endless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1f9f5e81ee4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Book of the Face]]></title>
            <link>https://medium.com/@g_mirmillo/the-book-of-the-face-f9f4c468ea8d?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/f9f4c468ea8d</guid>
            <dc:creator><![CDATA[Giancarlo Mirmillo]]></dc:creator>
            <pubDate>Thu, 29 May 2014 07:06:47 GMT</pubDate>
            <atom:updated>2014-05-29T07:17:42.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*6Tff3FpynVoM2tvkVIn6jg.jpeg" /></figure><h4>“Your face, my thane, is as a book where men May read strange matters.” Bill Shakespeare</h4><p>It would have come as no surprise when Lady Macbeth told her husband this back in medieval Scotland, because as human beings we are well aware of how our faces give away our thoughts and feelings. In fact we are so well adapted to interpreting these that the inability to do so in individuals with autism can be crippling in going about their day to day life’s. Given this the question becomes, is it possible to train a computer to come anywhere close to recognising emotions like a human can.</p><p><strong>So what are facial expressions anyway</strong></p><p>A facial expression is one or more motions or positions of the muscles beneath the skin of the face. It is the combination of these movements which convey the emotional state of an individual to the observer. Facial expressions are a form of nonverbal communication. Nevertheless, they are a primary means of conveying social information between humans, but they also occur in most other mammals and some other animal species.</p><p><strong>Beyond the Looking Glass</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*am63OXyKCz3h9Gfoy7W_jw.png" /><figcaption><em>Emotions are complex… tell tale muscle movements can really just be attempted comedy</em></figcaption></figure><p>There are two main approaches to facial expression measurement in the ﬁeld of psychology:</p><ol><li>Message Judgement</li><li>Sign Judgement.</li></ol><p><strong><em>Message judgement </em></strong>aims to infer what underlies a displayed facial expression, beyond the looking glass if you may, to understand the personality or mental state that exists.</p><p><strong><em>Sign judgement </em></strong>describes the surface of the displayed behaviour, such as facial movement or facial component shape, with the <a href="http://en.wikipedia.org/wiki/Facial_Action_Coding_System">Facial Action Coding System (FACS</a>). However the really interesting work exists where the two collide, extensive research and study has gone into undertaking a message judgement interpretation using the description of FACS as a guide. Or in plainer English using distinctive muscle movements and positions as a guide to inferring emotional states.</p><p><strong>Working with individual muscle movements</strong></p><p>The FACS coding of facial movements mentioned above boils down to a series of action units (AU’s) which are the fundamental actions of muscles or groups of muscles. For example, expressions typically associated with happiness contain AU6 and AU12, or as they are better known (<em>AU6 cheek raising) </em>&amp; (<em>AU12 lip corner raising). </em>But this isn’t the full story it isn’t enough just to notice a raising of the cheeks, the dynamics speed and acceleration play an important role in the interpretation of human facial behaviour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*GA7K3wcPw_iTX0AYj1gWyg.jpeg" /><figcaption><em>Action units in action</em></figcaption></figure><p>It is the dynamics and subtleties of these action units that mean something to humans. For example, psychologists have found a difference in duration and smoothness between spontaneous and deliberate expressions, e.g. between polite and amused smiles.</p><p>In fact facial expression dynamics are also essential for categorisation of complex mental states such as various types of pain and mood.</p><p><strong>The forefront of emotion measurement</strong></p><p>Given the importance of dynamic action units CrowdEmotion has sought to build a system that considers how your face changes over time. This is an improvement on approaches to date, where facial emotion recognition systems use only static appearance descriptors, which means the appearance changes and their associated temporal information are completely ignored.</p><p>We have applied a novel approach to explicit analysis of the temporal dynamics of facial actions using the dynamic appearance descriptor, it now seems natural to extend our work to start understanding the dynamic characteristics such as the intensity of Action Units and their frequency of occurrence. With this approach we can make progress in understanding the fleeting and lingering expressions that betray peoples emotions.</p><p>Then perhaps lady Macbeth’s words will be repeated again and our laptops might start to truly open the book “where men may read strange matters’.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9f4c468ea8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Devil’s in the Details [of Software Development]]]></title>
            <link>https://medium.com/crowd-emotion/the-devils-in-the-details-of-software-development-7b22e6bf2425?source=rss----b2ebfa7fb7f1---4</link>
            <guid isPermaLink="false">https://medium.com/p/7b22e6bf2425</guid>
            <dc:creator><![CDATA[Diego Caravana]]></dc:creator>
            <pubDate>Sun, 25 May 2014 20:56:44 GMT</pubDate>
            <atom:updated>2018-08-15T22:13:45.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*j7CHoEMd8AFIeCg4zMbaEA.png" /></figure><h4>Dos and Don’ts about people and software</h4><p>It’s always a bit upsetting when I experience that people don’t know concepts related to software development that I think are very common, because lacking knowledge about these “details” can lead to big misunderstandings.</p><p>I prefer to think that it’s <em>my </em>fault, our fault as an industry, not their fault, so here we go with a semi-random choice of fundamental concepts about software development process.</p><p>I’d like to talk about these topics distilled from my past and present experiences (yeah, more than 20 years…) in a way that’s “less about making the decisions and more about decision-making” (to cite my good friend Matt, <a href="http://crowdemotion.co.uk/">our</a> <em>beloved</em> CEO).</p><p>What I’m going to explain should be placed especially in the context of a startup, where time and resources are never enough by definition, much more than in a corporate context.</p><p>This post is directed mainly to managers and other people that have little or no experience with software production, but could also be useful to all young developers.</p><p>I’m going to be very practical, too (I’m not up to the task for theory, go find some good books about it.)</p><h4>1. Don’t add people late in a project</h4><p>Everyone probably knows that “<em>9 women cannot do a baby in 1 month</em>” but not everyone can think the same about software development: put simply, some tasks can’t be split in simpler tasks and so they’re not parallelizable. The direct consequence to this is that adding more resources is not always a solution.</p><p>But what happens when you add a new person in a team? He’s new to the company, the project, to the tasks he’ll be assigned, but on top of everything else, he’s new in how to contribute new code to the existing code base. So he has to learn, reading docs and existing code, and he has to ask to everyone else in the company and in his team: this costs time to him and to everyone else, time dedicated to him and no more to the project and the company.</p><p>In other words: if adding a resource would imply teaching him/her a very simple process, it would be OK. Software development is never that simple, though.</p><p>Doing this in a late project makes it later because <em>it steals time to already overloaded people. </em>It seems obvious, but every manager will be tempted to (and most will) add people late in a project.</p><p>This is the <a href="http://en.wikipedia.org/wiki/Brooks%27s_law">Brooks’s law</a>.</p><p>A similar concept is related to <em>fatigue </em>because the more you work the more you make mistakes. Also, mood will be constantly bad, and you know how’s working with people constantly in a bad mood.</p><p>So you work later and later for days or weeks to catch up with work, no weekends, no beers, little family time, and you start to make mistakes and forget things, so you add more work to the work you already had assigned while becoming slower and slower.</p><p><em>Clever.</em></p><p>By the way, it’s the clever thing I always do in a late project even if I know perfectly that it could be the wrong thing to do.</p><p>In other words, there’s something going wrong in programmers’ minds so my advice here is to monitor developers and kick them out of the building if they seem too tired.</p><h4>2. Don’t interrupt people while they’re coding</h4><p>Interrupting a developer is one of the nastiest things you could do to him as it can have a huge negative impact on his work. This is true for any knowledge worker, but read a couple of articles to understand better the problem in a software development context (the third one is fun, too):</p><ul><li><a href="http://www.paulgraham.com/makersschedule.html">Maker’s Schedule, Manager’s Schedule</a> [Paul Graham]</li><li><a href="http://www.infoq.com/news/2013/01/Interruptions">The High Cost of Interruptions</a> [InfoQ]</li><li><a href="http://www.joelonsoftware.com/articles/fog0000000068.html">Where do These People Get Their (Unoriginal) Ideas?</a> [Joel on Software]</li></ul><p>But why interruptions cost so much? I’m citing one of all times hit on <a href="http://swizec.com/blog/why-programmers-work-at-night/swizec/3198">programmers’ weirdness</a>:</p><blockquote>Working on large abstract systems involves fitting the whole thing into your mind — somebody once likened this to constructing a house out of expensive crystal glass and as soon as someone distracts you, it all comes barreling down and shatters into a thousand pieces.</blockquote><p>In other words, loading all that stuff inside a brain requires a time easily measured in hours.</p><p>How could we solve this problem or at least alleviate it? For example, it could be easy to have <em>planned Q&amp;A sessions </em>in which questions and doubts can be presented in batches to developers.</p><h4>3. Don’t count your versions before they are released</h4><p>Software production is tough matter but I’ll make it easy: it’s writing <em>a lot of text </em>to instruct a computer help your customer accomplish some task. As it could easily become a complex task, there are a number of methods and tools used to tame the complexity that emerges as text accumulates, one being <em>product versioning.</em></p><p>A product version can be seen as a set of <em>tasks </em>to be completed before a certain date.</p><p>As a convention, each version can have number in the form <em>major.minor.revision (</em>e.g. 1.2.11) and it could be released in phases commonly named <em>alpha</em>, <em>beta</em>, and <em>release (</em>respectively structure complete, feature complete, stable… more or less.)</p><p>Each version of the software should pass through a filter that should block the biggest issues and let pass the smallest ones slip away: this filter is called <em>testing. </em>It could be manual or automatic but in any case it should have as output a list of issues solved and not solved. On this lists people who’s accountable for product quality will decide if version will pass to the next phase or not.</p><p>Testing is utmost important as it is the wall that must block bad software <em>before it reaches the customer.</em></p><p>For it to work, there should be something to which compare the software to i.e. a specification of what the product is meant to be. And no, it’s not advisable to have your developers test their own code (apart from developing unit tests) because you need a broader QA testing phase in your process.</p><p>Another element here is an <em>environment </em>i.e. a piece of infrastructure (web servers, network, database, your mobile phone, a desktop PC, etc.) on which a software runs. You can only use a software product when it gets installed in an environment: installation process in this case is called <em>delivery.</em></p><p>All this is to say: when you hear a programmer say “I’m finished with task x”, don’t think that he means “you can now use/sell/whatever feature x now”, because probably the outcome of his work will be usable by end users after some time i.e. after testing through some intermediate versions (with some back and forth while bugs are being created and squashed) by the corresponding deliveries in the right environments.</p><p>The only answer that you’re interested in is probably to the question: “<em>What the delivery date in production environment is?</em>”</p><h4>4. Don’t promise if you cannot keep up with it</h4><p>In many cases, software <em>release dates </em>are a convention, only something that will help people organize to let a new software version go out of the door.</p><p>The release date carries a two-sided message, one internal to the company, an one external directed to the customers. Around this message people and companies could organize some of their activities, sometimes very important. It’s business, you know.</p><p>Managers know this well, developers instead tend to ignore the importance of this message, but not because they cannot understand.</p><p>In fact, moving a release date is not bad per se, it’s bad because it can <em>break plans.</em></p><p>A release date is a promise and breaking promises is something that you never should want to do.</p><p>Exactly as that colleague that arrives always late to meetings, a company that adopts a bad habit of moving release dates again and again gains a bad reputation of being unreliable, this reflects to all the rest of its activities and simply you cannot do serious work with unreliable people.</p><p>Managers and other people can help developers and other tech people understand the importance of a date attaching to it all sorts of information about internal and external plans, but the most important thing that could be done is <em>educating people.</em></p><p>The alternative is not making promises when it’s not possible e.g. when work is too much and estimation of a date would be like throwing a dice.</p><h4>5. Don’t say “it’s easy” if you never did it before</h4><p>It should be possible to do simple things in a simple way else something smalls bad somewhere, it could be people, tools, process.</p><p>As everything is relative, a complex tool for me could be a simple one for you, but when in a non-trivial project that requires some architectural work and a medium/large team, it could not be easy to find the right balance between all the elements.</p><p>The rule of thumb is: when in a hurry, <em>never </em>use languages/platforms/frameworks/tools that you don’t know very well, even if in theory they would fit perfectly.</p><p>Another little advice is: <em>never work alone </em>when in a team, leverage the power of proximity (physical or even virtual) to solve problems and let your brain consider problems from a distance or from even a very different point of view.</p><p>For example, sometimes, when stuck, it’s enough to ask for attention to any of your colleagues to let the solution magically emerge in your mind (hey, pay attention to avoid too many interruptions though!)</p><p>Another good thing that a developer could do as a real boon to his colleagues: <em>never break the build or deliver breaking changes (</em>even if small), especially when approaching a deadline. If absolutely necessary, alert the other people or escalate the decision to the manager.</p><p>These are common rules of thumb but so easily and commonly broken (yes, also by myself) that it requires a bit of focus when taking such decisions.</p><p>Any manager understanding these problems should <em>enable good behavior </em>by the means of clear rules and also favoring a search for the right tools.</p><h4>6. Don’t throw dices</h4><p>Sometimes is better to do than to estimate.</p><p>Don’t get it wrong: estimation is a fundamental process in a company, but as more work is there (or as less resources are there,) the more an estimation risks to be not only wrong, but very wrong, leading again to misunderstandings and to bad management.</p><p>The question is: is it better having no estimates or a very wrong estimate?</p><p>Personally in these cases I prefer to do some work instead of very wrong estimates, but a company/project needs estimates in its life.</p><p>Even very wrong estimates are useful because they let management measure and extract some useful information about organization, team, people.</p><p>Why programmers hate estimating? In my opinion, apart from the fact that “<em>it isn’t coding</em>“, it’s because it’s a process whose outcomes are <em>always </em>wrong by definition. Instead, the programmer’s mission is to produce programs that always produce correct results. Simply, it’s against their mindset, their experience, maybe also against their nature in some cases: <em>it’s mathematical logic, baby.</em></p><p>In case of estimation requests that you find impossible to fulfill, just give a number using your gut sense but specify that it’s a very inaccurate estimate (yeah, <em>a measure of the error) </em>and commit to go back to it when more information will be available to make a more accurate estimate.</p><h4>7. Don’t think perfection is something you can achieve — ever</h4><p>When in a hurry (or in a startup) and when there isn’t a clear technical path ahead of you, <em>always </em>choose the fastest path instead of the theoretical “right” path.</p><p>This does <em>not </em>mean that the code or the solution have to be rubbish or spaghetti code, but simply that will be the best one achievable with the knowledge already embedded in your brain <em>in that exact moment</em>, which doesn’t require further research or a long trial and error process.</p><p>You’ll get a good working solution, now.</p><p>You’ll be helping the project become a reality, not only an abstract mental model.</p><p>What you could have done (but it isn’t said, it’s relative) is causing your project accumulate some <em>technical debt.</em></p><p>This means that someone in future will have to get rid of your solution and create a new one instead, because your solution, for some reason, was not lucky enough to survive the <em>natural selection </em>caused by evolution on the long term.</p><p>It depends on you and also on the recruiting dept (and yes, on many other factors but at the end it’s <em>you </em>that wrote that code.)</p><p>Technical debt should be measured and monitored in some way (keeping track of redone parts could be an easy way to measure technical debt) because when it’s too high globally you get a product that is rubbish and, at the very end, it’s also a global measure of how well your company operates.</p><p>In general, it’s not bad when it’s low and controlled and it’s simply a consequence of the trade-offs that any project should accept.</p><p>The alternative is never release anything. Full stop.</p><p><em>This post originally appeared on </em><a href="http://diego.caravana.to/the-devils-in-the-details-of-software-development/"><em>my blog</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*5_kS154ghsGBDIgeDt8zvA.jpeg" /></figure><p></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b22e6bf2425" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crowd-emotion/the-devils-in-the-details-of-software-development-7b22e6bf2425">The Devil’s in the Details [of Software Development]</a> was originally published in <a href="https://medium.com/crowd-emotion">Crowd Emotion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>