Notes of a Traveling Cat: Artyomka the Electronics Whiz

Notes of a Traveling Cat · Habr, Mar 20, 202611 min

A Friday one: it's been a while since I wrote about the adventures of a traveling cat, but recently I stumbled on yet another post about neural networks and artificial intelligence, which can now diagnose diseases, predict equipment failures and generally solve problems that used to take years of human experience. The author went on and on about trillions of parameters, petabytes of data and a revolution in industry, and I read it, smirked and remembered that back in the early 2000s we had an “AI” of our own for diagnosing faults, only it didn't run on GPU clusters and wasn't trained on labeled datasets, it learned from the praise of an old engineer, keeping him company on his shifts and never getting in the way of his conclusions.

That winter, when all this happened, I was still a student without a diploma but with ambitions, and I believed in the power of education and modern approaches, and that machinery demands knowledge and a bit of cussing. The road from the glorious town of I. to the work site took about an hour, and the whole time the car wound between hills of mixed forest, where the spruce drives the birches out to the forest edge, the birches crowd around the pines and won't let them grow, and above it all hangs that gray sky which in winter turns almost white from the snow that is ready to fall any minute but just can't make up its mind.


The way onto the grounds began some five hundred meters before the fence itself, where the road ran into a boom barrier with a lonely booth. In it sat a lonely guard wearing an expression as if the fate of the country depended on his vigilance, and I must say that in a way it did, because the facility was a restricted one, though what exactly went on there I never fully found out, even after working there on and off for almost a year. The facility itself was a few buildings surrounded by a double fence with three rows of barbed wire, and between the fences ran a security perimeter with sensors and alarms.

And it was this very system, stretching for many kilometers along the perimeter, that became the source of all our subsequent adventures, because it had been built back in Soviet times and was held together by little relays, switches, capacitors and a word of honor. No documentation for it had survived, and the drawings, if they had ever existed, had long since vanished into the depths of the archive, so the only source of knowledge about the system was the old engineers who had serviced it for decades and kept everything in their heads; the system was called either “Gadina” (the Viper) or “Gardina” (the Curtain), but it worked, even though it was old even for those years.

The place gave off a strange feeling of time put into mothballs, when the Union had ended some ten years earlier and the country had switched onto market rails, the cities even had internet cafés, but here, behind these fences, everything stayed the way it had always been. Even the guards wore uniforms with the little sunburst insignia, among the passes there were forms with the hammer on them, and even the language the locals spoke was somehow special, steeped in the terminology of the seventies.

I often thought about places like that, which exist as if outside the ordinary course of history, living by their own time and their own rules, and even after the big world beyond the fence changes, they keep circling in their old orbit until one day an order comes down from above to modernize, and that's when the clash of eras begins, which rarely goes smoothly. But the new almost always wins, and something important is lost for good along the way, and only later, years later, do you realize that together with the old system went a kind of knowledge that could never be formalized and written down, because it lived in people's hands and in their intuition.

When we were tasked with replacing the old security system with a new one, everyone took it as an interesting job, because the modern one was fully digital, with a central server, remote monitoring and redundancy, and it surpassed the old one in every parameter by so much that comparing them was laughable. But you couldn't just switch the old one off either, or the place would be left unguarded, which meant you first had to get the new one running, make sure it worked, and only then dismantle the old one. On paper the plan looked reasonable, but as usually happens with plans, reality made its own adjustments, and our first problem was management's decision to optimize the staff and send into retirement the old-timers who looked after the “old girl”, because, well, why keep people on when in a month or two their job will vanish anyway along with the old equipment, and meanwhile you can write yourself another bonus for cutting costs.

I remember perfectly how we arrived full of enthusiasm and confidence in our abilities and started studying those kilometers of wire, which were now entirely our responsibility. There really were kilometers of perimeter, hundreds of gray metal boxes on poles or simply screwed to the fence, and in every one of those boxes squirmed a tangle of wires, little relays and some ancient components I had only ever seen in the museum at our institute, and all of it had to be somehow understood, maintained and fixed when it broke. And it broke regularly, about once every two or three days, and each time the whole saga of hunting for the fault began. The method was simple: you take the diagram of the section, if there is one, walk along the perimeter, open one box, then another, look, sniff, poke around with a multimeter, try to understand the logic by which it's all wired together, and somewhere between the first and the twentieth box you start cursing the designers and architects who came up with it, the installers who put it together, and yourself for agreeing to work with it.

The winter outings were especially memorable, when a failure happened at around two in the morning and you trudge through the frost along the fence, opening iced-over boxes and trying not to get frostbite in your fingers. And every time you thought that this was it, you'd found the problem, it turned out that no, it was a false trail and you had to keep going. The most galling part was that finding a fault took us a day on average, or even longer, and we just couldn't understand why the old engineers had managed faster, since they had neither better multimeters nor deeper knowledge, and many of them had no higher education at all and had learned everything on the job, yet somehow they found problems in a few hours, while we with our diplomas wandered around in the dark and the cold.

I no longer remember who exactly thought of digging up the old fault logs, but we started going through the statistics, trying to see whether there was any pattern to the failures, maybe certain sections broke more often, or there were some typical faults that could be predicted. The data turned out to be rather curious: the two engineers who had worked before us showed roughly the same results we did, meaning that from detection to repair took about a day on average, sometimes a bit less, sometimes more.

But there had also been a certain Semyonov, Semyon Semyonovich, who worked there until two thousand two, and his statistics were completely different: almost every fault was fixed within an hour or two, and only in rare cases did a repair take longer. So it turned out he somehow possessed a secret that let him find faults about five times faster than the average temperature across the hospital. All of this was wearing us down pretty badly, because while we were looking for the problem, the main work stood still.

Naturally, the idea came up to find Semyon Semyonych and ask him to share his experience, especially since he had retired quite recently and was very likely alive and well. We got his phone number through HR, called, and to our surprise he agreed to meet and even to show us his method, although there was a chuckle in his voice when he said it probably wouldn't suit us. Still, we agreed that he would come over, because in his opinion explaining it in words was useless, it had to be shown in practice, and so we started waiting, which in our situation meant two or three days at most.

The next fault came on the third day as if on order, and one winter morning an old Zhiguli pulled up to the checkpoint, and out of it climbed a tall, stately old man of nearly two meters, and with him jumped out a dog, a mutt of ordinary mutt size, half laika, half shepherd. We stood at the checkpoint to meet them, and I remember my first impression of that meeting: he looked exactly the way an old Soviet engineer was supposed to look, apart maybe from his enormous height, his hands were big and calloused, he moved with great confidence, and his whole bearing spoke of that “Soviet” toughness you can see in old movies.

Now, as I write these travel notes, I can't help thinking about how generations of engineers change and how little they have in common, but back then all of that paled next to my confidence in my own abilities. As I saw it then, I knew the theory, could program microcontrollers and understood digital logic, and yet I stood bewildered before these relay mammoths, because we had been taught to work with systems that come with documentation, schematics and calculations, while here you had to rely on intuition and trial and error. They, on the contrary, had worked with their hands all their lives, didn't know much of the modern theory, but felt the machinery with some kind of inner instinct, not because they had read about it in a book, but because they had seen it and knew how it behaved.

While we drank tea and waited for the passes, Semyon Semyonych told us how the system had been brought up, what problems there had been during installation, and how one winter a whole section went down because rodents had chewed up several relay boxes and built their nests in them. Then the passes were brought, and I was already mentally bracing myself for an hours-long tour of the boxes, but then our grandpa calmly said, "Artemidus, let's go to work," and the dog immediately sprang up, shook himself and headed for the door. Outside we looked over the section diagram the dispatcher had brought and set off toward the start of the perimeter, with the doggo trotting alongside, now running ahead, now lagging behind, but generally staying close.

When we got to the start of the problem section, the “wizard” looked at the dog and said, "Artemidus, search." I expected anything but what happened next: the dog went into a point, sniffed the air, worked his nose around and set off along the perimeter, going up to the boxes and sniffing them, then either moving on or simply walking past. We followed him in complete silence, without the faintest idea of what was going on, and I could see my colleagues were just as baffled, because it all looked completely wrong: a dog was searching for a fault in an electronic security system, and doing it purposefully and confidently, as if he knew exactly what he was looking for.

About ten minutes later we finally came to one of the units, which he sniffed longer than the others, and then he sat down next to it and looked at us. He just sat there and looked, and the former installer said, "Here," then took a key and opened the box. Of course, inside we saw the standard set of little relays, fuses and wires, but nothing that was obviously broken. Then he started methodically tugging at the contacts, wiggled a few of the relays, shone a flashlight on them from different angles, and found that one of the fuses had blown, and you had to look very closely at the wire inside the glass tube to see the break, it was only visible at an angle. We replaced the fuse, called the dispatcher, and everything worked, and from arriving at the section to restoring operation took about forty minutes, thirty of which went on getting there, while the repair itself took about five minutes. The doggo got a piece of sausage out of a pocket, swallowed it without chewing and lay down, very pleased with himself.

I stood there and couldn't believe what I had just seen, because it went against my whole understanding of how you diagnose technical systems. A dog simply can't find electrical faults, that's absurd, this isn't a gas leak you can sniff out, there's no characteristic smell here, unless... you think of the ozone from sparking, or of heated insulation giving off its peculiar smell, or of the ultrasound some faulty components emit, which dogs can hear and we can't. Maybe Artemidus was picking up some combination of those things? Or maybe it was just statistics, and over his years on the job he had memorized which boxes broke more often and went to check those first? But then how do you explain that he sat down at exactly the box where the fault actually was, and not at the one next to it that had broken, say, a month earlier?

To the question "But how did you train him? That's... that's impossible," he just looked at us, grinned and answered, "I didn't train him at all. He figured it out himself." On the way back we got another story, about how he had found Artyomka as a puppy fifteen years before, someone had left him at the checkpoint. The dog grew up, and the lonely engineer took him along on his shifts, because there was nobody to leave him with at home, or maybe he just didn't want to leave him. So the dog was simply there, warming himself in the booth, running around the grounds, helping check the perimeter, and nobody thought the dog had any part in the work, he was just a companion who brightened the loneliness of the long shifts.

But at some point something odd started happening: the dog didn't just run alongside, he walked a little ahead, sat down by one of the boxes and waited. At first Semyon Semyonych paid no attention, thinking it was a coincidence, maybe the dog was just tired and decided to rest in that particular spot. But the coincidences kept repeating, and once he deliberately went not to the box Artyomka had found but to a different one, spent half an hour there and found nothing, and then went to where the dog was sitting after all and, sure enough, found the fault. After that he started trusting the dog, with reservations at first, then more and more, and for the last five years of his working life he didn't bother searching on his own at all: the dog showed him where, and in most cases he was right. A couple of times the pupper missed, but that was when the fault was something really unusual, like a wire that had snapped from the frost.

Back in the dispatch room we offered to draw up a contract so he could come and help with diagnostics until we were done, but the answer we got was: "No, fellas. We're old now. Both me and Artyomka. He'll be fifteen soon, that's a lot for a dog, and I'm seventy-odd myself. You're replacing the system anyway, putting in a new one, so in a year nobody will need this. And the dog... he's used to working only with me. He won't go with anybody else." And so they left, leaving us with the feeling that we had just brushed up against something that lies beyond ordinary engineering logic and yet works, and works better than all our instruments and knowledge. We only got the new system fully up and running two years later, and all that time the old one went on working and breaking, and yes... our repair times gradually got shorter, but we never came anywhere close to the numbers of that canine electronics whiz. When the new system was finally up, all those kilometers of old wire, thousands of little relays and hundreds of boxes gradually went off to the scrap yard: progress, in a word, and nobody argues that the new system was objectively better in every respect.

Later I went back to I. a few more times, and the guards told me they had seen Semyonych around town, that the old man was alive and well and went fishing, but Artyomka was gone, the sixteen years allotted to him had run out, and he never got another dog. He said there would never be a second one like that, and there was no need anymore, because the work was over, and getting a dog just for company, well. Artemidus, it seems, wasn't just a friend, he was a partner, and partners like that don't get replaced.

Sometimes, when I remember those trips to "nowhere", I think that together with the old system something else went away, something elusive and irreplaceable. Gone was the experience of the old engineers who knew every meter of the perimeter, the quirks of the relays, the weakness of the capacitors from one particular batch. Gone was the need for intuition, for a nose for things, for the ability to read the behavior of machinery the way an experienced doctor reads the symptoms of a disease. Everything became algorithmic and predictable, which is good from the standpoint of reliability, but dull from the standpoint of human stories, with no surprises and no need for special people or, as it turned out, special dogs.

I still don't know exactly how the dog found the faults. I tried to come up with a rational explanation and fit the phenomenon to the physics I knew, but deep down I understood that if it were that simple, any dog could be trained to hunt for faults, whereas here it turned out that only one particular dog, who had lived one particular life with one particular person, had this ability, and that is no longer science but something from the realm of relationships between living beings. What matters isn't how it worked, but that it worked, and worked better than we did with all our instruments and education. And that is probably a good lesson that the world is more complicated than our theories, that intuition sometimes sees what is invisible to logic, and that technology, however modern, still remains just a tool in human hands, while true mastery lies not in knowing the instructions but in understanding what lies beyond them.

So whenever I read yet another article about neural networks and all that AI stuff learning from terabytes of data and millions of examples, I can't help smirking and thinking that we had an AI of our own, which was trained on sausage and ran on four paws, and it learned not from algorithms but simply by being next to a Human, watching him work day after day, year after year. And maybe that is the difference between real intelligence and its imitation, because real intelligence doesn't need formalizing or explaining, it simply is, it simply works, and the only things it needs are time, patience and a bit of sausage for a job well done.


P.S. People have long been asking me to collect the Notes of a Traveling Cat all in one place, so here you go. Most of it was published here on Habr, just in shorter form. You can download it as pdf and epub.

All notes