North Korea says it has tested a new torpedo system that uses artificial intelligence for target detection and guidance.