For what it's worth (and with all the usual disclaimers about potentially making your mac unstable by disabling system services), here's some commands that will manipulate this service and services like it. Note the $UID in the command, that's just a bash shell variable that will resolve to some number. That's your numeric UID. You just run these commands from a Terminal command line. No special privileges needed.
If you want to disable it entirely, the first command stops it from respawning, and the second kills the one that is currently running:
launchctl disable gui/$UID/com.apple.photoanalysisd
launchctl kill -TERM gui/$UID/com.apple.photoanalysisd
(If you kill it without disabling it will die, but a new one will respawn and pick up where the old one left off)
I don't have this problem myself, so I can't try these next two commands. They're relying on good ole UNIX signals. You could theoretically suspend and resume the process like this ("STOP" and "CONT" are stop and continue):
launchctl kill -STOP gui/$UID/com.apple.photoanalysisd
launchctl kill -CONT gui/$UID/com.apple.photoanalysisd
I don't know what launchd does when running processes are suspended for a long time. Will it detect them as dead and kill and restart them? I dunno. But I do know they won't get any CPU time.
This piece of image recognition spyware, introduce by Apple, is harder than ever to get rid of in OS Catalina. The instructions for previous versions of MacOS worked. Apple apparently reads our solutions to this nightmare of a problem then figures out new ways to prevent us from stopping it. So, here's what I am doing and it appears it may work. I'm moving the .plist file to the LaunchAgentsIgnored directory OR just moving it to a whole different part of the filesystem.
I'm moving the relevant files to a folder in my Documents directory called Evilstuff.
You must have ROOT user enabled on your system for this to work.
I am going to watch and see if it comes back. It is sure to do so, with the next update/patch from Apple, so I'm keeping these instructions handy.