<?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 Preston Richey on Medium]]></title>
        <description><![CDATA[Stories by Preston Richey on Medium]]></description>
        <link>https://medium.com/@prestonrichey?source=rss-f87fb466a54c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UQWmVqD0Ngn8snfhdl82_A.jpeg</url>
            <title>Stories by Preston Richey on Medium</title>
            <link>https://medium.com/@prestonrichey?source=rss-f87fb466a54c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:25:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prestonrichey/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[Lessons In Stealing My Boss’s Voice]]></title>
            <link>https://medium.com/moonshotlab/lessons-in-stealing-my-bosses-voice-a56fb290f330?source=rss-f87fb466a54c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a56fb290f330</guid>
            <category><![CDATA[voice-interfaces]]></category>
            <category><![CDATA[conversational-ui]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[voice-technology]]></category>
            <category><![CDATA[lyrebird]]></category>
            <dc:creator><![CDATA[Preston Richey]]></dc:creator>
            <pubDate>Thu, 01 Mar 2018 20:22:30 GMT</pubDate>
            <atom:updated>2018-03-01T22:33:49.626Z</atom:updated>
            <content:encoded><![CDATA[<p>The first time I heard audio generated with Lyrebird I was in my car on the way home from Barkley, listening to NPR. I remember this distinctly. <a href="https://www.npr.org/2017/05/05/527013820/new-software-can-mimic-anyones-voice">The story</a> was about a Canadian start-up using machine learning to capture and then mimic anyone’s voice, synthesizing novel phrases in a spookily convincing simulacrum. It was one of those moments that have been happening more and more recently, where feats previously only featured in sci-fi are brought into actuality. You knew the future would get here <em>eventually</em>, but had no idea how soon it’d actually be.</p><p>The story played audio synthesized with Lyrebird models trained on both Barack Obama and Donald Trump. To be clear, I wasn’t fooled entirely — phrases generated with the system still somewhat tinny and robotic, lacking convincing phrasing and execution. Nevertheless, there’s no doubt about who the model is imitating. Just like the computer graphics of the 90’s, Lyrebird’s synthesis is convincing enough to be a harbinger of a future where it’s nearly impossible to distinguish the real from the artificial.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F318661840%26show_artwork%3Dtrue&amp;display_name=SoundCloud&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-535691776%2Fdialog&amp;image=https%3A%2F%2Fsoundcloud.com%2Fimages%2Ffb_placeholder.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/023c3e65534b57d1c16e5aa3a487a2a4/href">https://medium.com/media/023c3e65534b57d1c16e5aa3a487a2a4/href</a></iframe><p>This being the case, the technology was a natural shoe-in for Moonshot’s recently completed exhibit about Conversational Interfaces, which we’ve named Marco Polo. For more information about the exhibit as a whole, here’s a <a href="https://medium.com/moonshotlab/marco-polo-58201c14c669">quick write-up</a> by Barkley’s SVP of Innovation, <a href="https://medium.com/u/1c9f3894eed9">Mark Logan</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0FmoWhKt9W-NKTUV327og.jpeg" /><figcaption>Lyrebird Demo, In Situ</figcaption></figure><h3>The Surprising Power of Asking Nicely</h3><p>After deciding that we wanted to showcase Lyrebird in our exhibit, the next step was to figure out how. Lyrebird has a functional <a href="https://lyrebird.ai/">demo</a> available for anyone to try out: simply record a minimum of 30 pre-selected sentences, and voilà, you can start synthesizing phrases with your artificial voice. You can keep on recording sentences to improve accuracy — 30 sentences is okay, 50 sentences sounds pretty good, and 100 sentences sounds even better. We came up with the idea of getting Jeff King, Barkley’s CEO, to train a model and then giving Barkley partners the opportunity to make their boss say whatever they want. What could go wrong?</p><p>The only issue is that we were confined to generating audio on Lyrebird’s web site, as opposed to a separate experience designed to fit with the rest of the exhibit. Rather than using a text input, we wanted to allow users to speak a phrase, have the audio transcribed before being generated by Lyrebird, then played back to the user.</p><p>After a few failed attempts at other solutions, I realized I hadn’t tried the simplest one: reaching out to Lyrebird and asking for API access. I wrote a quick email to the address on their contact page and a few days later had a response in my inbox asking for a time to have a quick phone call. After making contact, I described how I would be using the technology, and to my surprise, we were granted beta access to their developer API! This would allow us to train a voice model, then make an API call to generate audio on the fly — exactly what we needed.</p><h3>Capturing A Voice</h3><p>The next step was to actually train our voice model. We booked some time with Jeff to come in and record with a nice microphone in the production team’s sound-proof edit bay. Training a model with Lyrebird is incredibly simple but tedious: just press ‘record’, then read aloud a sentence given to you by Lyrebird (e.g. “That’s a sophisticated mechanical system! We want to disperse the core from the hull”). In about 15 minutes we hit the minimum of 30 sentences, but we kept on recording to try and get the best model we could. After 100 sentences, ‘fake Jeff’ was sounding pretty convincing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jdkZi5dBxdb9ZQranfcXg.jpeg" /><figcaption>Recording Session with Barkley CEO Jeff King</figcaption></figure><h3>Pulling It All Together</h3><p>After training our voice model, the last step was to build out the exhibit experience. We liked the idea of having a minimal interface — press a button, say a phrase, then hear the phrase spoken back in Jeff’s voice. Using Lyrebird’s API ended up being easy to work with and well documented. We ended up using Google Cloud <a href="https://cloud.google.com/speech/">Speech API</a> for audio transcription, which was quick and reliable. A bit of Arduino <a href="https://github.com/MoonshotLab/lyrebird-demo/blob/master/arduino/uno/uno.ino">code</a> allowed a button to interface with the main application’s Node.js <a href="https://github.com/MoonshotLab/lyrebird-demo/blob/master/lib/arduino.js">back end</a> via a USB port.</p><p>Despite being an exciting and impressive product, Lyrebird still has a way to go. While the 100 sentences we recorded with Jeff were more than enough to generate most longer phrases convincingly, for some reason Lyrebird struggles with shorter phrases and single words.</p><p>For example, “My name is Jeff” trails off with a robotic slurring at the end:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F402074355%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-646321584%2Fmy-name-is-jeff&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1518786338&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/c60dbc7c977cbdadedadb9a463c86484/href">https://medium.com/media/c60dbc7c977cbdadedadb9a463c86484/href</a></iframe><p>Yet longer phrases sound convincing, even with difficult words like ‘Orangutan’ and ‘Worcestershire’ (neither of which appear in the original source recordings):</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F402074367%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-646321584%2Flonger-phrases-produce-fairly-convincing-audio&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1518786338&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d3650c52357f58163fa76372534f854/href">https://medium.com/media/0d3650c52357f58163fa76372534f854/href</a></iframe><p>Cadence and emphasis also leave something to be desired. For example, the model struggles with counting:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F402074385%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-646321584%2F1-2-3-4-5a&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1518786338&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c6c3957fe0050c0987dca211ea19418/href">https://medium.com/media/1c6c3957fe0050c0987dca211ea19418/href</a></iframe><p>There also seems to be a persistent low-volume buzz in all of the recordings. This can certainly be stripped out with post-processing, and I assume it will eventually be removed from the generated audio, but for now it can sometimes be distracting. Here’s a demonstration of raw compared to post-processed audio:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F402689490%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-646321584%2Fraw-vs-post-processing&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1519130099&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/588f83c25f4ee7fc9776595f64e409c9/href">https://medium.com/media/588f83c25f4ee7fc9776595f64e409c9/href</a></iframe><h3>Moving Forward</h3><p>Audio synthesis technology like Lyrebird is on the cusp of being convincing enough to be scary. It’s not quite there just yet, but in the next few years we collectively will have to confront the fact that any audio may very well be falsified.</p><p>On the one hand, it will change the practice of advertising and video / audio production forever. Imagine if you no longer need to hire voiceover artists and can simply design the perfect artificial voice with which to synthesize voiceover or narration. Such advancements will be a boon for creative agencies and anyone involved in video production, but may put some voice actors out of business. Technologies like Lyrebird could also allow us to record our voices for posterity, allowing future generations to converse with their departed ancestors.</p><p>On the other hand, there are obvious and vital implications for the way that we understand and judge news reporting. With accusations of fake news at an all-time high, it will only become more difficult to distinguish the actual from the synthesized. Furthermore, parallel advancements in video synthesis will be married with audio synthesis technology to create convincingly faked video content. These techniques are already being used to do everything from <a href="https://mashable.com/2018/01/31/nicolas-cage-face-swapping-deepfakes/">face-swapping Nicholas Cage</a> into random movies to creating <a href="https://www.theverge.com/2018/1/24/16929148/fake-celebrity-porn-ai-deepfake-face-swapping-artificial-intelligence-reddit">fake celebrity porn</a> (sfw).</p><p>While developers of these powerful technologies are responsible for taking all reasonable steps to make sure that their products are used ethically and legally, ultimately the onus falls on us to reinvestigate as a society how we decide what is real and what is fake. Just as the advent of Photoshop didn’t irreversibly corrupt photojournalism, I believe we will establish reliable techniques to make sense of the media we consume. We simply must remember not to blindly believe our eyes (or in this case, our ears).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F402706653%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-646321584%2Fan-announcement-from-jeff-king&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1519130099&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ce354c7756a364c17992c3573abc7fb/href">https://medium.com/media/4ce354c7756a364c17992c3573abc7fb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a56fb290f330" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moonshotlab/lessons-in-stealing-my-bosses-voice-a56fb290f330">Lessons In Stealing My Boss’s Voice</a> was originally published in <a href="https://medium.com/moonshotlab">Moonshot Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding Carmen]]></title>
            <link>https://medium.com/moonshotlab/finding-carmen-3c5e28c92f6b?source=rss-f87fb466a54c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5e28c92f6b</guid>
            <category><![CDATA[conversational-ui]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[conversational-interfaces]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[wayfinding]]></category>
            <dc:creator><![CDATA[Preston Richey]]></dc:creator>
            <pubDate>Fri, 10 Nov 2017 17:39:34 GMT</pubDate>
            <atom:updated>2017-11-10T17:39:34.774Z</atom:updated>
            <content:encoded><![CDATA[<p>After a year and a half working from the 4-story <a href="https://en.wikipedia.org/wiki/TWA_Corporate_Headquarters_Building">TWA building</a> Barkley calls home, you’d think I’d know my way around. Here, meeting rooms follow a theoretical naming scheme: celestial bodies (Big Dipper, Galaxy) are on the 1st floor, people (Neil Armstrong, Ellen Ochoa) are on the 2nd, planets (Mercury, Neptune) on the 3rd, and everything else (Flight Deck, Magenta Lounge) on the 4th.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8389WUlWzAJrg11m1Z7bXg.jpeg" /><figcaption>The historic TWA building that Barkley calls home is deceptively large</figcaption></figure><p>But even if you’re on the right floor, finding the right room can be a challenge, especially if you’re scrambling to get to a meeting you’re already three minutes late for. Not to mention all the rooms that break the naming protocol (<a href="http://www.michaelbay.com/">Michael Bay</a>, though a person, is on the 3rd floor next to the video team) or are just too obscure to know off hand, like <a href="http://starwars.wikia.com/wiki/Er%27Kit/Legends">Er’Kit</a>, the fictional planet in the Outer World Territories of Star Wars lore.</p><h4>Where in the World is Uranus?</h4><p>That’s all to say, finding your way around here at Barkley can be a problem. I know that I’m not the only one who thinks so. I see dozens of people a week wandering around, looking puzzled. Some ask, “Where’s Uranus?” (<a href="https://medium.com/u/39533917d2c7">Mark Logan</a> particularly enjoys this one, although it’s a joke that works better spoken aloud than in print). And though my official title happens to be Creative Technologist, it might as well be Creative Problem Solver. So, I and a small team of writers and designers put our heads together and created Carmen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zafBgRl9bMCepGnOaA8mGQ.gif" /><figcaption>Carmen serves up directions, maps, images and occasional snark.</figcaption></figure><p>This quarter, Moonshot is doing a deep dive into <a href="https://medium.com/moonshotlab/revisiting-our-first-technology-ac8a10c63670">Conversational Interfaces</a>. What better way to put these learnings to use than to create a chatbot to help Barkley partners find their way? We first decided on a platform — while Facebook is nearly ubiquitous and has the benefit of delivering messages over data, we chose SMS because we didn’t want to exclude anyone. We also wanted to most nearly match the model of simply asking someone for directions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FToWuQSpROw0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DToWuQSpROw0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FToWuQSpROw0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8491959e565362568a0a72b927156e2f/href">https://medium.com/media/8491959e565362568a0a72b927156e2f/href</a></iframe><p>Carmen, named after <a href="http://variety.com/2017/tv/news/carmen-sandiego-series-netflix-gina-rodriguez-1202033098/">Carmen Sandiego</a>, will help you find any room in the building at any time, night or day, and won’t even get annoyed if you forget where Ellen Ochoa is (for the 3rd time this week). You can ask for instructions to a room, as well as a picture or map of the room in context. Just under a month after being launched, Carmen has helped 123 Barkley partners, received 1,147 messages (of which 90% were understood), and sent 1,121 messages in return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BdSpKGXott2KFAqsZLAQdg.jpeg" /><figcaption>Carmen’s streamlined graphic system serves up visual cues to aid navigation.</figcaption></figure><h4>But Carmen Why?!</h4><p>Throughout the process of building and updating Carmen, we’ve learned a ton about how people interact with a chatbot, what they expect and how they prefer to receive information. By logging each message Carmen receives, we also have insight into which rooms in the building are most often searched for, as well as questions that Carmen doesn’t currently handle but maybe should.</p><p>Users expect Carmen to be able to point them not only to rooms, but also to individual people (as if anyone actually sits at their desks!). Some users want Carmen not only to know the location of rooms, but to book rooms or to tell them if rooms are available right now. Cool features, to be sure, but well beyond the scope of Carmen 1.0. And some just ask the really deep, existential questions that Carmen can’t and probably shouldn’t answer. All-in-all, this information is incredibly useful and can inform long-term decisions about wayfinding and onboarding new partners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SghO3gs4lo6yzAgNI_EWQ.jpeg" /><figcaption>Carmen’s intelligence is basic, but we learn a lot about our users’ expectations from her error logs</figcaption></figure><p>We’ve also learned that people are more comfortable interacting at the speed of human conversation, even if a bot is technically able to respond more quickly. We introduce an artificial pause of a second or so when sending a series of messages, since it can be jarring to receive 3 or 4 messages in less than a second. This practice can carry across to bots on platforms like Facebook, where ‘typing’ bubbles can be used to indicate that the bot is ‘thinking’. Even if it’s not technically necessary, it gives the bot a bit more humanity, and fosters a more personal conversational feel.</p><h4>Basic Bot</h4><p>We’re still early in this new era of conversational interfaces, and we still have much to learn. Carmen is one of the most basic kinds of chatbots you’ll find, there are a lot of features we could have included but didn’t and a lot of technology, like NLP (Natural Language Processing), that she doesn’t possess. But as basic as she is, she proves that chatbots can be simple and still highly useful.</p><p>For Moonshot, building is an intrinsic part of our method of technology exploration. Creating tools like Carmen offers us a way to learn about the technology, processes and best practices, while also improving the lives of our Barkley partners. At the same time, it also exposes them daily to the tangible benefits of this technology, and we hope that experience inspires ideas for new solutions to client problems and opportunities in the future.</p><h4>Next: The BotShop</h4><p>And we’re not resting on Carmen’s laurels. We’ve begun working on more bots, both for clients and for Barkley. We’ve convened a group of Barkley partners called The BotShop to refine our processes and work on a more expansive Barkley bot. We’ll introduce you to him/her/it in the near future. Stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c5e28c92f6b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moonshotlab/finding-carmen-3c5e28c92f6b">Finding Carmen</a> was originally published in <a href="https://medium.com/moonshotlab">Moonshot Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Searching for a State of Zen]]></title>
            <link>https://medium.com/moonshotlab/canizen-89bc1c26ccf2?source=rss-f87fb466a54c------2</link>
            <guid isPermaLink="false">https://medium.com/p/89bc1c26ccf2</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[particle-photon]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[zen]]></category>
            <dc:creator><![CDATA[Preston Richey]]></dc:creator>
            <pubDate>Wed, 08 Mar 2017 23:26:07 GMT</pubDate>
            <atom:updated>2017-03-09T17:10:43.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZE600tNwejL3jwZXl2eopA.gif" /></figure><p>As a part of the <a href="https://www.facebook.com/pg/BarkleyUS/photos/?tab=album&amp;album_id=10153801006141218">recent renovations</a> to Barkley’s headquarters in KC, two smallish rooms were set aside on the fourth floor. These rooms, known as the zen rooms, serve as a place to focus, meditate, or nap. Just flip the switch for the ‘occupied’ light, pull the blinds, and say ‘om’. The only problem: it was impossible to know if there’s an available room without going going up to the fourth floor and checking yourself. We at Moonshot have a personal vendetta against unnecessary physical activity, so we got to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3XMh6hD8OZw_iVkr8Ci5w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5Hn5nTL7U8gguO4iDFVFA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lX_IsRBLfW9wwyHwd9PYAw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Dy6jQ2-Vlc4JMPg6ogc_KQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0GDed0jTmGD9a0sFEbS2w.jpeg" /></figure><p>Our solution: make a Twitter bot, <a href="https://twitter.com/CanIZen">@CanIZen</a>, that tweets the current status of the rooms, accurate to the minute. The account only shows one tweet at a time. Very zen, right? The next time you need to take a break, just check Twitter. No more unnecessary cardio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtchiWnSr0qmTLUfPRpkxA.png" /></figure><p>If you’re into the technical nuts and bolts inside our zenbot, we made <a href="http://www.instructables.com/id/Spy-on-Your-Lightbulbs/">an Instructable</a> for you. You can also check out the code on <a href="https://github.com/MoonshotLab/state-of-zen">GitHub</a>.</p><p>Namaste.</p><p>-Preston</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89bc1c26ccf2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moonshotlab/canizen-89bc1c26ccf2">Searching for a State of Zen</a> was originally published in <a href="https://medium.com/moonshotlab">Moonshot Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Man vs Machine (Learning)]]></title>
            <link>https://medium.com/moonshotlab/man-vs-machine-learning-40a39f7f936?source=rss-f87fb466a54c------2</link>
            <guid isPermaLink="false">https://medium.com/p/40a39f7f936</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[interaction-design]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[rapid-prototyping]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Preston Richey]]></dc:creator>
            <pubDate>Wed, 23 Nov 2016 20:29:33 GMT</pubDate>
            <atom:updated>2016-11-28T18:39:01.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSfHawWWU_rGGb87WugYCA.jpeg" /></figure><h3><strong>The Idea</strong></h3><p>Despite a decades-long history of aiding in technical progress (and determining which cat picture appears on the top of your Instagram feed), artificial intelligence, for many, is still something to be feared. For proof, look no further than popular film, where <a href="https://www.youtube.com/watch?v=ARJ8cAGm6JE">Hal 9000</a>, Blade Runner’s renegade <a href="https://www.youtube.com/watch?v=Umc9ezAyJv0">replicants</a>, and <a href="https://www.youtube.com/watch?v=hI9GyhX7yHM">Ultron</a>, the android antagonist of 2015’s Avengers: Age of Ultron, all serve as sentient, artificially intelligent villains, bent on destruction of humankind. And if not frightening, I fear AI is at least totally mystifying to most. This is something we at Moonshot would like to change, so as creative technologist, I set out to teach people about artificial intelligence and machine learning in a way that would be fun and memorable for anyone of any age.</p><p>In order to teach about a subject with as much depth and nuance as machine learning, I wanted to build a compelling interactive experience that would be eminently understandable. Rather than asking a user to learn how to interact with the tool, I wanted to rely on the user’s prior knowledge. I started to think about common games that could be co-opted to teach about artificial learning. Suddenly, it hit me: Rock Paper Scissors! Universal and simple enough to easily teach a computer how to play, the game would be a perfect medium for teaching about how an AI makes decisions, and how it is trained to make better decisions in the future. With this idea in mind, I got to work.</p><h3>What’s In a Name?</h3><p>There’s an old joke among developers that there are only two hard things in Computer Science: naming things, cache invalidation, and off-by-one errors. In order to get my nascent creation under version control, I had to come up with a name. While I don’t always practice the dogma of ‘first thought, best thought’, one name came to me almost immediately: <strong>RoShamBot</strong>. Growing up in the midwest, I had never known RPS as<a href="http://mentalfloss.com/article/80201/why-do-people-call-rock-paper-scissors-roshambo"> roshambo</a> (as it is known in some parts of the west coast), but I remembered having come across the name on a crossword puzzle years ago. I decided to go with my gut and the name ended up sticking. Just like that, RoShamBot was born.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZInoj1I0cHf1A6A2OyvU5g.jpeg" /></figure><h3>Teaching a Bot to Learn</h3><p>In the game of RPS, a truly random player will be unbeatable in the long run; making an ‘educated guess’ will do no better than guessing randomly because the opponent does not follow any logical or repeating patterns. But humans are quite bad at being truly random, so it becomes possible to train a model to find and exploit their tendencies.</p><p>To do this, I first designed a data structure that would record every throw played against the bot. We decided that each game would be best of 5 (long enough to glean player insights, short enough to not be boring), so I established a tree with nodes representing each possible play combination within a memory of 5 plays. Each time a throw is played, the weight associated with the corresponding node is incremented. Then, in order to make a prediction, I traverse the tree, summing up the probability of the human player throwing any given play. I add in a bit of randomness which prevents the bot from seeming predictable even if the human is acting entirely predictably. At the count of three, the bot plays the throw to beat what it predicted the human would play, it reads the human’s play, then takes note of the result of the hand. It continues in this fashion until either the bot or the player have won 3 games.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvyuXho0W6QLOyqaRYbIxw.gif" /></figure><h3>Training the Model</h3><p>Most neural networks will be trained thousands, if not hundreds of thousands of times before they become useful. If RoShamBot was to begin to discover and exploit tendencies in the way humans play Rock Paper Scissors, it would be necessary for the bot to play lots of games against a lot of different players. Over the course of development, RoShamBot rather quickly learned how I played the game, but others would still beat it quite handily. What RoShamBot needed next was a large pool of competitors with a variety of different approaches to playing the game.</p><p>A few days after I began development of RoShamBot, I went for a walk around Barkley’s headquarters and noticed a billboard right across the street that I hadn’t seen before. As luck would have it, the billboard advertised a Rock Paper Scissors competition hosted by a local bank, scheduled for only two weeks away. Voilà! Who better to train my wimpy, naive AI than the best of the best? The timeline would be tight, but I returned to work newly emboldened and with the soundtrack of an 80’s training montage ringing in my ears.</p><h3>Iteration</h3><p>Throughout its lifetime, RoShamBot has taken many different forms. The first iteration was simply comprised of a<a href="https://www.leapmotion.com/"> Leap Motion</a> controller hooked up to my laptop and a plaintext interface printing out what the bot had decided to play. Shortly after that, we added an Arduino microcontroller and a few servo motors hooked up to a<a href="https://www.amazon.com/4M-3774-Robotic-Hand-Kit/dp/B005MK0OPO"> toy grabber hand</a> we found on Amazon, so that the bot could actually throw moves. We still had plaintext interface to indicate the score as well as when the human should throw their play, but we were one step closer to getting away from the screen altogether. Next we added a strand of NeoPixel LEDs, an alphanumeric display to keep score, and a 3d-printed hand, all mounted in a cabinet made out of foam-core. We had finally found a form factor that allowed for the interaction we desired: no screens (save for the score counter), and intuitive feedback regarding timing and the results of each individual throw.</p><p>Having access to a 3D printer was indispensable for rapid prototyping. By my count, we printed at least 5 different hands for the bot, as well as several different housings for the servos and internal mounts for various peripherals. Because the feedback loop between idea, implementation, and testing was so tight, we were able to quickly see what works and what doesn’t, which allowed us to quickly find the right form factor and user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hAyBkIxxJLsc3aGFe_nBJQ.jpeg" /></figure><h3>Technical Difficulties</h3><p>Throughout the process of building RoShamBot, we burned through 4 different servo motors, 1 strand of NeoPixel LEDs, and 1 Arduino board. For a reason we could not determine, the servo motors would subtly but constantly tremor while powered, which caused them to overheat and eventually fry the encoder. For weeks, we frustratedly tested the circuit, slightly tweaking every single variable we could think would cause the servos to oscillate, but to no avail. Finally, with no small amount of resignation, we went to Google for a solution and thankfully, we found the solution. It turns out that there’s an inherent issue with combining NeoPixel LEDs with servo motors in the same Arduino sketch; a strand of NeoPixels demands an unbroken stream of data from the microcontroller, so it disables all interrupts, which the servo library relies upon for steady operation! I found a <a href="https://learn.adafruit.com/neopixels-and-servos">wonderfully detailed article</a> on <a href="https://learn.adafruit.com/">Adafruit</a>, which not only describes the issue, but also provides a software replacement for the <a href="https://learn.adafruit.com/neopixels-and-servos/the-ticoservo-library">servo library</a> which eliminates the problem altogether. After the library switch, the motors were quiet and cool, which after hearing them twitch and burn for weeks on end was music to our ears.</p><h3>The People vs RoShamBot</h3><p>Despite the technical difficulties, RoShamBot was in good working order for the Rock Paper Scissors competition. We set up the bot as a training dojo for competitors to play for warm-up. The event fell on a First Friday, which meant lots of foot traffic in the Crossroads Arts District in Kansas City. Over the course of the evening, RoShamBot faced players of all ages and backgrounds. The bot even bested last year’s RPS champion 3 times in a row!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FuS2KD28gLHM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuS2KD28gLHM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuS2KD28gLHM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0b7089685725a93863841c038d500f0/href">https://medium.com/media/f0b7089685725a93863841c038d500f0/href</a></iframe><p>It was particularly interesting to see how players interacted with the AI. Some, in an attempt to confuse the bot, would play entirely predictably and others would play erratically. Others seemed to be totally oblivious of the AI, and played exactly as if RoShamBot was a human opponent. I suspect that as machine learning becomes more and more ubiquitous, we’ll all grow more comfortable with the ways in which it can improve our lives even without us noticing.</p><h3>Going Forward</h3><p>We learned a lot from this project, both about the way people understand and interact with AI, and about some of the hardware / software difficulties and limitations in bringing a project like this into fruition. I’m looking forward to diving more deeply into machine learning offerings and exploring tools like sentiment analysis, natural language processing, and generative style transfer. For now, RoShamBot will live on in the Moonshot lab, awaiting new challengers and slowly, yet surely, getting smarter and smarter.</p><p>If you’re interested in checking out the code, the repo’s here: <a href="https://github.com/MoonshotLab/roshambot">https://github.com/MoonshotLab/roshambot</a>.</p><p>-Preston</p><h4>Thanks for reading! If you liked this story please recommend it (by clicking the ❤ button) to help others find it. And check out more like it <a href="https://medium.com/moonshotlab">here</a>.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40a39f7f936" width="1" height="1" alt=""><hr><p><a href="https://medium.com/moonshotlab/man-vs-machine-learning-40a39f7f936">Man vs Machine (Learning)</a> was originally published in <a href="https://medium.com/moonshotlab">Moonshot Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>