Raj Agrawal

Learnings from software and technology

  • Home
  • Technology
  • Software
  • Work
  • Play

Connect

  • GitHub
  • LinkedIn
  • YouTube

Powered by Genesis

You are here: Home / Archives for Raj Agrawal

About Raj Agrawal

A professional Mobile Software Engineer by profession, an M.C.A and M.C.P by qualification. A guitar hobbyist and an appreciator of Indian classical, folk, metal and baroque music.

Seven Ways To Predict Indian Bank Trouble From Public Data. All Seven Failed.

August 22, 2026 by Raj Agrawal Leave a Comment

Every few months a startup deck promises to predict the next bank failure from news data. I wanted to know whether that’s buildable, so one night I sat up past midnight waiting for the last of seven tests to finish. The question I’d chased all winter: can you tell which Indian bank is about to get hit, using nothing but public information? The number came in a little after one in the morning. It landed below blind guessing.

So had the other six, a couple slightly worse than random, which takes a certain talent.

The setup

Every night a monitor pulls public documents about 25 Indian banks, big and small, from every corner where bank trouble becomes public: penalties, circulars, market disclosures, court and enforcement records, cyber advisories, and news. Around 4,600 documents, each tied to its bank and linked to the original. The question: which bank gets an RBI penalty, a SEBI order, or a cyber incident in the next 14 days? Ground truth: 86 incidents (35 penalties, 16 orders, 21 cyber, plus fraud and court events). That scarcity is itself a finding.

Seven ways to ask one question

Seven ways of asking, all on the same locked split:

  • Counting: the documents, penalties, and stories trailing each bank, and whether they’re rising or falling.
  • The same counts by source.
  • The same counts by kind of event.
  • Meaning: a small open language model summarizes what the words say; simple statistics sort the summaries.
  • Word counting: which words show up, and how often.
  • Coaching: the same model, taught from a handful of worked examples.
  • Reading and judging: an AI reads the bank’s recent documents and must answer yes or no.

The pass mark isn’t fifty-fifty; for rare events it’s what a coin weighted by rarity would score, so blind guessing already banks 0.2591. My stop rule, set in advance: beat random by more than 0.05, or abandon prediction entirely. Pre-committing a kill criterion is the only defense against noise at two in the morning.

The results

MethodScoreRandom-guessing barDifference
Number-crunching the paper trail0.24330.2591−0.0158
Reading the meaning of the words0.25970.2591+0.0006
Counting the words0.25870.2591−0.0004
Coached on worked examples0.24480.2591−0.0142
An AI reading the documents0.24610.2591−0.0130

Frozen test split, 14-day head start; the bar is random guessing on the same data.

Every entry sits at or below random, bunched within two hundredths of a point. The best posted +0.0006 over random. That’s static. The best single probe managed +0.0418 (word counting, on SEBI orders), short of the 0.05 gate. The gate didn’t trip. I stopped.

Even a cheating version fails: hand a method everything said on the day the bad news broke, and it still can’t pick out the banks that got hit. A bigger model wouldn’t have helped either. Buckmann and Hill (two DeepMind researchers, arXiv 2408.03414) found simple statistics on a small model’s reading usually beat a giant model guessing from a few examples, my exact case.

Why I believe the null

Weak-signal hunts usually end with a story by slide forty. I inverted the incentives: split, yardstick, pass mark, and stop rule, all written down and locked before the final tests ran. Even my tooling refuses to publish site copy that claims prediction, a guardrail whose only job is stopping me oversell my own data. Quietly satisfying. Honest limits: 25 banks, one market, eighteen months, 86 incidents. What I can say, with receipts:

Everything a well-equipped outsider can assemble from public sources does not forecast these outcomes at a 14-day lead, and the failure is not for lack of architecture.

What I built instead

The monitor exists: a continuously updated, fully-referenced record of what’s publicly happening to each bank, free at banks.rajagrawal.com. No account, no gate. Each bank gets an attention score: how much public discussion is swirling around it right now. It ranks conversation, nothing more, and the site says so wherever the number appears. There’s a heat map, every number clicks through to its sources, and thin data gets “insufficient data” instead of a guess.

If you follow Indian banks, as an analyst, journalist, or depositor, that record is the product. If you think I’m wrong, good. The standing challenge: break the null. Find an approach, a sharper definition of trouble, or a licensed dataset that clears the bar under rules locked in advance. I want to hear about it.

Filed Under: Technology Tagged With: banking, data, india, machine-learning, rbi

Picostone Basic review: Home Automation, Done Well

April 22, 2018 by Raj Agrawal Leave a Comment

Home automation a.k.a smart-home-technology has been evolving since 20th century. It all started with the need to automate menial tasks, and appliances were thus invented. Over years, the technology has greatly evolved and such appliances can now be operated through smart IOT devices. You could be at home, or may be half-way across the world – it won’t make much difference. Your smartphone is all there’s needed to remotely control your home appliances. I’ll talk about my experience with Picostone Basic, a device that let’s you achieve just that.

What’s in the box?

Main Device (1 Unit), Connector (1 Unit), Fuse (1 Unit), Connecting Wire (1 meter), User Manual and Warranty Document.

Specifications

Number of Switches controlled (on the same circuit board)Upto 4
Input Voltage230V/50Hz
Output Voltage230V/50Hz
Power Consumption1W
Input Voltage for Switches230V/50Hz
Communication Security256-bit AES encryption
Connectivity802.11.b/g/n WiFi
Min Power per Channel5W (Resistive Load)
Max Power per Channel220W (Resistive Load)

Installation

The entire setup spans between 15-20 minutes and can be performed by your local electrician. The device is roughly the size of your palm and should fit well in the circuit board cavity. If there isn’t enough space, it may be left hanging outside the board – This can be aesthetically unpleasing, so as a work-around you can ask the the electrician to mount the device onto a surface-box (you may need to purchase this from your local electrical store).

Picostone basic supports upto 4 switches and once the installation is complete, all 4 of them become 2-way switches.

The device hosts it’s own private wireless network. This is particularly useful when you’re at home and when all sources of internet are offline.

The Main Device
From left to right – Connector, Fuse, Connecting Wire

 

Security

Picostone is designed to prevent unsolicited access. The device connects to WIFI networks only with a WPA2 security level (AES 256 bit encrypted).

During first time registration, the device owner has to register their account via OAuth/ email. This user also has the authority to add one or more trusted users (family members per se).

The settings screen where you can add more users (click to view a larger image).

App (Android) and device reliability

v2.0.0.39 of the app looks pretty and works fine. The in-app switches are responsive on a WIFI network, but there’s a noticeable delay while on mobile internet. I discovered a glitch during a momentary electricity outage in my area (happens quite often during summers in Mumbai). Once electricity was back, Picostone could not remember which switches were previously “turned on”. After speaking with the support team, they considered the anomaly at priority and promptly fixed it! The device have been working reliably otherwise.

Scenes and schedules

This is one of my favorite features. While adding a scene, you’re basically creating a custom profile for your room. One of the scenes may be configured to turn-on 2 appliances at the same time (for instance, 1 light source and 1 ceiling fan), while rest can be turned off. Likewise, you can create several combinations of such one-shot toggles.

Scenes that I created (click to view a larger image)

Additionally, you can schedule each of the 4 appliances to automatically toggle on/off at a specific time of the day.

A handy option to set schedules (click to view a larger image)

Dimmable appliances

For added convenience, you can also regulate the speed of your ceiling fan. As a recommendation from the company, it’s best to use a step-regulator (with upto 5 levels of speed) for seamless experience.

Customer Support

I’ve had several interactions with the support team and they’ve always been prompt. I hope their quality of support persists in future too.

Pricing and discounts

Picostone Basic is priced at Rs. 11,800 (MRP). I know, it’s a little steep on the price. You can avail the device at a good deal during their end-of-season/ festive sales.

Warranty

The device comes with 2 years of replacement warranty. Currently there’s no way to extend it – but they’re working on something similar to benefit their existing customers.

Other available variants

Very soon, they’re launching a new variant called Picostone Polar. It’s aimed at allowing users to control ACs and set-top boxes with the same Picostone app. So with basic and polar together, most of the appliances at home at covered.

Conclusion

It’s super-quick to setup, performs well, is backed with good after-sales service and also a little expensive. I’ve used the device for a fairly long time (more than a month) and it’s been good so far. If you don’t mind spending a little more on a good quality product, then Picostone basic is definitely worth considering.

Filed Under: Consumer Technology Tagged With: home automation, iot, picostone, picostone basic, review, smart home

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

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