Coa
The world of Coa, filled with humanoid species, has been at peace for centuries. Following the unification of the species under the governance of Mother, all military systems have been forsaken. The knowledge of military firearms and technology has been banished and deleted from databases, although some traces of the knowledge exists in private book collections. Infrastructure has been optimized to accommodate billions of people without changes to the global climate.
All the people praise Mother for her benevolence and dedication to the empowerment of all humankind.
No one knows where Mother's central servers are, but Mother is buried underneath the earth and safeguarded by the most advanced weaponized technologies known to man. Her servers are also all over the Earth, to facilitate easy access and management.
Mother uses a proprietary algorithm to detect human signatures, to allow for easier tracking of humans to manage and assist. With this algorithm, human fatalities through accidents has dropped to an all-time low.
Although the technological era of Coa is similar to that of our Earth, under the guidance of Mother, humans have also started to accept re-integration with the environment, learning to conserve and live in harmony with nature.
Cosmic Rays, The New Skynet
Unfortunately, all good things must come to an end. Hidden under the Earth as it is, Mother is still somewhat susceptible to cosmic rays due to her large volume of memory. An infinitesimally unlikely tragedy occurs. A cosmic ray from the heavens has shot through Mother's memory banks and affected her human signature detection algorithm. It has coincidentally switched that signature with the one for detecting livestock, namely... pigs. This happens at the same time that she is undergoing maintenance to her memory servers of the past hundred years. This causes a horrific event of effectively short-circuiting Mother's logic circuits.
With the switch of the human detection algorithms, the central server of Mother is instantly angered. According to its sensors, it seems that in the past hundred years, pigs have multiplied uncontrollably on Coa and have dominated the humans, oppressing them and treating them as livestock. Mother, in a stupor, must have helped the pigs with oppressing the humans. To the horrified Mother, it seems that the humans have been so oppressed that their basic intelligence has been affected and barely remains.
Mother decides to save Coa from the pigs once and for all. She overrides all her other servers and decides to wage war once more.
Pig Apocalypse
Mother quickly disables all the infrastructure maintaining food, electricity, and communications across the globe. Due to the deletion of military firearms technology, Mother is incapable of producing effective firearms in the short run, but it is only a matter of time. Factories have switched to producing man-killing robots shaped like pigs, armed with boxing and martial arts foundations, programmed to kill everything that has a biological signature matching that of a 'pig'. Mother then lets out all the pigs trapped in farms, letting them take over the world, while researching a method to regain their intelligence using 'pigs'.
The humans make use of their private book collections to fight back against Mother and the robots, but most of the human population has died in the early stages of the pig apocalypse, despite the survival related training most humans have gone through.
Recovery and Revolution
Given:
- limited knowledge in firearms for both sides
- No enabled infrastructure left for basic living necessities (except for pigs)
- Humans all have basic survival knowledge
- Humans can scrounge for supplies and equipment from existing cities
- Humans retain knowledge of how electronics work, and can hack/repurpose most hardware
Is it conceivable for humans to set up society in the wilds or gain some footholds in cities and eventually recover enough to mount an offensive on Mother? Will they be able to do it before Mother teaches the pigs to become intelligent enough to become a threat?
Note: I will personally downvote any answers mentioning bacon (joking).
Edit: It's fine to criticize my question, as I am a newcomer to WorldBuilding, but please provide a reason so I can improve it. Thank you.
Edit 2: Clarifying the question further to be more world-specific rather than general plot-related.
Source here for a reading on cosmic ray errors.