
Preprocessing choices directly influence how models learn. Use the right scaling, encoding, and augmentation strategies for each data type — and validate changes with cross-validation and holdout sets.
- AWS Glue and Amazon EMR for large-scale ETL and data processing.
- Amazon SageMaker (Data Wrangler, Processing Jobs, Ground Truth) for data preparation, labeling, and model training.
- Domain-specific services like Amazon Rekognition (vision), Amazon Transcribe (speech-to-text), and Amazon Comprehend (NLP).
- Scaling: standardization (zero mean, unit variance) or min-max normalization.
- Outlier handling: clipping or transformations (log, Box–Cox).
- Imputation: fill missing numbers with mean/median or model-based predictions.

- One-hot encoding: binary indicator columns for each category (suitable for nominal features).
- Label encoding: integer mapping (useful for ordinal features or some tree-based models).
- Target encoding or embeddings: handle high-cardinality categories or capture target-related information.

- Bag-of-words / TF-IDF for simple classification tasks.
- Word embeddings (Word2Vec, GloVe) for semantic information.
- Subword tokenizers and transformer token IDs for modern language models.
- Tokenize and manage vocabulary.
- Clean or normalize text (lowercase, punctuation handling).
- Convert tokens to embeddings or indices.
- Apply modeling: classification, entity extraction, summarization, etc.

- Load and decode images.
- Resize and normalize pixel values (e.g., scale to [0, 1] or standardize).
- Apply augmentation (rotation, flips, color jitter).
- Use CNNs or pretrained backbones for feature extraction and classification.

- Extract spectrograms or MFCC features for classification.
- Use waveform-based neural networks or transformer-based audio models for end-to-end tasks.
- For speech-to-text, use services like Amazon Transcribe or build custom ASR models.

- Structured: tabular data with fixed schema (rows/columns). Easier to clean, encode, and feed into tree-based models or linear models.
- Unstructured: free-form text, images, audio, or video. Requires feature extraction, embeddings, or deep learning models.
- Structured: decision trees, gradient-boosted trees, and linear models.
- Unstructured: neural networks (CNNs for vision, transformers for language, and hybrid models for multimodal tasks).

- Cleaning: remove duplicates and correct obvious errors.
- Encoding: convert categories to numeric representations.
- Scaling: normalize numeric ranges.
- Imputation: handle missing values robustly.
- Balancing and augmentation: address class imbalance or increase dataset diversity.
- Visualize distributions and correlations.
- Log-transform skewed variables when appropriate.
- Use cross-validation to measure preprocessing effects.
- Track preprocessing steps in reproducible pipelines (SageMaker Processing Jobs, Data Wrangler).
- Labeled data: inputs paired with target labels (used for supervised learning — classification, regression).
- Unlabeled data: no explicit targets; used in unsupervised learning (clustering, anomaly detection) or self-supervised methods.
Exam tip: Labeled vs. unlabeled is often tested. Labeled data ⇒ supervised learning. Unlabeled data ⇒ unsupervised or self-supervised approaches (clustering, anomaly detection, representation learning).

- Statistical: ARIMA, exponential smoothing.
- ML/DL: LSTM, GRU, temporal CNNs, transformer-based time-series models.
- Tools: Facebook Prophet for trend/seasonality, or SageMaker for custom deep learning models.
- Capture seasonality and trend components.
- Handle temporal cross-validation (e.g., rolling-window validation).
- Beware of data leakage (do not use future information in training features).

- Oversample the minority class (simple duplication, SMOTE).
- Undersample the majority class.
- Use class weighting or focal loss to penalize minority errors more.
- Evaluate with precision/recall, F1-score, ROC-AUC, and PR-AUC rather than accuracy alone.


- Storage: Amazon S3.
- Processing: AWS EMR, AWS Glue.
- Labeling at scale: SageMaker Ground Truth.
- Training: distributed training with SageMaker and multi-instance jobs.
- Simple: mean/median/mode.
- Model-based: use a predictive model to fill missing values.
- Indicator flags: add a column indicating missingness (sometimes informative).

- Structured/tabular data: decision trees, gradient-boosted trees, linear models (after encoding categoricals and scaling numericals).
- Images: convolutional neural networks and transfer learning.
- Text: transformer-based models or embeddings + downstream classifiers.
- Time-series: ARIMA, LSTM, temporal transformers, and specialized forecasting tools.
- Audio: spectrogram/MFCC extraction + CNN/RNN/transformer models.

- Numerical, categorical, text, image, audio, and time-series data.
- Structured vs. unstructured and labeled vs. unlabeled data.
- Key preprocessing steps: cleaning, encoding, scaling, imputation, augmentation.
- Handling imbalance, missing values, and big data at scale.
- How data type influences algorithm selection and real-world tooling.
- Amazon SageMaker: https://aws.amazon.com/sagemaker/
- AWS Glue: https://aws.amazon.com/glue/
- Amazon EMR: https://aws.amazon.com/emr/
- Amazon Rekognition: https://aws.amazon.com/rekognition/
- Amazon Transcribe: https://aws.amazon.com/transcribe/
- Amazon Comprehend: https://aws.amazon.com/comprehend/
Good luck — focus on practicing each pipeline end-to-end and validating preprocessing decisions with experiments.