# CricClubs gets AI match highlights minutes after the final ball, with no idle GPUs

> Cypik built CricClubs an AI highlights platform on AWS: training in hours, not days, a captioned first cut minutes after each match, and zero idle GPU cost.

- Canonical URL: https://www.cypik.com/case-studies/cricclubs-ai-cricket-highlights
- Delivered and operated by: Cypik
- Client: CricClubs
- Industry: Sports technology
- Location: Global
- Engagement: AI platform build and managed operations
- Services: Model training on Amazon SageMaker, On-demand GPU inference with AWS Batch, Generative AI checks and captions on Amazon Bedrock, 24/7 managed operations and model retraining
- Published: 2026-10-30

## Key results

- **Hours**: Per training cycle, down from one to two days
- **Minutes**: From the final ball to a reviewable first cut
- **Seconds**: To re-cut a single clip without re-running the GPU job
- **Zero**: Idle GPU cost between matches

## Results in brief

- Model training cycles cut from one to two days to hours
- A reviewable first cut minutes after the match ends, with no manual editing
- Titles, captions and a recap drafted for every clip and every match
- Zero idle GPU cost between matches

## What Cypik delivered

- Moved terabytes of match video to Amazon S3 and model training to Amazon SageMaker on managed GPU instances
- Built an on-demand AWS Batch pipeline on Amazon EC2 G4dn and G5 GPU instances that detects key moments and cuts clips
- Added Grok 4.7 on Amazon Bedrock to check each moment against the ball-by-ball scorecard and write titles, captions and a match recap
- Gave admins a review player where AWS Lambda re-cuts any single clip in seconds, with nothing published until they approve

## About CricClubs

CricClubs runs cricket for a global community of leagues, clubs and tournaments, and records full match footage for the games played on its platform.

The recordings are long, while the moments fans want to see, the wickets, the boundaries and the milestones, are short and scattered across hours of play.

## Slow training and manual editing between a match and its highlights

Turning a finished match into a shareable reel was a two-part problem, slow model training and manual clip editing.

- Slow local training: highlight detection models were trained on developers' laptops, where one training cycle took one to two days.
- No GPU compute: laptops lacked the GPU capacity video machine learning needs, so experiments were limited and models were undertrained.
- Terabytes of video: match video datasets overwhelmed local disks, and the team often could not hold the full dataset on one machine.
- Slow disk reads: loading and saving large video files from local storage made training times unpredictable.
- Manual editing: a reel meant a person scrubbing through hours of footage and clipping it by hand, inconsistently from match to match.
- Clips still needed words: someone had to watch each clip, check the scorecard, write a title and caption, and then write the recap.
- No repeatable pipeline: highlights depended on who was available to edit them.

## What Cypik delivered

### Offline training

- All match video training data moved to Amazon S3, which removed the local disk limit.
- Cypik's engineers work in Amazon SageMaker Studio notebooks and train the detection models as SageMaker training jobs on managed GPU instances. Every run is reproducible, and each model artifact is versioned in Amazon S3.
- The detection application is packaged as a container image, built on every change by AWS CodePipeline and AWS CodeBuild and pushed to Amazon ECR with image scanning and immutable tags.

### On-demand generation

- When an admin clicks Request Highlights, the backend API on Amazon ECS with AWS Fargate submits an AWS Batch job with the match ID and the locations of the video and the ball-by-ball scorecard.
- AWS Batch runs the image on Amazon EC2 G4dn and G5 GPU instances in private subnets across two Availability Zones. The job loads CricClubs' own trained model, detects wickets, boundaries, appeals and milestones, and writes a preliminary clip and keyframes for each to Amazon S3.
- Amazon EventBridge carries the job state back to the API, and the instances scale back to zero.

### A second opinion and the words for every clip

- For each clip, three keyframes, the detected event and the matching scorecard deliveries go to Grok 4.7 on Amazon Bedrock through a VPC interface endpoint. It returns a verdict of confirmed, reclassified or flagged, and flagged clips go to the top of the review queue.
- In the same call, Grok 4.7 writes a short title and a one-line caption from the scorecard facts in the house style, and a final call writes a 120-word match recap.
- Cypik chose Grok 4.7 because it judged every test clip correctly, including every clip that should have been flagged.

### A person approves every clip

- Amazon CloudFront streams preliminary clips into a review player in the admin portal, with each clip's title, caption and verdict beside it.
- If a clip starts or ends slightly off, the admin nudges the timestamps and an AWS Lambda function cuts just that clip again from Amazon S3. Nothing is published until the admin is satisfied.

## From final ball to reviewable highlights in minutes

Training runs that took one to two days now finish in hours, so a new detection model is trained and tested within one working session. Admins get a captioned first cut within minutes of a match ending, single clips are re-cut in seconds, and GPU compute runs only for active jobs.

A league final finished on a weekend afternoon. The admin clicked Request Highlights, and a Batch job detected the key moments. Grok 4.7 checked each one against the scorecard, reclassified one appeal the scorer had recorded as a caught behind wicket, and wrote titles, captions and a recap. Within minutes everything was in the review player, and the GPU instance had scaled back to zero.

One boundary clip sat at the top of the queue, flagged because the frames showed the ball fielded inside the rope while the scorecard recorded four runs a delivery later. The clip had started a delivery early. The admin moved the in point, Lambda re-cut that clip in seconds, and the approved highlights went out to fans on the CricClubs web and mobile apps.

## How the platform is secured

Compute runs privately, every component has only the access it needs, and a person approves all AI output before it is published.

### Access and configuration

- The AWS Batch job, the Lambda function and the backend API each assume an IAM role scoped to only the Amazon S3 prefixes and actions they need.
- Environment values and secrets are read from Parameter Store as SecureString parameters at runtime, never built into images or code.

### Network and encryption

- The GPU instances and the backend API run in private subnets and reach AWS services through VPC endpoints. Only the Application Load Balancer faces the internet.
- Amazon S3 objects are encrypted at rest with AWS KMS keys (SSE-KMS), clip delivery runs over TLS through CloudFront, and signed URLs restrict unpublished footage to authorized users.

### AI output

- Amazon Bedrock Guardrails apply contextual grounding checks against the scorecard, content filters and a word filter to every title, caption and recap, and output that fails is flagged for the admin.
- Amazon Bedrock does not use prompts or responses to train models.
- A CricClubs admin reviews every AI-cut clip and every AI-written title, caption and recap before it reaches fans.

### Images and audit

- Amazon ECR image scanning and immutable tags ensure only known, scanned images run. AWS CloudTrail records API activity, and Amazon CloudWatch retains job and function logs.

## Architecture overview

Diagram: https://www.cypik.com/case-studies/cricclubs-ai-cricket-highlights/architecture.svg

CricClubs AI cricket highlights architecture on AWS in three parts. 1, model training: Cypik engineers work in Amazon SageMaker Studio notebooks and launch SageMaker training jobs on managed GPU instances, reading datasets from the Amazon S3 match videos and training datasets bucket, fed by match recording devices, uploaded match videos, live streaming archives and ball-by-ball scorecard metadata; every run is reproducible and each trained model is versioned in an Amazon S3 model artifacts bucket. 2, highlight generation in an Amazon VPC: CricClubs admins click Request Highlights in the admin portal, which reaches an Application Load Balancer in public subnets and the backend API on Amazon ECS on AWS Fargate in private subnets across two Availability Zones. The API submits a job to the AWS Batch job queue, which scales Amazon EC2 G4dn and G5 GPU instances up when a job arrives and back to zero after. The instances pull the image from Amazon ECR and reach Amazon S3 and Amazon Bedrock, where Grok 4.7 with Guardrails checks each moment and writes text, through VPC endpoints. 3, review and delivery: preliminary clips in Amazon S3 stream through Amazon CloudFront with signed URLs into the review player, an AWS Lambda function trims one clip and writes final clips to Amazon S3, and CloudFront delivers published highlights to fans, players and clubs on web and mobile. Shared services include Parameter Store for job configuration, AWS IAM scoped roles, Amazon EventBridge for job state, Amazon CloudWatch logs and metrics, AWS CloudTrail API audit and AWS KMS SSE-KMS keys. Code commits flow through AWS CodePipeline and AWS CodeBuild to Amazon ECR scanned images. Amazon SNS sends alarms to the Cypik operations team, which runs the platform 24/7.

## AWS services used

- **Machine learning and generative AI:** Amazon SageMaker (Studio notebooks and managed GPU training jobs), Amazon Bedrock (Grok 4.7 for moment checks, titles, captions and recaps), Amazon Bedrock Guardrails (Contextual grounding, content and word filters)
- **Compute:** AWS Batch, Amazon EC2 G4dn and G5 (GPU instances that scale to zero), Amazon ECS on AWS Fargate (Backend API), AWS Lambda (Single-clip re-cuts)
- **Storage and delivery:** Amazon S3 (Match video, model artifacts and clips), Amazon CloudFront (Signed URLs for unpublished footage)
- **Networking:** Amazon VPC (Gateway and interface endpoints), Application Load Balancer
- **Integration and configuration:** Amazon EventBridge (Job state), AWS Systems Manager Parameter Store
- **Identity and security:** AWS IAM (Scoped roles), AWS KMS (SSE-KMS keys), AWS CloudTrail
- **CI/CD:** AWS CodePipeline, AWS CodeBuild, Amazon Elastic Container Registry (ECR) (Image scanning and immutable tags)
- **Monitoring and alerting:** Amazon CloudWatch (Job and function logs and metrics), Amazon SNS (Alarms)

Third-party tools: GitHub (source control), Docker (container image), Python (highlight detection application) and FFmpeg (clip cutting).

## Ongoing managed services

Cypik built the whole platform, including the detection model it trains and retrains, and Cypik's 24/7 managed operations team runs it.

| Area | How it is run |
| --- | --- |
| 24/7 alarms | Every AWS Batch job and Lambda invocation streams logs and metrics to CloudWatch, and CloudWatch alarms reach Cypik's operations team through SNS. |
| Model training and retraining | Cypik's engineers train and retrain the highlight detection model in SageMaker Studio and training jobs, and version every artifact in S3. |
| Generative AI checks | Bedrock Guardrails check every title, caption and recap before it is stored, and model invocation logging records every prompt and response. |
| GPU capacity | The AWS Batch compute environment scales G4dn and G5 instances up only for a job and back to zero afterwards, so there is no idle GPU cost. |
| Release management | CodePipeline and CodeBuild build the image on every change and push it to ECR with scanning and immutable tags, so the latest tested image is ready for Batch. |
| Configuration and access | Job configuration comes from Parameter Store SecureString parameters, and each component runs under an IAM role scoped to the S3 prefixes it needs. |
| Audit | CloudTrail records API activity, and CloudWatch retains job and function logs. |

## Results

| Area | Before | After |
| --- | --- | --- |
| Model training cycle | One to two days on a developer laptop | Hours on managed GPU instances |
| Time to a reviewable first cut | Manual editing, with a person scrubbing hours of footage | Minutes after the match ends, with no manual editing |
| Titles, captions and match recap | Written by hand for each clip after the edit, when time allowed | Drafted by AI for every clip and every match, ready with the clips |
| Correcting one clip | Edited again by hand | Seconds, with an AWS Lambda cut of that one clip and no GPU job run again |

These four indicators come from CricClubs' case study and compare the earlier laptop training and manual editing with the platform once it went live. Amazon CloudWatch collects the logs and metrics from every AWS Batch job and Lambda function.

## Questions about this engagement

### How fast are CricClubs match highlights ready after a game?

An admin gets a reviewable first cut within minutes of the match ending, with titles, captions and a match recap already drafted, and no manual editing to produce the first version.

### How does the AI check that a detected moment is correct?

For each clip, three keyframes, the detected event and the matching deliveries from the ball-by-ball scorecard go to Grok 4.7 on Amazon Bedrock. It confirms the moment, reclassifies it (for example an appeal the scorecard shows as a wicket), or flags it to the top of the admin's review queue when frames and scorecard disagree.

### Is anything published without a person checking it?

No. A CricClubs admin reviews every AI-cut clip and every AI-written title, caption and recap, and edits where needed, before anything reaches fans.

### How is a single mistimed clip fixed?

The admin nudges the in or out point in the edit player, and an AWS Lambda function cuts just that clip again from Amazon S3 in seconds, without running the GPU job again.

### Why is there no idle GPU cost?

Highlight generation runs as an AWS Batch job on G4dn and G5 GPU instances that start only when an admin requests highlights and scale back to zero when the job finishes.
