Absent

I’ve been somewhat absent from here, but I do promise an update soon. I feel like I’m leaving this note here more for myself than for anyone that might happen upon it, but that’s the way self notifications work sometimes.

GPT2-Loops and Poetry

So I’ve been experimenting with some machine learning lately, and also learning about how NLP works. I’m not that far in, but I’ve been working on a new project just dubbed Fixations. When I was away, I started reading about Belief-Desire-Intent systems, and while that’s been somewhat replaced by Machine Learning and Deep Learning, I really liked the thought of a bot getting “stuck” in a repetitive loop as it tries to consistently re-evaluate what its doing. This lead me to start thinking about text loops, and GPT-2 had just recently been thrown into the spotlight so I decided to experiment with it.

I was mostly looking for ways to back it into a corner, or just play with the available variable adjustments vs trying to train it on something. And lo, I found I could make to do some interesting patterns by just methodically trying different things.

early looping
interesting combo of symbols and symbolism

My source material was mostly bits of fan-fic [no I’m not telling you which ones ;)], and the returns were really interesting. Sometimes I would feed its already generated blocks back into itself, and its been neat to see what it latches on to, and what it repeats. I really like how deterministic it gets in its predictions.

GPT-2 is having a mood.
Deterministic looping

I even started using it to generate patterns out of just ASCII / symbols. I’m starting to wonder if I can train it on only symbols just to see where it goes, or if it even makes sense.

Pattern generation

Anyways, this is what I’ve been up to lately. I’m looking at translating these into some form of printed matter, and continuing to learn about NLP concepts.

Late But Good

I figured out my dialog flow, and ended up just doing a simple Yes / No structure. My issue was that I was trying to be too subtle. These devices aren’t built for subtilty. So weirdly now I have a pretty good feeling flow and system, and it even updates and tries and regulate itself a bit.

Its interesting how that can come together in the end. Its not done, not by a long shot, but as a first iteration it works well. I’ll write a wrap up in the coming week. But for now its open studio day, and I have to get ready for that, and also do some video documentation tomorrow.

I think I need to revisit Alexa’s and Google’s API on a base level. There’s been a lot of changes in the last few months, and I have some thoughts about things.

Not Sure.

I feel like maybe I didn’t use my time here effectively. Instead of trying to make a larger system, I possibly should have made smaller vignettes. Maybe I’m just feeling it right now. We have open studios on Wednesday and I’ve already accepted that most people won’t know WTF I’m doing, but I also feel very tired as I’ve run into road blocks here like sleep issues, and radiators failing, and other external things causing me problems. Including having to switch rooms again, making me edgy. Because suddenly I’m in a different space from the space I’ve been occupying for 4 weeks.

I don’t do well when I have sleep issues. I become pretty much Not Human. I cry for no reason. I have issues being even remotely social. I get angry. I shitpost. You’d think this would be a good mindset to be in to make a depressed alexa, but its not. I’m very, very aware of what is going on, but I also know I can’t do much about it, but let it go on. So I just poddle through, and hope that I’ll recover the next day or so.

I’m also a little unsure what I’m going back with. Its larger, yes, and based on system dynamics, yes, but the front is still not great. I also read that the small framework I like using is possibly abandoned, and I hope not.

Anyways, what I’m getting at is that the last week was really difficult.

The Front End

So I had a mental block for about 4 days. Which happens sometimes. But working on the front responses is pretty difficult. Mostly because I can’t just make up some stuff and toss it in there. It has to be based on something I already have existing in the system. I struggled a lot to figure out how I wanted to use mood / perception etc. And it took a while of reading and being grumpy about for it to kind of start taking shape.

I decided to try and toss everything into a BDI kind of system for responses. So the device generates an internal goal / belief that you don’t know about. I’m still working it out, but its getting there. Its funny that I’m working with a VUI and the actual voice responses are about about 10% of the work that I’m doing. But if I’m being totally honest, I’d love to work with a writer on those parts. Because I’m pretty amusing, but it doesn’t always translate, and there are people out there way better at dialog than I am.

Anyways, that’s where I am right now on work. Studio visits have been interesting. I’ve gotten some feedback about how to maybe rig this for a gallery, but I’ve also gotten a lot of feedback that’s noted that I’m not necessarily making gallery focused work. That I’m really doing art as research. And that’s been a bit of an eye opener. There still remains the intrinsic issue of how do you SHOW that work. Especially when so much of it is software, or system based. An interaction with the device doesn’t show the complexity happening behind it, and a video while useful for documentation and context, doesn’t always show that this is an actual device in space that can be used, and not just a made up thing.

Anyways its an ongoing problem and question, and I’ve posed it to everyone that’s stopped by. I’ve gotten a variety of responses about it from making pretty-ed up charts, to making a contextual book, to making photo tryptics of Alexa’s life. I don’t know. Its a hard thing.

Responses and Coping

If you had told me a year ago I’d be reading psychology papers to get some ideas about coping strategies for depression and stress to write responses for an Alexa, I probably wouldn’t believe you. But here we are.

So going into the fourth week of this residency, I’ve reached a point where I have my back part done, which is good. So each day the device generates a stress level, physical level, mood etc, and saves that. Then draws on that during the day. I’ve also finished a rough function for updating it, which works and all my response and IoT implementations. None of this is even close to polished, but it works, and its mostly consistent. I might have to do some tweaking, but hey it works, so let’s go with that.

So now I’m working on the responses. A lot of people consider this to be the fun part. Its the responses! But I actually find it the most difficult, probably because I’m not a writer. But also because I can’t just barf out some silly responses, they have to utilize the variables and mood.

At first I was considering making different variants on the actions around different variable levels. Or getting the mood to affect its tone of voice. But I wasn’t really sold on that. So now I’m thinking about using the mood and perception and other variables to set an internal goal for the device, and have that influence what kind of responses and actions it does, and make actions based around coping mechanisms to try and accomplish that internal goal. I read a while ago that BDI systems can sometimes get fixated, which isn’t good. But I think that might be fun to play with on some levels.

The first two categories I kind of glommed onto were ideas around Action Orientated Coping and Avoidance Orientated Coping. So this could be things like, if the device has a really low physical score and is in a bad mood, maybe it badgers the user or misdirects them if they want to use the blender, to try and get them to use one of the other less taxing actions (eg checking the news). Or maybe if its stress level is really high, then it tries to dissuade the user from checking the news and pushes them to use the record player or just play with the lights.

I’m considering if I want to make responses that also ask the user for assistance. Or include them in more avoidant coping, like for example, the device has enough spoons to use the blender, but has an internal goal of conserving its spoons, so instead it tries to tell the user a food joke, or asks if maybe they just want to sit down and listen to a song with it. This could go badly, but it might be really interesting.

A friend here suggested working in a “do it for me” route, for when the device is totally out of spoons. Where your interaction with it, is the Alexa telling YOU how to complete the task you want, because it just can’t anymore.

Anyways, that’s what I’m working on this week. I might get far, I might not, and be working on that part at home. But either way I feel pretty good about where I am with this, and what I’ll be leaving with.

Oh yeah! We finally had a snowy day.

Also I just wanted to share my favourite thing in Glyde Hall, this ancient, sketchy phone in the elevator.

Process

I had a really interesting conversation today with the research practicum today. And it got me thinking about how to document the work that I do, because so much of it is invisible, its code and planning, and maps. I really feel like the process of what I do is as much the work as the final output. Maybe even more. I’m starting to think that I’d like to make a catalog or small book of my time here. Things I’ve read, things I’ve built, and take some really nice photos of my work space, and diagrams. Maybe ask one of the photo ppl here to help me out with that.

There’s always the question when you make digitally based ephemeral art, which is what are your artifacts? What do you display? What do you keep for the record.

Anyways, a small book. Might be nice to do some design things again in that vein. A way to tie my past as a graphic designer into things I’m doing now? A way to do some more visually based stuff around the work I do which is very not visual at all.

Something to chew on this weekend.

Lake Lousie

Its a beautiful shitty place. I am not gonna lie, I do take some weird pleasure in describing such a visually stunning spot as shitty. But the chateau, and the rich folk, and the lack of accessible activities, just combines to make this not a great place. In the summer, you can hike far away from the people, which is a bonus. But in winter it just feels weird, and sort of like The Shining hotel except with too many people, like waaaaay too many people.

It was here that someone charged me $19 for a plate of wings (that were bad and had no side), and also I noticed an $1100 bottle of wine on the menu. Not my scene.

Pretty though!

Not A Studio Day

Sometimes I don’t sleep well and I’m not productive. On those days I grumble a lot, and then spend some time reading in my room drinking tea. I’ve got a few on the go, but this one is pretty fun.

I sometimes feel this pressure that I should spend every waking moment in the studio, but I realize that’s not always realistic. Whether here, or at home. There are days you just don’t want to be in a room or a building anymore no matter how nice it might be.

How A Spoons Engine Works

Granted, this is a first stab at this kind of thing. Which means I’m relying on some programming that I’ve done in the past. My original prototype SAD Blender used the weather to create its mood. But one thing that really bothered me, is that it doesn’t HOLD its mood during the day, and relies a lot on random numbers. I realized I wasn’t going to get AWAY from using random numbers totally, but maybe I could jig the spoons engine to rely on them a little less, or at the very least, in a more controlled manner.

A lot of the programming I did was mostly augmenting numbers through if/else statements. I realize its not elegant, and that maybe in v2.0 I’ll look into some more data science based techniques, but for now, if/else works pretty consistently. It was also the method I used in SAD Blender.

As it stands, the first end of the engine is done, which is the set state. Or the part of it that runs at the start of the day and sets the buckets (stress, physical state, mood, perception, and eventually spoons).

The Spoons Engine output

In the case of stress. I’m defining stress as EXTERNAL stressors. These are things that happen outside of your own body. I’m doing a few things to generate this score. I still start with a somewhat random base number, and I’m still looking at the weather to influence stress. But I’m also checking what events and unread emails I have waiting for me currently. This adds to a busy function, which further augments it. All my buckets are out of 10, which is a bit arbitrary, but mostly because it makes it easy for me to adjust the number (eg: if shit is terrible, upgrade your stress by 2, etc). Except for spoons, which is out of 100 and based on percentage. I’ll get to that later.

Physical State is a combination of internal influences based on your body, in particular sleep and illness. Again I start w/ a random base number, and augment it based on those states. But Physical state is also influenced by stress. And so I’m using the stress score to further augment the physical score.

I think by now you can catch the drift of what I’m doing and how. I continue to pass stress and physical state into a mood function. Mood isn’t random, it starts as neutral each time (so 5). And is augmented by stress and physical.

After that I pass all three into perception. And this is where I assign a rating scale of good / bad / terrible. There’s some weird language moments like “stress: [6,’low’]” is bad…but y’know first stab, because I had to keep the descriptors the same for further functions.

When we get to spoons I kinda flip to generating a percentage out of 100. My reasoning for that was, when considering actions or tasks that the device will have to perform throughout the day, it might be easier to adjust the variables based on 10, but the overall spoons on a percentage of X number. So for example, if you’re starting with 40 spoons (or basically operating at 40% capacity), it might make more sense to say that “automating the lights needs 5% of your spoons). I could be wrong, and in practice it might change. But for now, I’m going to try it. In this case, I’m not really looking at increasing spoons. Just taking from them, as when you’re sick, even GOOD things take their toll, and the idea is that you have to decide what to spend the spoons on.

I’m just starting to think about how this is going to work. Which is going to be my update in week three.