Showing posts with label Gossip Cat. Show all posts
Showing posts with label Gossip Cat. Show all posts

Thursday, September 10, 2015

Two Dialogues Concerning the Cat

You may wonder why I have inflicted on you something so bland and indeed so tedious as the conversations below. I have several responses:
  1. This is exactly what talking to a cat would be like.
  2. These conversations are typical of general f/b and twitter chat.
  3. Few, if any AI/chatbot system today could chat like this.
  4. There are a number of technical issues (for AI) which I mention at the end.
  5. ... and finally, the cat asked me to.


Designing the simulation of our cat, Shadow, requires test data. So today, Clare conducted two interviews, or dialogues, with the cat which will be analysed in computational terms in a future post. The idea is that Virtual Shadow should be able to participate in conversations like this.
Dialogue 1

1. Clare: Hi Puss.
    Cat: Hi Clare.
2. Clare: You been asleep?
    Cat: I sleep all day.
3. Clare: Do you prowl all night?
    Cat: I like to meet with my friends.
4. Clare: How many?
    Cat: There’s the big cat who chases me.
5. Clare: Go on.
    Cat: Then there’s the badger, who chases me.
6. Clare: And ...
    Cat: And then there are lots of voles.
7. Clare: I like voles.
    Cat: Tasty, aren’t they.
8. Clare: I also like badgers.
    Cat: Yes, they seem to like me, too.
9. Clare: Do you eat with the badgers?
    Cat: As far away as possible.
10. Clare: Do you play chase with the badgers?
      Cat: Less about the badgers, please!
11. Clare: Do you like living here?
      Cat: Could be better.
12. Clare: How?
      Cat: A fridge I could open.
13. Clare: Would you like a friend cat in the house?
      Cat: I wouldn’t mind a minion!
14. Clare: See ya!
      Cat: Miaow!

Dialogue 2

1. Clare: Hi Puss.
    Cat: Miaow!
2. Clare: I’m really sick of Nigel today!
    Cat: Just today, then?
3. Clare: Yes, just today.
    Cat: Perhaps he’ll clean it up.
4. Clare: You know him very well!
    Cat: How has he irritated you?
5. Clare: He’s had his nose in his computer for six hours.
    Cat: And what were you doing?
6. Clare: Talking.
    Cat: To yourself?
7. Clare: To Nigel!
    Cat: You mean his tablet! Time to confiscate it!
8. Clare: Perhaps you could walk on the screen?
    Cat: What’s for dinner tonight?
9. Clare: For me or for you?
    Cat: I’m a cat: think about it.
10. Clare: For you – Whiskers chicken bits.
      Cat: I like variety.
11. Clare: You say you don’t get variety?
      Cat: Chicken, chicken, chicken!
12. Clare: Spoilt!
      Cat: I’m a cat.
13. Clare: Most cats have dried food, you little brat.
      Cat: Not so little, these days!
14. Clare: What about brain food? What would you like?
      Cat: Brains, minced, should do it.
15. Clare: Sorry, no can do.
      Cat: Miaow!
You may be surprised at how many difficult issues of vocabulary, grammar, parsing, reference, topic management and knowledge representation are raised by these apparently simple dialogues.

Wednesday, March 11, 2015

<A|Q> = <A|I> <I|Q>

The title is a bit of a joke (don't ask) and even vaguely relevant to the subject of this post, which is the utility of artificial intelligence in thinking about hard stuff like IQ, human intelligence and even consciousness. This thought is not remotely original: Daniel Dennett was writing decades ago that AI and cognitive science would revolutionise traditional Philosophy of Mind topics such as free will, the existence of other people ('other minds'), and the nature of intentionality and agency.

It's a stretch to get from neuronal sludge to introspection. Into that gap flow ideas like 'the soul', philosophical dualism and 'the ghost in the machine'. Once you have a passing acquaintance with the architecture of theorem provers, AI planners and robotic control systems, a lot of things which previously seemed to defy a scientific, materialist explanation suddenly seem .. kinda obvious.

AI systems typically use deduction and/or abduction. Deduction lets you plan your way, despite obstacles, from a starting situation to a goal. The paradigmatic example must be the satnav, although we used to quote chess playing programs. The less familiar abduction looks for a conceptual framework which would economically account for the data under consideration, and which would allow a novel problem to be solved (typically by then applying deduction). We call these learning systems and it's the new hot topic in AI. A good example of such a system might be IBM's Watson.

A while ago I wrote about the Gossip Cat concept: an AI 'toy' which could be a companion to the young or old. It seems that Watson is going to add some value here: the dinosaur toy in the video below is powered by Watson in 'the Cloud'.


(The dialogue model has got to stop aping Wikipedia though. The point is to chat!)

Yes, the dialogue is processed by an AI system - IBM's Watson - in the Cloud. This means that everything spoken in the room is sent off to IBM's servers (somewhere in the States, I imagine) to be interpreted. Has anyone thought at all about the privacy implications of this? Apart from the police and intelligence agencies, obviously.

So then I had a further thought. The toy has been placed in the suspect's household ...  'Watson in the Cloud' is surreptitiously taken offline and a spook-interrogator takes over:

"Tell me Luke, what time is Daddy coming home tonight ... ?"

However ... there's lots of our most precious stuff already in the Cloud: our bank accounts, our savings, ... DropBox. I don't think these privacy issues are the kiss of death per se; what we need are sufficient trust relationships for this novel form of Cloud-based surveillance - it's the unpredictability and 'always-on' character of real-time conversation which presents the challenge.

Wednesday, July 31, 2013

Thoughts about 'Gossip'

'Gossip Cat ' is a project to build a cat avatar (running on a smartphone) which can gossip inconsequentially with the user.

My first thought was to model the content of gossip as a discussion about things. So Mrs Jones has a son,  we have established, and the cat asks "Did Mrs Jones' son visit recently? " This is toggling an attribute value in a record structure.

But really gossip is not like this. It's more like a soap opera: all about agents - their situation, problems, goals, intentions, beliefs and knowledge in as transgressive a context as possible.

This might lead in the direction of baroque epistemic-conative logics but that would be a category error. Instead we should define structural models of agent situations and 'states of mind' which lend themselves to algorithmic manipulation.

I'm thinking of front-ending this with a robust,  Eliza-like template-based natural language system.

A robust model of intentional dialogue,  even if highly content-bounded (there's a reason it's a cat!) could lead to an interesting theory: I think this is the order to do it.

Thursday, July 11, 2013

Gossip Cat: the elevator spiel

In "Accelerando", Charles Stross's novel, a central character is Aineko, the 'increasingly intelligent robot cat'. One day all cats will be like that but right now it's too hard. Gossip Cat is where we're at.

Gossip Cat is a phone app featuring a cat avatar you can chat with. It won't try to sell you anything and it won't just echo back what you just told it, Eliza-fashion.

GC will create a local knowledge-base of facts about your friends, neighbours and general gripes. It will incorporate built-in generic micro theories of personal behaviours and their consequences familiar from TV soaps. It will sympathise and pull its weight in conversation - in between soliciting food and personal grooming (it is a cat). The cat will be determinedly bland, banal and vacuous, reflecting its name and the state of the art in AI. How could it not go viral?
---
So here is my implementation plan.

0. Learn Python and the Eclipse SDK. I already learned that Python starts counting from zero :-). Thanks Alex for installing both.

1. Program a resolution theorem prover for propositional calculus. This sounds impressive but it's just a warm-up exercise - a hundred or so lines of code. This is a system which can solve tabloid recreational 'logic problems'.

2. Take a breather,  do the background research and program a resolution theorem prover for first order logic. This is quite hard and it will end up as the embedded inference engine for those micro theories.

3. Settle on the Gossip Cat functional architecture. This includes an extensible hierarchical ontology for the knowledge-base, a conversational model and text i/o parsing. I'd like to connect this to a third-party text-to-speech system. It'll be heavily top-down and model-based predictive as befits a conversational partner who isn't really paying you that much attention.

4. Now we get the CGI avatar to work - it's the user interface to the entire system. Hopefully there's some third-party library I can import,  otherwise I'll be on the  phone to my CGI-expert nephew Chris.

5. Time for kitty to pay a visit to the Android store and 'Hello World!'
---
Now, this has been a long elevator ride but if you're a venture capitalist and you stuck around, feel free to contact me with your cheque book open ;-).