JP5530961B2 - Work shift table creation support system - Google Patents

Work shift table creation support system Download PDF

Info

Publication number
JP5530961B2
JP5530961B2 JP2011044768A JP2011044768A JP5530961B2 JP 5530961 B2 JP5530961 B2 JP 5530961B2 JP 2011044768 A JP2011044768 A JP 2011044768A JP 2011044768 A JP2011044768 A JP 2011044768A JP 5530961 B2 JP5530961 B2 JP 5530961B2
Authority
JP
Japan
Prior art keywords
shift
data
work
shift condition
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011044768A
Other languages
Japanese (ja)
Other versions
JP2012181718A (en
Inventor
寿光 藤原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Data Sekisui Systems Corp
Original Assignee
NTT Data Sekisui Systems Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NTT Data Sekisui Systems Corp filed Critical NTT Data Sekisui Systems Corp
Priority to JP2011044768A priority Critical patent/JP5530961B2/en
Publication of JP2012181718A publication Critical patent/JP2012181718A/en
Application granted granted Critical
Publication of JP5530961B2 publication Critical patent/JP5530961B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、勤務シフト計画表を作成するに際して予め設定しておくべきシフト条件を、過去の又は教師となる勤務シフト表から抽出することができる勤務シフト表作成支援システムに関するものである。   The present invention relates to a work shift table creation support system that can extract shift conditions that should be set in advance when creating a work shift plan table from a past or teacher work shift table.

従来、病院、介護施設、コールセンター、店舗などにおいて、曜日によって勤務形態が固定されるのではなく、日毎又は一定期間毎に複数の形態の勤務に付くことになるいわゆるシフト勤務がおこなわれている。   Conventionally, in hospitals, nursing homes, call centers, stores, etc., work styles are not fixed according to the day of the week, but so-called shift work is performed in which a plurality of forms are provided every day or every certain period.

このシフト勤務を採用する職場においては、勤務シフト計画表が月初めなどに予め作成され、それに従って勤務者が勤務をおこなうことになるため、その勤務シフト計画表を容易に作成するための装置が開発されている(特許文献1,2参照)。   In the workplace that employs this shift work, the work shift plan table is created in advance at the beginning of the month, etc., and the worker will work according to it, so there is a device for easily creating the work shift plan table. It has been developed (see Patent Documents 1 and 2).

このような勤務シフト計画表を作成する装置を使用するに際しては、予め勤務者が希望する勤務日を設定したり、夜勤を連続させないなどの禁止したい勤務パターンを設定したりする必要がある。   When using such an apparatus for creating a work shift plan table, it is necessary to set a work day desired by the worker in advance, or to set a work pattern to be prohibited such as not to make night shifts continuous.

そこで、特許文献1では、勤務者毎の勤務する曜日や勤務できない日にちなどのシフト条件を、過去の勤務シフト表から抽出することが可能な勤務シフト作成支援装置を開示している。   In view of this, Patent Document 1 discloses a work shift creation support device that can extract shift conditions such as a day of work for each worker and a day when the worker cannot work from a past work shift table.

また、特許文献2には、過去の日毎の売上実績とその日に業務に就いた勤務者の情報とから勤務者毎の稼働実績を割り出し、勤務シフト計画表の作成に反映させることが可能な装置が開示されている。   Further, Patent Document 2 discloses an apparatus that can determine the operation results for each worker from the past sales results for each day and the information of the workers who worked on that day, and reflect them in the creation of the work shift plan table. Is disclosed.

特開2008−269256号公報JP 2008-269256 A 特開2007−26361号公報JP 2007-26361 A

しかしながら、特許文献1に開示された勤務シフト作成支援装置では、過去の勤務実績を反映させることはできるが、反映させる過去の情報が偶発的なものなのか、ルールとして採用できるシフト条件に相当するものなのかの検証をおこなわないため、抽出されたシフト条件が玉石混合になるおそれがある。なお、特許文献1では、勤務者がシフト条件の優先度を設定できるようになっているが、様々なレベルのシフト条件が多数、抽出されてしまうと、優先度を設定するのが難しいうえに、手間がかかる。   However, the work shift creation support device disclosed in Patent Document 1 can reflect the past work record, but corresponds to the shift condition that can be adopted as a rule whether the past information to be reflected is accidental. Since it is not verified whether it is a thing, there is a possibility that the extracted shift condition is a cobblestone mixture. In Patent Document 1, the worker can set the priority of the shift condition. However, when many shift conditions of various levels are extracted, it is difficult to set the priority. ,It takes time and effort.

また、特許文献2に開示された勤務シフト計画表作成装置においても過去の勤務実績を反映させることはできるが、勤務者の評価や売上実績情報という稼働実績に関するデータを抽出して反映させているに過ぎない。   In addition, the work shift plan table creation apparatus disclosed in Patent Document 2 can reflect past work results, but extracts and reflects data related to operation results such as worker evaluation and sales result information. Only.

そこで、本発明は、実際に勤務シフト計画表を作成する際に適用されるべきシフト条件を、過去の又は教師となる勤務シフト表から的確に抽出することが可能な勤務シフト表作成支援システムを提供することを目的としている。   Therefore, the present invention provides a work shift table creation support system capable of accurately extracting shift conditions to be applied when actually creating a work shift plan table from a past or teacher work shift table. It is intended to provide.

前記目的を達成するために、本発明の勤務シフト表作成支援システムは、勤務シフト計画表の作成に必要となるシフト条件を抽出する勤務シフト表作成支援システムであって、日付と関連付ける日付方向と勤務者と関連付ける勤務者方向を有する過去の勤務シフト表又は教師となる勤務シフト表を取り込む読取り手段と、前記読取り手段によって取り込まれた前記勤務シフト表の各セルのデータを前記勤務者方向又は前記日付方向のデータと関連付けて整理する前処理手段と、前記前処理手段によって整理された処理データから前記シフト条件になる候補を仮シフト条件として選定する仮シフト条件設定手段と、前記勤務シフト表のデータに基づいて統計的な検定をおこなって所定の条件を満たす仮シフト条件を本シフト条件として抽出するシフト条件抽出手段と、前記抽出された本シフト条件を出力する出力手段とを備えたことを特徴とする。   In order to achieve the above object, a work shift table creation support system according to the present invention is a work shift table creation support system that extracts shift conditions necessary for creating a work shift plan table, and includes a date direction associated with a date, Reading means for fetching a past work shift table having a worker direction associated with a worker or a work shift table serving as a teacher, and data of each cell of the work shift table fetched by the reading means for the worker direction or the Preprocessing means for organizing in association with data in the date direction, temporary shift condition setting means for selecting candidates for the shift condition from the processing data arranged by the preprocessing means as temporary shift conditions, Performs a statistical test based on the data and extracts the temporary shift condition that satisfies the specified condition as the main shift condition A shift condition extraction means, characterized in that an output means for outputting the extracted the shifted condition.

ここで、前記前処理手段では、各セルのデータと前記勤務者方向に隣接するセルのデータとを関連付けた並びデータを生成し、前記仮シフト条件設定手段では、前記並びデータの中で所定の回数以上出現する並びデータを仮シフト条件として選定し、前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とする構成とすることができる。   Here, the preprocessing means generates array data in which the data of each cell and the data of the cells adjacent to the worker direction are associated with each other, and the temporary shift condition setting means generates predetermined data in the array data. Arrangement data that appears more than the number of times is selected as a temporary shift condition, and the shift condition extraction unit can be configured as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level. .

また、前記前処理手段では、前記日付方向のセルのデータをデータ種別毎に日単位集計数として集計し、前記仮シフト条件設定手段では、前記日単位集計数と所定の値との比較により仮シフト条件となるものを選定し、前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とする構成とすることができる。   Further, the pre-processing means totals the cell data in the date direction as a daily total number for each data type, and the temporary shift condition setting means temporarily compares the daily total number with a predetermined value. A shift condition can be selected, and the shift condition extraction unit can be configured to use the shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.

さらに、前記前処理手段では、前記勤務者方向のセルのデータをデータ種別毎に勤務者単位集計数として集計し、前記仮シフト条件設定手段では、前記勤務者単位集計数と所定の値との比較により仮シフト条件となるものを選定し、前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とする構成とすることができる。   Further, in the preprocessing means, the data of the worker direction cell is totaled as a total number of worker units for each data type, and in the temporary shift condition setting means, the total number of worker units is calculated with a predetermined value. The shift condition extraction unit can select a condition that becomes a temporary shift condition by comparison, and can set the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.

また、前記前処理手段では、前記勤務者方向のデータ種別毎の出現間隔をデータ間隔値として算出し、前記仮シフト条件設定手段では、前記データ間隔値と所定の値との比較により仮シフト条件となるものを選定し、前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とする構成とすることができる。   Further, the preprocessing means calculates an appearance interval for each data type in the worker direction as a data interval value, and the temporary shift condition setting means calculates the temporary shift condition by comparing the data interval value with a predetermined value. The shift condition extraction means can be configured as the main shift condition when the temporary shift condition is established as the shift condition by comparison with the significance level.

さらに、前記前処理手段では、各セルのデータと前記日付方向の他の勤務者のセルのデータとを関連付けた組合せデータを生成し、前記仮シフト条件設定手段では、前記組合せデータの中で所定の回数以上出現する組合せデータを仮シフト条件として選定し、前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とする構成とすることができる。   Further, the pre-processing means generates combination data associating the data of each cell with the data of another worker's cell in the date direction, and the temporary shift condition setting means is a predetermined data among the combination data. The combination data that appears more than the number of times is selected as a temporary shift condition, and the shift condition extraction unit is configured to use the shift condition as a main shift condition when the temporary shift condition is satisfied as a shift condition by comparison with a significance level. it can.

また、別の本発明の勤務シフト表作成支援システムは、勤務シフト計画表の作成に必要となるシフト条件を抽出する勤務シフト表作成支援システムであって、日付と関連付ける日付方向と勤務者と関連付ける勤務者方向を有する過去の勤務シフト表又は教師となる勤務シフト表を取り込む読取り手段と、前記読取り手段によって取り込まれた前記勤務シフト表の各セルのデータを前記勤務者方向のデータと関連付けて整理する前処理手段と、前記前処理手段によって整理された処理データを変換データに変換する変換処理手段と、前記変換データを使ってクラスタリングをおこなうクラスタリング手段と、前記クラスタリング手段によって分類されたクラスタをシフト条件として出力する出力手段とを備えたことを特徴とする。   Another work shift table creation support system according to the present invention is a work shift table creation support system that extracts shift conditions necessary for creating a work shift plan table, and associates a date direction associated with a date with a worker. Reading means for importing a past work shift table having a worker direction or a work shift table serving as a teacher, and organizing the data of each cell of the work shift table read by the reading means in association with the worker direction data Preprocessing means, conversion processing means for converting the processing data arranged by the preprocessing means into conversion data, clustering means for performing clustering using the conversion data, and shifting clusters classified by the clustering means Output means for outputting as a condition.

このように構成された本発明の勤務シフト表作成支援システムは、読取り手段によって過去の又は教師となる勤務シフト表を取り込み、取り込まれたデータから仮シフト条件を選定し、仮シフト条件を本シフト条件にすべきか否かを統計的に検定する。   The work shift table creation support system of the present invention configured as described above captures a past or teacher work shift table by a reading means, selects a temporary shift condition from the captured data, and sets the temporary shift condition as a main shift. Statistically test whether the condition should be met.

このため、実際に勤務シフト計画表を作成する際に適用されるべきシフト条件を的確に抽出することができる。また、本シフト条件にすべきか否かの判定を使用者がおこなわなくても良く、さらに認識していなかった暗黙のルールのようなシフト条件を過去の勤務シフト表から抽出することができるので、勤務シフト計画表の作成に熟練していない使用者でも容易に勤務シフト計画表を作成できるようになる。   For this reason, the shift conditions to be applied when actually creating the work shift plan table can be accurately extracted. In addition, since it is not necessary for the user to determine whether or not to use this shift condition, and shift conditions such as implicit rules that were not recognized can be extracted from the past work shift table, Even a user who is not skilled in creating a work shift plan table can easily create a work shift plan table.

また、取り込まれた勤務シフト表のデータを勤務者方向に関連付けた並びデータを生成することによって、連続する複数日の勤務形態の並びを指定又は禁止するシフト条件を抽出することができる。   In addition, by generating the arrangement data in which the data of the taken work shift table is associated with the worker direction, it is possible to extract a shift condition for designating or prohibiting the arrangement of continuous work forms on a plurality of days.

さらに、取り込まれた勤務シフト表のデータを日付方向にデータ種別毎に集計することによって、一日の必要人数に関するシフト条件を抽出することができる。   Furthermore, the shift conditions relating to the required number of people per day can be extracted by counting the data of the captured work shift table for each data type in the date direction.

また、取り込まれた勤務シフト表のデータを勤務者方向にデータ種別毎に集計することによって、ある種別の勤務形態を期間内におこなう回数に関するシフト条件を抽出することができる。   Moreover, the shift condition regarding the frequency | count that a certain type of work form is performed within a period can be extracted by totaling the data of the taken work shift table | surface for every data type in the direction of a worker.

さらに、取り込まれた勤務シフト表の勤務者方向のデータからデータ種別毎の出現間隔をデータ間隔値として算出することによって、ある種別の勤務形態をおこなう間隔に関するシフト条件を抽出することができる。   Furthermore, by calculating the appearance interval for each data type as the data interval value from the data in the worker direction of the taken work shift table, it is possible to extract a shift condition regarding the interval for performing a certain type of work style.

また、取り込まれた勤務シフト表のデータを日付方向の他の勤務者のデータと関連付けた組合せデータを生成することによって、同じ日に勤務させる又は勤務させないなどの勤務者の組み合わせに関するシフト条件を抽出することができる。   In addition, by generating combination data that correlates the data of the imported work shift table with the data of other workers in the date direction, extract shift conditions related to worker combinations such as working or not working on the same day can do.

また、取り込まれた勤務シフト表のデータを使ってクラスタリング手段によってクラスタリングをおこない、最終的に分類されたクラスタ(グループ)をシフト条件として抽出させれば、勤務シフト計画表を作成するに際して勤務者のみに依存しないグループ単位の調整が可能になる。   In addition, if clustering is performed by the clustering means using the imported work shift table data and the finally classified clusters (groups) are extracted as shift conditions, only workers will be involved in creating the work shift plan table. It is possible to make adjustments in groups that do not depend on

本発明の実施の形態の勤務シフト表作成支援システムを利用した勤務シフト計画表を作成する概要を示した説明図である。It is explanatory drawing which showed the outline | summary which produces the work shift plan table using the work shift table preparation assistance system of embodiment of this invention. 本発明の実施の形態の勤務シフト表作成支援システムの構成を説明するブロック図である。It is a block diagram explaining the structure of the work shift table creation assistance system of embodiment of this invention. 過去の勤務シフト表を例示した図である。It is the figure which illustrated the past work shift table. 統計的な検定によってシフト条件を抽出する処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the process which extracts shift conditions by a statistical test. クラスタリングによってシフト条件を抽出する処理の流れを説明するフローチャートである。It is a flowchart explaining the flow of the process which extracts shift conditions by clustering. 過去の勤務シフト表から取り込まれたデータを使ってクラスタリングする手法を説明する図であって、(a)は1回目の分割軸の設定を説明する図、(b)は2回目の分割軸の設定を説明する図である。It is a figure explaining the method of clustering using the data taken in from the past work shift table, (a) is a figure explaining the setting of the first division axis, (b) is the second division axis. It is a figure explaining a setting.

以下、本発明の実施の形態について図面を参照して説明する。図1では、本実施の形態の勤務シフト表作成支援システムとしてのルール抽出装置2を利用して勤務シフト計画表を作成する工程を説明している。なお、ここで説明するルール抽出装置2は、後述する各種手段を実行させるコンピュータプログラムがインストールされたコンピュータであるが、本実施の形態の勤務シフト表作成支援システムは、コンピュータプログラム自体であってもよい。また、図1では、ルール抽出装置2と勤務シフト表作成装置3を別々に示しているが、一体のコンピュータプログラム又はそれがインストールされたコンピュータであってもよい。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 illustrates a process of creating a work shift plan table using the rule extraction device 2 as the work shift table creation support system of the present embodiment. The rule extraction device 2 described here is a computer in which a computer program for executing various means described later is installed. However, the work shift table creation support system of the present embodiment may be a computer program itself. Good. In FIG. 1, the rule extraction device 2 and the work shift table creation device 3 are shown separately, but may be an integrated computer program or a computer on which it is installed.

このルール抽出装置2は、過去の又は教師となる勤務シフト表1を読取り手段21によって読取り、そこから将来の勤務シフト計画表を作成するためのシフト条件を抽出するための装置である。そして、出力手段27から出力されたシフト条件270を使って勤務シフト表作成装置3の設定をおこない、勤務シフト計画表を作成することができる。   This rule extracting device 2 is a device for reading a past work shift table 1 serving as a teacher or a teacher by a reading means 21 and extracting shift conditions for creating a future work shift plan table therefrom. Then, the work shift table creation device 3 is set using the shift condition 270 output from the output means 27, and the work shift plan table can be created.

この過去の勤務シフト表1は、図1に示すように、表の最上行に日付が横方向に並べられ、表の最左列に勤務者名が縦方向に並べられたもので、過去に実際に実施されたシフト勤務の勤務形態が各セルに記録されている。ここで、各日にちの下側に連なる方向(表の縦方向)を日付方向とし、各勤務者の右側に連なる方向(表の横方向)を勤務者方向とする。   As shown in FIG. 1, the past work shift table 1 includes dates arranged in the horizontal direction in the top row of the table, and worker names arranged in the vertical direction in the leftmost column of the table. The shift work schedule of actual shift work is recorded in each cell. Here, the direction (the vertical direction in the table) that continues to the lower side of each day is the date direction, and the direction (the horizontal direction in the table) that continues to the right side of each worker is the worker direction.

この勤務シフト表1の各セルに記入されているデータは、各勤務者の該当日の勤務形態を示している。例えば、「日勤」は昼間勤務、「夜勤」は夜間勤務、「夜明」は夜間勤務明けの昼間勤務、「休」は休日を示している。この他にも出勤時間が早い「早出」、半日勤務の「半勤」、出勤時間が遅い「遅出」、休日出勤の代わりになる「代休」、「研修」、有休休暇などの「休暇」、特別休暇などの「特休」など、シフト勤務をおこなう職場に適合するように任意に設定することができる。   The data entered in each cell of this work shift table 1 indicates the work style of each worker on that day. For example, “day shift” indicates daytime work, “night shift” indicates night shift, “night shift” indicates day shift after night shift, and “rest” indicates a holiday. In addition to this, “early attendance” with early work hours, “half work” with half day work, “late work” with late work hours, “pay leave” instead of holiday work, “training” such as vacation, It can be arbitrarily set to suit the workplace where shift work is performed, such as “special leave” such as special leave.

そして、7月1日(木曜日)であれば、「夜明」、「日勤」、「夜勤」、「日勤」、「休」と連なるデータが日付方向のデータとなる。また、勤務者である「鈴木」であれば、「夜明」、「休」、「日勤」と連なるデータが勤務者方向のデータとなる。   Then, on July 1 (Thursday), the data in the direction of date is data that is connected to “night light”, “day shift”, “night shift”, “day shift”, and “day off”. In the case of “Suzuki” who is a worker, data connected to “Dawn”, “Closed”, and “Day shift” is data for the worker.

この勤務シフト表1のデータは、図2に示すように読取り手段21によってルール抽出装置2に取り込まれる。この読取り手段21は、スキャナと文字認識ソフトを組み合わせた構成であっても良いが、勤務シフト表1のデータがCSV(Comma-Separated Values)形式などのテキストデータファイルとしてハードディスクやUSB(Universal Serial Bus)メモリなどの記録媒体に保存されているのであれば、そのファイルを取り込むだけの構成であっても良い。   The data of this work shift table 1 is taken into the rule extracting device 2 by the reading means 21 as shown in FIG. The reading means 21 may be configured by combining a scanner and character recognition software, but the data of the work shift table 1 is converted into a hard disk or USB (Universal Serial Bus) as a text data file in CSV (Comma-Separated Values) format or the like. If it is stored in a recording medium such as a memory, the configuration may be such that only the file is fetched.

ルール抽出装置2には、この読取り手段21と、読取り手段21によって取り込まれた各セルのデータを整理する前処理手段22と、前処理手段22によって整理された処理データから仮シフト条件を選定する仮シフト条件設定手段23と、仮シフト条件の中から本シフト条件となるシフト条件を抽出するシフト条件抽出手段24と、シフト条件270を出力させるための出力手段27とを主に備えている。   The rule extracting device 2 selects a provisional shift condition from the reading means 21, the preprocessing means 22 for organizing the data of each cell fetched by the reading means 21, and the processing data arranged by the preprocessing means 22. It mainly includes temporary shift condition setting means 23, shift condition extraction means 24 for extracting a shift condition as the main shift condition from temporary shift conditions, and output means 27 for outputting shift condition 270.

また、前処理手段22以降の別の処理系統として、前処理手段22によって整理された処理データをクラスタリング可能な変換データに変換する変換処理手段25と、変換データを使ってクラスタリングをおこなうクラスタリング手段26とを備えている。   In addition, as another processing system after the preprocessing unit 22, a conversion processing unit 25 that converts the processing data arranged by the preprocessing unit 22 into conversion data that can be clustered, and a clustering unit 26 that performs clustering using the conversion data. And.

この前処理手段22では、読取り手段21によって取り込まれた勤務シフト表1の各セルのデータを、勤務者方向又は日付方向のデータと関連付けて整理する処理をおこなう。この前処理手段22における処理は、後述するように抽出させたいシフト条件の種類によって異なるが、複数の種類のシフト条件を一つの勤務シフト表1から抽出させる場合は、前処理手段22もそれらに合わせて様々な処理をおこなうことになる。   The preprocessing means 22 performs processing for organizing the data of each cell of the work shift table 1 taken in by the reading means 21 in association with the worker direction or date direction data. The processing in the preprocessing unit 22 varies depending on the type of shift condition to be extracted as described later. However, when a plurality of types of shift conditions are extracted from one work shift table 1, the preprocessing unit 22 also includes them. Various processes are performed together.

また、仮シフト条件設定手段23では、前処理手段22において統計処理などが施されたデータを使って、シフト条件になり得るものを仮シフト条件として選定する処理をおこなう。   Further, the temporary shift condition setting means 23 performs processing for selecting, as the temporary shift condition, data that can be used as a shift condition by using the data subjected to the statistical processing or the like in the preprocessing means 22.

さらに、シフト条件抽出手段24では、仮シフト条件設定手段23において選定された仮シフト条件に対して統計的な検定をおこなって、所定の条件を満たす場合に本シフト条件として設定する処理をおこなう。   Further, the shift condition extracting unit 24 performs a statistical test on the temporary shift condition selected by the temporary shift condition setting unit 23, and performs a process of setting as the main shift condition when a predetermined condition is satisfied.

また、出力手段27では、シフト条件抽出手段24によって設定された本シフト条件をシフト条件270として出力する処理をおこなう。この出力手段27は、記録媒体にデータを書き込む手段、プリンター又はモニタなどのいずれの構成であってもよい。   Further, the output unit 27 performs processing for outputting the main shift condition set by the shift condition extracting unit 24 as the shift condition 270. The output means 27 may be any configuration such as a means for writing data to a recording medium, a printer, or a monitor.

次に、図3に示した勤務シフト表1Aのサンプルデータを使って、本実施の形態のルール抽出装置2の処理の流れについて、図4のフローチャートを参照しながら説明する。   Next, using the sample data of the work shift table 1A shown in FIG. 3, the processing flow of the rule extraction device 2 of the present embodiment will be described with reference to the flowchart of FIG.

この図3の勤務シフト表1Aでは、上述した「早出」を「早」、「日勤」を「勤」、「遅出」を「遅」、「夜勤」を「夜」、「夜明」を「明」と記している。また、通常は1ヶ月の期間の勤務シフト表を使用することが多いが、ここでは説明を簡単にするため、16日間の期間の勤務シフト表1Aを例に説明をおこなう。   In the shift shift table 1A of FIG. 3, “early departure” is “early”, “day shift” is “working”, “late” is “late”, “night shift” is “night”, “nightlight” is “light”. " Usually, a work shift table for a period of one month is often used, but here, in order to simplify the explanation, the work shift table 1A for a period of 16 days will be described as an example.

まず、ステップS1において、図3に示した過去の勤務シフト表1Aの読取りをおこなう。図3では、表形式で印刷された状態を示しているが、この勤務シフト表1Aのデータは、CSV形式で記録媒体に保存されており、読取り手段21に読取り指示を与えることで読取らせることができる。   First, in step S1, the past work shift table 1A shown in FIG. 3 is read. Although FIG. 3 shows a state printed in the table format, the data of the work shift table 1A is stored in the recording medium in the CSV format, and is read by giving a reading instruction to the reading means 21. be able to.

続いて、ステップS2では、前処理手段22において並びデータの生成をおこなう。例えば、「夜(夜勤)」の次の日は「明(夜明)」になる、「夜(夜勤)」が2日連続になることはない、などの2つ並んだ日の勤務形態の組み合わせ及び順序に関するシフト条件(以下、「シフト並びルール」と称することがある。)を見つけたい場合は、前処理手段22において勤務方向に隣接するセルのデータ同士を関連付けた並びデータを生成する。   Subsequently, in step S2, the pre-processing means 22 generates aligned data. For example, the day after “Night (night shift)” will be “Ming (night shift)”, “Night (night shift)” will not be two consecutive days, etc. And when it is desired to find a shift condition related to the order (hereinafter, sometimes referred to as “shift arrangement rule”), the preprocessing means 22 generates arrangement data in which data of cells adjacent in the work direction are associated with each other.

図3に示した勤務シフト表1Aを例に説明すると、勤務者「佐藤」では、「遅→早」、「早→休」、「休→休」、「休→夜」などの並びデータが生成される。また、勤務者「鈴木」では、「夜→明」、「明→休」、「休→勤」、「勤→休」などの並びデータが生成される。ここで、職場全体のシフト並びルールを作成する場合は、勤務者と並びデータとを関連付けて整理する必要はない。   The work shift table 1A shown in FIG. 3 will be described as an example. For the worker “Sato”, the arrangement data such as “late → early”, “early → off”, “off → off”, “off → night”, etc. Generated. For the worker “Suzuki”, side-by-side data such as “night → light”, “light → leave”, “leave → work”, “work → work” is generated. Here, when creating a shift arrangement rule for the entire workplace, it is not necessary to associate and arrange workers and arrangement data.

そして、ステップS3では、出現回数が予め設定しておいた回数n以上となる並びデータを見つけ出す。例えば、「夜→明」及び「明→休」の出現回数がn回以上であれば、この2種類の並びデータの並び順を仮シフト条件として選定する(ステップS4)。   In step S3, line-up data whose number of appearances is equal to or greater than the preset number n is found. For example, if the number of occurrences of “night → light” and “light → break” is n times or more, the arrangement order of these two types of arrangement data is selected as a temporary shift condition (step S4).

このステップS4で選定された2つの仮シフト条件は、出現回数だけを基準にして選定されたものであるため、シフト条件抽出手段24において統計的な検定をおこなうことで本シフト条件として抽出すべきルールであるか否かの判定をおこなう(ステップS5)。   Since the two temporary shift conditions selected in step S4 are selected based on only the number of appearances, the shift condition extraction unit 24 should perform a statistical test to extract these shift conditions. It is determined whether or not it is a rule (step S5).

以下では、「夜→明」という仮シフト条件に対しておこなった検定について説明する。この検定では、「「夜」の次の日が「明」になるというルールはない」という仮説を立て、その仮説が棄却されれば「夜→明」というルールがあると判定する。   In the following, the test performed for the temporary shift condition “night → light” will be described. In this test, a hypothesis that “there is no rule that“ the day after “night” becomes “light” ”” is established, and if the hypothesis is rejected, it is determined that there is a rule “night → light”.

まず、勤務シフト表1Aの対象となる期間(16日間)に「夜(夜勤)」が出現した回数NAを数えることで、「夜」が出現する確率P(A)を求めることができる。   First, the probability P (A) that “night” appears can be obtained by counting the number of times “night (night work)” appears in the period (16 days) that is the subject of the work shift table 1A.

P(A)=NA/S
ここで、Sは勤務シフト表1Aのセルの数(=16日間×勤務者数8人)を示す。
P (A) = NA / S
Here, S indicates the number of cells in the work shift table 1A (= 16 days × 8 workers).

続いて、「明(夜明)」の前日に「夜」が出現した回数がNB回であったとすると、何もルールがなければ「夜」がNB回出現する確率は、P(A)のNB乗となる。   Subsequently, if the number of times “night” appears on the day before “Ming (Dawn)” is NB, the probability of “night” appearing NB times without any rule is the NB of P (A). To the power.

一方、所定の条件として有意水準(1%,5%など)を設定し、P(A)のNB乗と比較した場合に、有意水準よりもP(A)のNB乗の方が小さければ、有意水準より小さい確率の事象が起きたことになり、最初に立てた仮説、すなわち「「夜→明」になるというルールはない」という仮説が棄却され、「「夜→明」になるというルールがある」ということになる。   On the other hand, if the significance level (1%, 5%, etc.) is set as the predetermined condition and compared with the NB power of P (A), if the NB power of P (A) is smaller than the significance level, An event with a probability that is less than the significance level has occurred, the hypothesis that was initially set up, that is, the "no rule" from night to light "is rejected, and the rule" from night to light " There is.

そこで、ステップS6において「夜→明」という仮シフト条件を本シフト条件に設定する。なお、「明→休」という仮シフト条件についても同様の検定をおこなって、本シフト条件に設定できるか否かを判定する。   Therefore, in step S6, the temporary shift condition “night → light” is set as the main shift condition. It should be noted that the same test is performed for the temporary shift condition “bright → off” to determine whether the shift condition can be set.

そして、ステップS7では、本シフト条件として抽出されたルール271をシフト条件270として出力手段27により出力する(図1参照)。この出力手段27による出力は、プリンターによる印刷などの使用者が視覚により認識できる手段によるものであっても、記録媒体に書き込む手段であっても、勤務シフト表作成装置3に連動して設定をおこなう手段であってもいずれでもよい。   In step S7, the output unit 27 outputs the rule 271 extracted as the main shift condition as the shift condition 270 (see FIG. 1). The output by the output means 27 is set in conjunction with the work shift table creating apparatus 3 regardless of whether it is a means that can be visually recognized by the user, such as printing by a printer, or a means for writing to a recording medium. Any means may be used.

ここまではシフト並びルールを抽出する方法について説明したが、続いて別の種類のルール271をシフト条件270として抽出する方法についての説明をおこなう。なお、ルール抽出装置2では、ある特定の種類のルールのみが抽出されるように設定することもできるし、複数の種類のルールが一度に抽出されるように設定することもできる。   So far, the method for extracting the shift arrangement rule has been described, but subsequently, a method for extracting another type of rule 271 as the shift condition 270 will be described. The rule extraction device 2 can be set so that only a specific type of rule is extracted, or can be set so that a plurality of types of rules are extracted at a time.

まず、一日に割り当てられる勤務者の人数について、最小人数又は最大人数などがシフト条件(以下、「必要人数ルール」と称することがある。)として抽出される場合について説明する。   First, the case where the minimum number or the maximum number of workers assigned to one day is extracted as a shift condition (hereinafter sometimes referred to as “necessary number rule”) will be described.

この場合は、前処理手段22において、日付方向のセルのデータをデータ種別毎に日単位集計数として集計する。例えば、図3に示した勤務シフト表1Aでは、1日(木曜日)の「遅」が1人、「勤」が2人、「休」が2人、「夜」が2人というように勤務形態(種別)毎の日単位集計数を集計することができる。また、4日(日曜日)であれば、「勤」が1人、「休」が4人というように日単位集計数を集計することができる。さらに、5日(月曜日)であれば、「遅」が1人、「勤」が2人、「休」が3人、「夜」が1人というように日単位集計数を集計することができる。   In this case, the pre-processing means 22 totals the cell data in the date direction as the daily total number for each data type. For example, in the work shift table 1A shown in FIG. 3, the work is such that one person is "late" on the day (Thursday), two are "work", two are "off", and two are "night". The number of daily aggregations for each form (type) can be aggregated. In addition, on the 4th (Sunday), the number of daily counts can be tabulated such that “work” is one person and “rest” is four. In addition, on the 5th (Monday), the number of daily counts may be tabulated such that “late” is 1 person, “work” is 2 people, “off” is 3 people, and “night” is 1 person. it can.

このように一日に各勤務形態が割り当てられる勤務者の人数は、必ずしも一定ではなく、勤務形態によっては一日の最小人数又は最大人数がルールとして存在する可能性がある。   Thus, the number of workers to whom each work style is assigned per day is not necessarily constant, and there may be a minimum or maximum number of workers per day as a rule depending on the work style.

そこで、前処理手段22において、各勤務形態の日単位集計数の中で、期間(16日間)を通じて最小値と最大値となるものを、勤務形態毎にそれぞれ抽出する。ここで、期間を通じた必要人数ルールを作成する場合は、その日が平日であるか、休日であるか、あるいは何曜日であるか等と、最小値又は最大値とを関連付けて整理する必要はない。   Therefore, the pre-processing means 22 extracts, for each work style, those that become the minimum value and the maximum value throughout the period (16 days) from the daily total number of each work style. Here, when creating a rule for the required number of people throughout a period, it is not necessary to organize the day or weekday, whether it is a holiday, or what day of the week, and the minimum value or maximum value in association with each other. .

続いて、勤務形態毎に抽出された最小値及び最大値の中から、出現回数が自明であるような値を取り除く。例えば、最小値が0となる、あるいは最大値が総勤務者数(8人)と等しくなるような所定の値は自明であり、シフト条件として抽出する意味がない。そして、自明でない(所定の値でない)各勤務形態の最小値又は最大値を、各勤務形態の最小人数又は最大人数という仮シフト条件として選定する(図4のステップS4参照)。   Subsequently, a value whose number of appearances is obvious is removed from the minimum value and the maximum value extracted for each work style. For example, a predetermined value such that the minimum value is 0 or the maximum value is equal to the total number of workers (eight persons) is self-evident, and there is no meaning to extract it as a shift condition. Then, the minimum value or the maximum value of each work style that is not obvious (not a predetermined value) is selected as a temporary shift condition of the minimum number or the maximum number of work styles (see step S4 in FIG. 4).

このようにして仮シフト条件に選定された最小人数又は最大人数は、勤務シフト表1Aでの出現回数だけを基準にして選定されたものであるため、シフト条件抽出手段24において統計的な検定をおこなうことで本シフト条件として抽出すべきルールであるか否かの判定をおこなう(図4のステップS5参照)。   Since the minimum or maximum number of persons selected as the temporary shift condition in this way is selected based only on the number of appearances in the work shift table 1A, a statistical test is performed in the shift condition extraction means 24. By doing so, it is determined whether or not the rule should be extracted as the present shift condition (see step S5 in FIG. 4).

以下では、「遅(遅出)」の最大人数が1人であるという仮シフト条件に対しておこなった検定について説明する。この検定では、「一日に「遅」が割り当てられる人数を1人までに制限するルールはない」という仮説を立て、その仮説が棄却されれば「一日の「遅」の最大人数は1人である」というルールがあると判定する。   In the following, the test performed for the provisional shift condition that the maximum number of “late (late)” is one will be described. In this test, a hypothesis is made that “there is no rule that limits the number of people who can be assigned“ late ”to one person per day”, and if the hypothesis is rejected, the maximum number of people who are “late” in a day is 1 It is determined that there is a rule “is a person”.

まず、勤務シフト表1Aの対象となる期間(16日間)に「遅」が出現した回数NAを数えることで、「遅」が出現する確率P(A)を求めることができる。   First, the probability P (A) that “late” appears can be obtained by counting the number of times NA that “late” appears in the period (16 days) that is the subject of the work shift table 1A.

P(A)=NA/S
ここで、Sは勤務シフト表1Aのセルの数(=16日間×勤務者数8人)を示す。
P (A) = NA / S
Here, S indicates the number of cells in the work shift table 1A (= 16 days × 8 workers).

続いて二項分布に基づいて、ある一日に「遅」が出現する確率を出現回数別に求める。出現回数は0から勤務者数(8人)までの値をとり、確率は二項分布の公式にしたがって求めることができる。例えば、ここでは「遅」が0回出現する確率は0.455、1回出現する確率は0.377、2回出現する確率は0.136などとなる。   Subsequently, based on the binomial distribution, the probability of “slow” appearing on a certain day is obtained for each number of appearances. The number of appearances ranges from 0 to the number of workers (8 people), and the probability can be obtained according to a binomial distribution formula. For example, here, the probability that “slow” appears 0 times is 0.455, the probability that it appears once is 0.377, the probability that it appears twice is 0.136, and the like.

このため、ある一日に1回(最大人数)以下しか「遅」が出現しない確率P(A,0,1)は、0回から1回までの確率の和となる。   For this reason, the probability P (A, 0, 1) that “slow” appears only once or less (maximum number of people) per day is the sum of the probabilities from 0 to 1.

P(A,0,1)=0.455+0.377=0.832
このような日が期間中にNC日あったとすると、何もルールがなければ「遅」が最大人数以下しか出現しない確率はP(A,0,1)のNC乗となる。
P (A, 0, 1) = 0.455 + 0.377 = 0.832
Assuming that there are NC days during the period, the probability that “late” will appear below the maximum number of people without any rule is the power of P (A, 0, 1) to the power of NC.

一方、所定の条件として有意水準(1%,5%など)を設定し、P(A,0,1)のNC乗と比較した場合に、有意水準よりもP(A,0,1)のNC乗の方が小さければ、有意水準より小さい確率の事象が起きたことになり、最初に立てた仮説、すなわち「一日に「遅」が割り当てられる人数を1人までに制限するルールはない」という仮説が棄却され、「一日の「遅」の最大人数は1人というルールがある」ということになる。   On the other hand, when a significant level (1%, 5%, etc.) is set as a predetermined condition and compared with the power of NC of P (A, 0,1), P (A, 0,1) If the NC power is smaller, an event with a probability lower than the significance level has occurred, and there is no rule to limit the number of people who can be assigned “late” to one per person. The hypothesis is rejected, and "there is a rule that the maximum number of people who are" late "in a day is one."

そこで、「一日の「遅」の最大人数は1人である」という仮シフト条件を本シフト条件に設定する。なお、仮シフト条件が最小人数に関するものである場合には、二項分布の公式から求められる確率について最小値から総勤務者数までの確率の和をとって、それをNC乗したものについて検定をおこなえばよい。   Therefore, a provisional shift condition that “the maximum number of people who are“ late ”in a day is one person” is set as this shift condition. If the provisional shift condition relates to the minimum number of persons, the probability obtained from the binomial distribution formula is summed from the minimum value to the total number of workers, and the result obtained by multiplying it by the NC power is tested. Just do it.

続いて、期間内(16日間)に一人の勤務者に割り当てられる同じ種類の勤務形態の数について、最小回数又は最大回数などがシフト条件(以下、「期間内回数ルール」と称することがある。)として抽出される場合について説明する。   Subsequently, regarding the number of work types of the same type that are assigned to one worker within a period (16 days), the minimum number or maximum number of times may be referred to as a shift condition (hereinafter referred to as “number of times within period” rule). ) Will be described.

この場合は、前処理手段22において、勤務者方向のセルのデータをデータ種別毎に勤務者単位集計数として集計する。例えば、図3に示した勤務シフト表1Aでは、勤務者「佐藤」の期間内の「勤」が3回、「休」が4回、「夜」が3回というように勤務形態(種別)毎の勤務者単位集計数を集計することができる。また、勤務者「高橋」であれば、「勤」が3回、「休」が5回、「夜」が3回というように勤務者単位集計数を集計することができる。さらに、勤務者「田中」であれば、「勤」が7回、「休」が4回、「夜」が2回というように勤務者単位集計数を集計することができる。   In this case, the pre-processing means 22 totals the worker-direction cell data as the total number of worker units for each data type. For example, in the work shift table 1A shown in FIG. 3, the work style (type) is such that “work” is 3 times, “absence” is 4 times, and “night” is 3 times during the period of the worker “Sato”. The total number of employee units for each employee can be aggregated. For the worker “Takahashi”, the total number of workers can be calculated such that “work” is 3 times, “leave” is 5 times, and “night” is 3 times. Furthermore, if the worker is “Tanaka”, the total number of workers can be counted such that “work” is 7 times, “leave” is 4 times, and “night” is 2 times.

このように期間内に各勤務者に各勤務形態が割り当てられる回数は、必ずしも一定ではなく、各勤務者又は全ての勤務者に共通する勤務形態を割り当てる最小回数又は最大回数がルールとして存在する可能性がある。   In this way, the number of times each work style is assigned to each worker within the period is not necessarily constant, and there may be a minimum or maximum number of times that assigns a work style common to each worker or all workers as a rule. There is sex.

そこで、前処理手段22において、すべての勤務者の各勤務形態の勤務者単位集計数の中で、最小値と最大値となるものを、勤務形態毎にそれぞれ抽出する。ここで、職場全体の期間内回数ルールを作成する場合は、勤務者と勤務者単位集計数とを関連付けて整理する必要はない。   Therefore, the pre-processing means 22 extracts the minimum value and the maximum value for each work style from among the total number of worker units for each work style of all workers. Here, when creating the in-period rule for the entire workplace, it is not necessary to associate and organize workers and the total number of workers.

続いて、勤務形態毎に抽出された最小値及び最大値の中から、出現回数が自明であるような値を取り除く。例えば、最小値が0となる、あるいは最大値が期間の日数(16日)と等しくなるような所定の値は自明であり、シフト条件として抽出する意味がない。そして、自明でない(所定の値でない)各勤務形態の最小値又は最大値を、各勤務形態の最小回数又は最大回数という仮シフト条件として選定する(図4のステップS4参照)。   Subsequently, a value whose number of appearances is obvious is removed from the minimum value and the maximum value extracted for each work style. For example, a predetermined value such that the minimum value is 0 or the maximum value is equal to the number of days in the period (16 days) is self-evident, and there is no point in extracting it as a shift condition. Then, the minimum value or the maximum value of each work style that is not obvious (not a predetermined value) is selected as a temporary shift condition of the minimum number or maximum number of each work style (see step S4 in FIG. 4).

このようにして仮シフト条件に選定された最小回数又は最大回数は、勤務シフト表1Aでの出現回数だけを基準にして選定されたものであるため、シフト条件抽出手段24において統計的な検定をおこなうことで本シフト条件として抽出すべきルールであるか否かの判定をおこなう(図4のステップS5参照)。   Since the minimum or maximum number of times selected as the temporary shift condition in this way is selected based only on the number of appearances in the work shift table 1A, the shift condition extracting means 24 performs a statistical test. By doing so, it is determined whether or not the rule should be extracted as the present shift condition (see step S5 in FIG. 4).

以下では、「休(休日)」の最小回数が4回であるという仮シフト条件に対しておこなった検定について説明する。この検定では、「期間内に「休」が出現する回数を4回以上に制限するルールはない」という仮説を立て、その仮説が棄却されれば「期間内の「休」の最小回数は4回である」というルールがあると判定する。   In the following, a test performed for the provisional shift condition that the minimum number of times of “rest (holiday)” is four will be described. In this test, a hypothesis is made that “there is no rule that limits the number of occurrences of“ rest ”to 4 or more within a period”, and if the hypothesis is rejected, “the minimum number of“ rest ”within a period is 4 It is determined that there is a rule that “the time is”.

まず、勤務シフト表1Aの対象となる期間(16日間)に「休」が出現した回数NAを数えることで、「休」が出現する確率P(A)を求めることができる。   First, the probability P (A) of occurrence of “absence” can be obtained by counting the number NA of occurrences of “absence” in the period (16 days) that is the subject of the work shift table 1A.

P(A)=NA/S
ここで、Sは勤務シフト表1Aのセルの数(=16日間×勤務者数8人)を示す。
P (A) = NA / S
Here, S indicates the number of cells in the work shift table 1A (= 16 days × 8 workers).

続いて何もルールがないことを仮定し、二項分布に基づいて、期間内に一人の勤務者に「休」が出現する確率を出現回数別に求める。出現回数は0から期間内の日数(16日)までの値をとり、確率は二項分布の公式にしたがって求めることができる。例えば、P(A)=0.281であるときに、16日間に「休」が0回出現する確率は0.00507、1回出現する確率は0.0318、2回出現する確率は0.0932などとなる。   Subsequently, assuming that there is no rule, the probability of “absence” appearing for one worker within a period is obtained for each number of appearances based on the binomial distribution. The number of appearances takes a value from 0 to the number of days in the period (16 days), and the probability can be obtained according to a binomial distribution formula. For example, when P (A) = 0.281, the probability of “rest” appearing 0 times in 16 days is 0.00507, the probability of appearing once is 0.0318, the probability of appearing twice is 0.0932, and the like.

このため、一人に4回(最小回数)以上「休」が出現する確率P(A,4,16)は、4回から16回までの確率の和となる。   For this reason, the probability P (A, 4, 16) that “pause” appears 4 times (minimum number of times) or more per person is the sum of the probabilities from 4 times to 16 times.

P(A,4,16)=0.216+0.203+0.146+・・・=0.700
このような期間中に4回以上の「休」が出現する勤務者の数NDがすべての勤務者(ND=8人)であったとすると、何もルールがなければ「休」がすべての勤務者について最小回数以上出現する確率はP(A,4,16)の8乗となる。
P (A, 4, 16) = 0.216 + 0.203 + 0.146 + ... = 0.700
If the number ND of employees who have four or more “days off” during such a period is ND (8 = 8), then “days off” will be all jobs unless there are any rules. The probability that a person will appear more than the minimum number of times is the eighth power of P (A, 4, 16).

一方、所定の条件として有意水準(1%,5%など)を設定し、P(A,4,16)の8乗と比較した場合に、有意水準よりもP(A,4,16)の8乗の方が小さければ、有意水準より小さい確率の事象が起きたことになり、最初に立てた仮説、すなわち「期間内に「休」が出現する回数を4回以上に制限するルールはない」という仮説が棄却され、「期間内の「休」の最小回数は4回というルールがある」ということになる。   On the other hand, when a significant level (1%, 5%, etc.) is set as a predetermined condition and compared with the eighth power of P (A, 4,16), P (A, 4,16) If the 8th power is smaller, an event with a probability less than the significance level has occurred, and there is no rule that limits the number of occurrences of “rest” within the period to 4 or more. "And the hypothesis is rejected, and" there is a rule that the minimum number of times of "rest" within a period is 4 ".

そこで、「期間内の「休」の最小回数は4回である」という仮シフト条件を本シフト条件に設定する。なお、仮シフト条件が最大回数に関するものである場合には、二項分布の公式から求められる確率について0から最大回数までの確率の和をとって、それをND乗したものについて検定をおこなえばよい。   Therefore, a provisional shift condition that “the minimum number of“ rest ”within the period is four” is set as the main shift condition. When the provisional shift condition is related to the maximum number of times, the probability obtained from the binomial distribution formula is calculated by summing the probabilities from 0 to the maximum number of times and performing the test on the ND raised to the ND power. Good.

また、ある勤務形態が次に出現するまでの間隔について、最小間隔又は最大間隔などがシフト条件(以下、「シフト間隔ルール」と称することがある。)として抽出される場合について説明する。   Further, a description will be given of a case where a minimum interval or a maximum interval is extracted as a shift condition (hereinafter sometimes referred to as a “shift interval rule”) for an interval until a certain work pattern appears next.

この場合は、前処理手段22において、勤務者方向のデータ種別毎の出現間隔をデータ間隔値として算出する。例えば、図3に示した勤務シフト表1Aでは、勤務者「佐藤」の「休」の間隔は0日、2日、5日であり、最小間隔0日、最大間隔5日などのデータ間隔値が算出できる。また、勤務者「高橋」の「休」の間隔は0日、2日、4日であり、最小間隔0日、最大間隔4日などのデータ間隔値が算出できる。さらに、勤務者「田中」の「休」の間隔は5日、1日、5日であり、最小間隔1日、最大間隔5日などのデータ間隔値が算出できる。   In this case, the preprocessing means 22 calculates the appearance interval for each data type in the worker direction as the data interval value. For example, in the work shift table 1A shown in FIG. 3, the interval of “vacation” of the worker “Sato” is 0 days, 2 days, and 5 days, and the data interval values such as the minimum interval 0 days, the maximum interval 5 days, etc. Can be calculated. In addition, the interval of “rest” for the worker “Takahashi” is 0 days, 2 days, and 4 days, and data interval values such as a minimum interval of 0 days and a maximum interval of 4 days can be calculated. Further, the interval of “rest” for the worker “Tanaka” is 5 days, 1 day, and 5 days, and data interval values such as a minimum interval of 1 day and a maximum interval of 5 days can be calculated.

このように各勤務者に各勤務形態が割り当てられる間隔は、必ずしも一定ではなく、各勤務者又は全ての勤務者に共通する勤務形態を割り当てる最小間隔又は最大間隔がルールとして存在する可能性がある。   Thus, the interval at which each work style is assigned to each worker is not necessarily constant, and there may be a minimum or maximum interval that assigns a work style common to each worker or all workers as a rule. .

そこで、前処理手段22において、すべての勤務者の各勤務形態のデータ間隔値の中で、最小値と最大値となるものを、勤務形態毎にそれぞれ抽出する。ここで、職場全体のシフト間隔ルールを作成する場合は、勤務者とデータ間隔値とを関連付けて整理する必要はない。   Therefore, the pre-processing means 22 extracts the minimum value and the maximum value among the data interval values of all work patterns of all workers for each work pattern. Here, when creating a shift interval rule for the entire workplace, it is not necessary to associate and organize workers and data interval values.

続いて、勤務形態毎に抽出された最小値の中から、間隔0日となる値(所定の値)は取り除く。また、勤務形態毎に抽出された最大値の中から、予め設定しておいた間隔d日(所定の値)以下となるデータ間隔値を見つけ出す。そして、それらの取り出されたデータを各勤務形態の最小間隔又は最大間隔という仮シフト条件として選定する(図4のステップS4参照)。   Subsequently, a value (predetermined value) that becomes an interval of 0 days is removed from the minimum value extracted for each work pattern. In addition, a data interval value that is equal to or less than a preset interval d days (predetermined value) is found from the maximum values extracted for each work pattern. Then, the extracted data is selected as a temporary shift condition of the minimum interval or the maximum interval of each work style (see step S4 in FIG. 4).

このようにして仮シフト条件に選定された最小間隔又は最大間隔は、勤務シフト表1Aでの出現回数だけを基準にして選定されたものであるため、シフト条件抽出手段24において統計的な検定をおこなうことで本シフト条件として抽出すべきルールであるか否かの判定をおこなう(図4のステップS5参照)。   Since the minimum interval or the maximum interval selected as the temporary shift condition in this way is selected based only on the number of appearances in the work shift table 1A, the shift condition extracting means 24 performs a statistical test. By doing so, it is determined whether or not the rule should be extracted as the present shift condition (see step S5 in FIG. 4).

以下では、「休(休日)」の最大間隔が5日であるという仮シフト条件に対しておこなった検定について説明する。この検定では、「「休」の最大間隔を5日に制限するルールはない」という仮説を立て、その仮説が棄却されれば「「休」の最大間隔は5日である」というルールがあると判定する。   In the following, the test performed for the provisional shift condition that the maximum interval of “rest (holiday)” is 5 days will be described. In this test, a hypothesis that “there is no rule that limits the maximum interval of“ rest ”to 5 days” is established, and if the hypothesis is rejected, there is a rule that “the maximum interval of“ rest ”is 5 days” Is determined.

まず、勤務シフト表1Aの対象となる期間(16日間)に「休」が出現した回数NAを数えることで、「休」が出現する確率P(A)を求めることができる。   First, the probability P (A) of occurrence of “absence” can be obtained by counting the number NA of occurrences of “absence” in the period (16 days) that is the subject of the work shift table 1A.

P(A)=NA/S
ここで、Sは勤務シフト表1Aのセルの数(=16日間×勤務者数8人)を示す。また、「休」が勤務シフト表1Aに出現した後のことを考えるとき、g日続けて「休」以外の勤務形態が並び、その後に「休」が出現する確率P(g,A)は、次のように求めることができる。
P (A) = NA / S
Here, S indicates the number of cells in the work shift table 1A (= 16 days × 8 workers). In addition, when thinking about after “absence” appears in the work shift table 1A, the probability P (g, A) that “day off” appears after g days in succession, Can be obtained as follows.

P(g,A)=P(A)×(1−P(A))
また、勤務者方向で見て「休」が一回出現してから再び「休」が出現すると1回と数え、すべての勤務者について期間中にそれが現れる回数を合計したものを回数NEとする。これは「休」同士の間隔の数であって、各勤務者の「休」の期間内の回数から1を引いたものをすべて合計したものに等しい。例えば、勤務シフト表1Aでは、「佐藤」が3回、「鈴木」が3回、「高橋」が4回、「田中」が3回、「渡辺」が6回、「伊藤」が3回、「山本」が3回、「中村」が3回で、NEが28回となる。
P (g, A) = P (A) × (1−P (A)) g
In addition, when “absence” appears once in the direction of the worker and then “absence” appears again, it is counted as one, and the total number of occurrences for all workers during the period is the number NE. To do. This is the number of intervals between “leaves”, and is equal to the sum of all the numbers obtained by subtracting 1 from the number of times within the “leave” period of each worker. For example, in the work shift table 1A, “Sato” is 3 times, “Suzuki” is 3 times, “Takahashi” is 4 times, “Tanaka” is 3 times, “Watanabe” is 6 times, “Ito” is 3 times, “Yamamoto” is 3 times, “Nakamura” is 3 times, and NE is 28 times.

そして、何もルールがなければ「休」同士の間隔がすべて最大間隔(5日)以下になる確率は、(P(0,A)+P(1,A)+P(2,A)+P(3,A)+P(4,A)+P(5,A))のNE乗となる。   If there is no rule, the probability that all the intervals between “leaves” are equal to or less than the maximum interval (5 days) is (P (0, A) + P (1, A) + P (2, A) + P (3 , A) + P (4, A) + P (5, A)) to the NE power.

一方、所定の条件として有意水準(1%,5%など)を設定し、この確率と比較した場合に、有意水準よりも小さければ、有意水準より小さい確率の事象が起きたことになり、最初に立てた仮説、すなわち「「休」の最大間隔を5日に制限するルールはない」という仮説が棄却され、「「休」の最大間隔は5日というルールがある」ということになる。   On the other hand, when a significance level (1%, 5%, etc.) is set as a predetermined condition and compared with this probability, if it is less than the significance level, an event with a probability less than the significance level has occurred. That is, the hypothesis that “there is no rule that limits the maximum interval of“ rest ”to 5 days” is rejected, and “there is a rule that the maximum interval of“ rest ”is 5 days”.

そこで、「「休」の最大間隔は5日である」という仮シフト条件を本シフト条件に設定する。なお、仮シフト条件が最小間隔に関するものである場合には、(1−(P(0,A)+P(1,A)+・・・+P(最小間隔−1,A)))のNE乗に対して、同様の検定をおこなえばよい。   Therefore, the temporary shift condition “the maximum interval of“ rest ”is 5 days” is set as the main shift condition. When the temporary shift condition is related to the minimum interval, (1− (P (0, A) + P (1, A) +... + P (minimum interval−1, A))) raised to the NE power. The same test may be performed for.

さらに、例えば2人の勤務者間について、同じ勤務形態にする又は同じ勤務形態にしないなどの勤務形態を割り当てる組合せがシフト条件(以下、「組合せルール」と称することがある。)として抽出される場合について説明する。   Furthermore, for example, for two workers, a combination that assigns a work form such as the same work form or not the same work form is extracted as a shift condition (hereinafter also referred to as “combination rule”). The case will be described.

この場合は、前処理手段22において、ある勤務者のセルのデータと、そのセルの日付方向の他の勤務者のセルのデータとを関連付けた組合せデータを生成する。例えば、図3に示した勤務シフト表1Aでは、勤務者「佐藤」の勤務形態が「勤」となる8日、9日、12日は、勤務者「中村」の勤務形態も「勤」となっている。また、勤務者「田中」の勤務形態が「夜」となる3日、11日は、勤務者「山本」の勤務形態も「夜」となっている。   In this case, the preprocessing means 22 generates combination data in which data of a certain worker's cell is associated with data of another worker's cell in the date direction of the cell. For example, in the work shift table 1A shown in FIG. 3, on the 8th, 9th, and 12th when the work style of the worker “Sato” is “work”, the work style of the worker “Nakamura” is also “work”. It has become. Also, on the 3rd and 11th when the working style of the worker “Tanaka” is “night”, the working style of the worker “Yamamoto” is also “night”.

このように2人の勤務者間には同じ日に同じ勤務形態にする又はしないといったルールが存在する可能性がある。   In this way, there is a possibility that there is a rule between the two workers that the same work mode is set on the same day or not.

そこで、前処理手段22において、各勤務者の勤務形態毎の出現回数と出現確率を計算する。   Therefore, the pre-processing means 22 calculates the number of appearances and the appearance probability for each worker's work style.

そして、出現回数が予め設定しておいたnd日以上となる勤務形態について、同じ日に同一の勤務形態が割り当てられている勤務者の組み合わせを見つけ出して組合せデータを生成する。例えば、上述したように勤務者「田中」と勤務者「山本」は、同じ日に「夜(夜勤)」が割り当てられた回数が期間中に2回(所定の回数)ある。そこで、「夜」の勤務形態についてこの2人の組合せデータを仮シフト条件として選定する(図4のステップS4参照)。   Then, for a work pattern in which the number of appearances is equal to or more than the preset nd day, a combination of workers assigned with the same work pattern on the same day is found to generate combination data. For example, as described above, the worker “Tanaka” and the worker “Yamamoto” have been assigned “night (night shift)” on the same day twice during the period (predetermined number). Therefore, the combination data of the two persons is selected as a temporary shift condition for the “night” duty pattern (see step S4 in FIG. 4).

ここで選定された組合せデータの仮シフト条件は、勤務シフト表1Aでの出現回数だけを基準にして選定されたものであるため、シフト条件抽出手段24において統計的な検定をおこなうことで本シフト条件として抽出すべきルールであるか否かの判定をおこなう(図4のステップS5参照)。   Since the temporary shift condition of the combination data selected here is selected based only on the number of appearances in the work shift table 1A, the shift condition extraction unit 24 performs a statistical test to perform the main shift. It is determined whether or not the rule should be extracted as a condition (see step S5 in FIG. 4).

以下では、勤務者「田中」と勤務者「山本」が同じ日に「夜」になるという仮シフト条件に対しておこなった検定について説明する。この検定では、「「田中」と「山本」に同じ日に「夜」を割り当てるというルールはない」という仮説を立て、その仮説が棄却されれば「「田中」と「山本」は同じ日に「夜」を割り当てる」というルールがあると判定する。   Below, the test | inspection performed with respect to temporary shift conditions that the worker "Tanaka" and the worker "Yamamoto" become "night" on the same day is demonstrated. In this test, the hypothesis that “There is no rule to assign“ Night ”to“ Tanaka ”and“ Yamamoto ”on the same day” is established, and if that hypothesis is rejected, “Tanaka” and “Yamamoto” It is determined that there is a rule “assign night”.

まず、勤務シフト表1Aの対象となる期間L(16日間)に勤務者「田中」について「夜」が出現した回数NAを数えることで、「夜」が出現する確率P(A)を求めることができる。   First, the probability P (A) that “night” appears is obtained by counting the number of times “night” appears for the worker “Tanaka” in the period L (16 days) that is the subject of the work shift table 1A. Can do.

P(A)=NA/L
同様に、勤務者「山本」についても「夜」が出現した回数NBを数える。ここでNA(2回)よりNB(3回)の方が大きいので、NBを基準にして考える。
P (A) = NA / L
Similarly, the number of times “night” appears for the worker “Yamamoto” is counted. Here, since NB (3 times) is larger than NA (2 times), NB is considered as a reference.

続いて何もルールがないことを仮定し、二項分布に基づいて、NB回(3回)の試行で確率P(A)の事象がNA回以上発生する確率を求める。これは二項分布の公式にしたがって求めることができる。例えば、P(A)=0.125であるときに、3回のうちで勤務者「田中」が0回出現する確率は0.670、1回出現する確率は0.287、2回出現する確率は0.041、3回出現する確率は0.00195となる。   Subsequently, assuming that there is no rule, the probability that an event of probability P (A) occurs NA times or more in NB trials (three times) is obtained based on the binomial distribution. This can be determined according to the binomial distribution formula. For example, when P (A) = 0.125, the probability of the worker “Tanaka” appearing 0 times out of 3 times is 0.670, the probability of appearing once is 0.287, the probability of appearing twice is 0.041, 3 times The probability of appearing is 0.00195.

何もルールがなければNA回(2回)以上一致する確率は、NA回(2回)からNB回(3回)のすべての確率の和になる。   If there is no rule, the probability of matching NA times (2 times) or more is the sum of all probabilities from NA times (2 times) to NB times (3 times).

一方、所定の条件として有意水準(1%,5%など)を設定し、この確率と比較した場合に、有意水準よりも小さければ、有意水準より小さい確率の事象が起きたことになり、最初に立てた仮説、すなわち「「田中」と「山本」に同じ日に「夜」を割り当てるというルールはない」という仮説が棄却され、「「田中」と「山本」は同じ日に「夜」を割り当てるというルールがある」ということになる。   On the other hand, when a significance level (1%, 5%, etc.) is set as a predetermined condition and compared with this probability, if it is less than the significance level, an event with a probability less than the significance level has occurred. And the hypothesis that “There is no rule that assigns“ night ”to“ Tanaka ”and“ Yamamoto ”on the same day” is rejected, and “Tanaka” and “Yamamoto” have “night” on the same day. There is a rule to assign ".

そこで、「「田中」と「山本」は同じ日に「夜」を割り当てる」という仮シフト条件を本シフト条件に設定する。   Therefore, a temporary shift condition that ““ Tanaka ”and“ Yamamoto ”assign“ night ”on the same day” is set as the main shift condition.

以上においては、統計的な検定によって本シフト条件となるルール271を抽出する場合について説明したが、以下ではクラスタリング手法を使ってシフト条件としてのグループ分け272をおこなう場合について説明する(図1参照)。   In the above, the case where the rule 271 serving as the shift condition is extracted by the statistical test has been described. However, the case where the grouping 272 as the shift condition is performed using the clustering method will be described below (see FIG. 1). .

図3に示した勤務シフト表1Aには、8人の勤務者のシフト勤務(勤務形態)が記載されているが、期間中の各勤務者のセルに記載された勤務形態のデータから勤務者をいつくかのグループに分類できる場合がある。   The shift shift table 1A shown in FIG. 3 describes the shift work (duty pattern) of eight workers, but from the data of the duty pattern described in each worker's cell during the period, the worker May be classified into some groups.

例えば、どの日を見てもあるグループの中の一人が必ず「勤」や「夜」になっている場合は、勤務者単位ではなくグループ単位のシフト条件を設定することができる。このグループは、結果的には職位に沿ったグループ分け272となる場合もあるが、ルール抽出装置2には特にそのような予め決められた職位等を認識させるのではなく、期間中の各勤務者のセルに記載された勤務形態のデータのみからグループ分け272をおこなう。   For example, if one person in a group is always “working” or “night” on any day, shift conditions can be set for each group instead of each worker. This group may result in a grouping 272 according to job title, but the rule extraction device 2 does not specifically recognize such a predetermined job title, but each duty during the period. The grouping 272 is performed only from the work style data described in the person's cell.

まず、グループ分け272をおこなうに際しては、図5のフローチャートに示すように過去の勤務シフト表1Aの読取りをおこなう(ステップS11)。この勤務シフト表1Aの読取りは、上述したルール271の抽出の場合と同じであるため、上記ステップS1が既に実行されている場合は省略することができる。   First, when grouping 272, the past work shift table 1A is read as shown in the flowchart of FIG. 5 (step S11). The reading of the work shift table 1A is the same as in the case of the extraction of the rule 271 described above, and can be omitted if the above step S1 has already been executed.

続いて、前処理手段22において、例えば期間内回数ルールで説明したのと同様に、勤務者方向のセルのデータをデータ種別毎に勤務者単位集計数(集計データ)として集計する(ステップS12)。すなわち、勤務者「佐藤」であれば、「勤」が3回、「夜」が3回、「早」が1回などを集計データとする。また、勤務者「鈴木」であれば、「勤」が2回、「夜」が3回、「早」が2回を集計データとする。さらに、勤務者「高橋」であれば、「勤」が3回、「夜」が3回、「早」が1回を集計データとする。そして、勤務者「中村」であれば、「勤」が12回、「夜」が0回、「早」が0回を集計データとする。なお、他の勤務者についても同様に集計をおこなうが、以下ではこの4人を例にして説明を続ける。   Subsequently, in the pre-processing means 22, for example, as described in the in-period number rule, the cell data in the worker direction is totaled as the total number of worker units (total data) for each data type (step S <b> 12). . That is, if the worker is “Sato”, the total data includes “work” three times, “night” three times, “early” one time, and the like. For the worker “Suzuki”, “duty” is 2 times, “night” is 3 times, and “early” is 2 times. Further, for the worker “Takahashi”, “work” is 3 times, “night” is 3 times, and “early” is 1 time. If the worker is “Nakamura”, the total data is “work” 12 times, “night” 0 times, and “early” 0 times. The other workers are also counted in the same manner, but the explanation will be continued with these four persons as an example.

そして、ステップS13では、これらの集計データを変換処理手段25によって以下のようなベクトル値(変換データ)に変換する。   In step S13, the totalized data is converted into the following vector values (converted data) by the conversion processing means 25.

勤務者「佐藤」=(勤、夜、早)=(3,3,1)
勤務者「鈴木」=(勤、夜、早)=(2,3,2)
勤務者「高橋」=(勤、夜、早)=(3,3,1)
勤務者「中村」=(勤、夜、早)=(12,0,0)
このようにベクトル値に変換された集計データは、例えば図6(a)に示したように、「勤(日勤)」の回数を縦軸とし、「夜(夜勤)」の回数を横軸とした2次元グラフにプロットすることができる。
Worker "Sato" = (work, night, early) = (3, 3, 1)
Worker "Suzuki" = (work, night, early) = (2, 3, 2)
Worker "Takahashi" = (work, night, early) = (3, 3, 1)
Worker "Nakamura" = (work, night, early) = (12,0,0)
As shown in FIG. 6A, for example, the aggregated data converted into vector values has the number of “work (day shift)” as the vertical axis and the number of “night (night shift)” as the horizontal axis. Can be plotted on a two-dimensional graph.

そして、ステップS14において夜勤の回数を分割軸4Aとして選択すると、「中村」のクラスタ(グループ)と、「佐藤」、「高橋」及び「鈴木」のクラスタ(グループ)とに分割することができる(ステップS15)。   Then, if the number of night shifts is selected as the division axis 4A in step S14, it can be divided into a cluster (group) of “Nakamura” and a cluster (group) of “Sato”, “Takahashi” and “Suzuki” ( Step S15).

この分割はクラスタリング手段26においておこなわれるが、実際にはベクトル値をグラフにプロットするのではなく、分割軸4Aの位置と各勤務者のベクトル値との距離を計算することによってクラスタリングをおこなう。ここで、分割軸4Aの位置は、最小自乗法によって距離の誤差の総和が最小になる位置に設定することができる。   This division is performed by the clustering means 26, but actually, the vector values are not plotted on the graph, but the clustering is performed by calculating the distance between the position of the division axis 4A and the vector value of each worker. Here, the position of the dividing axis 4A can be set to a position where the sum of the error in distance is minimized by the method of least squares.

また、ステップS16では、「佐藤」、「高橋」及び「鈴木」のクラスタを更に分割できるかを検討する。例えば図6(b)に示したように、「夜(夜勤)」の回数を縦軸とし、「早(早出)」の回数を横軸とした2次元グラフに3人のベクトル値をプロットすることができる。   In step S16, it is examined whether the clusters of “Sato”, “Takahashi”, and “Suzuki” can be further divided. For example, as shown in FIG. 6B, the vector values of three persons are plotted on a two-dimensional graph with the number of “night (night shift)” as the vertical axis and the number of “early (early departure)” as the horizontal axis. be able to.

そして、早出の回数を分割軸4Bとして選択すると、「鈴木」のクラスタと、「佐藤」及び「高橋」のクラスタとに分割することができる。このようなクラスタリングは、分割軸4Bに対して分割できない程近い場合に終了する。ここでは、「佐藤」と「高橋」は「早」の回数が同じで早出の回数の分割軸4Bでは分割できないため、クラスタリングを終了する。   If the number of early appearances is selected as the division axis 4B, it can be divided into a cluster of “Suzuki” and a cluster of “Sato” and “Takahashi”. Such clustering is terminated when the division axis 4B is so close that it cannot be divided. Here, since “Sato” and “Takahashi” have the same number of “early” and cannot be divided by the division axis 4B having the number of early appearances, clustering is terminated.

実際には、勤務形態の種類は上述した3種類よりも多いため、勤務形態(種別)の数をNKとすると、NK次元超立方体の中に各勤務者のベクトル値がプロットされることになる。そして、出現回数の分散が大きい勤務形態(種別)の回数から順番に分割軸4A,4B,・・・として採用していき、逐次、クラスタリングをおこなう。   Actually, since there are more types of work patterns than the above three types, assuming that the number of work patterns (types) is NK, the vector values of each worker are plotted in the NK-dimensional hypercube. . .. Are used as the division axes 4A, 4B,... In order from the number of work modes (types) having a large variance in the number of appearances, and clustering is performed sequentially.

このようなクラスタリングは、分割を停止する出現回数の差をdminとすると、最終的には一辺dminのNK次元超立方体の中に納まる勤務者の集合が同一グループとなる。   In such clustering, if the difference in the number of appearances at which the division is stopped is dmin, the set of workers who finally fit in the NK-dimensional hypercube with one side dmin is the same group.

そして、図3に示した勤務シフト表1Aに記載された勤務者をクラスタリング手段26によってクラスタリングすると、クラスタ1=「中村」、クラスタ2=「佐藤、高橋、田中」、クラスタ3=「鈴木、渡辺、伊藤、山本」というようにグループ分け272をすることができた。   When the workers listed in the work shift table 1A shown in FIG. 3 are clustered by the clustering means 26, cluster 1 = “Nakamura”, cluster 2 = “Sato, Takahashi, Tanaka”, cluster 3 = “Suzuki, Watanabe” , Ito, Yamamoto ”, grouping 272.

次に、本実施の形態のルール抽出装置2の作用について説明する。   Next, the operation of the rule extraction device 2 of the present embodiment will be described.

このように構成された本実施の形態のルール抽出装置2は、読取り手段21によって過去の勤務シフト表1Aを取り込み、取り込まれたデータから仮シフト条件を選定し、仮シフト条件を本シフト条件(ルール271)にすべきか否かを統計的に検定する。   The rule extraction device 2 of the present embodiment configured as described above reads the past work shift table 1A by the reading unit 21, selects a temporary shift condition from the acquired data, and sets the temporary shift condition as the main shift condition ( The rule 271) is statistically tested.

このため、実際に勤務シフト計画表を作成する際に適用されるべきシフト条件270を、確率を基準にして的確に抽出することができる。また、ルール271にすべきか否かの判定を使用者がおこなわなくても良く、さらに認識していなかった暗黙のルールのようなシフト条件を過去の勤務シフト表1Aから抽出することができるので、勤務シフト計画表の作成に熟練していない使用者でも容易に勤務シフト計画表を作成できるようになる。   For this reason, the shift condition 270 to be applied when actually creating the work shift plan table can be accurately extracted based on the probability. In addition, since it is not necessary for the user to determine whether or not the rule 271 should be changed, a shift condition such as an implicit rule that has not been recognized can be extracted from the past work shift table 1A. Even a user who is not skilled in creating a work shift plan table can easily create a work shift plan table.

また、取り込まれた勤務シフト表1Aのデータを勤務者方向に関連付けた並びデータを生成することによって、連続する複数日の勤務形態の並びを指定又は禁止するシフト条件(シフト並びルール)を抽出することができる。   Moreover, the shift condition (shift arrangement rule) which designates or prohibits the arrangement | sequence of the work form of the continuous several days is extracted by producing | generating the arrangement | sequence data which linked | related the data of the taken work shift table 1A with a worker direction. be able to.

さらに、取り込まれた勤務シフト表1Aのデータを日付方向にデータ種別毎に集計することによって、一日の必要人数に関するシフト条件(必要人数ルール)を抽出することができる。   Furthermore, by shifting the data of the captured work shift table 1A for each data type in the date direction, it is possible to extract a shift condition (necessary number rule) regarding the necessary number of persons per day.

また、取り込まれた勤務シフト表1Aのデータを勤務者方向にデータ種別毎に集計することによって、ある種別の勤務形態を期間内におこなう回数に関するシフト条件(期間内回数ルール)を抽出することができる。   Further, by collecting the data of the taken work shift table 1A for each data type in the direction of the worker, it is possible to extract a shift condition (number of times rule within the period) regarding the number of times that a certain type of work mode is performed within the period. it can.

さらに、取り込まれた勤務シフト表1Aの勤務者方向のデータからデータ種別毎の出現間隔をデータ間隔値として算出することによって、ある種別の勤務形態をおこなう間隔に関するシフト条件(シフト間隔ルール)を抽出することができる。   Furthermore, by calculating the appearance interval for each data type as data interval value from the data for the worker direction in the captured work shift table 1A, a shift condition (shift interval rule) relating to the interval for performing a certain type of work style is extracted. can do.

また、取り込まれた勤務シフト表1Aのデータを日付方向の他の勤務者のデータと関連付けた組合せデータを生成することによって、同じ日に勤務させる又は勤務させないなどの勤務者の組み合わせに関するシフト条件(組合せルール)を抽出することができる。   In addition, by generating combination data in which the data of the captured work shift table 1A is associated with the data of other workers in the date direction, shift conditions relating to worker combinations such as working or not working on the same day ( Combination rule) can be extracted.

また、取り込まれた勤務シフト表1Aのデータを使ってクラスタリング手段26によってクラスタリングをおこない、最終的に分類されたクラスタ(グループ)をシフト条件(グループ分け272)として抽出させれば、勤務シフト計画表を作成するに際して勤務者のみに依存しないグループ単位の調整が可能になる。また、管理者や勤務者は認識していないが、勤務シフト計画表の作成には必要となるグループ分け272を見つけ出すことができる。   Further, if clustering is performed by the clustering means 26 using the data of the taken work shift table 1A and the finally classified clusters (groups) are extracted as shift conditions (grouping 272), the work shift plan table is obtained. It becomes possible to make adjustments in units of groups that do not rely on workers alone when creating Moreover, although the manager and the worker are not recognized, it is possible to find out the grouping 272 necessary for creating the work shift plan table.

以上、図面を参照して、本発明の実施の形態を詳述してきたが、具体的な構成は、この実施の形態に限らず、本発明の要旨を逸脱しない程度の設計的変更は、本発明に含まれる。   The embodiment of the present invention has been described in detail above with reference to the drawings. However, the specific configuration is not limited to this embodiment, and design changes that do not depart from the gist of the present invention are not limited to this embodiment. Included in the invention.

例えば、前記実施の形態では、勤務者方向が横方向、日付方向が縦方向になる勤務シフト表1,1Aについて説明したが、これに限定されるものではなく、勤務者方向が縦方向、日付方向が横方向になる勤務シフト表であっても本発明を適用することができる。   For example, in the above embodiment, the work shift tables 1 and 1A in which the worker direction is the horizontal direction and the date direction is the vertical direction have been described, but the present invention is not limited to this, and the worker direction is the vertical direction and the date. The present invention can also be applied to a work shift table in which the direction is horizontal.

また、前記実施の形態では、過去の勤務シフト表1Aを読取ってシフト条件270を抽出する場合について説明したが、過去の勤務シフト表1Aが無い場合には、教師となるような勤務シフト表を作成して読取らせてもよい。   In the above embodiment, the case where the past work shift table 1A is read and the shift condition 270 is extracted has been described. However, when there is no past work shift table 1A, a work shift table serving as a teacher is provided. It may be created and read.

さらに、前記実施の形態で説明した勤務シフト表1Aの期間は16日間であったが、これに限定されるものではなく、1週間、1ヶ月、3ヶ月、6ヶ月、1年などの任意の期間を設定することができる。さらに、勤務者数についても、勤務シフト表1Aに記載した人数に限定されるものではない。   Furthermore, although the period of the work shift table 1A described in the above embodiment is 16 days, it is not limited to this, and any one of 1 week, 1 month, 3 months, 6 months, 1 year, etc. A period can be set. Further, the number of workers is not limited to the number of workers described in the work shift table 1A.

また、前記実施の形態では、有意水準を使った検定方法について説明したが、これに限定されるものではない。例えば、損失を定義した仮説の採用方法、棄却方法を使った検定をおこなうこともできる。この検定方法は、「存在するシフト条件を誤って存在しないと決定した場合」の損失L1と、「存在しないシフト条件を誤って存在すると決定した場合」の損失L2との評価を行ってからシフト条件を抽出するかどうかを決定する方法である。損失L1が損失L2より大きい場合は検定の条件を緩め、損失L2が損失L1より大きい場合は検定の条件を厳しくする、といったようにシフト条件が存在するかどうかの判定を変更するものである。   Moreover, although the said embodiment demonstrated the test method using a significance level, it is not limited to this. For example, it is possible to conduct a test using a hypothesis adopting method or a reject method defining a loss. This test method shifts after evaluating the loss L1 of “when it is determined that the existing shift condition does not exist by mistake” and the loss L2 of “when it is determined that the non-existent shift condition exists by mistake”. This is a method for determining whether to extract a condition. When the loss L1 is greater than the loss L2, the test condition is relaxed, and when the loss L2 is greater than the loss L1, the test condition is tightened.

さらに、前記実施の形態では、2日の並びデータを生成させたが、これに限定されるものではなく、3日以上の並びデータを生成させることもできる。   Furthermore, in the above-described embodiment, the arrangement data for two days is generated. However, the present invention is not limited to this, and arrangement data for three days or more can also be generated.

1,1A (過去の)勤務シフト表
2 ルール抽出装置(勤務シフト表作成支援システム)
21 読取り手段
22 前処理手段
23 仮シフト条件設定手段
24 シフト条件抽出手段
25 変換処理手段
26 クラスタリング手段
27 出力手段
270 シフト条件
271 ルール(本シフト条件)
272 グループ分け(シフト条件)
1,1A (past) work shift table 2 rule extraction device (work shift table creation support system)
21 Reading means 22 Preprocessing means 23 Temporary shift condition setting means 24 Shift condition extracting means 25 Conversion processing means 26 Clustering means 27 Output means 270 Shift condition 271 Rule (main shift condition)
272 Grouping (shift condition)

Claims (7)

勤務シフト計画表の作成に必要となるシフト条件を抽出する勤務シフト表作成支援システムであって、
日付と関連付ける日付方向と勤務者と関連付ける勤務者方向を有する過去の勤務シフト表又は教師となる勤務シフト表を取り込む読取り手段と、
前記読取り手段によって取り込まれた前記勤務シフト表の各セルのデータを前記勤務者方向又は前記日付方向のデータと関連付けて整理する前処理手段と、
前記前処理手段によって整理された処理データから前記シフト条件になる候補を仮シフト条件として選定する仮シフト条件設定手段と、
前記勤務シフト表のデータに基づいて統計的な検定をおこなって所定の条件を満たす仮シフト条件を本シフト条件として抽出するシフト条件抽出手段と、
前記抽出された本シフト条件を出力する出力手段とを備えたことを特徴とする勤務シフト表作成支援システム。
A work shift table creation support system that extracts shift conditions necessary for creating a work shift plan table,
Reading means for capturing a past work shift table having a date direction associated with a date and a worker direction associated with a worker or a work shift table serving as a teacher;
Preprocessing means for organizing the data of each cell of the work shift table captured by the reading means in association with the data of the worker direction or the date direction;
Temporary shift condition setting means for selecting candidates for the shift condition from the processing data arranged by the preprocessing means as temporary shift conditions;
Shift condition extracting means for performing a statistical test based on the data of the work shift table and extracting a temporary shift condition satisfying a predetermined condition as the main shift condition;
A work shift table creation support system comprising output means for outputting the extracted main shift condition.
前記前処理手段では、各セルのデータと前記勤務者方向に隣接するセルのデータとを関連付けた並びデータを生成し、
前記仮シフト条件設定手段では、前記並びデータの中で所定の回数以上出現する並びデータを仮シフト条件として選定し、
前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とすることを特徴とする請求項1に記載の勤務シフト表作成支援システム。
In the pre-processing means, to generate array data that associates the data of each cell and the data of the cell adjacent to the worker direction,
The provisional shift condition setting means selects arrangement data that appears more than a predetermined number of times in the arrangement data as a provisional shift condition,
2. The work shift table creation support system according to claim 1, wherein the shift condition extraction unit uses the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.
前記前処理手段では、前記日付方向のセルのデータをデータ種別毎に日単位集計数として集計し、
前記仮シフト条件設定手段では、前記日単位集計数と所定の値との比較により仮シフト条件となるものを選定し、
前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とすることを特徴とする請求項1に記載の勤務シフト表作成支援システム。
In the pre-processing means, the data of the cell in the date direction is totaled as a daily total number for each data type,
The provisional shift condition setting means selects a provisional shift condition by comparing the daily total number and a predetermined value,
2. The work shift table creation support system according to claim 1, wherein the shift condition extraction unit uses the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.
前記前処理手段では、前記勤務者方向のセルのデータをデータ種別毎に勤務者単位集計数として集計し、
前記仮シフト条件設定手段では、前記勤務者単位集計数と所定の値との比較により仮シフト条件となるものを選定し、
前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とすることを特徴とする請求項1に記載の勤務シフト表作成支援システム。
In the pre-processing means, the data of the worker-oriented cells is totaled as the total number of workers for each data type,
The provisional shift condition setting means selects a provisional shift condition by comparing the total number of worker units and a predetermined value,
2. The work shift table creation support system according to claim 1, wherein the shift condition extraction unit uses the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.
前記前処理手段では、前記勤務者方向のデータ種別毎の出現間隔をデータ間隔値として算出し、
前記仮シフト条件設定手段では、前記データ間隔値と所定の値との比較により仮シフト条件となるものを選定し、
前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とすることを特徴とする請求項1に記載の勤務シフト表作成支援システム。
In the preprocessing means, the appearance interval for each data type in the worker direction is calculated as a data interval value,
The provisional shift condition setting means selects a provisional shift condition by comparing the data interval value with a predetermined value,
2. The work shift table creation support system according to claim 1, wherein the shift condition extraction unit uses the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.
前記前処理手段では、各セルのデータと前記日付方向の他の勤務者のセルのデータとを関連付けた組合せデータを生成し、
前記仮シフト条件設定手段では、前記組合せデータの中で所定の回数以上出現する組合せデータを仮シフト条件として選定し、
前記シフト条件抽出手段では、有意水準との比較によって前記仮シフト条件がシフト条件として成立した場合に本シフト条件とすることを特徴とする請求項1に記載の勤務シフト表作成支援システム。
The pre-processing means generates combination data in which the data of each cell is associated with the data of another worker's cell in the date direction,
In the temporary shift condition setting means, combination data that appears a predetermined number of times or more in the combination data is selected as a temporary shift condition,
2. The work shift table creation support system according to claim 1, wherein the shift condition extraction unit uses the shift condition as a main shift condition when the temporary shift condition is established as a shift condition by comparison with a significance level.
勤務シフト計画表の作成に必要となるシフト条件を抽出する勤務シフト表作成支援システムであって、
日付と関連付ける日付方向と勤務者と関連付ける勤務者方向を有する過去の勤務シフト表又は教師となる勤務シフト表を取り込む読取り手段と、
前記読取り手段によって取り込まれた前記勤務シフト表の各セルのデータを前記勤務者方向のデータと関連付けて整理する前処理手段と、
前記前処理手段によって整理された処理データを変換データに変換する変換処理手段と、
前記変換データを使ってクラスタリングをおこなうクラスタリング手段と、
前記クラスタリング手段によって分類されたクラスタをシフト条件として出力する出力手段とを備えたことを特徴とする勤務シフト表作成支援システム。
A work shift table creation support system that extracts shift conditions necessary for creating a work shift plan table,
Reading means for capturing a past work shift table having a date direction associated with a date and a worker direction associated with a worker or a work shift table serving as a teacher;
Preprocessing means for organizing the data of each cell of the work shift table captured by the reading means in association with the data for the worker direction;
Conversion processing means for converting the processing data arranged by the preprocessing means into conversion data;
Clustering means for performing clustering using the converted data;
A work shift table creation support system, comprising: output means for outputting clusters classified by the clustering means as shift conditions.
JP2011044768A 2011-03-02 2011-03-02 Work shift table creation support system Expired - Fee Related JP5530961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011044768A JP5530961B2 (en) 2011-03-02 2011-03-02 Work shift table creation support system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011044768A JP5530961B2 (en) 2011-03-02 2011-03-02 Work shift table creation support system

Publications (2)

Publication Number Publication Date
JP2012181718A JP2012181718A (en) 2012-09-20
JP5530961B2 true JP5530961B2 (en) 2014-06-25

Family

ID=47012857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011044768A Expired - Fee Related JP5530961B2 (en) 2011-03-02 2011-03-02 Work shift table creation support system

Country Status (1)

Country Link
JP (1) JP5530961B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5680160B1 (en) * 2013-09-05 2015-03-04 株式会社東芝 Service analysis apparatus and operation method thereof
JP6331873B2 (en) * 2014-08-22 2018-05-30 沖電気工業株式会社 Shift management system, terminal device, information processing system, information processing method, and program
CN114816172B (en) * 2022-04-02 2023-11-17 阿里巴巴(中国)有限公司 Personnel scheduling interaction processing method and device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4160462B2 (en) * 2003-08-18 2008-10-01 株式会社東芝 Device and program for generating and displaying time-series action patterns
JP2006236173A (en) * 2005-02-28 2006-09-07 Secom Co Ltd Roster creation system
JP2006277060A (en) * 2005-03-28 2006-10-12 Tama Tlo Kk Schedule preparation support system, schedule preparation method and program
JP2008269256A (en) * 2007-04-19 2008-11-06 Mitsubishi Electric Corp Work shift creation support device

Also Published As

Publication number Publication date
JP2012181718A (en) 2012-09-20

Similar Documents

Publication Publication Date Title
JP6721743B2 (en) Leave Prediction System, Leave Prediction Method and Program
Toloo Selecting and full ranking suppliers with imprecise data: A new DEA method
Baptista et al. How former business owners fare in the labor market? Job assignment and earnings
CN110603501A (en) Time-series data processing device, time-series data processing system, and time-series data processing method
JP5430913B2 (en) Standard work time calculation device, standard work time management system, standard work time calculation method, and program thereof
Sargut et al. Utilization of statistical process control (SPC) in emergent software organizations: pitfalls and suggestions
JP5530961B2 (en) Work shift table creation support system
CN112765235A (en) Human resource intelligent management system based on feature recognition and big data analysis and cloud management server
JP2016151979A (en) Mental health care support system, device, method, and program
Andrews et al. The spatial structure of party competition: Party dispersion within a finite policy space
CN106709622A (en) Database analysis device and database analysis method
Jans et al. Managing data quality indicators with paradata based statistical quality control tools: The keys to survey performance
JP6387622B2 (en) Information processing apparatus, information processing method, and program
CN110555577B (en) Scheduling method, scheduling system, device, and storage medium storing computer program
RU83640U1 (en) HARDWARE AND SOFTWARE COMPLEX OF AUTOMATED ACCOUNTING OF THE ENTERPRISE&#39;S PRODUCTION PROCESS
Mertens et al. Value stream mapping and process mining: a lean method supported by data analytics
JP6551113B2 (en) Grouping support program, grouping support method and grouping support apparatus
JP2008299496A (en) Operation simulator and program
JP2006251855A (en) Schedule preparation device, method and program
Chwastyk et al. Integration CAD/CAPP/CAM systems in design process of innovative products
JP2021152852A (en) Information processing system
JP2021056671A (en) Work state determination device, work state determination method and program
JP2021081761A (en) Analysis system and analysis method
JP6505974B2 (en) Office Risk Management System and Office Risk Management Program
CN109543962B (en) Method for automatically counting work load scores of electronic operation tickets

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140303

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140408

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140421

R150 Certificate of patent or registration of utility model

Ref document number: 5530961

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees