Neural network-driven domain decomposition for efficient solutions to the Helmholtz equation