Abnormal behavior analysis
Configure abnormal behavior analysis
Abnormal behavior analysis examines user behavior data to detect irregularities in upstream and downstream behavior patterns. For example, the number of clicks should never exceed the number of impressions — when it does, the data is flagged as abnormal.
To configure an abnormal behavior analysis task, select Abnormal Behavior Analysis as the task type, choose the behavior data table, and specify a task name. Then configure the following parameters:
Partition field: Select the ds partition field. Partitions support two date formats: yyyymmdd and yyyy-mm-dd. Select the format from the drop-down list.
User ID field: Select the field that uniquely identifies each user, such as user_id.
Item ID field: Select the field that uniquely identifies each item, such as item_id.
Behavior field: Select the field that distinguishes different behavior types, such as behavior_type_event_id.
Upstream behavior value: Enter the upstream behavior events to analyze, such as expr (impression). Separate multiple values with commas.
Downstream behavior value: Enter the downstream behavior events to analyze, such as click or purchase. Separate multiple values with commas.
Number of buckets: Enter the number of equal-width bins for segmenting behavior data, such as 10. A higher bucket count provides a finer-grained view of user distribution.
Periodic execution: Defaults to No.
If you select No, the task runs once. After you click Save and Compute, specify the business date range. The default range is the last 7 days. Change the date range to analyze data from a different period, and then click OK to start the diagnostic task.
-
If you select Yes, configure the schedule as described below.
NoteThe analysis counts upstream and downstream behaviors at the user, item, and user-item pair granularity, calculates conversion rates and abnormal rates at each granularity, and shows the distribution of these metrics.
Upstream and downstream behaviors have a dependency relationship. Multiple behaviors can serve as upstream or downstream behaviors in parallel, for example, [impression] -> [click, add to cart], or [click] -> [like, comment, bookmark].
An abnormal case occurs when the downstream behavior count exceeds the upstream behavior count.
ImportantThe business date refers to the data that falls within the corresponding date partition, not the data written on that calendar date.
When periodic execution is enabled, select the daily execution time and click Save.
Diagnostic report
The abnormal behavior analysis report identifies cases where downstream behavior counts exceed upstream behavior counts.
Abnormal ratio: A low abnormal ratio indicates that downstream behavior counts stay within expected bounds relative to upstream behavior counts.
Upstream behavior count distribution: The upstream behavior counts are divided into 10 buckets. The x-axis shows the mean upstream behavior count per bucket, and the y-axis shows the frequency.
Downstream behavior count distribution: Displayed in the same format as the upstream behavior count distribution.
Conversion rate distribution: Conversion rates are divided into 10 intervals. The chart shows the number of observations in each interval.
Top-N statistical analysis: Displays the top entries for upstream behavior, downstream behavior, and conversion rate, along with the corresponding user IDs for further investigation.
By default, all imported fields are analyzed.
Upstream behavior value: expr (impression)
Downstream behavior value: click
pair: A user-item pair, expressed as 'user_id+item_id'
Average conversion rate per user-item pair: The mean conversion rate of pairs, grouped by user or item