HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Cats, Rats, A.I., Oh My! - Ben Hamm

Ignite Seattle · Youtube · 92 HN points · 1 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Ignite Seattle's video "Cats, Rats, A.I., Oh My! - Ben Hamm".
Youtube Summary
"This is the story of how I taught myself soldering, coding, and machine learning, all to thwart my sweet murderous cat.

He brings in dead (or not dead) rats, mice, and birds. I tried to stop him with bell collars, operant conditioning, generous feeding. Nothing worked. So I built an AI-powered cat door that can tell when he approaches with a critter in his mouth. If it's just the cat, door's open! If he's carrying a rat or bird? Cat door locks, texts me pics, and donates to bird conservation."
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Now check out this project: https://www.youtube.com/watch?v=1A-Nf3QIJjM

A cat door that can tell if the cat has a mouse it's going to "gift" to you, and locks to keep the cat out.

skydv
awesome, tho I am curious are there easier ways like weighing the cat before and after :) Although he can be wet
mavsman
I may now get a cat just to set this up.
Jun 16, 2019 · 90 points, 34 comments · submitted by r0f1
amelius
He hand-labeled 23,000 images ...
Componica
Running a computer vision consulting shop, that's our way of life. For almost a decade we've developed semi-automated means to make the problem saner, but we have to maintain a network of people and software for labeling images.
velcrovan
Once you have each image in its own file, not hard to rig up a way to preview them one at a time and press a number key corresponding to the desired category (1–4 in this case) which will bin the image in that category and bring up the next image.
Hello71
if you can do one per second that's just over 6 hours.
gwern
Faster if you can do them in a batch. If you have individual video segments, just label the whole segment. There isn't going to be no prey in one frame and then suddenly prey materializes from nowhere in the next frame.
marvin
Well, genius is 1% inspiration and 99% perspiration, in the immortal words of Thomas Alva Edison.
amelius
Yeah but it makes you wonder: is it genius, or is it just brute force pattern matching?

And what if he gets a new cat, or his cat switches to a different kind of prey?

From the outside, it might seem as if he is enslaved by his pet.

velcrovan
Brute force pattern matching would be cataloguing all possible matching pixel patterns. The whole point of the ML approach is that with a comparatively few images (yes even 20k is comparatively few) the computer will correctly match pixel-sets it has never encountered before.
amelius
If your comparison function returns a float instead of a binary value, then you don't need to match against every possible image. Instead you just return how much each image is "similar" to the given image. A simple approach is to use cross correlation for the similarity.
keerthiko
> From the outside, it might seem as if he is enslaved by his pet.

I don't see the issue, this is the explicit contract of having a cat for a pet.

fisherjeff
> explicit contract

I think many first-time cat slaves would disagree

chris_st
They'll learn.
fisherjeff
It took me all of maybe 20 minutes
joshvm
If you've only got a few classes it's faster to transfer learn a model from a few hundred examples, get that model to relabel your entire dataset and then fix any mistakes it's made. This is less than ten lines of python using fast ai.

If you've split your labelled data into folders then you can scan through several thumbnails at once to catch any misclassified pictures.

Rinse and repeat until the model is good enough.

amelius
> and then fix any mistakes it's made

This might be the most practical way to approach this, but it's not really a fundamental improvement since you still need to consider every image (also the correctly labeled ones).

pfundstein
> you still need to consider every image

Not necessarily. The classifier will not only tell you whether it sees a rat, but also its confidence. So you can manually classify just the low confidence images, retrain, and repeat until there's none left or you're happy with its detection rate.

joshvm
True, although as the sibling suggested you can sort by confidence and weed out the edge cases. It's also quicker to go through mostly correct images as you need to make fewer (corrective) interactions/clicks. You can even view eg four thumbnails at once to spot outliers.
incomplete
reminds me of a more refined version of this: https://www.youtube.com/watch?v=uIbkLjjlMV8

(video is an excellent non-arduino hardware hack to keep cats from peeing on a car)

:)

mirimir
Wow. And some amazing cat acrobatics!
bjelkeman-again
I like the mix of hardware.
qot
Aside: why is it so difficult to upload talks to YouTube with good audio?

The audio in this video was constantly clipping which forced me to turn my speakers way down. We live in a time where we can buy off-the-shelf hardware to do machine learning / image recognition, but can't record a presenter's speech properly?

melling
I also need a camera to alert me when the fox is in the yard.
basicplus2
How about cat door that gives cat an electric shock when cat has prey in their mouth
coldtea
How about leaving the cat alone?

They are natural animals, not our property to "train" and enforce our preferences upon...

If you don't like cats hunting birds, don't own a pet cat, as to not sponsor the artificially inflated proliferation of domestic cats.

If you do want a pet cat, respect it.

imglorp
Or don't let them out.

Indoor cats live longer and don't have problems with parasites, pregnancy, diseases, fights, poisons, predators, cars, stupid humans, or just getting lost.

Wowfunhappy
Growing up, we had a pet cat that we wanted to keep indoors, for her own health if nothing else. Unfortunately, she would hide by the door and leap out the second it was opened. We did our best but she was REALLY fast.

We trained her by spraying her with water when she ran outside. Is this all that different from a electric shock?

(This didn't work in the long run—we eventually had to gave up and just let her go outside—but it did for a time)

tuesdayrain
Or ideally just don't buy a cat at all, since they carry toxoplasmosis and their scratches are linked to depression(https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4700762/). Every time a cat owner commits suicide I can't help but wonder if that could have been easily prevented.
xkcd-sucks
Shit dude every time anyone commits suicide I can't help but wonder if that could have been easily prevented.
None
None
futureastronaut
There are a bunch of studies showing that pet ownership is beneficial for mental health.
coldtea
>Every time a cat owner commits suicide I can't help but wonder if that could have been easily prevented.

There are close to a billion people with cats, and like a few tens of thousands suicides, that include tons of people with no cats at all.

Especially since even your article says "Cat biting and toxoplasmosis had no effect on the depression, and the number of cats at home had a negative effect on depression (p = 0.021)."

So, only cat scratching does? As if the people with many cats at home don't get scratch? I wouldn't place much emphasis on a single study of questionable quality (given ample empirical evidence that there's no big deal).

"Cats cause suicides" border on "no vaccines" territory...

chachachoney
Correlation does not imply causation and there still isn't enough evidence to support the claim that cat scratches are linked to depression.

From the abstract:

"Authors suggested that infection with cat parasite Toxoplasma could be the reason for this association."

From the conclusion:

"Absence of association between toxoplasmosis and depression and five times stronger association of depression with cat scratching than with cat biting suggests that the pathogen responsible for mood disorders in animals-injured subjects is probably not the protozoon Toxoplasma gondii but another organism; possibly the agent of cat-scratched disease – the bacteria Bartonella henselae."

Not exactly a smoking gun.

travmatt
How about not letting your invasive species drive other animals to extinction for sport? It’s nonsensical to call it a natural animal, and completely ignore the fact that they live nothing like an animal in nature, and have their population artificially supported while they decimate other species for sport. A house cat shares 0% of the life of a ‘natural’ animal.

If you want to own a pet cat, don’t promote irresponsible behavior that intentionally harms the environment. Attempt to have a modicum respect for things that exist outside yourself.

coldtea
>It’s nonsensical to call it a natural animal, and completely ignore the fact that they live nothing like an animal in nature, and have their population artificially supported while they decimate other species for sport.

What part of: "If you don't like cats hunting birds, don't own a pet cat, as to not sponsor the artificially inflated proliferation of domestic cats."

did you miss?

travmatt
It’s not a binary choice between owning a cat and letting it wipe out as much of the native animal population as it can. Again, encouraging people to let their animals wipe out populations of wild animals is wrong, and doing it because it allows your domesticated animal the freedom of feeling ‘natural’ is a supremely selfish behavior.
dang
> Attempt to have a modicum respect for things that exist outside yourself

Personal attacks will get you banned here, regardless of how strongly you feel about cats. Would you please review https://news.ycombinator.com/newsguidelines.html and use HN as intended when posting to it?

dang
Please don't post flamebait or start flamewars on Hacker News. We're trying for better than that here, and this one was pretty bad.

https://news.ycombinator.com/newsguidelines.html

Edit: it looks like we've had to ask you this many times before and also that you've made a habit of posting unsubstantive comments to HN. Could you please not do those things any more? We'd greatly appreciate it.

jhallenworld
I need this device and was thinking about making my own. One of my cats is athletic and jumps up to the second floor balcony to get in via one of our bedroom windows. It is very easy at 3:00 AM to accidentally let the cat in while it has a still alive mouse, rat, bunny, chipmunk, etc..
Jun 12, 2019 · 2 points, 0 comments · submitted by jeffbarr
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.