Given a stream of transaction data, write a function to detect potentially fraudulent patterns based on sliding time windows.