Engine feels like it's flooding on 2000 Chevrolet Metro

2000 Chevy Metro LSI 4cyl automatic. While driving, engine slows like it's flooding, the Service Engine Soon light starts flashing, then suddenly surges foward and accelerates normally. May not do it again for days. If this happens at a stop sign, the engine sometimes stalls, but always cranks back up with no problem. Is it the oxygen sensor needs replacing? Thanks.

Asked by for the 2000 Chevrolet Metro
we need the code number to help you in the right direction. the code will not identify a bad part but the system that has a issue. a real diag from a shop will pinpoint the exact problem.

thanks for using repairpal.