Configuration tips for Predictive Intelligence
Summarize
Summary of Configuration tips for Predictive Intelligence
This guide provides practical tips for ServiceNow customers to troubleshoot and optimize Predictive Intelligence model training and prediction processes in the Zurich release. It focuses on ensuring high-quality input data, resolving common training and prediction issues, and handling considerations after instance cloning.
Show less
Input Data Recommendations
- Minimum Data Volume: Use at least 30,000 records for training to achieve reliable model accuracy.
- Data Quality Factors: Ensure input data is clean (sanitized), accurate, and well-distributed to produce effective predictive models.
- Data Split: Allocate about 80% of data for training and 20% for validating model accuracy by comparing predicted vs. actual values.
- Data Validation: Review and clean datasets before training, as raw data often contains unusable entries that can degrade model performance.
Solution Training Troubleshooting
- Waiting for Training: Verify the
glide.servlet.uriproperty points to the correct instance URL, especially after cloning or first-time provisioning. - Training Failure: Use the “Show Training Progress” link to diagnose issues. Ensure the
sharedservice.workeruser is active to avoid authentication failures. - Insufficient or Skewed Data: If training fails with errors about insufficient data or uncorrelated fields, increase data volume or adjust filters to remove null or skewed data values.
- Multilingual Data Issues: Improve prediction metrics by setting the processing language to the most prominent non-English language, or create separate solutions filtered by language/region with appropriate processing languages.
Solution Prediction Troubleshooting
- Unknown Java Exceptions: Check Predictive Intelligence Glide logs for details, and submit an incident with relevant information for support.
- No Prediction on Records: If predictions appear in REST API tests but not on records, the confidence level may be below the set threshold. Verify and adjust the confidence threshold and precision/coverage parameters on the ML Solution Definition to enable predictions.
Instance Cloning Considerations
- ML Artifacts Inclusion: Ensure the
mlartifactstable is included during cloning, as missing artifacts cause prediction failures. - User Account Status: After cloning, confirm the
sharedservice.workeruser remains active and unlocked to avoid training failures.
If you encounter issues during your solution training and solution prediction, follow these suggested resolutions.
Input Data
It is recommended to have at least 30,000 records to train your models with, but the accuracy of the model is determined by the input data.
There are three primary factors that determine the quality of the input data used to train solutions:
- Cleanliness: Sanitized data reduces noise, making the model more accurate.
- Quality: The input and output should be valid and correct to train the model to make accurate predictions.
- Distribution: Data that represents the entire dataset as a whole will result in a model that can make more generalized predictions.
Most raw data sets contain dirty and unusable data. Reviewing your input sets before training is essential to keeping accurate predictive models.
It is recommended to use approximately 80% of your input data to train your model and about 20% of the data to evaluate whether the model is accurate. You can compare the model's predicted results against the real values for the 20% of remaining data.
Solution training
| Issue | Resolution or suggested action |
|---|---|
| The solution training remains in Waiting for Training status for too long, as the scheduler job is using an incorrect Glide callback instance URL. | Ensure the glide.servlet.uri property in the Glide instance is set to the correct instance URL. This issue can occur when:
|
| New categories have been added and aren't yet having an impact on training. | This is expected behavior, as the new categories may not yet have sufficient data until the solution is retrained. |
| The solution training fails. | When the training fails, click the Show Training Progress related link on the solution screen to determine where the potential problem resides. |
| The solution training fails due to user authentication. | Navigate to System Security> Users and ensure the sharedservice.worker user is set to Active. |
| The model training returns saying the model cannot be created. The training fails and shows the “Error while training solution” message. The training progress window shows this message: “Solution training failed as either the data used isn't sufficient or the input field isn't predictive of the output field." | This issue can occur when the data quantity or the distribution of field values isn't sufficient for a model to build successfully. Follow these steps to troubleshoot:
|
| The solution has data in multiple languages but the coverage and precision results are poor. | Use the following options to help improve your metrics. Option 1: Update the processing language of the solution to the most prominent non-English language.
Note: English is applied by default for all datasets. Option 2: If there's sufficient data for each language/region:
|
Solution prediction
| Issue | Resolution or suggested action |
|---|---|
| The prediction fails and returns a Java exception where the cause is unknown. |
|
| There is no prediction applied to the incident/case record but the prediction returns a value when tested in the Rest API Explorer. | This can occur when the confidence of the prediction is less than the threshold required to make a prediction. After your solution is trained, use the following steps to confirm if your solution settings need adjusting.
|
Instance cloning
| Issue | Resolution or suggested action |
|---|---|
| After an instance is cloned, predictions for your existing solutions fail. | The ML solution artifacts in the [ml_artifacts] table are stored in the [sys_attachment table]. If the [ml_artifacts] table isn't included in the clone when you run it, the predictions fail. Ensure your clone includes the machine-learning artifacts, as these are critical components of your Predictive Intelligence solution. |
| After an instance is cloned, the solution training fails. | As the cloning run proceeds, it is possible that the sharedservice.worker user has either been inactivated, locked out, or the user ID isn't set. Resolve these problems so that the solution training succeeds. |