---
title: "AIエンジン｜CheckoutOSドキュメント | Chargezen"
description: "スマートおすすめを支える機械学習の仕組みを理解します。Chargezen CheckoutOSドキュメント「スマートなおすすめ」より。"
url: "https://chargezen.com/ja/docs/checkoutos/smart-recommendations/ai-engine"
lang: "ja"
updated: "2025-01-16"
---

Canonical URL: https://chargezen.com/ja/docs/checkoutos/smart-recommendations/ai-engine

# AIエンジン

スマートおすすめを支える機械学習の仕組みを理解します

最終更新日：2025-01-16

**スマートおすすめのAIエンジン**は、高度な機械学習を使ってストアのデータを分析し、関連性の高い商品提案を生成します。このガイドでは、アルゴリズムの仕組みと、ストアに合わせた最適化の方法を説明します。

## 入力データ

AIエンジンは複数のデータソースを処理して、おすすめを生成します。

#### データソース

*   注文履歴 — 顧客が一緒に購入する商品
*   閲覧行動 — 閲覧した商品、ページ滞在時間、スクロールの深さ
*   検索クエリ — 顧客が探しているもの
*   カートへの追加と削除 — 購入意欲のシグナル
*   商品属性 — カテゴリー、タグ、説明
*   在庫数 — 在庫状況
*   価格データ — 価格帯と利益率
*   顧客セグメント — VIP、新規、リピーターなど

## おすすめアルゴリズム

### よく一緒に購入される商品

同じ注文でよく購入される商品を特定します。

よく一緒に購入される商品

```json
{
  "algorithm": "frequently_bought_together",
  "method": "association_rules",
  "parameters": {
    "min_support": 0.01,
    "min_confidence": 0.3,
    "lookback_days": 90,
    "min_co_occurrences": 5
  },
  "output": {
    "product_pairs": [
      {
        "product_a": "moisturizer",
        "product_b": "cleanser",
        "confidence": 0.65,
        "lift": 2.3
      }
    ]
  }
}
```

### 協調フィルタリング

似た顧客の行動に基づいて商品をおすすめします。

協調フィルタリング

```json
{
  "algorithm": "collaborative_filtering",
  "method": "matrix_factorization",
  "parameters": {
    "latent_factors": 50,
    "regularization": 0.1,
    "learning_rate": 0.01,
    "iterations": 20
  },
  "similarity_metric": "cosine",
  "min_similarity_threshold": 0.3
}
```

### コンテンツベースのフィルタリング

属性と説明に基づいて類似商品を探します。

コンテンツベースのフィルタリング

```json
{
  "algorithm": "content_based",
  "features": {
    "title_embedding": { "weight": 0.3, "model": "tfidf" },
    "description_embedding": { "weight": 0.2, "model": "tfidf" },
    "category_match": { "weight": 0.25 },
    "tag_overlap": { "weight": 0.15 },
    "price_range": { "weight": 0.1 }
  },
  "similarity_threshold": 0.4
}
```

### リアルタイムのスコアリング

事前計算したモデルとリアルタイムのシグナルを組み合わせます。

リアルタイムのスコアリング

```json
{
  "realtime_signals": {
    "current_cart": {
      "weight": 0.4,
      "boost_related_products": true
    },
    "session_views": {
      "weight": 0.25,
      "decay_factor": 0.8
    },
    "search_query": {
      "weight": 0.2,
      "match_type": "semantic"
    },
    "time_context": {
      "weight": 0.15,
      "factors": ["day_of_week", "time_of_day", "season"]
    }
  }
}
```

## モデルの学習

モデルは自動的に学習、更新されます。

#### 学習スケジュール

*   モデル全体の再学習 — 毎週日曜日
*   増分更新 — 毎日午前0時
*   リアルタイム学習 — フィードバックを即時反映
*   モデルのA/Bテスト — モデルを自動比較

学習の設定

```json
{
  "training": {
    "schedule": {
      "full_retrain": "0 3 * * 0",
      "incremental": "0 1 * * *"
    },
    "data_requirements": {
      "min_orders": 100,
      "min_products": 50,
      "min_customers": 200
    },
    "validation": {
      "holdout_percentage": 0.2,
      "metrics": ["precision@k", "recall@k", "ndcg"]
    }
  }
}
```

## パーソナライズ

エンジンは個々の顧客に合わせておすすめをパーソナライズします。

パーソナライズの設定

```json
{
  "personalization": {
    "enabled": true,
    "user_profile": {
      "build_from": [
        "purchase_history",
        "browse_history",
        "wishlist",
        "reviews_written"
      ],
      "profile_decay": 0.95,
      "max_profile_items": 100
    },
    "cold_start": {
      "strategy": "popularity_based",
      "use_session_data": true,
      "segment_defaults": true
    }
  }
}
```

コールドスタートの問題

履歴のない新規訪問者には、エンジンは人気度に基づくおすすめとセッション中の行動を使用します。3〜5回のやり取りの後、パーソナライズが始まります。

## パフォーマンスの最適化

AIエンジンは高速に動作するよう最適化されています。

#### パフォーマンス機能

*   事前計算したおすすめをエッジにキャッシュ
*   リアルタイムのスコアリングの遅延は50ミリ秒未満
*   アクセスの少ない時間帯にバッチで事前計算
*   キャッシュにない場合は代替のおすすめを表示
*   トラフィックに応じて計算を調整

## 監視と品質

おすすめの品質を監視します。

品質指標

```json
{
  "monitoring": {
    "metrics": {
      "precision_at_5": "Relevant items in top 5 / 5",
      "recall_at_10": "Relevant items found / Total relevant",
      "coverage": "Products recommended / Total products",
      "diversity": "Uniqueness of recommendations",
      "novelty": "Long-tail vs popular items"
    },
    "alerts": {
      "ctr_drop": { "threshold": -20, "window": "7d" },
      "coverage_drop": { "threshold": -10, "window": "1d" }
    }
  }
}
```

## パラメーターの調整

アルゴリズムの調整

*   **多様性を高める** — 類似度のしきい値を下げ、ランダムな探索を追加します
*   **新商品を優先する** — スコアリングに新しさによる加点を追加します
*   **関連性を高める** — モデルの学習頻度を上げます
*   **データの少なさに対応する** — min\_supportのしきい値を下げます

## 関連トピック

[

### 手動ルール

独自ルールでAIの結果を上書きする

詳しく見る



](https://chargezen.com/ja/docs/checkoutos/smart-recommendations/manual)[

### 配置

おすすめを表示する場所

詳しく見る



](https://chargezen.com/ja/docs/checkoutos/smart-recommendations/placements)

このページは役に立ちましたか？

さらにサポートが必要ですか？ [サポートに問い合わせる](https://chargezen.com/ja/docs/checkoutos/troubleshooting/support)
