בינה מאלכותית RB14-05 : זיהוי ספרות תרגיל מעשי

 

 

 

 

Spatial data means data where the position of each value matters and has relationships with its neighbors.

Examples:

  • Images → each pixel has meaning only in relation to nearby pixels (edges, corners, shapes).

  • Maps / GIS data → a location’s value (temperature, population, elevation) depends on surrounding areas.

  • Medical scans (X-ray, MRI, CT) → pixel/voxel arrangement encodes anatomy.

Non-spatial data (opposite):

  • Tabular data (Excel sheets: age, income, blood pressure). The order of columns or rows does not define relationships.

  • Feature vectors (already extracted numbers like embeddings).

In short:

  • Spatial data = has a geometry (2D, 3D, grid, sequence) where location matters.

  • Non-spatial data = just independent features, order doesn’t matter.

 

A plain ANN (like MLP) can sometimes be better than a CNN, but only in specific conditions:

  1. Non-spatial data

    • If your inputs are tabular data (numbers, features, categories) with no spatial or temporal structure, ANN is usually better.

    • Example: predicting house prices, credit scoring, sensor values.

  2. Very small datasets

    • CNNs need many samples to learn filters. With very little data, a small ANN may generalize better (or at least overfit less).

  3. Low-dimensional inputs

    • If your input has only a few features (e.g., 20–50 values), CNN has no advantage.

    • ANN is simpler and faster.

  4. When spatial structure is irrelevant

    • If the order of pixels/features doesn’t matter (e.g., shuffled or abstract features), CNN loses its main advantage.

  5. As a classifier after feature extraction

    • Sometimes features are already extracted (e.g., embeddings from another model). In that case, a simple ANN on top of those features is better than CNN.

Rule of thumb:

  • Use CNN when data has clear spatial/local structure (images, spectrograms).

  • Use ANN when data is flat/tabular or when relationships are global, not local.

כתיבת תגובה