Raj Agrawal

Learnings from software development and technology.

  • Home
  • Technology
  • Software Development

Connect

  • Email
  • GitHub
  • Instagram
  • Twitter
  • YouTube

Powered by Genesis

Artificial Intelligence And The Art Of Killing

August 6, 2015 by Raj Agrawal Leave a Comment

Just few weeks ago, a robot killed a factory worker. The factory was that of Volkswagen, one of the worlds biggest auto manufacturers. The worker was installing the stationary robot, when it suddenly hit and crushed him. The worker died in the hospital, and now the authorities are clueless about who they should blame.

It’s said that Artificial Intelligence will be the undoing of man; that it is the hell we will create for ourselves. In this incident, the robot might have had a defect since they are not programmed to take decisions on who should live and who should die, but it serves as a perfect example for the naysayers. Everybody fears a terminator like future, where we are fighting for our very survival.

Artificial Intelligence - Asesinato de Francisco Guerrero
You don’t want a robot to be doing this. Would you? – (Analogy borrowed from ‘The Mexican Ripper’ by artist José Guadalupe Posada).

It is a rational train of thought. We create Artificial intelligence that assumes superiority over humans and assumes that we have outlived our usefulness, it launches war on us. And human kind is exterminated. I say rational not because it does not sound extremely stupid.

Elon musk thoroughly condemns Artificial intelligence. He does not cite concrete reasons for the same, but he firmly maintains the opinion. If somebody hits me by mistake while travelling on the road, I will feel a momentary surge of anger, but I will try to understand why the other person hit me. In any scenario, being the kind of person I am, I would rather not retaliate even though the other person might have done it on purpose. I want my peace of mind, and what is right and what is wrong does not concern me for such a trivial matter. Making a machine understand this is almost impossible, or at least it seems the case.
Angels and Demons; the world is made up of them. In reality it’s gray, but that’s how we generally perceive people. Darkness is evil, and the bearer of evil is the devil.

It would boil down to whether the person is right or wrong. With this in mind, one question comes to mind – how would Artificial Intelligence determine whether the person is right or wrong? One way would be to check if the person under observation has done something questionable, when compared against a list of ideal behaviours that a human being must display. Another thing to consider is the impact or his/her irregular behaviour. That is how we would think; although in our case its second nature to analyse things, so we end up not asking questions. The movies tell us that at some point in a future we may or may not be able to foresee. Artificial intelligence is going to decide that it needs to rule the world, and machines will start killing people.

Can we perhaps avoid this situation? If I make a self sustaining Artificial Intelligence machine, i’ll override some of its behaviours. First of all, there should never be a society where machines and humans co-exist as equals, simply because the purpose of us creating Artificial Intelligence is so that they can help us survive, not to establish their own civilisation. And so even if we give them the power to analyse and gather knowledge, their ultimate goal should always be that of satisfying our interests. That sounds tyrannical, but that is the only way to avoid a possible future disaster.

Paradoxes are fascinating. ‘This statement is false’ is a positive assertion which equates to true, but which contradicts the context of the statement. We can process paradoxes because we accept that two contradictory statements can exist in a similar way that contradictions exist in our daily lives. We can be good and bad at the same time, and this experience teaches us to accept conflicting views. Artificial Intelligence will merely convert statements into equations to understand them, and when it encounters something like ‘statement = false = true’, it fails. How it will react to this scenario is unpredictable.

I believe we are doing Artificial Intelligence the wrong way. Instead of getting them closer to human thinking, we should give each one of them a specialisation, and have them explore the possibilities of that specialisation. Google is already doing that with their self driven cars. I can imagine a future where a car will drive along a coast line by itself without anyone just to the enjoy the view. We can have Artificial Intelligence work on solving big world problems like pollution, poverty, crime, corruption, disease, global warming or have them working on future possibilities in Space exploration, medicine, alternate resources of fuel and food. If we try to make them exactly like human beings, we might not utilise their potential, because humans have the tendency to degrade through the way they think. Instead make them focus on one particular thing, and have them become smarter and become experts and innovators at that. This way, they might actually turn out to be a boon for society, and not the death of it as we’re predicting so conveniently now.

Filed Under: Technology Tagged With: artificial intelligence

Smartphones Have Feelings

July 4, 2015 by Raj Agrawal Leave a Comment

Decades ago, cellular phones were like obedient canines. They were faithful. They would run out of juice when you don’t feed them and would light up when they see you. When I had a simple Nokia phone, I was happy. It did not misbehave with me, and was generally predictable. Its state depended on how I treated it. I could soak it in water, and it would dry up and start working in a few hours. My uncle dropped his 3310, and it was as if something gradually grazed it; not even one bit of hurt.

A smartphone on the other hand, is like your first newborn child. It may not always be responsive and requires more juice than you can provide. But it learns like a child. These days a phone can surprise you in ways you would not imagine. If I check the score of some game played between two random teams in my phone browser, it shows me results of other games, in hope that I would appreciate it. It can automatically arrange stuff for you, and keep your memory intact. It lets you do much more than a normal phone allows you to, and has become more than just a fancy commodity you just cannot do without.

Smartphones have feelings
A smartphone that feels.

A friend of mine argues that smartness requires one to think by themselves. As such, phones being called smart is a joke. Phones only do what you tell them to. Even when they tend to do things you are not expecting, all of it has been programmed, and they are doing nothing on their own accord. Autofocus, predictive search, predictive results, behavioural understanding, and suggestions based on behavioural understanding are all part of what the phone has been designed to do. Where is the so called smartness then?

By definition, smartness is having or showing intelligence, which is the ability to acquire, understand and use knowledge. Human beings are able to process data into information, store it, and use it at a later time. It can be as simple as your wife remembering what you said 5 years ago on a boring day, at an inconsequential time, and then bringing it back in a conversation to awe and frustrate you, or it can be as complex as learning chemistry for the first time. Computers however, have to be fed data and have to be told how to use it. The only work they can do by themselves is to store the given data and retrieve it back.

Can you teach a computer how to think? This question has always boggled me. As a human being who knows that the computer is a machine, it sounds ridiculous. But as a computer programmer, it’s a world brimming with possibility. There are mainly two aspects to this, teaching a computer how to save the data in a meaningful manner based on the type of data supplied, and having it retrieve the data based on the type of query supplied. The secret ingredient in all of this is having the computer memorize this lesson of saving and retrieving data in a specific manner, and having it apply the same the next time you want the said data. So in a way, you’re incepting a behaviour in a computer’s memory. Without getting into too much detail, let’s just say that Artificial Intelligence has all of this covered. And although full fledged AI has its own separate branch, the basics of AI are used in almost all software applications these days.

The funny thing is this is exactly how we teach our children. We teach them behaviors; we just don’t have to code them in their minds. There is that extra effort involved with computers. But the bigger claim still holds; you can emulate smartness in a computer, and you can give it the ability to understand and record certain behaviours and then use them appropriately based on choices, which themselves can be programmed into its memory.

Recently, I had booked a flight from Bombay to Bangalore from a popular online booking service. They sent me an email to my gmail account. The minute I opened the mail, my phone processed it without me even having to tell it about the flight. On the day of the flight, I got an automatic reminder 3 hours prior about the pending flight. As I was reaching the airport, I got a reminder about which flight terminal the flight was leaving from, how the weather was, and if the flight was on time. In this entire process, never even once did I had to intimate anything to my phone, and it still had the courtesy of reminding me.

So suppose your context is a conversation about catching up with someone the next day at 9; if you long tap the home key, Google now will analyse the context and “smartly” ask you if you need a reminder next day at 8. Incidentally, that is also what your brain would do; register a mental reminder automatically. There are many such examples where this new feature might prove extremely handy. Technology is progressing at a rapid pace, and phones are becoming “smarter”.

Can Smartphones really have feelings? That’s akin to the ‘Android and the future of the human race’ debate. And it’s questionable to how useful will it be, if smartphones have feelings. If your smartphone could replace your friend in the future, is it a good or bad thing? In my opinion, the day man stops socialising in favour of gadgets, that will signal the end of humanity. That is one of the reasons why AI looms as a possible threat for our future. But, at the same time, I would like to end this article with the following transcript –

  • *Dial a call to Raj*
  • *Phone answers*
  • Phone – I’m sorry, but Raj is either away or busy right now. Is it okay if I give him a missed call alert and tell him to contact you later?
  • Caller – No, I need to speak with him now.
  • Phone – Oh, is it urgent?
  • Caller – Yes.
  • phone – Okay. I’ll keep ringing in order for him to notice that it might be important. At the same time i’ll message one of his colleagues and inform him to remind you.
  • Caller – Okay.
  • Phone – Is it a medical emergency?
  • Caller – No it’s something personal.
  • Phone – I’m only a phone after all. You can either leave a voice message or a text message about it. That ways he’ll see it faster.
  • Caller – No thanks. I want to speak with him personally.
  • Phone – Okay sure. Bye.

Filed Under: Technology Tagged With: intelligence

Mobile Post Apocalypse – Holy Wars

June 23, 2015 by Raj Agrawal Leave a Comment

I remember holding a Nokia 6600 and being in awe of how revolutionary and cutting edge it looked. It’s a bulky and completely outdated phone by todays standards, but back then it was an absolute beauty. A never before seen form factor, bulky but good-to-hold curves and a brilliant camera for its time really made the phone desirable by many.

I remember the Sony Walkman phone, which was in a league of its own. Sony owned the camera battles back then, but the Walkman phone offered more; unprecedented sound quality, and walkman-like music management. There were other players – you bought a Motorola just for the looks. There was nothing like a Razr back then, and there is nothing that looks like the Razr even now. Every major competitor before Apple brought something new to the table. There were no lists of consumer-friendly phone specs that you could compare. You simply had to choose one which fit your needs the best. DPI, megapixels, cores, rom; none of these things mattered much. And the phones were generally very stable.

There will not be another Nokia 3310, or at least a phone which will be as popular. Why? It’s because back then, spec sheets did not matter much.

Mobile post apocalypse - Analogy (Poussin, Nicolas: The Victory of Joshua over the Amalekites - An excerpt from the The Jewish Bible)
Mobile Post Apocalypse – Pictorial analogy (Poussin, Nicolas: The Victory of Joshua over the Amalekites – An excerpt from the The Jewish Bible)

Apple revolutionised mobiles. It’s true. Whether or not you’re an Android fan, this is something you simply have to accept. Touchscreens were never very popular. Using a stylus to operate smartphones today can get really cumbersome. O2 had a lot of clout among the business elitists, but the world was mainly either Nokia, Sony Erricson, Motorola, or Blackberry. Blackberry owned the majority of the business market, and the other three ruled everything else. All Apple had to do was make a good Touchscreen phone. And it did. And it brought something new to the table; something which was acceptable as the next big thing; something which did not seem ahead of its time. That’s really all you need to do; make something which feels like a logical follow up without really trying to change the world. Apple did just that, and suddenly they were innovators. Every new piece of technology they put into the iPhone became a standard. DPI became the next screen rating. Cameras suddenly felt obsolete in comparison. Music was already their bread and butter and coin. It’s like the world was just waiting for a good ‘smartphone’ – a term that brings about mixed feelings, but that”s for another time.

War is, on many levels, a mind game. Your strength lies not in the strength of your units, but in your ability to use them properly. You cannot always be innovative in a war. You simply have to do what’s necessary; fight fire with lava. And sometimes you just have to do what your opponent does, but for free. And that is what Google did. Android created a mobile ecosystem, which was comparable to iOS, was free, and was open source. Their aim was not to cater to the few elite believing in shelling out a bomb for quality. Their aim was to cater to everybody. They created a model where mobile manufacturers did not have to worry about software. All they had to do was create good hardware which could support Android, much like a PC. Apple was untouchable uptil then, having a daunting monotony on the mobile market. Android is the natural competition the world needed to strive in an Apple dominated world.

The result – Samsung is now one of the top phone manufacturers in the world. HTC have left that O2 image behind and made some excellent phones. This automatically enables a sense of doubt for Apple, which makes it strive to make it products better. And any competition is good competition.

As an end user, I can rest assured that the next phone I buy will be of higher quality than the last, and this trend will only continue. At a certain point, Android left its Apple-copier image, and started taking initiatives of its own. It did what google does best, integrate search into the ecosystem, which is Google’s main source of income. They initiated the Nexus series of phones – the purpose of which was to increase their search base, by selling premium quality phones at mid range prices. And this has worked very well for Google. Nexus 5 is now the standard by which Android phones are measured with. Sure there is the Nexus 6, but it feels like a failed experiment, with its obnoxious pricing. The Nexus 5 is Google at its best in the Android space, and the remastered 2015 edition coming out is a testament to that.

My main gripe with this holy war is this – there used to be a magical (sorta) feeling about holding a mobile phone. When I had held a Nokia Communicator, the sense of awe I got was completely different than holding a 6600. The joy of flapping and unflapping a Moto Razr was unlike anything out there. I could throw around a 3310 and know that it will still ring when I get a call. There was art; art with flaws, but art nonetheless.

Being a software engineer, I now realize that the best way to build a software fast, is to reuse. Almost every phone today is reusing the same curvy edges slim trim design. Almost every Android phone today has a home screen which looks exactly the same.

It still feels great to hold a LG G4, but there’s not much that can surprise me. Sure the phone can look after my every need; way more than any phone back then could possibly do, but it just feels part of my daily life, and not something that I should treasure. And I see this in almost every industry these days. Maybe that is what customers want; a fixed standard set of specs for their daily lives. But when every phones feels the same, you don’t have much of a choice. I used to get butterflies at the thought of buying and exploring a new phone. Now it just feels like i’m buying upgraded software.

Filed Under: Technology Tagged With: 3310, 6600, apple, google, iOS, LG, nexus, nokia, samsung, sony

  • 1
  • 2
  • 3
  • …
  • 40
  • Next Page »

Products I’ve ideated, designed and engineered

• Le Face Keyboard
• Dark Souls SoundBoard (NPC)

Open-source projects I maintain

• Material Design in Practice

Core engineering contributions in the past

• theAsianParent
• Collabb
• Inorbit
• Pretr Shop (Myntra)

Articles written on Medium

• Automatically-read-OTP from SMSes — Android 4.3 to 8.x