Detailed description of the invention
Described in background technology, the system that complexity as magnetic resonance system is huge, a lot of functions of system can be designed to rational workflow, follow the workflow of system, the corresponding function of completion system, this can make system respond fast and complete every application efficiently, in an orderly manner.
But the corresponding distinct device of system and application scenarios, its function and workflow thereof are multifarious, user can not send the appropriate action of corresponding workflow at once, the action that such system can not send user is made and is met the corresponding of required workflow, disproportionate movement that external environment condition provides cannot be adapted to or have concurrently rationally with irrational action and can not completion system function efficiently, in this repeatedly adjustment process, also can produce useless loss, such as when carrying out scanning imagery to cranium brain, conventional sweep sequence should be selected to scan, but have selected enhancement sequences to scan because being unfamiliar with operating process, unnecessary energy consumption can be caused.
Each workflow of system is its systemic-function corresponding, if the template (workflow) of reasonable workflow can have been preset in CONFIG.SYS, action can be there is in response in system, and the action (expectation action) of the systemic-function occurred pointed by action is provided, just system can be made to be quickly adaptive to external environment condition, converse with external environment condition, improve the work efficiency of system.
Embodiment 1
Based on above-mentioned thinking, present embodiments provide a kind of method guiding magnetic resonance system to run, as shown in Figure 1, comprising:
Step S100, a workflow in option and installment file.
In the present embodiment, workflow is a series of actions carried out with preset order defined in CONFIG.SYS, and workflow is the predetermined reasonable workflow with a certain item function of correspondence system.
Described workflow comprises the standard workflow created according to pre-selected protocol and the conventional workflow created according to historical action.Wherein:
Configuration file defines each standard form according to standard agreement configuration, described standard workflow is carried in these standard forms, certain standard agreement of preliminary election when user starts to operate, system according to this pre-selected protocol Auto-matching corresponding templates, and creates corresponding standard workflow.Described standard agreement defines magnetic resonance system and how to engage in the dialogue with external environment condition, for different purposes, different vendor and different system standard, can carry out standard agreement described in design forming to the communication language of described magnetic resonance system.Action in standard workflow is system preliminary election, and standard workflow is for defining the preliminary election action carried out with the first preset order, and these preliminary election actions can think comparatively general and basic systemic-function by completion system.
Configuration file also defines each learning template according to standard agreement configuration, and described conventional workflow is different from described standard workflow.Conventional workflow is a kind of workflow provided based on the responding ability improving system external portion environment: because the function of system is a lot, the reasonable workflow of each function corresponding also has a lot, described standard workflow only includes part reasonably workflow, when external environment condition operate action (historical action) and meet reasonable workflow in system, and be different from the reasonable workflow preset in described standard workflow, described historical action can be recorded in the learning template of corresponding Current protocol with the execution sequence of its history (the second preset order) by system.Action in conventional workflow is that described action is carried out with the second preset order according to meeting the reasonable workflow of system in system using process and the historical action of a certain function of completion system.Described historical action can overlap with described preliminary election action or partially overlap or be different from described preliminary election action.
Described historical action can corresponding described preliminary election action, and the ordinal position that described historical action is in described second preset order is different from the ordinal position that corresponding preliminary election action is in described first preset order.
Such as, in standard workflow, the workflow of carrying out with the first preset order is: preliminary election action 1, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 5, preliminary election action 6, and in conventional workflow, the workflow of carrying out with the second preset order is: preliminary election action 1, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 3, preliminary election action 4, preliminary election action 3, preliminary election action 4, preliminary election action 5.
Historical action can at least one preliminary election action corresponding and other actions, here, the historical action overlapped with preliminary election action can establish the ordinal position of order to carry out first according to preliminary election action, i.e. the ordinal position that the historical action of corresponding preliminary election action is in described second preset order is identical with the ordinal position that corresponding preliminary election action is in described first preset order; Other actions are different from preliminary election action.
Such as, in standard workflow, the workflow of carrying out with the first preset order is still: preliminary election action 1, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 5, preliminary election action 6, and in conventional workflow, the workflow of carrying out with the second preset order can be: other actions 1, other actions 2, other actions 3, preliminary election action 3, preliminary election action 4, preliminary election action 5.
Described historical action also can be other actions being different from described preliminary election action.Such as, in standard workflow, the workflow of carrying out with the first preset order is still: preliminary election action 1, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 5, preliminary election action 6, and in conventional workflow, the workflow of carrying out with the second preset order can be: other actions 1, other actions 2, other actions 3, other actions 3, other actions 4, other actions 5.
It should be noted that, provided system be one be not run system time, described system is not used by history, does not run reasonable workflow, thus in learning template, workflow do not commonly used in record, now there is not this type of conventional workflow in configuration file.
The present embodiment is with whether other functions of completion system record conventional workflow, in other embodiments, it is also conceivable to the frequency of utilization problem of the workflow of other functions of completion system, the frequency of utilization of the reasonable workflow formed when historical action is greater than frequency threshold, be then recorded in the learning template of corresponding Current protocol by the execution sequence (the second preset order) of the historical action in this reasonable workflow and history thereof.Described frequency of utilization is in system life cycle (system initialization to again initialize course), and the described reasonable workflow that a systemic-function is pointed in executed accounts for the ratio of all executed reasonable workflows.
In this step, specifically according to the workflow in the system current workflow ID option and installment file occurred pointed by action.It should be noted that, because the workflow on standard form each in configuration file and study module is pointing system specific function, the systemic-function performed by the operational motion of the specific function namely pointed by workflow and the current execution of external environment condition can attempt mating.
Workflow ID is actual is a kind of label and the identifying information of giving each workflow, and can be at least one information in the title of workflow, type, each workflow has its specific ID.Workflow ID is relevant to the systemic-function performed by this workflow, i.e. the corresponding workflow of a function of system, also a corresponding workflow ID.When the described action of generation is system cloud gray model external environment condition be supplied to the operational motion of a series of sensing specific functions of system, because generation action has function directivity, therefore, system attempts searching out the workflow ID relevant to function by the described action of generation, and a workflow in automatic option and installment file.The described action of generation start when being system initialization record, or start after the previous functional sequence of system finishing record.
When system can not make identification to the described systemic-function occurred pointed by action, system does not provide the workflow in configuration file, and wait for that more action occurs to identify the systemic-function pointed by external environment condition, thus can select should the workflow ID of systemic-function.
Certainly, in other embodiments, system can also comprise in option and installment file described in there is action and the higher workflow (comprising standard workflow and conventional workflow) of frequency of utilization to carry out subsequent step.
Step S101, locates the ordinal position of generation action in workflow in selected workflow.
In this step, when selected workflow is standard workflow, the corresponding preliminary election action of action has occurred, and the ordinal position of generation action in workflow is the ordinal position of preliminary election action in described first preset order occurred corresponding to action.
When selected workflow is conventional workflow, the corresponding historical action of action has occurred, and the ordinal position of generation action in workflow is the ordinal position of historical action in described second preset order occurred corresponding to action.
Still with the flow process of standard workflow be preliminary election action 1, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 5, preliminary election action 6, the flow process of conventional workflow be other actions 1, other actions 2, other actions 3, other actions 3, other actions 4, other actions 5 are example, when the action occurred is preliminary election action 1, then in standard workflow, be the first ordinal position in workflow to the operating position fixing occurred; When the action occurred is other actions 1, other actions 2, then in conventional workflow, be the first ordinal position in workflow and the second ordinal position to the operating position fixing occurred.
Step S102, the action found on next ordinal position expects action to obtain.
This step searches out next ordinal position according to the ordinal position of locating in step S101, according to preset order and the ordinal position of locating of action in selected workflow, system can respond fast with external environment, provides the action on desired next ordinal position with the accurateness run with external environment improving system and high validity.
It should be noted that, next ordinal position is actual is that execution result by having there is action described in judging searches out: for system, the extraneous operational motion performed often control system to complete the subfunction of a commitment, but the possibility of result that system performs is successful, also may be failed, now, be such as preliminary election action 1 for flow process, preliminary election action 2, preliminary election action 3, preliminary election action 4, preliminary election action 5, the standard workflow of preliminary election action 6, described first preset order may comprise arrange as follows order: when preliminary election action 1 execution result success, next ordinal position is the second ordinal position, the expectation action that system is provided to external environment is preliminary election action 2, if but the failure of the execution result of preliminary election action 1, then next ordinal position is then still the first ordinal position, the expectation action that system is provided to external environment is preliminary election action 1.This is also the same for conventional workflow.
Next ordinal position is searched out according to the preset order of workflow with the ordinal position of locating as system, specifically be supplied to the action corresponding with next ordinal position of external environment, be provide based on the probability of happening of this action on its ordinal position, the action namely on next ordinal position of described searching comprises to obtain expectation action:
The action selecting the probability of happening on next ordinal position described maximum is described expectation action.
Here, need to be further elaborated the probability of happening of action:
First, probability of happening is the probability selecting to occur this action in specific ordinal position, probability of happening is actual is that system is according to a kind of assessment for workflow specific ordinal position occurs in action preset or history probability of happening provides, be used for instructing the reasonability of the expectation action feeding back to external environment condition, to increase response speed and work efficiency.
In described workflow, the probability of happening of action on ordinal position and this action original probability of happening on this ordinal position is relevant.Here, original probability of happening is recorded in standard form or learning template:
For the standard workflow in standard form, the original probability of happening of action on its ordinal position is default normal probability, and normal probability is that corresponding stored is in standard form; Normal probability can be a kind of empirical value.
For the conventional workflow in learning template, preliminary election action no matter in the corresponding standard workflow of its action or be different from other actions of described preliminary election action, the original probability of happening of action on its ordinal position is the history probability of happening of this action when creating described conventional workflow, and this history probability of happening is greater than probability threshold value; Described probability threshold value, for the action of corresponding preliminary election action, can be normal probability corresponding to preliminary election action, for other actions being different from described preliminary election action, then and can be given with reference to the minima in normal probability corresponding to described preliminary election action.Described history probability of happening is that corresponding stored is in learning template.
System can using above-mentioned original probability of happening as the probability of happening of respective action on its ordinal position.
Certainly, for learning template, can also load operation standard workflow and conventional workflow in the above-mentioned workflow of real-time update, corresponding actions is in the history probability of happening information of its correspondence position, this can increase the responding ability of system further, carries out alternately better with external environment.Therefore, comparatively preferably, system can determine the probability of happening of respective action on its ordinal position based on by the history probability of happening of original probability of happening and described workflow.
Based on above-mentioned, as shown in Figure 2, the method that the guiding magnetic resonance system of the present embodiment runs is further comprising the steps of, for calculating the probability of happening of current respective action on its ordinal position:
Step S200, upgrades the history probability of happening of respective action on its ordinal position.
Operation standard workflow and conventional workflow in the above-mentioned workflow of real-time update, corresponding actions is in the history probability of happening information of its correspondence position due to learning template additional records, the history probability of happening reality of each workflow all upgrades on learning template.
Step S201, the weight between the original probability of happening of adjustment respective action on its ordinal position and the history probability of happening after upgrading.
Here, original probability of happening with upgrade after history probability of happening between the weight compared to current probability of happening be change with the history frequency of corresponding workflow: when corresponding templates sets up workflow, the original probability of happening of each action on its ordinal position is specific, when the history frequency of after this this workflow is more, so the weight of history probability of happening can increase relatively, and the weight of original probability of happening can reduce relatively.In other words, because the history frequency of standard workflow or conventional workflow is many, the history probability of happening of its action on corresponding ordinal position can change (may be different from original probability of happening); Statistics due to history probability of happening is relevant to the history frequency of action, and the history frequency of action relates to the history run number of times of workflow, consider that the history probability of happening of action can reflect the specific custom of external environment operational system workflow, guidance system provides and responds accurately, can system running speed be accelerated, thus the described weighted value relevant to workflow history frequency is set.When the history frequency of workflow is more, then history probability of happening weight compared to original probability of happening weight can corresponding increasing a little.
Step S202, the probability of happening on its ordinal position based on the weight after adjustment and according to described original probability of happening and the setting respective action of the history probability of happening after upgrading.
It is to be noted, for the workflow that an ordinal position only may occur in an action, original probability of happening and the history probability of happening of this work are 1, and be obviously be suitable for afore mentioned rules, probability of happening does not change with the change of workflow history frequency.And for an ordinal position may occur the workflow of two or more action, afore mentioned rules then can improve intellectuality and the automatization of workflow greatly, take flow process as preliminary election action 1, preliminary election action 2, preliminary election action 3(or preliminary election action 4), preliminary election action 5, preliminary election action 6 standard workflow be example: the original probability of happening of such as preliminary election action 3 is 20%, the original probability of happening of preliminary election action 4 is 80%, initializing set equals its original probability of happening according to the probability of happening of described action, and namely the weight of original probability of happening accounts for 1, along with increasing of standard workflow frequency, the history probability of happening that have recorded preliminary election action 3 in this workflow in learning template is 80%, the history probability of happening of preliminary election action 4 is 20%, adjustment weight is 1:1, the current probability of happening of preliminary election action 3 is (0.2+0.8)/2*100%=50%, the current probability of happening of preliminary election action 4 is (0.8+0.2)/2*100%=50%, and the probability of happening that namely preliminary election action 3 is current is 50%, and the current probability of happening of preliminary election action 4 is 50%, along with increasing further of standard workflow frequency, the history probability of happening that have recorded preliminary election action 3 in this workflow in learning template is still 80%, the history probability of happening of preliminary election action 4 is still 20%, the probability more pressed close to external environment for making the probability of happening of action on its ordinal position and occur, again can adjust weight is 1:2, now, the current probability of happening of preliminary election action 3 is (0.2+2*0.8)/3*100%=60%, the current probability of happening of preliminary election action 4 is (0.8+2*0.2)/3=40%, namely the probability of happening that preliminary election action 3 is current is 60%, the current probability of happening of preliminary election action 4 is 40%.
Action high for probability of happening as described expectation action, is the action of 1 for probability of happening by system, then this action of inevitable choice is as the highest action of probability of happening.
Embodiment 2
Present embodiments provide a kind of method guiding magnetic resonance system to run, comprising:
The step S100 consistent with embodiment 1 ~ S102;
As shown in Figure 3, difference from Example 1 is, step S102 also comprises:
Step S300, calculates during this runs that action executing result has occurred is failed number of times;
Step S301, when the described action executing result that occurred is that failed number of times is greater than frequency threshold value, terminates this and runs and the action on described workflow first ordinal position is expected action as the action on next ordinal position to obtain.
Above-mentioned steps is intended to, when the execution result that action has occurred workflow is continuously unsuccessfully, avoid contingent endless loop.Certain specific function of system has been pointed to owing to there is action, possible the standard workflow of corresponding configuration file corresponding templates or conventional workflow, therefore, after jumping out circulation, can according to the workflow selected, again the action on the first ordinal position is supplied to external environment to promote interaction as expectation action, improves the response efficiency of system.
Embodiment 3
The present embodiment, for embodiment 1 ~ 2, provides an embody rule example of the method that the guiding magnetic resonance system described in embodiment 1 ~ 2 runs.
For the scanning work stream scanned sufferer of in magnetic resonance system as shown in Figure 4, suppose the standard workflow that this scanning work stream records for CONFIG.SYS Plays template.
This scanning work stream is the function that completion system scans sufferer, and be first the reasonable workflow of a magnetic resonance system, this workflow comprises the preliminary election action carried out with the first preset order:
Registration (Begin to Regist), fill in sufferer information (Fill Patient Information) or reopen scanning (Reopen Scan), preserve sufferer information (Save Patient Information), press scanning button (Click Exam Button), enter scanning interface (Enter exam UI), open scan protocols (Open Protocol), preparation is carried out scanning (Prepare Scan) or selecting sweep parameter (Modify Parameter), carries out scanning (Scanning).
The ordinal position of above-mentioned preliminary election action residing for described first preset order is respectively:
Registration, corresponding first ordinal position 1;
Fill in sufferer information or reopen scanning, corresponding second ordinal position 2;
Preserve sufferer information, corresponding 3rd ordinal position 3;
Press scanning button, corresponding 4th ordinal position 4;
Enter scanning interface, corresponding 5th ordinal position 5;
Open scan protocols, corresponding 6th ordinal position 6;
Preparation is carried out scanning or selecting sweep parameter, corresponding 7th ordinal position 7;
Scan, corresponding 8th ordinal position 8.
Above-mentioned scanning work stream is according to its standard agreement (scan protocols), be configured at standard form, the standard form that scanning work stream is formed can be stored in inside the XML file of system, XML format is adopted to be because resolve than being easier to, readability is also higher, and concrete form can define above-mentioned workflow:
Workflow title and workflow type;
Each preliminary election denomination of dive, its ordinal position and this action original probability of happening on this ordinal position;
The execution result of each preliminary election action and the preliminary election action relevant to execution result.
The present embodiment defines the ID's of described workflow by workflow title and workflow type.Workflow title and these two attributes of workflow type are used to allow system according to action Auto-matching and the corresponding workflow that systemic-function pointed by action occurs occur.
The each preliminary election action of workflow is corresponding each ordinal position of workflow, as shown in Figure 4, each preliminary election action in turn defines the ordinal position (next ordinal position) that its execution result points to.Such as, first ordinal position 1 execution result is successfully, then point to the second ordinal position 2, second ordinal position 2 comprises and fills in sufferer information or reopen scanning two preliminary election actions, system in turn defines the original probability of happening on corresponding ordinal position of each action, selects suitable action as expectation action using guidance system; The original probability of happening filling in sufferer information This move in Fig. 4 is 80%, and the original probability of happening reopening scanning This move is 20%, the action then recommending to be in the second ordinal position 2 according to the original probability of happening of described action during system initialization is for filling in sufferer information (during system initialization or when work flow operation number of times is fewer, can using the original probability of happening of action as the probability of happening described in embodiment 1 ~ 2).If the first ordinal position 1 execution result is unsuccessfully, then point to the first ordinal position 1, first ordinal position 1 and only comprise registration This move, its probability of happening is 1, and system can recommend the action being in the first ordinal position 1 to be registration certainly.
But along with the number of run of scanning work stream increases, the actual probability that action occurs may be different from original probability of happening, such as, the history probability of happening filling in sufferer information This move in Fig. 4 is 20%, and the history probability of happening reopening scanning This move is 80%, now, system can adjust the weight between original probability of happening and history probability of happening, the weights ratio such as arranging the original probability of happening of action on its ordinal position and history probability of happening is 1:2, now, the probability of happening filling in sufferer information This move is 40%, and the probability of happening reopening scanning This move is 60%, system can recommend the action being in the second ordinal position 2 for reopening scanning according to the probability of happening of described action.
If after the execution result success of preliminary election action, next ordinal position is empty, represents this workflow and terminates, complete the single pass of system.
When system initialization or when having completed a upper systemic-function and be in holding state, external environment condition creates some actions that occurred in system, and action has occurred system keeps track external environment condition, and system performs step S100 ~ S102.
Here it is pointed out that the workflow selected by step S100 may be that external environment condition adds back(ing) board according to the scan protocols of user institute preliminary election and selects the workflow of generation, i.e. above-mentioned scanning work stream; Also can be that system is followed and action occurred, judge that generation action may be point to scanning work stream, according to the ID(of workflow and above-mentioned workflow title and workflow type), generated by Systematic selection.
Such as execution is registration, fills in sufferer information, and system follows these actions and the workflow judging pointed by this action is scanning work stream as Fig. 4, the scanning work stream so loaded in the automatic option and installment file of system.
Corresponding step S101, system knows that filling in sufferer information is the second ordinal position and its execution result is successfully.Step S101 is actual is the performance of identification marking workflow, and such system just can know user has completed which action in certain particular workflow, is faced with the action on which ordinal position.According to these information, system can provide suggestive information to guide the scan function of the smooth completion system of external environment coupled system.
Corresponding step S102, because there is action for registering and filling in sufferer information, the two execution result is successfully (registration This move must run succeeded), then system obtains next ordinal position is the 3rd ordinal position, and it obtains action unique on this ordinal position and preserves sufferer information for expecting action.
Step S300 ~ the S301 of corresponding embodiment 2, if above-mentioned scanning work stream is when execution " scanning " i.e. ordinal position 8, its execution result is continuously failure, system meeting " opening scan protocols " because returning ordinal position 6 always, is absorbed in endless loop, now, according to embodiment 2, system can record during this runs and perform " scanning " the result of the action is failed number of times, and when this number of times is greater than frequency threshold value, then system can terminate this operation; Run according to this this specific function of scanning that workflow has pointed to system, system can reselect scanning work stream, and using the action " registration " on ordinal position 1 as expectation action, is supplied to external environment.
Embodiment 1 ~ 2 method also relates to the conventional operation allowing system from motion tracking user, systematic learning template is formed conventional workflow, and is stored as corresponding document.The file format of conventional workflow and the form of above-mentioned XML file similar, comprising:
Workflow title and workflow type;
Each historical action title, its ordinal position and this action original probability of happening on this ordinal position;
The execution result of each historical action and the historical action relevant to execution result.
Increasing of the reasonable workflow run along with System History, system can store increasing conventional workflow template, and system and the mutual of external environment also can be more and more intelligent, and response speed also can be faster.
It should be noted that, in the application, conventional workflow and standard workflow are the difference in functionalitys for system, unlike, standard workflow is preset in the standard form in configuration file, and conventional workflow be complete in system for external environment be different from the systemic-function pointed by described standard workflow and be formed in the learning template of configuration file.In standard form and learning template, the file format of corresponding workflow can with reference to above-mentioned.
For the conventional workflow in the standard workflow in standard form and learning template, system can also be allowed from the conventional operation of motion tracking user, systematic learning template is formed the historical record of standard workflow and conventional workflow, run with the intellectuality of guidance system, the file format storing the historical record of described workflow is also similar with the form of above-mentioned XML file, comprising:
Workflow title and workflow type;
Each denomination of dive, its ordinal position and this action history probability of happening on this ordinal position;
The execution result of each action and the action relevant to execution result;
The history frequency of workflow.
Here, the historical record of workflow be intended to pass through the history probability of happening that records and upgrade and template Central Plains beginning probability of happening, be supplied to system, to obtain the probability of happening of current action at correspondence position; By the history frequency of writing task stream, to instruct the weight according to original probability of happening and history probability of happening determination probability of happening between itself and standard workflow/conventional workflow.
Certainly, in order to save system space, directly the history frequency of history probability of happening and workflow can write direct in the template of standard workflow and conventional workflow, and separately need not increase other learning templates to record the workflow of above-mentioned history run.
It should be noted that, the applicable system of technical solution of the present invention is not limited to magnetic resonance system, will be understood that, allly carries out linking up all applicable technical solution of the present invention of the system responded with external environment condition.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; the Method and Technology content of above-mentioned announcement can be utilized to make possible variation and amendment to technical solution of the present invention; therefore; every content not departing from technical solution of the present invention; the any simple modification done above embodiment according to technical spirit of the present invention, equivalent variations and modification, all belong to the protection domain of technical solution of the present invention.